Forums

Problem uploading images in 2.6.1 (13 posts)

  1. Madcore
    Member
    Posted 3 years ago #

    Hi dudes.

    I tried to upload images trought WordPress using both the flash uploader and web uploader. But when the image are uploaded, the uploader gives a "Error HTTP" message in red. After all, the image is uploaded, but no thumbnail or medium size images are created, and galleries only show the full size image, messing up the web.

    It´s strange because the same WordPress installation with the same plugins, theme, files, and all, works fine under a localhost server I have for development. Here are the info from PHPInfo from bot hosts, my web host and the localhost:

    This is from the web

    PHP information for http://yggdrasil.nn45.com

    max_execution_time: 30
    max_input_time: 60
    file_uploads: 1
    upload_max_filesize: 8M
    post_max_size: 8M
    register_globals: 1
    safe_mode:
    allow_url_fopen: 1
    eaccelerator.enable:

    Other information:

    PHP Server API: cgi
    WordPress Version: 2.6.1
    WordPress Blog URI: http://yggdrasil.nn45.com
    WordPress Installation URI: http://yggdrasil.nn45.com
    WordPress Theme: /wp-content/themes/yggdrasil
    WordPress Permalink Structure: /%postname%/
    WordPress wp-content directory is writable
    WordPress does not use Gzip Compression
    WP-Cache is running on this installation of WordPress
    GD library is installed
    PHP Version: 4.4.8
    MySQL Version: 4.1.20
    Browser used: Mozilla/5.0 (Windows; U; Windows NT 6.0; es-ES; rv:1.9) Gecko/2008052906 Firefox/2.0.0.12;MEGAUPLOAD 1.0

    And this from my localhost server

    PHP information for http://127.0.0.1/ynew

    max_execution_time: 3600
    max_input_time: 60
    file_uploads: 1
    upload_max_filesize: 120M
    post_max_size: 8M
    register_globals:
    safe_mode:
    allow_url_fopen: 1
    eaccelerator.enable:

    Other information:

    PHP Server API: apache
    WordPress Version: 2.6.1
    WordPress Blog URI: http://127.0.0.1/ynew
    WordPress Installation URI: http://127.0.0.1/ynew
    WordPress Theme: /wp-content/themes/yggdrasil
    WordPress Permalink Structure: /%postname%/
    WordPress wp-content directory is writable
    WordPress does not use Gzip Compression
    WP-Cache is running on this installation of WordPress
    GD library is installed
    PHP Version: 4.3.10
    MySQL Version: 4.1.9-max
    Browser used: Mozilla/5.0 (Windows; U; Windows NT 6.0; es-ES; rv:1.9) Gecko/2008052906 Firefox/2.0.0.12;MEGAUPLOAD 1.0

    Anyone have any idea how to fix that?

  2. Otto
    Tech Ninja
    Posted 3 years ago #

    Did you try all the steps listed here?
    http://wordpress.org/support/topic/164999?replies=1

  3. Madcore
    Member
    Posted 3 years ago #

    Yes, I tried all the steps in that post before write this. None of those works for me.

  4. Otto
    Tech Ninja
    Posted 3 years ago #

    What are the two settings set to at the top of your Settings->Miscellaneous screen?

  5. Madcore
    Member
    Posted 3 years ago #

    The first, the upload folder, is set to "data".

    The second, full URL path to file, is set to "http://yggdrasil.nn45.com/data/".

  6. Otto
    Tech Ninja
    Posted 3 years ago #

    The second one should not have the trailing slash, but I don't think that would cause your problem. Still, remove the ending /.

    Did you try step 6 in the sticky, the mod_security fix? That one can cause the HTTP error message.

  7. Madcore
    Member
    Posted 3 years ago #

    Yes, I try the mod_security fix, but the http error still occurs.

    Also, my problem looks like the one on step 8. I saved the image in a proper standard jpg format, and tried upload it again, but the error shows again. So the step 8 solution doesn´t work.

  8. Otto
    Tech Ninja
    Posted 3 years ago #

    What "Step 8" are you talking about? Because step 8 explicitly starts off with "It uploads without any errors" and if you're getting an error, then that's not step 8 at all, is it?

  9. Madcore
    Member
    Posted 3 years ago #

    It uploads without any errors, but it does not generate thumbnails! The images show up full size on the page, or they are scaled in a really ugly manner

    That´s exactly what happenned to me, but with a message of Error HTTP instead of no error. I mean, like I said in the post "when the image are uploaded, the uploader gives a "Error HTTP" message in red. After all, the image is uploaded, but no thumbnail or medium size images are created, and galleries only show the full size image, messing up the web."

    I´ts like the situation exposed in the step 8, but with an error instead of without any.

  10. Otto
    Tech Ninja
    Posted 3 years ago #

    Ah. Well, that's really not the same thing at all. The key part of that is the lack of errors, not the existence of the file being uploaded.

    You do have the max_execution_time set fairly low (30 seconds). Perhaps it's running out of time trying to create those thumbnails or some such thing? Try increasing that value on the server giving the problems.

  11. Madcore
    Member
    Posted 3 years ago #

    I don´t have control on the config of the web host, because is on Globat, and isn´t a dedicated server. I have sent a mail to support to ask a way to change things like the max_execution_time.

    Anyway, I think the problem comes from the web host and not from the WordPress installation. Why?. I don´t know how, but after try all the steps of the sticky, make some test by myself, and still giving me the error http, I tried again to upload an image. AN IT WORKS FINE NOW!!! Unexplanable... I´m uploading a bunch of images to look if it really works fine now.

    Thanks for all the help anyway, Otto42. You´d been a great support ^_^.

  12. Otto
    Tech Ninja
    Posted 3 years ago #

    Well, looking through the error logs on the server would tell you whether or not it was an execution time issue. That issue would come and go, sort of thing, depending on server load.

  13. Madcore
    Member
    Posted 3 years ago #

    I´ll email globat suport for the logs. I don´t want this happen again.

    Also, I´m going to check if some of the plugins I´ve on the WP may crash on some way the media uploader. Maybe this have some relation with the error.

Topic Closed

This topic has been closed to new replies.

About this Topic