Post by uzumakifahim » Sat Dec 17, 2016 3:46 pm

Hi guys,

I'm using 2.2.0.0. Product uploading & other things was running smoothly. Suddenly, we have got some error.

When we are trying to edit some specific product it is showing the following error(Screen shot attached) :

Code: Select all

Fatal Error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 13824 bytes) in /home/click/public_html/system/library/image.php on line 26
I've googled about the error. As it seems, it's not a very rare issue,but couldn't get any solid answer to solve the issue.

Please help me brothers to overcome the issue.

Thanks in advance.

New member

Posts

Joined
Tue Jun 21, 2016 10:11 am

Post by uksitebuilder » Sat Dec 17, 2016 5:50 pm

Most likely the image you are uploading is too large (filesize) and the image resizer is what will be causing the error

Only real solution is (a) increase the server memory or (b) resize the images prior to uploading to make them a more manageable size (eg 1200px wide should be sufficient)

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by uzumakifahim » Sat Dec 17, 2016 6:13 pm

@UkSiteBuilder

Thanks for your quick response.Great answer indeed. I've decreased the file size & site is okay now. For more clarification could you please help me with the following :

a) How can I increase the server memory?
b) The file size I've uploaded before was almost 3456*5184 pixels. Should I decrease the file size? I've uploaded almost 30 products with this image size. But haven't face this issue before. Why I'm facing this now? You are an expert could you please clarify more.

A lot of thanks again. Have a great day/night :)

New member

Posts

Joined
Tue Jun 21, 2016 10:11 am

Post by uksitebuilder » Sat Dec 17, 2016 7:46 pm

Hi, no problem

(a) It depends on your server. If your hosting only allows 64mb Memory, then you need to contact them and upgrade. If however your server gives you more memory, you can edit php.ini and admin/php.ini and increase the value there from 64 to 128 or 256

(b) That image size is mahoosive - Most likely direct from a large MP camera. You are making the server work hard to resize a file of that size. Why it worked before, could be any reason, depending on how many colours in the image will depend on its file size in mb/kb - Also, if your server has visitors on it or performing other operations, not all of that 64mb will be available at the time that image is being processed.

Definitely the best solution is to reduce/resize the image prior to upload

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by IP_CAM » Sat Dec 17, 2016 11:05 pm

Generally, to increase Memory Size, you should ask your Hoster first on how much memory you can use. Then, you have to re-adjust the memory size in your BOTH OC php.ini files accordingly, and change the Memory Value, as shown on the image below, on the Server. In the case shown here, it's set to 640MB:

Code: Select all

magic_quotes_gpc = Off;
register_globals = Off;
default_charset	= UTF-8;
memory_limit = 640M;
Good Luck ;)
Ernie

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 30 guests