• Resolved anthonys421

    (@anthonys421)


    This has been the most UN FUN April Fools day!

    After having complete issues with my site, lastly doing an manual upgrade, site still didn’t work.

    Restored to last version (3.3.1) and had me going through the install process. When it attempted to install, I received the following error:

    Fatal error: Call to undefined function nocache_headers() in /home/content/k/e/v/kevin11/html/wp-admin/admin.php on line 33

    and when I try to access the site:

    Fatal error: Call to undefined function wp() in /home/content/k/e/v/kevin11/html/wp-blog-header.php on line 14

    I have no idea how to fix this. Here is what that particular admin.php looks like:

    nocache_headers();
    
    if ( get_option('db_upgraded') ) {
    	flush_rewrite_rules();
    	update_option( 'db_upgraded',  false );
    
    	/**
    	 * Fires on the next page load after a successful DB upgrade.
    	 *
    	 * @since 2.8.0
    	 */
    	do_action( 'after_db_upgrade' );
    } elseif ( get_option('db_version') != $wp_db_version && empty($_POST) ) {
    	if ( !is_multisite() ) {
    		wp_redirect( admin_url( 'upgrade.php?_wp_http_referer=' . urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ) ) );
    		exit;

    Please help!

    https://www.identityhome.com

Viewing 11 replies - 1 through 11 (of 11 total)
  • Moderator t-p

    (@t-p)

    – “Fatal error: Call to undefined function” error after doing an update, then you’re dealing with an incomplete update.

    – So try MANUAL updating again. Download a fresh copy of the WordPress .zip file to your computer, unzip it, and use that to copy up all files and folders EXCEPT the wp-config.php file and the /wp-content/ directory. You may need to delete the old copies of files & folder on your server before uploading the new ones. Read the Manual Update directions first.
    If you haven’t already done, always backup everything (including your database) before doing any actions, just in case something really goes wrong.

    Thread Starter anthonys421

    (@anthonys421)

    Thank you Tara. I’m working on it right now to see if it resolves the problem!

    Thread Starter anthonys421

    (@anthonys421)

    I did that but unfortunately now receiving a 404 page not found error when trying to access the admin page

    Moderator t-p

    (@t-p)

    receiving a 404 page not found error when trying to access the admin page

    Does the front end work?

    Thread Starter anthonys421

    (@anthonys421)

    The front end works except it’s now old information from like two years ago? I still need to get into the dashboard and can’t figure it out?

    Moderator t-p

    (@t-p)

    Thread Starter anthonys421

    (@anthonys421)

    Still receiving a 404 error page
    ??

    Moderator t-p

    (@t-p)

    Restored to last version (3.3.1)

    -restoring to previous version is really not a good idea. Who knows what that action might have done to the database>

    Try:
    – check the URL in the the database and make sure they are correct. If they are not then change them accordingly. Follow these instructions:
    https://codex.www.ads-software.com/Changing_The_Site_URL#Changing_the_URL_directly_in_the_database

    Thread Starter anthonys421

    (@anthonys421)

    Aye. I updated all according to the article and still receiving 404 message for wp-admin and wp-login pages

    Moderator t-p

    (@t-p)

    I am out of ideas. sorry.

    Thread Starter anthonys421

    (@anthonys421)

    Thanks for trying though Tara, I appreciate it!

    There wasn’t that much on there….that I can’t replicate and there doesn’t seem to be anything that is helping me move forward with the troubleshooting so I am starting from scratch.

    Why waste any more time when I could be spending it getting myself up and running again?

    Thanks again for trying!!!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Fatal error: Call to undefined function nocache_headers’ is closed to new replies.