Just a quick how-to note about upgrading to WordPress 3.0.2.
I was trying to upgrade a client’s WordPress install through the Admin area. I kept getting a weird memory error: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2356995 bytes) in …wp-includes/http.php on line 1331. Then I tried to upgrade through the hosting company’s “Install Central” but that didn’t work either. Contacted hosting company and they also couldn’t figure out the problem.
In the process of getting ready to manually upgrade it occurred to me that I should “Deactivate” all the active plugins for the site (after I made a back up of my database and my theme files – very important!). Worked like a charm!
Then as I tried to activate my plugins I got another fatal error: Fatal error: Call to a member function add_rewrite_tag() on a non-object in wp-includes/taxonomy.php. So I did an search and found a neat little “trick” on the forum at BytesForAll which suggested renaming the plugins directory to something else, i.e. pluginsx, creating a new plugins directory and then adding and activating plugins one at a time. Worked like a charm!
Until…I tried to activate the last plugin which for me was WP e-Commerce. Bamm! Same fatal error. And now the whole site was down – couldn’t delete or deactivate any of the plugins via the Admin area. Even removing the plugins directory via ftp (or through hosts’ File Manager) didn’t work.
So I said a prayer and reinstalled the upgrade making sure I had an empty plugins directory. Yes, you guessed it – worked like a charm!
Until…I tried WP e-Commerce again – same issue but this time I was able to delete it and the site didn’t break.
I was a bit stymied and tried a couple of things but ended up creating a clean install of WP e-Commerce. I had to then copy the themes that came with the new install into the uploads > wpsc > themes directory. I also transferred my custom theme images and theme from my local backup to the wpsc > themes directory and except for a few tweaks here and there, every is – well – working like a charm! Really!
Lessons:
- Backup, back up, back up!
- Back up your database.
- Back up your theme.
- Backup any customized plugin files.
- Backup images.
- Back up your CSS files
- Note what plugins you have active
- Before upgrade revert to a default WordPress theme
- Deactivate your plugins – if necessary delete them and reinstall upgraded versions. Make a note of any special codes you had to enter.
- Keep your themes separate.
- If you customize any plugin files rename them so they don’t get overwritten during an upgrade
- For WP e-Commerce, keep backups of all your images and custom themes. If you have the Gold cart, install it after you install the main WP e-Commerce (just as you normally would with fresh install)