WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Fatal error: Call to undefined function wp() in ... (5 posts)

  1. Joseph Shaw
    Member
    Posted 2 years ago #

    I received the following error
    Fatal error: Call to undefined function wp() in /hermes/web06/b2573/hoc.mydomain/wp-blog-header.php on line 14

    (replace mydomain with your domainname).

    After researching this error, I started looking at my wp-config.php file and saw that it had been updated most recently.
    [Why I have NO idea!]

    I also noticed that in my case it had zero bytes. I remember looking at that file before, and I know it previously had data in it.

    I have a backup of that file from yesterday, but for some reason can NOT delete, edit, or rename the zero byte file. I'm on the phone with my hosting company and they can't seem to do anythign with the file either.

    I would say it's a permission problem, but I just verified I have read/write/execute permissions.

    I also tried making a temp folder and can't seem to do that.

    I know the ultimate solution is goign to be to restore this wp-config.php file, but there's got to be something screwy going on with the server.

    Any Suggestions?

  2. Digital Raindrops
    Member
    Posted 2 years ago #

    Did you add or update any plugins that write to wp-config.php, some cache and seo plugins write to this file.

    but for some reason can NOT delete, edit, or rename the zero byte file.

    If you are on a windows server and it is using WinCache then ask your host to check they have the latest version of WinCache, this was locking files on my website, it could not delete some folders and files when updating plugins so it would fail, leaving the empty folder/file locked for about 30 minites, the plugin could not re-write them and I could delete them.

    HTH

    David

  3. Joseph Shaw
    Member
    Posted 2 years ago #

    I do have a caching plugin and come to think of it I got the first error when trying to open the plugin to review the settings.

    I even said to the hosting company that it's like the files are all locked.

    I bet my caching program was trying to do something when they were doing their nightly backups or something and it locked the files. I also was able to rename one of my folders while troubleshooting.

    About an hour later I was able to update the problem file and everything was resolved.

    Joe
    http://familybusinesstips.com

  4. Digital Raindrops
    Member
    Posted 2 years ago #

    Hi Joe,
    That is exactly the issue I had with MS Windows server using WinCache, this was nothing to do with plugins but is server side application with the ISP setup and not ours.

    It happens with WinCache and auto updates as well, and locks you out for an hour at a time until you can ftp the files up.

    Check with your ISP to see if they are using Windows Server and WinCache, then point them to the other topic.

    HTH

    David

  5. Joseph Shaw
    Member
    Posted 2 years ago #

    That was exactly how I fixed it. I waited an hour and then I was able to delete the file and upload my backup file for the wp-config.php.

    Thanks David - I can't stand to see my site go down. Last time that happened it killed my rankings in Google for weeks.

Topic Closed

This topic has been closed to new replies.

About this Topic