WordPress.org

Ready to get started?Download WordPress

Forums

Fatal error: Call to undefined function wp_reset_vars() in /public_htm (6 posts)

  1. Niteblade
    Member
    Posted 5 years ago #

    Hello.

    I just upgrade from v2.5.1 -> 2.7 without problems. The database upgraded fine, and to prove this, if I enter my URL to /upgrade.php directly, I see the message "No Upgrade Required Your WordPress database is already up-to-date!"

    My homepage renders correctly; that is, the blog is working, and all my posts are present and are in-tact. Now, the problem I have is that I cannot access the /wp-admin/ menu. When I attempt to access /wp-admin/ I see the error message Fatal error: Call to undefined function wp_reset_vars() in /public_html/wp-admin/admin.php on line 39. However, I can access /wp-login.php directly ... but when I attempt to login through the wp-login.php file, I see the same error message.

    I have uploaded and re-uploaded the contents of /wp-admin and /wp-includes using ASCII mode (FLASHFXP) twice, and still the problem remains.

    I deleted all of my plugins, and the problem remains.

    error_log doesn't show anything (which is strange b/c I'm getting the above error message) ... I'm on a dedicated server.

    My .htaccess is fine

    <IfModule mod_rewrite.c>
    AddDefaultCharset UTF-8
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    Any recommendations? I don't see how my theme would effect admin.php.

  2. thomascim
    Member
    Posted 5 years ago #

    I was having the same problem after transferring to a different server.

    The 'wp_reset_vars' function is defined in 'wp-admin/includes/misc.php'

    In my particular situation this file was not transferred correctly and after correcting that by transferring it again everything went back to normal.

  3. CandisLynn
    Member
    Posted 5 years ago #

    I am having the exact same problem as Niteblade. I tried thomascim's advice but it did not resolve the issue. Does anyone have an update on this issue?

    Thanks,
    Candis

  4. unreal4u
    Member
    Posted 5 years ago #

    Try deactivating APC; I had the exact same error, once i de-activated APC (in php.ini :

    extension=apc.so
    apc.enabled=0

    )

    it worked smoothly :)

    Greetings ;)

    UPDATE:

    Credits

    In your APC conf:

    Update 2 (SOLUTION): This seems promising. In php.ini in the [apc] section I set apc.filters = wp-cache-config which should exclude wp-cache-config.php and wp-cache-config-sample.php from being cached by APC.

  5. william_eb
    Member
    Posted 4 years ago #

    hello! I have the same problem with Call to undefined function wp_reset_vars ()
    you managed to resolve?
    I can not open the administrative panel, there is some way for this?

  6. Phlux0r
    Member
    Posted 4 years ago #

    What worked for me on OS X Snow Leopard with PHP 5.3 and APC enabled was (in php.ini):
    [apc]
    apc.include_once_override=0

    HTH

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags