Support » Installing WordPress » Fatal error: Call to undefined function get_option() in /w

  • After running the automated upgrade to 3.4, I receive the message
    Fatal error: Call to undefined function get_option() in /…/wp-admin/admin.php on line 32

    I have renamed plugins/ to plugins2/, renamed themes/ to themes2/, created themes/ and placed twentyten in there.

    Still fails with same error.

    I have downloaded a copy of 3.4, and uploaded /wp-admin and /wp-includes.

    Still fails with the same error.

    Why is WordPress so flaky with upgrades?

Viewing 15 replies - 1 through 15 (of 18 total)
  • Try:
    – switching to the Twenty Eleven theme by renaming your current theme’s folder inside wp-content/themes and adding “-old” to the end of the folder name using FTP or whatever file management application your host provides.

    – resetting the plugins folder by FTP or phpMyAdmin.

    – re-uploading all files & folders – except the wp-content folder – from a fresh download of WordPress.

    – running the upgrade manually via wp-admin/upgrade.php

    I’ve done the first three already.

    When I try the last, I receive:

    “Fatal error: Call to undefined function timer_start() in /…/wp-admin/upgrade.php on line 20”

    I have several sites down caused by this upgrade error.

    I believe the original error may be caused by WordPress not detecting that the database upgrade has completed.

    Line 32 of /wp-admin/admin.php is:
    if ( get_option('db_upgraded') ) {

    I tried manually inserting this option set to true in the wp_options table in phpmyadmin, but the same error remains.

    Can I please receive some assistance, because this is impacting many sites installed in a WordPress network.

    esmi

    (@esmi)

    Forum Moderator

    Try re-uploading all files & folders – except the wp-content folder – from a fresh download of WordPress.

    As I stated in the first post, I have already done this.

    I’ve done this a second time and the issue remains.

    esmi

    (@esmi)

    Forum Moderator

    You appear to be still missing some files. Try again.

    Done for the third time.
    (downloaded another copy).

    Error remains.

    esmi

    (@esmi)

    Forum Moderator

    Are you deleting the wp-admin & wp-includes folders? Or just over-writing them?

    Deleting them.

    I found some files in the root directory which had a file size of 0 bytes.

    Re-uploading these files solved the error message in the first post.

    However, in the dashboard, I now receive the error:

    ERROR: The themes directory is either empty or doesn’t exist. Please check your installation.

    This error is not logical, as the themes directory is not empty, and does exist.

    esmi

    (@esmi)

    Forum Moderator

    What’s in it?

    13 themes, plus index.php

    esmi

    (@esmi)

    Forum Moderator

    Do you have a pre-upgrade database backup?

    Unfortunately not.

    esmi

    (@esmi)

    Forum Moderator

    Try renaming wp-content/themes to wp-content/themes-old. Then create a new folder called themes inside wp-content and move all of the individual theme folders across one-by-one – starting with twentyeleven.

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