WordPress 2.5.1 Still can't upload images (97 posts)

  1. crystallyn
    Posted 7 years ago #

    To further add to this...I can't add an image if it's a link either, unless I hand code it in the HTML pane.

  2. JesseG5
    Posted 7 years ago #


    Let me see the code for index.php of your website. Also what is the link?

  3. Precondition Failed

    This is almost always mod_security.

    Add this to your wp-admin's .htaccess file:

    <IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off

    Note, this is different than what I have in the image problem post sticky thing.

  4. crystallyn
    Posted 7 years ago #

    Awesome. That did it!!!! Thanks for the fast response Otto!

  5. Anonymous
    Posted 7 years ago #

    The mod_security fix did the trick for me too, but I'd also tried chmod 777 on the uploads directory before that (with no success).

    I was getting the "HTTP Error" problem at the end of the "crunching" phase after upgrading from v2.3.3? to 2.5.1

    Anyway thanks for your lifesaving sticky, Otto!

  6. Anonymous
    Posted 7 years ago #

    None of the above "fixes" solved the picture-in-post problem, but this did. After 2 days of banging my head on the wall I gave up and decided to try Flickr since I'd seen it used on other blogs. A Google search let me to Joe Duck's solution. It worked so easily and I was so ecstatic that I treated myself to an ice cold beer at 4 in the afternoon. Hell, it's five o'clock somewhere.

    Here's the link: http://joeduck.com/2006/09/08/wordpress-with-flickr-pix-tip-2-post-a-single-flickr-photo-in-a-wordpress-blog-post/

    NOTE: Where he says you fill out the description of the picture...you actually write your entire post in that box, or copy and paste it, and add the post title you want to show up on your blog. Then when you click the upload post button it uploads to your wordpress blog. Now, open the dashboard, go to manage posts, click the post just loaded and there it is. You'll have to clean up the code 'cause it adds the name of the picture and who posted it, but that's pretty easy to do.

    It puts the picture on the right side of the post. You can change the float and margin settings from right to left and that's about it. The sucker works. At least it did for me. Hope it does for you.

  7. helloari
    Posted 6 years ago #

    i am using wp 2.7 - is anyone else still having this problem with image uploading? i see noone has posted here in a while.

    i was first able to upload an image but it went into the wp-content directory but the link in the post went to wp-content/uploads so the image was broken . then when i pointed misc prefs to the right directory (wp-content/uploads) it stopped working entirely - would not upload.

    hours of changing permissions and user/groups got me nowhere.

    then i applied the image-upload-http-error-fix.php plugin and it told me there were not write permissions for .htaccess. so i changed those permissions and it kept telling me it was not writable. so i went into .htaccess by hand and saw that the code had been inserted. in fact, the beginning of the file had 2 sets of code from the rewrite page. i deleted one set - not sure if that was an issue or not but i doubt it.

    then i had to back out of my other changes (remove the uploads directory and recreate it) before everything started working.

    as i tried to remove chmod 777 i found that i had to keep the uploads directory at 777 but not wp-content. i'm not clear if it's an issue to have just that one directory unprotected?

    after learning drupal i was very happy that wp was so simple. this was a bummer to deal with to say the least. but text input methods are a tough nut to crack and drupal still doesn't have a really solid solution that i know of.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.