Results 1 to 5 of 5

Thread: Fatal error: Allowed memory size...

  1. #1

    Default 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?
    Web design agency - EDsolution.si Izdelava spletnih strani

  2. #2
    User
    Join Date
    06-20-09.
    Posts
    115

    Default 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.
    geung

  3. #3

    Default 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.
    Web design agency - EDsolution.si Izdelava spletnih strani

  4. #4
    Community-Moderator xchs's Avatar
    Join Date
    06-19-09.
    Posts
    1,098

    Default 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.
    Contao Community Moderator
    → Support options

  5. #5

    Default 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
    Web design agency - EDsolution.si Izdelava spletnih strani

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •