Current User: Guest Login Register
Please consider registering


Lost Your Password?

Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

Site Down due to PHP Fatal error : June 23 – 25 – Fixed

Reply to Post
UserPost

5:08 am
June 25, 2008


Roy Khoh

Canning Vale, Western Australia

Admin

posts 163

There was unscheduled site downtime due to some errors from June 23, 12:00 (AWST) through to around about nowish June 25, 16:00 (AWST).

The website produced a blank page due to a PHP Fatal Error

PHP Fatal error: Cannot unset string offsets in /wp-includes/widgets.php on line 315

Looking into the file reveals line 315 to be

unset($sidebars_widgets['array_version']);

I searched many places and couldn't really figure out how to fix this issue. I will go more in-depth once I know more.

9:30 am
July 10, 2008


Roy Khoh

Canning Vale, Western Australia

Admin

posts 163

I just realised I hadn't really posted any solutions to it yet, even though I have the system back up and running. I'll start off with what I did that DID work, and what I think it may be.

1. I made backup of old database, of course. Being not able to enter my own site to create the backup, I had to use the website hosting functions to do this. Even though the site was down due to the FATAL PHP ERROR, the database, was hopefully, still intact.

2. I deleted existing installation of WordPress 2.3.3 – EVERYTHING

3. I uploaded/installed new installation of WordPress 2.5.1 using existing MYSQL database accounts and settings. Did not work – same FATAL PHP ERROR.

4. There was a suggestion of removing “wp_” from the database table prefix in the config file. So I tried this. Then entering the website showed the “new installation” screen and setup. So I followed it and “installed” again. This got the site going back to original defaults with no data. Attempting to login proved difficult as it showed “insufficient privileges” even though it was administrator account.

5. I created a different MySQL database, fresh with no data. Set permissions for existing user to be able to manipulate and edit the database tables. Then all I changed for WordPress configuration was the database name. Same FATAL PHP ERROR.

6. I deleted the non-working installation of WordPress 2.5.1 and tried the same steps for another installation of 2.3.3 – same results.

7. I used website-hosting service “Fantastico” and installed WordPress. It asked me to delete/remove the existing installation (so I did). As it turned out, the version it installed was WordPress 2.5.0

8. I noticed a new MySQL database, so I migrated all my existing data from my backup database to the new one created by Fantastico. There was also a new database user created to be able to edit the tables. EVERYTHING WORKED AGAIN!!!

9. Spent the next few hours/days updating plugins and ensuring the 2.5.0 installation was working with my site. Functionalities were lost and some pages looked a bit funny. My Theme wasn't quite compatible and ready for plugins to be deactivated.

10. Once things were up and running smoothly – upgraded to WordPress 2.5.1 with no hassles.

9:42 am
July 10, 2008


Roy Khoh

Canning Vale, Western Australia

Admin

posts 163

Following step 4 and the insufficient privileges … there was mention on other sites about the database converting from UTF-8 to ANSI, which might be creating the issue. So I found a converter and tried it, no success.

Ultimately this is what I think people should do/try if they get this error.

  1. Make backup of the MySQL database that your WordPress installation is using.
  2. Create new MySQL database and migrate all the information/data from the old one to this new one.
  3. Create new MySQL user and assign this new user to have full rights to this new database.
  4. Alter the WordPress configuration to point to the new MySQL database, and change the user also.

Through my trials, this was ultimately the main difference between my old "PHP FATAL ERROR" and a working solution to it.

Since I got everything working again, and had spent a fair number of hours updating plugins and ensuring compatibility, I was not prepared to go back to 2.3.3 just to test out "my solution".

If anybody has this same error – please try this out also, I know you will because I too, found whatever and tried whatever. Then come back and post your results, let me know how it went. Thanks!

Reply to Post


Reply to Topic:
Site Down due to PHP Fatal error : June 23 – 25 – Fixed

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
4 + 1
   



Share this article
  • Google Bookmarks
  • Digg
  • del.icio.us
  • StumbleUpon
  • MySpace
  • Facebook
  • Twitter
  • PDF
  • Print
  • email
Kim Seng: Congratulations to Tim - a massive achievement 3 times over.  Well done and The Pilbara regi...
Kim Seng: ATA Peel region grading is on Thursday 8th December from 5:30 pm (for juniors); and from 7 pm (fo...
Kim Seng: ATA Hedland grading on 3rd December 2011 at JD Hardie Centre.  for details call Tim Turner 0...
Jason: very cool that is all...
Roy Khoh: I've just added Riley's and Quinn's videos back on. Have been trying all day to get t...
Kim Seng: The photos and videos are placed in the current ATA members only pages. You have recently signed in...
chrisbin:   This...