Need for greater PHP memory allocation

altommo

New member
Thank you for your help mate I really appreciate, the problem is in order for my site to function correctly I need greater PHP memory allocation so a paid plan is probably the best option.

Split off Error 503 thread
 

Genesis

Administrator
Staff member
If you say greater PHP memory allocation, exactly what do you mean, and by how much? Maybe if you could provide an exact example of a PHP memory issue, then it could be addressed directly by our Technical Admin.

For example, I came across this discussion of a couple of years ago. Is this also a WordPress issue with you? And exactly how has it manifested itself? Can you provide us with an example?
http://www.wpbeginner.com/wp-tutorials/fix-wordpress-memory-exhausted-error-increase-php-memory/
 

altommo

New member
The specific problem is with Magento, if I change to a more complex theme with more features it requires more resources but because the limit is 128MB the site fails to load and I get an error log. In the error log it says:

PHP Fatal error: Out of memory (allocated 27525120) (tried to allocate 289640 bytes) in /home/xxxxxx/public_html/lib/Zend/Xml/Security.php on line 144
[07-Dec-2014 16:30:43 UTC] PHP Fatal error: Out of memory (allocated 18874368) (tried to allocate 1920 bytes) in /home/xxxxxx/public_html/dutchbarnheadshop.co.uk/app/code/core/Mage/Eav/Model/Entity/Attribute/Abstract.php on line 386
[07-Dec-2014 16:30:43 UTC] PHP Fatal error: Out of memory (allocated 5242880) (tried to allocate 3072 bytes) in /home/xxxxxx/public_html/dutchbarnheadshop.co.uk/lib/Zend/Controller/Request/Http.php on line 927
[07-Dec-2014 16:30:43 UTC] PHP Fatal error: Out of memory (allocated 3407872) (tried to allocate 12288 bytes) in /home/xxxxxx/public_html/dutchbarnheadshop.co.uk/lib/Zend/Db/Adapter/Abstract.php on line 206
[07-Dec-2014 16:30:43 UTC] PHP Fatal error: Out of memory (allocated 3145728) (tried to allocate 49152 bytes) in /home/xxxxxx/public_html/dutchbarnheadshop.co.uk/lib/Varien/Db/Adapter/Pdo/Mysql.php on line 2417
[07-Dec-2014 16:30:44 UTC] PHP Fatal error: Out of memory (allocated 11272192) (tried to allocate 2048 bytes) in /home/xxxxxx/public_html/dutchbarnheadshop.co.uk/app/code/core/Mage/Page/Block/Html/Breadcrumbs.php on line 104
[07-Dec-2014 17:02:48 UTC] PHP Fatal error: Out of memory (allocated 7340032) (tried to allocate 1920 bytes) in /home/xxxxxx/public_html/dutchbarnheadshop.co.uk/app/code/core/Mage/Core/Controller/Varien/Action.php on line 345
[07-Dec-2014 17:02:48 UTC] PHP Fatal error: Out of memory (allocated 8650752) (tried to allocate 248 bytes) in /home/xxxxxx/public_html/dutchbarnheadshop.co.uk/app/code/core/Mage/Log/Model/Visitor.php on line 315
[07-Dec-2014 17:02:49 UTC] PHP Fatal error: Out of memory (allocated 15990784) (tried to allocate 3072 bytes) in /home/xxxxxxpublic_html/dutchbarnheadshop.co.uk/app/code/core/Mage/Catalog/Model/Category.php on line 796
[07-Dec-2014 18:12:12 UTC] PHP Fatal error: Out of memory (allocated 30670848) (tried to allocate 304110 bytes) in /home/xxxxxx/public_html/dutchbarnheadshop.co.uk/lib/Zend/Xml/Security.php on line 144

The solution would be to do this
http://techpp.com/2009/07/10/how-to-fix-php-fatal-error-out-of-memory/

and edit the php.ini to increase the memory limit but the default settings would override my change as it is set to128MB by default, in terms of exactly how much of an increase I would need I am not completely sure maybe an increase to 256MB would be enough.