Magento – Fatal error: Allowed memory size of bytes exhausted (tried to allocate bytes) in / lib / Zend / Db /. php on line

Customers have told us about the o.g. Error, the various constellations can occur in the. Of course, it varies the displayed memory size, The bytes and the PHP file. But basically there is a possibility, how to solve this problem:

The system is about. Htaccess a certain “Main memory” assigned. Is this too small for the application, This error can occur. Therefore would be a first step for the solution, the shared memory on o.g. .htaccess to increase. By default 128MB used.

It would make sense to check, how much memory the server will be made available, because it is obviously suboptimal, assign the. htaccess 1024, if the server only provides 256MB. So in the best case, the lack of space written to disk, which does not lead to just speed records. In the worst case… nunja 😉

After the. Htaccess file, which is open in the root directory of Magento was, as. the line 34 go. Here it is:

# php_value memory_limit 64M
php_value memory_limit 128M

The second line then 256 or 512 replace.

# php_value memory_limit 64M
php_value memory_limit 256M

Save, Upload, Clear cache and then it should work again.

Some error messages, it also helps, precise details of the relevant file and line to go and look, whether at this point might indicate an additional element of shared memory, which can be increased.

[poll id=”3″]

Used in Magento versions 1.4.1.1 and 1.5.1.0 Comments? Additions? Notes? Gladly!

Published by Covos

Since 2009 I have been working intensively with Magento. I started with the creation and operation of B2C stores. This was extended through my work in the logistics sector. This resulted first specialized B2E systems. Today I work day-a day with exciting B2C, B2B- and B2E projects and reports in this blog about challenges and give insider tips.

2 comments on “Magento – Fatal error: Allowed memory size of bytes exhausted (tried to allocate bytes) in / lib / Zend / Db /. php on line”

    1. Hallo,
      I have looked at the page just once. I think there never be able to login. The Customer is not visible. Can it be, that it has been disabled? All in all, it looks a little strange from. As though in the URL Magento Magento is but how it looks then not again.

Leave a Reply

Your email address will not be published. Required fields are marked *