0

I am breaking my head with this issue for several days.

I am using Expression Engine 2.11.1

When trying to upload an image using the File Upload feature, I am getting the following error

Fatal error: Allowed memory size of 4251572 bytes exhausted (tried to allocate 100 bytes) in /srv/XXXXXXXXXX/public_html/site/zocalo/cm/codeigniter/system/libraries/Image_lib.php on line 1255

Everyone will say that my php.ini is low on memory but I have set everything correctly. Here my php.ini setup

memory_limit = 200M max_execution_time = 300 max_input_time = 60 log_errors_max_len = 1024 post_max_size = 8M upload_max_filesize = 100M max_file_uploads = 20

The problem is that my pictures are 2KB and 100x100pixels. See images attached.

Any idea how I can fix this?

enter image description here

enter image description here

enter image description here

1
  • What about uploading other kinds of images (JPEG, GIF)? What about other directories? Oct 18, 2016 at 12:07

1 Answer 1

1

Your php.ini could be overridden somewhere.

Check Tools > Utilities > PHP Info to see if there are any local values that don't match your php.ini

If you're on Apache try looking for a .htaccess file in the EE root or in any Virtual Host configurations you may have.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.