• Hi.

    I’m trying to duplicate my production website offline so that I can test new content. I worked my way through fixing up the config file and can get it to load fine and I can log in and everything.

    This is all great until I try to load any of my custom pages using php, which returns:

    Fatal error: Call to undefined function get_currentuserinfo()

    I gave up and tried a clean install but I still get the error. I’ve been using this function to obtain the wp_users ID field forever without issue. I Googled and looked at other people’s issues. Haven’t found a solution. I looked up where the function comes from (pluggable.php) and that file appears fine. I used a clean copy. I used the copy from my production site. No luck.

    Help please! I have no idea what has gone wrong or what I’m doing wrong.

Viewing 2 replies - 1 through 2 (of 2 total)
  • In the offline environment that you mentioned, are you using the same file/directory structure as your production site? It could be that either some of your custom pages and/or some WordPress settings that you imported are referencing paths that are not the same in the new environment.

    Thread Starter AJ1820

    (@aj1820)

    I selected all and downloaded all files from the online install directory.

    What’s extra confusing is a fresh install completely unrelated results in the same warning. I started the site offline and had no problems the first week of offline programming.

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