Page 1 of 1

Help - Errors with memory size & sitemap

Posted: Sun Jan 07, 2018 5:54 pm
by RatnikZnae
Hello.

Yesterday when I tried open my sitemap this error showed:
Fatal error: Allowed memory size of ...
Then I changed in both php.ini files memory_limit from 64 to 256.
I used Opencart 2.3.0.2

Now this error showed in error.log:
PHP Notice: Undefined variable: stock_statuses in root/admin/view/template/catalog/product_list.tpl on line 184
PHP Warning: Invalid argument supplied for foreach() in root/admin/view/template/catalog/product_list.tpl on line 184


sitemap still not work :/

Can somebody help me?
Thanks in advance.

Re: Help - Errors with memory size & sitemap

Posted: Sun Jan 07, 2018 9:56 pm
by OSWorX
Which template are you using - guess not the default.
And I assume that you are using a 3rd party extension for these 'stock statuses'.
If you made it by yourself, check the controller - otherwise contact the developer.

Re: Help - Errors with memory size & sitemap

Posted: Sun Jan 07, 2018 10:45 pm
by victorj
When on latest version of cpanel you dont use php.ini but user.ini
correct syntax should be 256mb otherwise its only 256 bytes.
normaly in cpanel onder php you can increase mem value as well.

Re: Help - Errors with memory size & sitemap

Posted: Sun Jan 07, 2018 11:34 pm
by RatnikZnae
Thanks for answers.
Yes i use custom theme and extension: Fast edit of products.