How To Handle WordPress “Out Of Allocated Memory” Error


How To Handle WordPress “Out Of Allocated Memory” Error

WordPress is such a great platform for blogging and a lot of other stuff. But there are times when you will be driven mad because of some errors that you need to handle. As you already know WordPress installation is done on a PHP server. This also means there will be a wide array of settings.

Among others there is the setting that determines how much memory from the computer should be transferred when making a web page. There are numerous web hosts that don’t consider this function a priority and they are somehow wrong. This happens because there are numerous operations involving WordPress that require a lot of memory. And to make the problem worse when using numerous plugins and widgets, the amount of memory used is increased with every additional thing you use.

Let’s start with an overview of WordPress. This is a platform which is very popular for sustaining blogs and websites. It runs on the Hypertext Preprocessor (PHP) programming language which is very common these days. But as any programming language there are numerous “fatal errors” involving it. From all of those today we will discuss about the one involving allocated memory. This is one of those errors that when it happens it stops WordPress from functioning and requires for the webmasters to diagnose and fix the problem as soon as possible.

Focusing a little on images and memory we admit that the WordPress image uploader is a powerful tool that enables adding images to your blog. Also other functions like resizing and creating thumbnails are available through it. But to access these functions you 1st need the original image uploaded on the computer. Doing this requires a lot of memory in addition to that already used by other WordPress functions. And if for example your image is in size larger than the space available to WordPress, the upload process will fail because of the lack of space. The solution is to use another tool in order to reduce the image size before starting the uploading process.

All of your widgets and plugins used with WordPress use an extra code that is run every time somebody accesses your pages. But of course, running that code also requires more memory. In general most of the widgets or plugins available don’t consume that much. But there are some like Twitter ones that involve using some download of data. Also other widgets generate images on-the-fly, a process that may need a fair amount of memory to function. Adding all this to small operations performed on one page can create that memory overload we are talking about. So if you or your visitors receive the “out of allocated memory” error this is the time where trimming of pages is required.

You have to take in consideration that WordPress is a platform with a great functionality for webmasters. If by any change you encounter the “out of allocated memory” error just contact your web host and ask for more allocated memory. In general I recommend for most users a setting of 64 megabytes (MB). On the other hand if the problem is the number of plugins and widgets I recommend using a caching plugin, which can remove the need for most other plugins to run every time a visitor loads your site. Check for the caching plugins in the WordPress Optimization/Caching Page. The list here is sufficient and has all that you might need.

Tags: wordpress, memory, there, plugins, widgets, allocated, numerous, also, image, problem, most, error, process, time, functions, out, images, involving, platform, available, requires, every, used, memory, using, page, because, some, function, about