Sunday, October 14, 2007

Some things to note when upgrading to WordPress 2.3

Was upgrading to WP 2.3, got the following error message during the course of upgrading.
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 46080 bytes) in XXXXXXXXXXXXXXXXXXXXX/xxx.php on line 68

The solution is provided by riteshTilve here.

To quote him:
In cache.php, add the following code at the top in line 2 just after "<?php" :

ini_set("memory_limit","12M");

If even then it fails, try increasing the 12M to 20M.
After the upgrade runs successfully, you may remove that line or keep as it as you wish.

After that was solved, I tried to post something, but realized that the visual rich editor was missing. That is an easier problem to solve. Just hit the F5 key to refresh, and it should appear :)

The tricky thing is, somehow WordPress decided to delete my last post on CPF changes. It's a really weird bug, so I had to somehow recover it. I could grab it from a backup of the database before I updated WordPress. But I decided to use Google to try and retrieve a cached copy as it's faster. Thankfully it can be found there. So I copied the post in it's entirety and made some quick edits. Now it's back online again.

No comments:

Post a Comment