Fatal error - allowed memory size exhausted (13 posts)

Just now I tried to activate the Jetpack plugin and authorised WordPress.com to link to my site. As a result I received the followed error message and now can't access the admin area of my site - keep getting this same error message.

OK - I just paid some money to an online tech support person and he gave me the simple and helpful advice to call my hosting provider and ask them to increase my php memory limit. They did this straight away and I'm back in business.

Maybe this note will help someone like me down the track who is not so tech savvy.

That's a very common problem with inexpensive hosts; sorry you spent money, but if you searched the forums you would have found the answer.

Which is:

Using FTP you can try increasing the memory for PHP and WordPress several different ways:

1) You can edit the memory_limit line in your php.ini (if you have access to that file) to 64M:

memory_limit = 64M;

2) If you can't get to the php.ini file, add this line at the top of your .htaccess file:

php_value memory_limit 64M

3) If that doesn't work or throws a "500 Internal Server Error", delete the line from .htaccess.

Then try adding the line below near the top of your wp-config.php file, right after the opening <?php

define('WP_MEMORY_LIMIT', '64M');

If none of those work, your host probably doesn't allow memory allocation overrides. You're stuck with what they give.

You can run phpinfo to see what kind of memory allocation you already have. Make a plain text file and call it phpinfo.php and put just this line in it:

<?php phpinfo(); ?>

then put the file in the root of your server, and then go to that file with your web browser. You'l see all the php info you need; scroll down for memory settings. If you get an error, that means your web hosting company won't allow phpinfo to run for security reasons.

Thanks for this info. I did search the forums and read a lot of technical info that I didn't understand, so was grateful for a simple, human way to solve the problem. I'm not a programmer or designer.

Although, it's just clicked with me I can go into the File Manager at Crazy Domains and find the code and make the changes you suggest. I have learnt something, thank-you, I will save this info for future reference.

You could always try contacting your web host and see if they can increase the php memory limit. Some will and some will not. Working with the host I use, I have been able to get the memory limit increased.

Edit: Next time I will read all posts before posting. Glad that your web host increased the limit for you.

As for exhausting the memory, yes it is easy to do so with certain plugins. Some are quite memory intensive. The memory usage is the total amount of RAM needed to render the entire page for the end user. This includes all the plugins you might have installed and activated on your site.

I am having the same problem with the Jetpack update. I tried calling my host to get my php memory increased and their only answer was to sell me time with a specialist. I'm happy to take a chance and make the edits myself, if I only knew how to access the php.ini file... or deactivate the plugins! any help for a non-programmer like me would be appreciated... i just don't even know where to begin.