Forums

[resolved] Fatal error: Call to undefined function set_screen_options() (4 posts)

  1. orbital2000
    Member
    Posted 2 months ago #

    I'm doing multiple installs and was messing with some files. While doing this, something went haywire and I can't access my Admin panel. I first discovered some white space after the closing php tag in my config file. This helped me bring up the Admin login screen, but now when I attempt to log in, I get the below error message:

    Fatal error: Call to undefined function set_screen_options() in /home/forthemo/public_html/wordpress/wp-admin/admin.php on line 45

    Line 45 says:

    set_screen_options();

    Not sure what to do here - any suggestions? Could this be a plugin problem? Should I disable all plugins and try to login again?

    I should also note that I have had this particular theme running for a long time. The problem started when I viewed the install.php file in a browser. I was having trouble with another blog, and wanted to see if it was working. I think this set off a chain of problems, and is the result of the above issue.

    Thanks!

  2. Otto42
    Moderator
    Posted 2 months ago #

    Don't mess with the core files. Put them all back to the standard set of files from a standard WordPress installation.

    The set_screen_options function is in wp-admin\includes\misc.php. So make sure that's there. Make sure *all* the WordPress files are there, and unchanged.

  3. orbital2000
    Member
    Posted 2 months ago #

    I didn't touch the misc.php or admin.php. All I did was view the install.php in a browser.

    Would you recommend grabbing a fresh copy of the misc.php and overwriting my current uploaded version?

  4. orbital2000
    Member
    Posted 2 months ago #

    Problem solved...

    I simply uploaded a fresh copy of my admin folder.

Reply

You must log in to post.

About this Topic