• Resolved slicknog

    (@slicknog)


    Hi everyone,

    I recently updated to the latest version of wordpress for my website here: http://thedogsart.com/ and as you can see, the update caused this fatal error:
    Fatal error: Call to undefined function wp() in /home/dogart/public_html/wp-blog-header.php on line 14

    When I go to http://thedogsart.com/wp-admin I see:
    Fatal error: Call to undefined function get_option() in /home/dogart/public_html/wp-admin/admin.php on line 32

    I updated WP versions within my site’s admin panel, NOT through the FTP. The site worked fine but the next day it was down with this fatal error. I’ve looked around and everyone seems to be finding different, unique solutions for their similar problem.
    http://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp-in-wp-blog-headerphp-on-line-18-19?replies=7
    This is from years ago so I don’t think it’s relevant anymore.

    Does anyone have a fix for this? Is it common? I did a completely standard update on a pretty basic wordpress website so I’m not sure why this is happening. I’m not too strong with code so if anyone can talk me through this in layman’s terms I’d greatly appreciate it.

    Thanks a lot!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Try:
    – switching to the Twenty Eleven theme by renaming your current theme’s folder inside 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.

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

    Thread Starter slicknog

    (@slicknog)

    Hi esmi,

    I tried each step except re-uploading all files except the content folder, which I’ll try next. Here’s what happened:

    -Renaming the themes folder in an attempt to switch to the Twenty Eleven theme did not work.

    -Restting the plugins folder did not work, as soon as I get to the third step “Login to your WordPress administration menus (/wp-admin)” I hit a wall because I can’t even get to the login page, every page under my domain shows me a fatal error.

    -Lastly, trying to upgrade manually via wp-admin/upgrade.php does not work because again, everything under my URL is giving me a fatal error, in this case when I go here: http://thedogsart.com/wp-admin/upgrade.php I get this:
    Fatal error: Call to undefined function timer_start() in /home/dogart/public_html/wp-admin/upgrade.php on line 20

    I’ll try reuploading the files and folders besides wp-content but not sure if it will help.

    Thanks.

    Thread Starter slicknog

    (@slicknog)

    UPDATE: Re-uploading all files EXCEPT the wp-content folder worked!

    Thanks esmi.

    Thread Starter slicknog

    (@slicknog)

    Resolved

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