• So I had 3.2.1 and decided to upgrade to 3.3, when I got this message:
    Fatal error: Call to undefined function wp_initial_constants() in /home/d468554/public_html/wp-settings.php on line 26

    And now my whole site’s broken, and I can’t even enter wp-admin to recover it from my Bei Fen backup. I tried to manually move the files back from the backup, with no result. I also recovered my database (just in case), and nothing seems to work.

    Is there anything I can do besides erasing the whole thing and starting from scratch?

Viewing 15 replies - 16 through 30 (of 32 total)
  • Thread Starter odiolitos

    (@odiolitos)

    Meh, no luck… Guess that would have been too easy! I’ll substitute them for the 3.3 files to go back to where we were before.

    Thread Starter odiolitos

    (@odiolitos)

    I also tried opening wp-settings.php on my browser, and got a different message:

    Warning: require(ABSPATHwp-includes/load.php) [function.require]: failed to open stream: No such file or directory in /home/d468554/public_html/wp-settings.php on line 21
    
    Fatal error: require() [function.require]: Failed opening required 'ABSPATHwp-includes/load.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/d468554/public_html/wp-settings.php on line 21

    Not being very savvy, I gathered the idea was to see if wp-includes/load.php was there. It is, but is empty when viewing it through FTP. I’ve also noticed many files showed a size of 0… Could this be the source of the problem?

    Thread Starter odiolitos

    (@odiolitos)

    After overwriting all the 0-size files in wp-includes, I get a different message when trying to login through wp-admin:
    Fatal error: Class ‘NOOP_Translations’ not found in /home/d468554/public_html/wp-includes/l10n.php on line 486

    Maybe I’m making some advances. Maybe I’m just messing the whole thing up that bit more. I’ll keep trying.

    Oh, and sorry if this seems like my diary: I just want to be able to retrace my steps later on.

    Thanks for reading!

    Thread Starter odiolitos

    (@odiolitos)

    Yay! I think I got it!

    Seems like some of the files had uploaded as 0 size (namely, those in wp-includes and wp-includes/pomo)

    What I get now is a message urging me to update my database, which makes total sense.

    And… I got my site back!!!!

    I’ll just check that everything’s ok.

    Yet again, thanks a million, esmi!!

    Thread Starter odiolitos

    (@odiolitos)

    Ok, now I’ve got a different problem which may or may not be wordpress- related: I’ve got my control panel and everything, but when going to the site (Odiolitos.com), nothing but a blank page comes up. Any ideas?

    yup can’t get in to my wp-login either… I’m really pleased with the new upgrade, how are you finding it?

    @odiolitos: Sorry for the slow response. Been busy today. Have you tried switching to the Twenty Eleven theme? Are all of the theme file sizes being reported correctly?

    Thread Starter odiolitos

    (@odiolitos)

    No prob, esmi… Your help’s always welcome!

    I switched to Twenty Eleven (which had a different size loop.php), but that still didn’t work. I reckon some other silly little file’s missing or not quite right in /wp-content… I’ll keep looking.

    Another strange thing I noticed, and this may be a clue to someone, is that the “view blog” button is missing in the dashboard.

    Again, thanks a lot!

    @sirps: My guess is a faulty wordpress download, just like me. Check all the files are the proper size with Filezilla (or any other FTP client), and maybe you can get things right… I really don’t think it’s WordPress, but some server/connection glitch while downloading the upgrade. Good luck!

    the “view blog” button is missing in the dashboard

    It’s been replaced by a “Visit Site” dropdown that appears if you hover over the site’s name in the top bar. Or just click on the site’s name.

    With all the file switching make sure index.php in the root is good.

    Thread Starter odiolitos

    (@odiolitos)

    @esmi: That’s another weird thing: the site’s name is missing, too (so I can’t see the dropdown)

    @kmessinger: Yup, that was something I thought, but it seems to be ok…

    Thanks!

    Thread Starter odiolitos

    (@odiolitos)

    Ok, I had obviously left some file or other out… I did an automatic reinstall from the “update” section, and the site’s visible again!

    The site’s name is still not in the dashboard, but at least the it’s up again. Yay!

    I’ll keep this open until I make sure everything’s running fine, and then I’ll mark it as solved, if that’s ok.

    Again, thanks a lot for pointing me in the right direction!!

    Thread Starter odiolitos

    (@odiolitos)

    Aaand… The “top bar” just came up unexpected, with the site’s name and a couple other tools, so I consider this thing solved.

    There’s still some quirks to get straight (posts appear twice, etc.), but that’s not the subject…

    Thanks a million for your help.

    Summary:

    If this has happened to you, try reuploading a fresh install of WordPress (excluding /wp-content), and pay special attention to 0-size files.

    Thanks for this odiolitos, I’ll give it a go!
    Though I think it’d be a bit easier if I even knew how to use filezilla…

    Tried it and it didn’t work…
    Is there any danger in trying to replace all the wp-content files?
    Cheers!

Viewing 15 replies - 16 through 30 (of 32 total)
  • The topic ‘Updating to 3.3 broke site, can't access wp_admin’ is closed to new replies.