WordPress Update Out Of Memory Error Fixed

Have you had a problem in upgrading your WordPress version on a website hosted on 1and1? This problem has been reported on sites hosted on both 1and1.co.uk or 1and1.com, but may occur on sites hosted with other providers too. It occurs when you attempt an automatic upgrade on a working WordPress site to elevate to WordPress 3.0 or greater.

WordPress Update Error
The first thing you know about the problem is an error part way through the automatic update process, which looks something like this:

Fatal error: Out of memory (allocated 28835840) (tried to allocate 3981531 bytes) in [Blog root path]/wp-includes/class-http.php on line 1426

According to numerous postings on other sites, this appears to relate to PHP memory allocation on shared servers, although checking the memory_limit on one of our problem sites using phpinfo() gives a much higher value than the problem scripts appear to require.

The error messages are not always the same, but samples which have been seen include:

  • Fatal error: Out of memory (allocated 28835840) (tried to allocate 3981531 bytes) in [Blog root path]/wp-includes/class-http.php on line 1426
  • (similar message) in [Blog root path]/wp-admin/admin.php on line 40
  • (similar message) in [Blog root path]/wp-admin/includes/media.php on line 268

We host and support a large number of WordPress sites, most of which have upgraded without experiencing this problem. However, where it has occurred it is a challenge, as you should always update WordPress to the latest version to ensure that any security fixes are installed.

After trying a number of suggested cures unsuccessfully, including

  • Setting memory_limit = 48M in php.ini (No difference)
  • Editing the file with the error to add ini_set(’memory_limit’, ‘48M’); (No difference)
  • Adding define(‘WP_MEMORY_LIMIT’, ’64M’); to wp-settings.php. (Yep! No difference)
  • Adding a line php_value memory_limit 32M in .htaccess file (Which causes a fatal Internal Server Error)

WordPress Update Out Of Memory Error Solution
The fix for the WordPress Out Of Memory Error, on the problem site at least, was to disable all the installed plugins, and then carry out the automatic upgrade again. This time it ran like a dream, and the site was back in order once the plugins had been re-enabled, with WordPress 3.2.1 installed.

The only regret in finding the solution is that we did not disable the plugins one at a time, in order to see which one was the trigger. However, on a working site with a large following, that extra delay it did not seem appropriate.

Thanks for this blindingly simple solution to the Out Of Memory Error when upgrading WordPress go to David Orlo at DavidOrlo.com.
Click here to see how he found the fix

Important WordPress Security Update Announced

In a direct email from Matt Mullenweg via the WordPress.org announcement list, news has reached our ears about an important WordPress Security Update, WordPress version 3.0.4.

Apparently, they have fixed a critical vulnerability in WordPress’ core HTML sanitation library, and because this library is used lots of places it’s important that everyone update as soon as possible.

We have already been busy updating dozens of WordPress sites we support, mostly without incident. We recommend you back up your site before upgrading, but upgrade soon.

We would like to wish all our readers, supporters and colleagues a merry Christmas break and a Happy New Year. Blog On!

Quick Tip For Adding PayPal Buttons In WordPress

Setting up a WordPress blog for promoting a service or product of your own is a great way to get up and running on the Internet. You can be up and blogging in a few hours, and maintain the site for yourself. However, if you want to attract payment through your site, you may find that your PayPal Buttons do not work correctly in your posts or pages.

Here is a simple WordPress guide to add a PayPal payment button within posts on your blog. Follow these seven steps to add PayPal to your site and monetize your online presence.

Seven Quick steps to putting a PayPal Button on your WordPress Blog

  • Install WP Simple Adsense Insertion, which is a simple WordPress plugin to insert Google Adsense into posts, pages, sidebars.
  • Activate the plugin, which will add a new Simple Adsense Insertion menu option under the settings menu option.
  • Login to your PayPal account, then go to Merchant Services and then chose your option from the available list.
  • For the purpose of this exercise we will select Sell Single Items, and fill in the boxes for your service or product.
  • Highlight the code for your Button under the Website tab and press Cmd +C (Mac) or Ctrl + C (Windows) to copy the code for the button.
  • In WordPress click on Simple Adsense Insertion and then click into the top text field next to Adsense Ad Campaign 1 Code and Cmd +V (Mac) or Ctrl + V (Windows), and then click Update Options
  • Back in your new post or page, paste the code into the edit box where you want the button to appear, and click Publish to save your entry.

