I’m encountering some weird issues when trying to upload images through the native ExpressionEngine file manager.
First I encountered this at the native size of the jpg file (678kb, 2550px x 3300px):
Fatal error: Out of memory (allocated 34340864) (tried to allocate 10200 bytes) in /[confidential]/manage/codeigniter/system/libraries/Image_lib.php on line 1246After editing the file in Photoshop and down sizing (350kb, 2040px x 2640px) I receive this error:
A PHP Error was encountered
Severity: Warning
Message: imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error:
Filename: libraries/Image_lib.php
Line Number: 1246
A PHP Error was encountered
Severity: Warning
Message: imagecreatefromjpeg(): '/[confidential]/uploads/blog/2nd-qtr-2014-sponsorship-news_01-300kb.jpg' is not a valid JPEG file
Filename: libraries/Image_lib.php
Line Number: 1246
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /[confidential]/manage/codeigniter/system/core/Exceptions.php:170)
Filename: core/Common.php
Line Number: 442I confirmed the upload directory and thumbnail directories are both set to 777.
Then I again adjusted the file size even smaller (230kb, 1530px x 1980px) and a successful upload was achieved.
An obvious solution would be to save every file smaller than 2000px, and 230kb or less, but there are a lot of existing files that we are trying to copy over.
The problem is that even if we FTP upload, then syncing the upload directories through EE’s File Manager, the files still don’t appear in File Manager.
Any help is appreciated!
Setup:
• ExpressionEngine Core v2.9.0 - Build Date: 20140715
• PHP memory_limit = 120M
• Upload directories set to 777.