Teething Troubles
I tried logging into my blog the other day and was greeted by this friendly error:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 7680 bytes) in /home/unleash/public_html/wp-includes/widgets.php on line 507
Great. I couldn’t access any PHP based pages on my website, so I couldn’t continue editing my theme. I started frantically googling the error, and found out that it was PHP trying to tell me it needed more than 8MB of memory to run. To fix it, you had to edit your php.ini to allow it more memory. That’s all fine, except I don’t know where the hell my php.ini is or if I even have access to it.
A quick search of my host’s forums told me that all I had to do was to add the following to my .htaccess file:
php_value memory_limit 32M
All fixed! Apparantly I shouldn’t have that problem again, because I’ve given PHP more than enough memory to be getting on with. yay.


Leave a Comment
Make yourself heard