• 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 - 1 through 15 (of 32 total)
  • Try:
    – switching to the Twenty Eleven theme by renaming your current theme’s folder in wp-content/themes and adding “-old” to the end of the folder name using FTP or whatever file management application your host provides.

    resetting the plugins folder by FTP or phpMyAdmin.

    – re-uploading all files & folders – except the wp-content folder – from a fresh download of WordPress.

    – re-running the upgrade via wp-admin/upgrade.php

    Thread Starter odiolitos

    (@odiolitos)

    Thanks esmi,

    However, this didn’t work, and I still get the same error message. ??

    Try re-uploading all files & folders – except the wp-content folder – from a fresh download of WordPress.

    Thread Starter odiolitos

    (@odiolitos)

    Hi esmi,

    Thanks for your patience on taking me through this process… I’ve done everything you told me, and the same problem appears.

    Could it be that I’m uploading the 3.3 files? I couldn’t find the 3.2.1 ones.

    No – you need to upload the 3.3 files. Make sure that you delete the wp-admin & wp-includes folder plus all of the files in the root WP folder (with the exception of your wp-config.php & .htaccess files) before uploading the fresh files.

    Once the upload is complete, run the upgrade manually via wp-admin/upgrade.php

    Thread Starter odiolitos

    (@odiolitos)

    First things first: you’re an angel. Thanks a million!

    I’m currently deleting those files through FTP, but I have a doubt: my root directory includes other, non-wordpress stuff (.cpanel, for example…), which I guess I’m better off not deleting.

    Would it be ok to delete only the files in the root that start with “wp-” (save for wp-config.php)?

    Thanks again, and I definitely owe you coffee!!

    Would it be ok to delete only the files in the root that start with “wp-” (save for wp-config.php)?

    Yes – that should be fine.

    Thread Starter odiolitos

    (@odiolitos)

    Oh bother… I still get the horrible:
    Fatal error: Call to undefined function wp_initial_constants() in /home/d468554/public_html/wp-settings.php on line 26

    And nothing else when I go to /wp-admin

    Oh, and thanks again.

    That function is defined in wp-includes/default-constants.php. Are you re-uploading from a fresh download of WP 3.3?

    Thread Starter odiolitos

    (@odiolitos)

    Yes… In fact, I did the whole thing again, just to make sure.

    Can you check that line 15 & 16 of wp-includes/default-constants.php is:

    function wp_initial_constants( ) {
    	global $blog_id;

    Thread Starter odiolitos

    (@odiolitos)

    Surely! It is… Is that good or bad?

    That’s good. What I can’t figure out is why that function is being reported as undefined in wp-settings.php.

    Thread Starter odiolitos

    (@odiolitos)

    So it seems things are really bad, I guess…

    Should I re-install wordpress and start from scratch? (which I’d have to find out how to do) What do you suggest?

    Oh, and thanks yet again. You’re really nice. ??

    Thread Starter odiolitos

    (@odiolitos)

    Ok, so I’m trying now by uploading the 3.2.1 files (save for wp-content) and keeping my fingers crossed

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