jkility Posted September 14, 2016 Share Posted September 14, 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...
modprestashop Posted September 14, 2016 Share Posted September 14, 2016 Yes, you have changed it in php.in or by ini_set() function but does your server provider allow you to change that value really? Set value and then print it too to check if it is really affected or not. Because what error you are showing us is only because of insufficient memory for sure. Link to comment Share on other sites More sharing options...
jkility Posted September 14, 2016 Author Share Posted September 14, 2016 Yes, you have changed it in php.in or by ini_set() function but does your server provider allow you to change that value really? Set value and then print it too to check if it is really affected or not. Because what error you are showing us is only because of insufficient memory for sure. Hi, Yes the server provider allows me to change the value. There is no problem with not enough memory as were on a VPS with sufficient RAM. What exactly do you mean by print? Print the configuration? Link to comment Share on other sites More sharing options...
modprestashop Posted September 14, 2016 Share Posted September 14, 2016 Yes, i am saying to check echo ini_get('memory_limit'); Link to comment Share on other sites More sharing options...
jkility Posted September 14, 2016 Author Share Posted September 14, 2016 Yes, i am saying to check echo ini_get('memory_limit'); memory_limit = 1000M Where would I find ini_set() function 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