amitthakur Posted April 4, 2015 Share Posted April 4, 2015 (edited) Hi, Full disclosure: I am a newbie on web technologies and Prestashop with a grounding in computer science but one that is a couple of decades old. When I try to upload product images if the image is beyond a particular size (even at 1.5 MB), the upload fails with the following error message: An error occurred while copying image, check your memory limit With smaller file sizes (have tried it with 0.9 MB), this problem does not occur but then the level of detail in the jqZoom is rather disappointing. Now, the question is this: memory limit of what? How can I find out the exact limit? Can I change this limit? Thanks for any guidance on this. Regards, Amit Edited April 4, 2015 by amitthakur (see edit history) Link to comment Share on other sites More sharing options...
amitthakur Posted April 4, 2015 Author Share Posted April 4, 2015 Ok - solved it. Changed the memory limit on the hosting server in the market subfolder. Had seen the earlier posts that talked of php.ini file. Couldn't find it. Finally located the configuration info in the file at [my site URL]/[subfolder]/config/config.inc.php Added a line there that increased the memory limit to 1024M as follows: ini_set('memory_limit','1024M'); That did the trick. 1 Link to comment Share on other sites More sharing options...
vicbg Posted October 6, 2015 Share Posted October 6, 2015 Ok - solved it. Changed the memory limit on the hosting server in the market subfolder. Had seen the earlier posts that talked of php.ini file. Couldn't find it. Finally located the configuration info in the file at [my site URL]/[subfolder]/config/config.inc.php Added a line there that increased the memory limit to 1024M as follows: ini_set('memory_limit','1024M'); That did the trick. THANK YOU SIR. YOU ARE GREAT!! Link to comment Share on other sites More sharing options...
prstshp_joe Posted April 12, 2016 Share Posted April 12, 2016 Sorry for the bump. Is it save to set the memory limit this high? What is the rule of thump (depending on the ram or something)? Thanks 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