Jump to content

Allowed memory size (?)


webgolfcz
 Share

Recommended Posts

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.

memory_limit.thumb.png.28e9d9462d927a314f8e6d259aad0823.png

Nothing is set up in .htaccess.

Where can the limit be set ?

(presta 1.6.1.12)

Thanks,

Jan

Share this post


Link to post
Share on other sites

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 ?

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More