• I just tried auto updating to the newest version of WordPress and now I am getting this error:

    Fatal error: Call to undefined function get_option() in /home/jjjunk/public_html/wp-admin/admin.php on line 22

    I looked to see if my functions.php file in the wp-includes directory was empty, and it was empty so I uploaded a new functions.php file. The new file does have the get_option() function defined, but it is still saying that it is undefined.

    Any help is greatly appreciated!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter jshbbe

    (@jshbbe)

    I think I figured it out just in-case anybody else has this problem. There were a lot of files that didn’t get uploaded properly, so I had to delete the wp-admin and wp-includes folder and re-upload them. I also had to re-upload a bunch of files in my root directory that had a size of 0.

    Now it seems to be working, but I need to re-enable all of my plugins.

    I am now experiencing this same problem.

    I updated to the latest version by

    – deleting the old wp-includes and wp-admin directories
    – copying latest files over (including updated includes and admin directories)

    now when I try to access the site I get:

    Fatal error: Call to undefined function get_option() in … /wp-admin/admin.php on line 22

    I have tried several times to re-install the latest files and I have checked the contents of the wp-includes directory and everything looks fine. I have no idea why I can not access the site – any help?! I’m desperate!

    My latest update: I have now tried to revert back to the previous version of WordPress and I am still receiving the error.

    I downloaded the prior version of wp from www.remarpro.com, unzipped the file and FTPd everything up to my site (keeping my wp-content directory and wp-config file in tact). I am STILL receiving this fatal error mentioned above. Now I really don’t understand for as best as I can tell, I am at the exact situation before trying to upgrade when everything was working fine.

    Does anyone have any ideas?!

    I got the solution for this. Actually my host using 3 different type of php 5.2, 5.3 and 6.0-dev

    So i have to select one in the .htaccess

    for the legacy version 5.2.x, add this

    AddType php52-script .php

    For the development version ( 6.0.0-dev)

    AddType php6-script .php

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