"An error occurred in the upload…" with images with lots of pixels
-
The error that I’m seeing is that files with large pixel sizes are not being uploaded and turned into thumbnails correctly when adding them to the Media library.
It appears to be a problem with the pixels, not with the file size.
Taking the same file and adjusting the scale (pixels) and compression (to adjust file size) I see the following results.
4160 x 2340 (5.4MB – Original JPG) – Error & no thumbnails produced.
4160 x 2340 (1MB – Low quality JPG) – Error & no thumbnails produced.
2000 × 1125 (2MB) – Success!
1600 x 900 (1MB) – Success!So, when the images have smaller pixel sizes, I don’t get the error and all of the thumbnails are generated correctly. When the images have more pixels, I get the “An error occurred in the upload. Please try again later.” and no thumbnails are generated (but the file is uploaded correctly).
Here’s what I’ve tried to fix it:
– turning off all plugins
– setting my theme to Twenty Fourteen
– reinstalling wordpress
– checking the permissions of the wp-content/uploads directories (all directories are set to 755)
– uploading files in different browsers (chrome, IE)
– uploading files every UI pattern wordpress offers (via media library directly and from within the post authoring experience)My hosting environment is 1&1, PHP 5.6.3. This problem has been going on for a while (I think since WordPress 3.8). I just upgraded from PHP 5.2 and also upgraded WordPress to 4.0.1 and the problem has persisted.
Is it possible I’m hitting some sort of processing timeout due to the larger pixel sizes?
Any suggestions of things to explore would be helpful – it’s annoying to have to manually scale photos down to post them.
Thanks!
- The topic ‘"An error occurred in the upload…" with images with lots of pixels’ is closed to new replies.