Viewing 21 posts - 1 through 21 (of 21 total)
  • Author
    Posts
  • #632369

    Hi, since last WordPress update we are having problem with uploading images on our website. Not with all images, only with high resolution images (for example we can’t upload any photo with more then 1400px width). We have latest Enfold theme update. We realized that there is some problem with Enfold theme when we used default theme (Twentyfifteen) because when we did that we could upload any image, no metter what resolution. We’ve checked Media Settings in WordPress and increased the max resolution but it didn’t helped.

    #633477

    Hey YTM_Filip,

    Thank you for using Enfold.

    Please try to increase the max_execution_time value in the php.ini file or in the .htaccess file. Instructions here: http://stackoverflow.com/questions/8744107/increase-max-execution-time-in-php

    Best regards,
    Ismael

    #633573

    Hi,
    Thanks for reply. That was one of the first things we tried to do, but it didn’t help.

    #634167

    Hi,

    Could you upload an image you are having problems with to a service like imgur.com so that we can try from our end please?

    Regards,
    Rikard

    #634243

    It’s not one image, all high resolution images. For example we can’t upload any 1920x1080px image and larger. The largest image we can upload is for example 1000x1000px…any image larger than that shows http error. So we are sure that it has to do something with image resolution, because we were able to upload small images that had even 10MB, but when we try any high resolution image, even if it has only 100KB we get http error.

    #634925

    Hi,

    We checked the max_execution_time value and it is still set to 30 seconds. Please increase it to 300 seconds or longer: http://www.youtestme.com/?debug-this=phpinfo

    Best regards,
    Ismael

    #635056

    It looks like that we had some problems and php.ini didn’t accept changes, but we fixed it. We’ve changed max_execution_time to 3000 and that didn’t help. We still get http error on upload of high resolution images. I have to highlight again that with all other themes (WordPress default themes) we don’t get http error on hi-res images upload.

    • This reply was modified 8 years, 7 months ago by YTM_Filip.
    #635529

    I was having this problem as well. Adding this code to the functions.php in the theme editor seem to resolve it.

    add_filter( 'wp_image_editors', 'change_graphic_lib' );
    
    function change_graphic_lib($array) {
    return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' );
    }

    code was found here.
    https://wordpress.org/support/topic/http-error-when-uploading-images-17

    #635534

    I saw that code and tried it, but it didn’t help. :D

    #635535

    Once i updated the code, i ended up using Microsoft edge to upload the images… i was using Chrome when i had the issue. I have yet to try chrome again to see if i still have issues.

    Maybe try a different browser.

    #635541

    after further testing i still get the error. Not sure what allowed me to upload that PNG the one time.

    #635696

    Hi,

    Alright. What about the “upload_tmp_dir” directive? Is has no value at the moment. Please create a “tmp” directory then set it as the “upload_tmp_dir” value.

    Best regards,
    Ismael

    #635770

    Hi,

    I did this, and still no luck.

    #636018

    I’m also having this issue, however it doesn’t matter what size the image is, or extension. Theme is up to date (just did a reinstall) as is WordPress.

    *EDIT*
    I put the below code in functions.php, and problem was solved.

    add_filter( 'wp_image_editors', 'change_graphic_lib' );
    
    function change_graphic_lib($array) {
    return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' );
    }
    • This reply was modified 8 years, 7 months ago by AdamBlumFGE.
    #636519

    Hi,

    We check the “upload_tmp_dir” and it set to 1. It should be set to an actual directory or folder. Please contact your hosting provider for more info. Example: https://mediatemple.net/community/products/dv/204644200/how-do-i-set-the-upload_tmp_dir

    Best regards,
    Ismael

    #636568

    Hi,

    I’ve manage to set that value from 1 to /tmp directory, but didn’t help. We still get the http error.

    #637277

    Hi,

    Did you check if the folder actually exist? You can set any value there but it will not make any difference if the folder do not exist. It will help if you can contact your hosting provider so that they can set this up properly.

    If you’re on a shared hosting package, it’s possible that neither of these methods will work. If this is the case, you’ll need to contact your web host and ask them to increase the file upload limit manually.

    This is from an article: https://graphpaperpress.com/blog/upload-large-photos-wordpress/

    Best regards,
    Ismael

    #637727

    I’ve contacted hosting support and they told me that tmp dir exists and that it is correctly set in php.ini file.

    #638471

    Hi!

    I see. Aside from the suggestions here, we are not sure why it’s not working on your installation so we uploaded the same “hi-res” image on ours and it worked fine. In your installation, the image causes an http error but it is still uploaded. We created a test page here: http://www.youtestme.com/test

    Regards,
    Ismael

    #643453

    I had the same issue. Adding this code in functions.php (provided by AdamBlumFGE) worked for me:

    add_filter( 'wp_image_editors', 'change_graphic_lib' );
    
    function change_graphic_lib($array) {
    return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' );
    }
    #643787

    Hi @AJDesignCo,

    Thanks for sharing! Much appreciated :-)

    Regards,
    Rikard

Viewing 21 posts - 1 through 21 (of 21 total)
  • You must be logged in to reply to this topic.