Get Out of the PHP Memory Error Rut with WordPress



error

We’ve all been there: You drag yourself out of bed in the morning, crawl to your computer, and boot up the oh-so-familiar blog space. But instead of finding your lovingly crafted website, complete with self-made logos and beautiful banners, all you find is this error:

Fatal error: Allowed memory size of ######## bytes exhausted (tried to allocate ## bytes) in /home/user/public_html/wp-includes/phpfile.php on line 80.

Before you start swearing at your monitor or worse—we’re thinking that stapler looks appropriately weighted for some hefty hucking—know that this issue is easily fixed, and doesn’t have to be the day-wrecker you feel it might be.

It’s worth noting that your exact error message may vary, but as long as it says something about your memory being more worn out than an obese man at a 10k, you’re golden: The issue has to do with available computing space, and you’re still reading the right tutorial.

The likely issue is that you’ve just installed a new plug-in or extension, and now WordPress is acting like an estranged lover. There are a couple of ways to correct the issue. The easiest is to disable any recently installed extensions and see if that corrects the problem. However, this is certainly less than desirable, as you likely want that new piece of code. With that in mind, you might try to expand the available memory space for your site. This can be accomplished in the following way:

Essentially, you’ll need to change the amount of memory available for PHP. This can be done in a number of ways, and it might be that there’s only one that works for your server. Always query your web host first—or if you’re feeling gung-ho, locate your php.ini file and do this to it!

Locate the following line:

memory_limit = 32M ; Maximum amount of memory a script may consume

Change “32M” to “64M,” and then cross your fingers. Some hosts limit the amount of memory you can delegate yourself to PHP, so if this doesn’t correct the issue, therein may lie your problem. If you can’t acquire access to php.ini, you might try adding the same line to the .htcaccess file in your WordPress main installation folder.

If none of those are possible, then you’re in a sticky boat, Pilgrim: Call up the tech-support you’re paying for and get them to do one of the things we just discussed.

Tags: , , , , ,

Linux Web Hosting – What Makes it Click?

linux-web-hosting

Linux Web Hosting is appropriately named.  Websites built using the Linux operating systems are said to be hosed on Linux, as simple as that! Some features of Linux web hosting make it a great choice for people looking to develop web sited to establish...

Sep 14th, 2011 Read more

An Overview of PHP-Based Content Management Systems Beyond WordPress

php cms

WordPress is far and away the most popular content management system (CMS) on the web.  It’s for good reason, but like anyone holding the claim of first place, it still has its critics.  If you are working with PHP and want a good content management...

Sep 7th, 2011 Read more

4 Crucial Aspects to Consider When Choosing a Web Hosting Plan

web hosting

With new web hosting businesses being born every day, and the web hosting industry (one of most competitive industries in the world) expanding at a rapid rate, it is becoming increasingly difficult to sift through the mountains of advertising material...

Jan 25th, 2011 Read more

Web Hosting for Small Companies

web hosting

A small business needs will be very different from those of larger businesses. They may need less space than that of a larger business and may also not need some of the features that web hosting companies sometimes offer to businesses. By looking at the...

Jan 16th, 2011 Read more

Linux Hosting – From Corporation to Consumer

web hosting

Every web site on the internet is hosted on a web server that is managed through the use of an operating system, similar to how you control your computer through the operating system. This aspect of web hosting is quite often overlooked, and a lot of...

Dec 10th, 2010 Read more

The cPanel Software/Services Area

web hosting

The cPanel Software/Services area of the software is one that allows the user to install Perl and PHP packages, view the PHP information and plenty more. The section tends to focus more on the programming aspect of your website in conjunction with the...

Oct 7th, 2010 Read more

Introducing MODx CMS – The Ultimate in Flexibility and Compatibility

web hosting

MODx is becoming incredibly popular as more webmasters are learning of its extensive capabilities as a robust content management system. In fact, to call it a “content” management system would be an understatement, seeing as it is more of a complete...

Sep 23rd, 2010 Read more

How to Protect an Apache Web Server from DDoS

web hosting

Apache or Apache HTTP Web Server is one of the most popular servers due to robust software, strong security, exceptional performance and its economical value. Also it supports several popular programming languages including Python, Perl, MySQL and PHP....

Jun 2nd, 2010 Read more

PHP and Common Web Hosting Security Issues

web hosting

The most common security lapses online are usually the result of a faulty or lazy programmer that has left some sort of loophole somewhere. Most of the time, these web designers and developers have very little time to finish a project, placing security...

Feb 26th, 2010 Read more

An Introduction to Linux Web Hosting – Linux Vs. Windows Web Hosting

web hosting

Searching for web hosting companies will return a variety of results, displaying the various types of web hosting plans available. You may have done this before and encountered a few Linux web hosting plans. I am sure most of your are familiar with the...

Feb 25th, 2010 Read more

Page 1 of 3123

Stay in Touch with the Geeks

Our Community

Facebook
2273 Fans
Twitter
1420 Followers
FeedBurner
64 Subscribers

Submit News

Do you have an exciting story and want the world to hear it?

Submit a Story

  • 15K monthly visitors
  • PageRank 6
  • Alexa 11,000