Use this simple guide to add a PayPal payment button within posts on your WordPress blog, and start to earn money!

The Network for the Post-Bureaucratic Age Featured Blog

The featured Blog this week is The Network for the Post-Bureaucratic Age, which is a WordPress Blog hosted at WordPress.com. It uses the Freshy theme by Jide and may be described as a comparative newcomer in the blogosphere, with its first post date-stamped on 28th June 2010.

The current headline post dated 8th September 2010 is a leader for a report entitled Better for Less: How to make Government IT deliver saving. This critical report by Liam Maxwell investigates the quagmire of government IT. In fact you might say that he has slammed the whole way that Government IT procurement is handled. The report is linked from the site, and should be read by anyone in government IT with responsibility for procurement.

The main reasons for singling out this site as a featured blog, is more about what it represents rather than it’s august history. This is a Think Tank, close to government which is criticizing the status quo. We consider that at least five of the seven examples of potential saving have merit, and the others may be examples where savings could be made without massive changes to the infrastructure

  • A test environment for development companies with easy access to rack-space
  • Open Source on the desktop through the use of Open Document Format
  • New models sought for software framework (may we suggest Apache, My SQL, PHP for a start)
  • Commoditization of Email and office productivity
  • Common Security Framework
  • Migrating Schools to Free email services
  • Prizes for IT innovation in education

Plaudits to The Network for the Post-Bureaucratic Age for hosting this message on WordPress.com and using the most popular blogging platform on the planet – WordPress!

Click here to visit The Network for the Post-Bureaucratic Age

Theme Update for TechCo Support Site

Those of you who visit TechCo Support regularly will notice that we have now updated our theme to Atahualpa 3.5.1. Atahualpa is a highly configurable WordPress theme which allows you to change hundreds of parameters and features to suit your needs

There are a huge number of configurable items, (268 according to BytesForAll, the theme creators) with five separate categories for changing the header area alone. The theme will support five columns, with one or two sidebars on either side, each of which can have a number of combination such as display on Pages, or Categories, or not. The sidebar combinations alone would fill a substantial article, so let it suffice to say that you can configure them to meet most requirements, no matter what they are.

Atahualpa features a distinctive rotating header image, which changes every time you load a page. This can be further rotated selecting from the WordPress dashboard, Appearance, then Atahualpa Theme Options, Header Images, Rotate header images with Javascript, and setting a value in seconds in the dropdown.

For this to work, you will need a selection of images of the correct header size: 1300 pixels width, by 160 pixels high by default. You can also select to have the images transition by fading out then in, in the same place.

To install the Atahualpa theme, there are two methods:
Automatic Install From the WordPress Dashboard

  • Click on Themes, Under Appearance
  • Select the Install Themes tab
  • Type Atahualpa in the textbox under Search for themes by keyword, author, or tag.
  • Ensure Term is selected in the Dropdown, and click Search
  • When the Atahualpa theme appears below, click Install
  • After the transparant overlay appears, click the Install Now button
  • You should then see messages including the following:
    • Unpacking the package…
    • Installing the theme…
    • Successfully installed the theme Atahualpa 3.4.9.
  • Activate the theme by clicking the Activate link next to Actions, and you are in business!

Manual Install
Alternatively, for those used to manually installing WordPress themes, you can download the package, unpack it and then upload it to the Themes directory on your site. You should end up with a directory called atahualpa351, or whatever is the version number. Atahualpa versions will happily coexist with earlier releases, so if there is something you do not like you can always revert to the earlier version.

