Fatal error: Allowed memory size...
Hi.
I have one "big" site, where I parse data and save it as catalog items. Now there is aprox. 70 000 items and I get this error:
Code:
"Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 32 bytes) in /var/www/vhosts/domain.com/sites/domain.com/system/functions.php on line 166"
Server/php memory_limit = 256MB
Contao version 2.11.7
Catalog version 2.0.0 beta2, build 61
Does anyone have any idea how to solve this problem?
Re: Fatal error: Allowed memory size...
It depends on your server, you can try either of the following
Option 1 : in your .htaccess add the following command
Code:
php_value memory_limit 350M
or
Option 2 : Make a php.ini file and put it in root with the following code:
Code:
memory_limit = 350M
For more information on either ways, just search on your favourite search engine.
If it doesn't work then it's the limit set by your server and you will need to contact them.
Re: Fatal error: Allowed memory size...
Yeah that is quick solution but not the right one.
I'm more looking for info where is the problem. Is it in sql query or somewhere else?
If I only raise the memory_limit then this becomes infinity.
Re: Fatal error: Allowed memory size...
@wotanskrieg: You may want to take a look at the new MetaModels extension (i.e. the successor of the catalog extension). Since the extension has been rewritten from scratch you may be able to reduce the memory usage.
Re: Fatal error: Allowed memory size...
Hi,
yeah I'm familiar with MetaModels but I discover that the problem isn't in the Catalog but in some custom script which generates top keywords :)