Jump to content

[SOLVED] Memory limit error on product image upload


Recommended Posts

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 by amitthakur (see edit history)
Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

  • 6 months later...

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

  • 6 months later...

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...