-
AuthorPosts
-
May 14, 2016 at 5:41 pm #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.
May 17, 2016 at 6:00 am #633477Hey 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,
IsmaelMay 17, 2016 at 9:27 am #633573Hi,
Thanks for reply. That was one of the first things we tried to do, but it didn’t help.May 18, 2016 at 6:01 am #634167Hi,
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,
RikardMay 18, 2016 at 9:20 am #634243It’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.
May 19, 2016 at 6:04 am #634925Hi,
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,
IsmaelMay 19, 2016 at 9:08 am #635056It 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.
May 19, 2016 at 8:37 pm #635529I 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-17May 19, 2016 at 8:43 pm #635534I saw that code and tried it, but it didn’t help. :D
May 19, 2016 at 8:46 pm #635535Once 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.
May 19, 2016 at 8:59 pm #635541after further testing i still get the error. Not sure what allowed me to upload that PNG the one time.
May 20, 2016 at 5:24 am #635696Hi,
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,
IsmaelMay 20, 2016 at 8:43 am #635770Hi,
I did this, and still no luck.
May 20, 2016 at 6:37 pm #636018I’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.
May 23, 2016 at 4:41 am #636519Hi,
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,
IsmaelMay 23, 2016 at 6:52 am #636568Hi,
I’ve manage to set that value from 1 to /tmp directory, but didn’t help. We still get the http error.
May 24, 2016 at 6:49 am #637277Hi,
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,
IsmaelMay 24, 2016 at 9:13 pm #637727I’ve contacted hosting support and they told me that tmp dir exists and that it is correctly set in php.ini file.
May 26, 2016 at 5:51 am #638471Hi!
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,
IsmaelJune 6, 2016 at 2:13 pm #643453I 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' ); }
June 7, 2016 at 5:48 am #643787 -
AuthorPosts
- You must be logged in to reply to this topic.