This versatile theme from BytesForAll is available currently as version 3.5.3, which we are actively evaluating at the moment. The latest version of Atahualpa also includes support for the new WP 3+ menu system integrated with 2 Menu Locations (called Menu 1 and Menu 2). The original Page Menu Bar and Category Menu Bar will work if you don’t setup a menu with the new system. We will let you know as soon as we apply this update to our live sites

If you are interested in using Atahualpa on your own WordPress blog, then see

  • Bytes For All
  • Atahualpa Support Forum
  • Katie Freiling featured WordPress blog

    The featured WordPress blog this week is the personal, coaching and marketing site of Katie Freiling, a social media, blogging, and personal development coach in the online home business industry. This one takes the headline position because of its balance between the personal blog style, and the content and panache of a marketing guru. It uses the Fresh News theme by WooThemes from WooThemes

    The site is a must see for anybody who is considering setting up a blog for marketing purposes, including nonprofit organizations, associations or coalitions, or even just to promote a worthy cause. It contains tips on Video marketing, getting top rankings in search engines, list building and numerous desirable achievements. The included YouTube videos are textbook examples of the way to build your brand online, in small chunks.

    Among her plugins, Katie is using the WP-FacebookConnect, WP-Polls and the ubiquitous Contact Form 7. WP-FacebookConnect adds Facebook functionality to WordPress using the Facebook Connect APIs. It provides single sign-on, avatars, and News Feed publication of comments. WP-Polls adds an AJAX based poll system to your WordPress blog so that you can easily include a poll into a page or post.

    You can find the plugins to add to your own WordPress site by following the links below:

    Click here to visit Katie Freiling’s blog

    Changing Pages To Posts

    Sometimes in the life of a WordPress Blog there comes a moment when you realize that a static page you created (say for an upcoming event or campaign) has time expired, but still contains useful information. You might like your users to find the detail, in a search, but you do not want it clogging up your page structure, so it is time to make it a historic post. What you really need is an easy way to change a Page into a Post!

    You can create a new post, copy all the detail into it from your old page, and then delete the page, setting the Publish date to the original date. However, the easy way to change a WordPress Page into a Post is to use a widget!

    Changing Pages To Posts
    The widget we are currently using is called Post Type Switcher, by John James Jacoby. After installing this plugin and activating it, you will see a new option under Publish when editing a page or a post, Post Type. Clicking on the Edit link next to it will allow you to select Posts, Pages, or if you have any custom types defined Custom. Click OK, and the Page entry you are editing will turn into a Post. Simple!

    Featured WordPress blog is Twingly

    The featured WordPress blog this week is Twingly Blog, and more specificly a post by Martin Weiger called Europe’s 50 most popular startups according to the blogosphere.. Using data from their Twingly Blog Search they rank blogs in the global blogosphere from May 1 to July 31. This gives you a useful list of web and tech startups to check out for inspiration.

    The blog has posts going back to September 2006, and provides lots of interesting comment and links to resources. It also contains the observation that A blog is a timeline; The fact that every blog is an ordered record of thoughts and opinions makes the aggregated data of many blogs very valuable.

    This is a useful tip to remember when you are structuring your own WordPress posts, as you should consider that you are also writing for history, as well as promoting your latest product or venting your spleen. Surf back through the Twingly timeline and see how the writing style has progressed, and the rated Social Media sites and tools have emerged. Consider the way your own posts might be viewed in three months, or after a year, or in five year’s time.

    The Twingly Blog uses the Neutra Theme, by Artmov which is a simple and elegant free theme. The site is hosted at WordPress.com.

    Resources to check out:

    3 Top Tips For Marketing Via Your Blog

    In response to a number of inquiries about How to boost your Search position on Google, here are the three
    Top Tips For Marketing Via Your Blog which we cover on our Low Cost Marketing Using WordPress one day seminar.

    • Chose a Compelling Title
    • Keep It Simple and To The Point
    • Tell Your Readers What They Want To Know

    In order to boost your search engine rating on Google, Yahoo! and Bing, and make the most of your marketing effort, make sure that your blog posts take account of the advice they give about SEO. SEO is an acronym for “Search Engine Optimization”, and describes the techniques of improving the visibility of a web site or a web page in search engines via the natural or un-paid search results.

    In the context of marketing your business, using your WordPress Blog to tell people about your goods and services is a great idea, so you want the most people to see it. This is the way to make Blogging help your business for very little cost, and so get the word out to as many people as possible. A good Blogger grabs the attention of their readers, and holds it long enough to establish an emotional connection, so that they will want to return.

    Compelling Title
    First of all chose a Compelling Title to grab the reader’s interest and attract them to visit your site. This may be repeated in the content, which will help the search engine spiders correctly rank your site. On Google, the PageRank will determine how close to the top of the search results your site or page appears in the list returned to the user. Make sure your title is relevant to your content and brings visitors who want to know more about your subject.

    Keep Content Simple
    Once your visitor has arrived, you have only a few seconds to give them enough information so that they can chose that they want to read on. Keep your content simple and to the point to hold their attention, and if possible provide a bullet pointed list near the start to aid comprehension. This will allow them to confirm that they are on the right site for their needs without wasting time reading the detail. It is better to have someone decide that they do not want your content and leave quickly, than have them read to the bottom and leave disappointed.

    Give Them What They Want
    Finally, tell your readers what they want to know, rather than what you want them to know. That means you have to write to satisfy your readers’ need for information, rather than for your need to tell people about your new Widget making process! Tell them what they will find immediately useful, so that they will feel grateful and want to visit you another time. A happy reader is more likely to buy from you than a resentful one who has had to wade through all your marketing copy to find the nuggets.

    A word of caution about taking the optimization too far: some SEO experts will claim to get you to the top of Google using secret techniques known only to a few, for which you will pay a premium. As Google will tell you, deciding to hire an SEO is a big decision that can potentially improve your site and save time, but you can also risk damage to your site and reputation. Make sure to research the potential advantages as well as the damage that an irresponsible SEO can do to your site.

    So in summary

    • Chose a Compelling Title to grab the reader’s interest
    • Keep your content simple and to the point to hold their attention
    • Tell your readers what they want to know, so they will visit you another time

    To maximize the potential of your visitors, without spending a lot of money on marketing, apply the three tips listed above and you will satisfy your readers’ needs, help them to feel good enough to want to come again, while aiding the search engines put you it the correct place in the rankings. That has got to be a good deal,and a win for everybody.

    Other Resources:

    The Spending Challenge Featured Blog

    The featured WordPress blog this week is actually a UK government site called The Spending Challenge.

    It uses a Theme in a directory called Coalitiondocdg, which may be a custom solution, with Contact Form 7 plugin by Takayuki Miyoshi to capture your feedback. It also uses Recent Posts with Excerpts plugin by Stephanie Leary, which lists your most recent posts with excerpts, optionally limited to a category.

    According to the home page, The Spending Challenge is your chance to shape the way the UK government works, and help us get more for less as we try to bring down the deficit. It seems to be open initially to people who work in the public sector, but after 8th July the process will be opened up to the wider public. It is easy to make a suggestion via the site, and the email address is optional, so there is a level of anonymity.

    For what it is worth, my suggestion was to allow (or even ecourage) organisations to save money by using open source web applications like Apache, MySQL and WordPress on the national infrastructure to provide a low-cost generic platform for non-critical applications.

    To visit the site and see an example of WordPress in action in government click here to visit The Spending Challenge.

    If you are interested in adding either of the plugins to your WordPress site, see the links below:

    You can download the plugins from the links above, or alternatively, if you are in the Install Plugins section of your site Dashboard, search for Recent Posts with Excerpts or Contact Form 7, and the when you have found the right one, click on Install Now.

    If you are interested in those plugins, you may also be interested in the Contact Form 7 Widget by Stephanie Wells which allows you to use Contact Form 7 Forms in your sidebars.