• Before anyone starts I already read the following: http://wordpress.org/support/topic/25-imagemedia-uploader-problems?replies=1

    I’ve gone thru and can’t figure this out. I try to upload images that are smaller than my server configurations allow (25M). I’m only trying to upload 1000k or less.

    Images upload to the directory but I get the HTTP ERROR message. Also admin interface will not give me image size or let me select from small, medium, large options. GD Image library is enabled on the server.

    I took a look at the php configuration file and it is set to allow file uploads from http. There are no special settings set in the Settings>Miscellaneous section.

    I’ve added the .htaccess mod_security code I’ve come across from others who have posted. I am at a loss.

    I am assuming this is a server configuration but cannot narrow it down. I’ve checked the php config settings for file size & file uploads and they are set correctly.

    Any ideas guys/gals? Thanks.

Viewing 15 replies - 1 through 15 (of 22 total)
  • From the link that you indicate at the start of your post, this caught my eye:

    7. Try a smaller image, in pixels. Filesize is largely irrelevant, it’s the width and height of the image that matters. Smaller images require less RAM. Although WordPress does attempt to tell PHP to allow it enough RAM, not all server configurations allow this and so PHP may not be set to have enough memory to work with larger images. Resize the images to web-sizes before uploading them.

    On a previous web host, I had problems with pictures directly off my camera in the 2500 x 2000 pixel range.

    To determine if that is your problem, start with an 80 x 80 (or less) pixel .jpg and work your way up to the size of your pictures that are failing. As the quoted item says, it is pixel size, not file size, that matters.

    If pixel size is the problem, then it is almost certainly a php memory problem. Quoting from this post http://wordpress.org/support/topic/fatal-error-allowed-memory-size-exhausted-2?replies=8

    The other option of course is to get a new host that’s not as restrictive.

    Deactivating plugins can free up PHP memory.

    Methods for increasing the amount of memory a PHP script may consume

    1. If you have access to your PHP.ini file, change the line in PHP.ini
    If your line shows 32M try 64M:
    memory_limit = 64M ; Maximum amount of memory a script may consume (64MB)

    2. If you don’t have access to PHP.ini try adding this to an .htaccess file:
    php_value memory_limit 64M

    3. Try adding this line to your wp-config.php file:
    Increasing memory allocated to PHP
    define(‘WP_MEMORY_LIMIT’, ’64M’);

    4. Talk to your host.

    Thread Starter macrunning

    (@macrunning)

    Hello adiant,
    Yes I have tried smaller images, as I stated I tried everything in the previous sticky on the forum: http://wordpress.org/support/topic/25-imagemedia-uploader-problems?replies=1

    Typical host response: “We don’t handle scripting issues” Trying to get them to believe its a configuration issue hasn’t produced anything yet. I have checked the php.ini file configurations and other server configuration and they all appear to be fine with memory limits set generously as well as file upload permission sizes being set generously. As I stated in my post just trying to upload images less than 1000k (1M) are not working correctly.

    Thread Starter macrunning

    (@macrunning)

    Seems rather crazy so many people are having so many issues with the image uploader since WP2.5. It would be nice if someone had a solution out there that worked. I’ve tried deactivating plugins. I’ve tried adding more memory to the php.ini file. I’m only using a very small image size so this should have any effect on memory really.

    Thread Starter macrunning

    (@macrunning)

    Kind of odd that my other posts have disappeared. Guess this will just keep moving down the list un answered. That sucks. Its rather strange that this issue only applies to image files. I’ve uploaded .zip files and .pdf files and no http error. Anybody, anyone, ideas on this?

    Kind of odd that my other posts have disappeared

    What other posts?

    Anybody, anyone, ideas on this?

    http://www.chewie.co.uk/general/wordpress-image-upload-http-error/

    I’ve been having this problem with audio files – even after following all the steps as well.

    Is there any logs available that would track whatever error might be causing the HTTP Error. problem? I looked at the server side error log but don’t see any errors.

    Thread Starter macrunning

    (@macrunning)

    I had posted a 404 – not found message. I figured if this issue couldn’t be resolved then maybe I could see why I was getting a 404 – not found message after using the non flash uploader in wordpress. After it uploads the image it redirects to the following page and tells me Error 404 – not found.
    wp-admin/media-upload.php?inline=&upload-page-form=

    When I used the non-flash browser I get a 500 Internal Server Error instead of HTTP Error.

    “media-upload.php?inline=&upload-page-form=”

    Bump.

    Still having this issue.

    After talking with my host (again) it sounds like they put a 60 second cap on how long a script can run. Does the upload script take that long to run?

    OK, now you are talking about something unrelated to WordPress that I have some experience with: web host Support folks. My previous host had “workload management” software that aggressively gave 500’s to everything in sight whenever the server’s processor got busy.

    Recreate your problem noting the exact time that the 500 occurred. Ask the support folks at your web hosting company to give you all log information that they have on the 500 error that occurred at the time and date you wrote down, BEING SURE to tell them what time zone you are in, including whether or not you are on Daylight Saving Time.

    That will tell you whether it is a “60 second cap” issue or something else, and hopefully what that is.

    P.S. – don’t yell at anyone. It is quite likely that the support folks you talk to may not be aware of exactly what some high class techies are doing elsewhere within their company. In my case, I was getting some “30 second cap” response from the people I talked to when, in fact, another guy had set this really aggressive monitoring that knocked me out with less than 2 seconds of processor time used if the processor was busy.

    Thread Starter macrunning

    (@macrunning)

    That 60 second cap should be more than enough time to upload images in wordpress, granted you should have cable internet access.

    Thread Starter macrunning

    (@macrunning)

    I’m wondering if this has any connection to why 1 of our curl scripts is no longer working either.

    Thread Starter macrunning

    (@macrunning)

    I have still yet to get any resolution on this. Does anyone know why I can upload video files & music files thru wordpress but not upload image files correctly. I keep getting ‘http error’ message (in red). Images don’t appear to be able to be resized. I have read over everything so far on this forum and still i am not having any luck. The image are not to big as I have used smaller sized image. I’ve increased memory, I’ve checked the configuration files. I am out of options at this point. I find it strange i can upload non-image files without issue but uploading a .jpg or .gif will give me this error.

    Does anyone know why I can upload video files & music files thru wordpress but not upload image files correctly.

    .jpg files are processed by WordPress, which resizes them in thumbnail, medium and large sizes, as well as storing the original. Video and music files are not. To get the best possible results during resizing, WordPress uses the php resampling functions. End result is tens and perhaps hundreds of time as much processing (server processor workload) to handle a .jpg upload as audio or video.

    Thread Starter macrunning

    (@macrunning)

    I guess that would help me but I’ve increased the memory limit, the upload max file size and still no luck. What else should I be checking? My file is small, my php settings seem reasonable:
    upload_max_filesize 25M
    post_max_size 16M
    memory_limit 64M

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘Image Upload Issue’ is closed to new replies.