Forums

Image Upload Issue (23 posts)

  1. macrunning
    Member
    Posted 1 year ago #

    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.

  2. jonradio
    Member
    Posted 1 year ago #

    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.

  3. macrunning
    Member
    Posted 1 year ago #

    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.

  4. macrunning
    Member
    Posted 1 year ago #

    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.

  5. macrunning
    Member
    Posted 1 year ago #

    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?

  6. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    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/

  7. Will White
    Member
    Posted 1 year ago #

    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.

  8. macrunning
    Member
    Posted 1 year ago #

    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=

  9. Will White
    Member
    Posted 1 year ago #

    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="

  10. Will White
    Member
    Posted 1 year ago #

    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?

  11. jonradio
    Member
    Posted 1 year ago #

    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.

  12. macrunning
    Member
    Posted 1 year ago #

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

  13. macrunning
    Member
    Posted 1 year ago #

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

  14. macrunning
    Member
    Posted 1 year ago #

    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.

  15. jonradio
    Member
    Posted 1 year ago #

    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.

  16. macrunning
    Member
    Posted 1 year ago #

    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

  17. macrunning
    Member
    Posted 1 year ago #

    Although I get the http error message the image does upload. Unfortunately it just gives me the 'http error' message. I can click on gallery afterward and the image is located in the gallery. However wordpress does not give me the size of the image or the option to resize. If i use the non-flash version to upload an image it just redirects me to a 404 not found page after trying to upload.

  18. jonradio
    Member
    Posted 1 year ago #

    The upload of the image is just the first step. A "crunching" message appears while the "server processor-intensive" work is done resizing the .jpg to thumbnail, medium and large pixel sizes (some aren't done when the image is smaller than the specified sizes). You don't get an option to resize: it occurs automatically as part of the whole WordPress upload process.

    I don't believe you've actually displayed the "HTTP error" you get DURING the upload process. Could you please cut and paste the message(s) you get when the upload fails to complete (as it is obviously doing)?

  19. macrunning
    Member
    Posted 1 year ago #

    Thats all it says "http error' in red letters.

  20. macrunning
    Member
    Posted 1 year ago #

    also i've uploaded large and small dimension images, none of them resize.

  21. jonradio
    Member
    Posted 1 year ago #

    I did search through the WordPress support forum that we are on for
    "HTTP error" red and ended up pretty much with what it says in these two articles, which were quoted above:
    http://wordpress.org/support/topic/25-imagemedia-uploader-problems?replies=1
    http://www.chewie.co.uk/general/wordpress-image-upload-http-error/#solution

    I would especially recommend checking the following:

    1. make sure that the .htaccess changes you made were in /wp-admin/
    2. the fault could lie with Flash on your local workstation, especially if you are running OSX (Mac), so try as different a computer as you can find, as well as the obvious check for the latest version of Flash on your machine
    3. try the non-Flash upload option on an 80x80 pixel (or smaller) .jpg, as that give clues as to where the problem lies

    Otherwise, I've pretty run out of ideas, other than going through the steps extremely carefully in the two links above, and make sure everything is exactly correct. And perhaps doing the "HTTP error" red (be sure to use the double quotes shown) here: http://wordpress.org/support/

  22. macrunning
    Member
    Posted 1 year ago #

    Yah, I've tried the non-flash version and it just redirects me to a 404 not found page. No go. Also this is happening on other people computers besides mine. I am running Mac OSX but since it is occurring on other people computers I don't believe its a local issue. ALso this didn't start occurring until I was migrated to a new server, so I am assuming its a server setting of some sort but none of the stuff I've found on here has helped yet. I will take a look at those 2 links you sent and see if something on there doesn't work.

  23. macrunning
    Member
    Posted 1 year ago #

    Ok, I am still dumbfounded on this. I've even had another developer look at it. No solution yet. I've tried all of the following before you respond.
    1. checked file size upload - ok
    2. checked actual image size - ok
    3. http://wordpress.org/support/topic/25-imagemedia-uploader-problems?replies=1 none of these worked
    4. http://www.chewie.co.uk/general/wordpress-image-upload-http-error/#solution this did not work
    5. I've upgraded to the latest version and then I ran into a 500 internal server error trying to get into my wp-admin
    6. i have since downgraded back to 2.7 and I'm back to square one with the image upload issue.

    Further, images upload using the flash verson but I get a red http error message. I can then click on the media library and get my image. I cannot resize it though.

    If I use the http upload it redirects to a '404 not found' message even though the url remains the same: wp-admin/media-upload.php?post_id=417&type=image&tab=type&flash=0
    Image still uploads but no ability to resize.

    The only thing I've seen is that 404 not found domain.com/xmlrpc.php will show in the headers (using Live HTTP Headers) in firefox. I've tried removing but did not seem to have any affect.

    Getting desperate here, heeeeeeeeeeeelp! Before I go mad.

Topic Closed

This topic has been closed to new replies.

About this Topic