jkility Posted September 28, 2016 Share Posted September 28, 2016 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 More sharing options...
El Patron Posted September 28, 2016 Share Posted September 28, 2016 (edited) 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 September 28, 2016 by El Patron (see edit history) Link to comment Share on other sites More sharing options...
maokun55 Posted March 13, 2017 Share Posted March 13, 2017 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 More sharing options...
bellini13 Posted March 13, 2017 Share Posted March 13, 2017 134217728 is about 138mb (probably 128mb). So while you might have tried to make it unlimited, your hosting provider has likely restricted that. You should follow up with your hosting provider support directly. Link to comment Share on other sites More sharing options...
maokun55 Posted March 13, 2017 Share Posted March 13, 2017 Thanks for your reply. It's my local server so no restriction at all and I'm certain it's set to unlimited. Link to comment Share on other sites More sharing options...
bellini13 Posted March 14, 2017 Share Posted March 14, 2017 the error you are receiving suggests otherwise Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now