Allowed Memory Size Of 268435456 Bytes

Hello
I am getting the following error when clicking on a category named Test
FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 32 bytes) in /home/mydomain/public_html/app/functions/fn.catalog.php on line 736" while reading response header from upstream, client: 24.xx.xx.xx, server: www.mydomain.com, request: "GET /test-page-313/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.mydomain.com", referrer: "http://www.mydomain.com/wholesale-towels/"
My 736 Line is as follows
In my php.ini I've already increase the memory_limit to = 1G
    for ($qty = $min_qty; $qty <= $max_qty; $qty += $product['qty_step']) {
        $qty_content[] = $qty;
    }
}

You must have large categories. Increase 'memory_limit' in config.local.php from 256M to 512M (or larger if needed)

Thanks . That seems to fix the error :

Fatal error : Allowed memory size of 268435456 bytes exhausted (tried to allocate 49042001 bytes) in /home/xxxxxx/public_html/app/lib/vendor/imagine/imagine/src/Gd/Image.php on line 705

I have same problem and increased memory_limit of my php.ini to 128mb but issue not resolved yet.

any idea appreciated.

The error shows you have about 256mb set but you need at least 2 times as much (512mb). If you increased it to 128 then the file you are editing is not the correct file. You may need to ask server admin.

1 Like