webgolfcz Posted April 16, 2022 Share Posted April 16, 2022 Hi, when I try open modules site in admin, I see: [PrestaShop] Fatal error in module file :/var/www/webgolf.cz/web/classes/db/DbPDO.php: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 46 bytes) But memory size in PHP on server allowed is 3072M. Nothing is set up in .htaccess. Where can the limit be set ? (presta 1.6.1.12) Thanks, Jan Link to comment Share on other sites More sharing options...
ComGrafPL Posted April 16, 2022 Share Posted April 16, 2022 (edited) You need to change these in php.ini file Either add this ini_set('memory_limit', '3072M'); to this file config.inc.php Edited April 16, 2022 by ComGrafPL (see edit history) Link to comment Share on other sites More sharing options...
webgolfcz Posted April 16, 2022 Author Share Posted April 16, 2022 I tried that, but no change any other ideas? I find in pi.php: $max_execution_time_before = ini_get("max_execution_time"); echo 'memory_limit: ' . $memory_limit_before . PHP_EOL; echo 'max_execution_time: ' . $max_execution_time_before . 's' . PHP_EOL; if (function_exists('ini_set')) { ini_set("memory_limit", '999M'); ini_set("max_execution_time", 999); echo 'memory_limit change: ' . (((int)$memory_limit_before - (int)ini_get("memory_limit") != 0) ? 'YES' : 'NO') . PHP_EOL; echo 'max_execution_time change: ' . (($max_execution_time_before - ini_get("max_execution_time") != 0) ? 'YES' : 'NO') . PHP_EOL; } else { echo 'ini_set: disabled' . PHP_EOL; } But where I can change that ? Link to comment Share on other sites More sharing options...
Nickz Posted April 16, 2022 Share Posted April 16, 2022 4 minutes ago, webgolfcz said: I find in pi.php: There is more than one php.ini file ina server. Link to comment Share on other sites More sharing options...
webgolfcz Posted April 16, 2022 Author Share Posted April 16, 2022 php.ini is only one with adress: /etc/php/5.6/apache2/php.ini Is it some other file where it can by limit set up ? maybe in presta ? config/config.inc.php is with row: ini_set('memory_limit', '3072M'); But still same problem any other ideas? Link to comment Share on other sites More sharing options...
webgolfcz Posted April 16, 2022 Author Share Posted April 16, 2022 Solved, problem was in: modules/seoexpert/seoexpert.php There is row with: @ini_set('memory_limit', 'xxxxM'); Thanks all Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now