Fatal error: Allowed memory size of 268435465 bytes exhausted
(tried to allocate 280559520) in Unknown on line 0
(tried to allocate 280559520) in Unknown on line 0
How to fix the "Allowed memory size Error" in localhost
The php memory resource can be increased in the php.ini located in the public_html or in localhost. The following steps will explain how to set the php.ini to allow a larger amount of memory use.
1. If you have access to the php.ini file, open xampp\php\php.ini file and find memory_limit, then set the
memory_limit option to 512M2. now open your project folder and you will find php.ini file set memory_limit option and place 512M there. 2. If you don't have access to it, you can try to set it in the .htaccess with: open your project .htaccess and place this line php_value memory_limit 512M; 3. now open your project admin folder you will find again php.ini file, set memory_limit 512M; 3. If you change it on php.ini file don't forget restart the server after change the value. Your server have the memory_limit set to 64Mb and Open Cart need a little more. I hope this help you. |
No comments:
Post a Comment