cancel
Showing results for 
Search instead for 
Did you mean: 

Allowed memory size

Allowed memory size

Hi,

 

I have the next error on admin dashboard.

 

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2 bytes) in lib/Zend/Db/Statement/Pdo.php on line 290.

 

I tryed to change "php_value memory_limit 256M" to "php_value memory_limit 1024M" and i have the same error.

 

On index.php I added "ini_set('memory_limit', '-1');" and it works. Is there another possible solution?

 

 

2 REPLIES

Re: Allowed memory size

Can you confirm that your values changed after you made the update?

 

run phpinfo(); and it will tell you if you actually increased the memory

Magento Moderator since 2009
Keep Calm and Clear Cache!

Re: Allowed memory size

Yes values have changed.

On /code/core/Mage/Adminhtml/Block/Dashboard.php

i commented

$this->setChild('sales',
           $this->getLayout()->createBlock('adminhtml/dashboard_sales')
);

if the problem worsens i will seek a better solution.