Memory size exhausted Error in PHP, Opencart, Wordpress

Hi, I getting below error in my opencart website.

:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 20000 bytes) in 
/home/xxx/example.com/system/library/image.php

to solving this error.
I added these below code after placing it at the beginning of the file. and problem has been solved.
ini_set('memory_limit', -1);
For detail information. I also followed this Q/A.

Popular posts from this blog

Cant use dump() function in twig files or how to enable debug in opencart twig or print_r alternate use dump() in opencart 3.0

maximum execution time error when importing sql data file since php.ini has been already set max execution time 3000

SEO Custom URL in Opencart