Reputation: 166
In my website i am able to open almost all the link without any error. but when try to open this link : http://scp.com/sh/admin/cities/add this show me this error : Warning (2): file_put_contents(/var/www/shcopy/sh/app/tmp/logs/error.log): failed to open stream: No such file or directory [CORE/Cake/Log/Engine/FileLog.php, line 87] Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 35 bytes) in /var/www/shcopy/sh/lib/Cake/Error/ErrorHandler.php on line 212
i checked my php.ini file the memory_limit is -1. Still i m getting this error.
Upvotes: 1
Views: 1671
Reputation: 4084
Just increase your memory limit in php.ini/.htaccess/ini_set
Put the following line in AppController.php file
ini_set('memory_limit', '1024M');
Or put the following line in your .htaccess file and check
php_value memory_limit 1024M
Upvotes: 1