Jump to content

Fata Error in module file: Memory size fault


jkility

Recommended Posts

Hi,

 

I'm currently having problems uploading images to my Image Slider.

 

When I try to upload a .JPG (which is about 500KB), I get the following error:

[PrestaShop] Fatal error in module file :/public_html/classes/ImageManager.php:
Allowed memory size of 134217728 bytes exhausted (tried to allocate 4039 bytes)

I've done the obvious and I've checked the PHP.ini which was set to 128M, I've changed it to numerous different numbers even up to 4000MB and I get the exact same error. Even though it was set to 4000MB , my Prestashop Confinguration Information was saying that the memory limit was 128MB which it wasnt correct at the time.

 

If I try to upload a .PNG (these are about 7MB), It uploads but I get the following:

https://postimg.org/image/r5d5d8m8p/

I cant understand why this is happening and because of these two problems I'm unable to actually upload any slider image

Link to comment
Share on other sites

changing the php local is not same as setting master.

 

you can use  this free phpinfo module, 

https://www.prestashop.com/forums/topic/278164-free-module-display-php-environment-phpinfo-back-office/

 

then from back office you can see local memory setting and the master value.

 

What I think?  your php.ini change is overriden by master value.  That would most likely result in hosting level change.

 

I think you be fine at 256mb. 

 

Note you can accomplish the same thing by upload file with phpinfo();  learn more here.  The only differece is you would not see in php settings changed by native ps load.

http://php.net/manual/en/function.phpinfo.php

 

 

Hope that helps, el

Edited by El Patron (see edit history)
Link to comment
Share on other sites

  • 5 months later...

Hi,

 

I'm currently having problems uploading images to my Image Slider.

 

When I try to upload a .JPG (which is about 500KB), I get the following error:

[PrestaShop] Fatal error in module file :/public_html/classes/ImageManager.php:
Allowed memory size of 134217728 bytes exhausted (tried to allocate 4039 bytes)

I've done the obvious and I've checked the PHP.ini which was set to 128M, I've changed it to numerous different numbers even up to 4000MB and I get the exact same error. Even though it was set to 4000MB , my Prestashop Confinguration Information was saying that the memory limit was 128MB which it wasnt correct at the time.

 

If I try to upload a .PNG (these are about 7MB), It uploads but I get the following:

https://postimg.org/image/r5d5d8m8p/

I cant understand why this is happening and because of these two problems I'm unable to actually upload any slider image

 

Hi jkility

 

Have you sorted your problem?

I'm having the same problem at the moment. and yes My memoru_limit (both local and master) are set to unlimited. But still getting this error.

 

 

PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 8976 bytes) in \\classes\\ImageManager.php on line 486

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...