WordPress Memory Allocation error while installing a plugin
Ever run into an error while installing a plugin and or attempting to activate it within your copy of wordpress. Your error may look something like
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 491520 bytes) in wp-content/plugins/nextgen-gallery/admin/manage-images.php on line 485
\r\nI recently recieved this error installing NextGEN Gallery on one of my other blogs, unfortunately it wasn’t the first time, nor do I believe it will be the last, as NextGEN is one of the only decent galleries for your blogware out there currently and has been for some time now. So what happens when you get this error huh? How do you fix it? The answer is rather simple in most cases.\r\n\r\nJust go into your web directory. Find the wp-config.php
file and open it up. Scroll down a bit and find a nice spot to add one line of code. That code being:\r\n\r\n
\r\n\r\nIf that doesn’t work there might always be the option of dropping a temp php.ini file on your server where you can give this ini file one line\r\n\r\n
memory_limit = 96M;
\r\n\r\nor you can try the .htaccess route similar notion to the php.ini but with an .htaccess file where you would add to that file\r\n\r\n
php_value memory_limit 96M
\r\n\r\nYou could also try just opening the index.php of your site and try adding this one line of php to it\r\n
\r\n\r\nAnd, last but not least if all else fails, consult the tech support of your hosting provider.
You must log in to post a comment.