• Resolved Joseph Shaw

    (@jshaw5000)


    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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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

    Thread Starter Joseph Shaw

    (@jshaw5000)

    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
    https://familybusinesstips.com

    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

    Thread Starter Joseph Shaw

    (@jshaw5000)

    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.

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