Support » Fixing WordPress » Fatal error: Call to undefined function wp_unslash()

  • Hi

    I try to update my WordPress from 3.5.2 to 3.6 last weekend but it fail the updated. I have been getting the following error since then I do not know what to do to fix this issue can you?
    Fatal error: Call to undefined function wp_unslash() in /home/content/22/9442522/html/wp-admin/admin.php on line 85
    dvdvideosoft_test_button

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator t-p

    (@t-p)

    Have you attempted ALL the troubleshooting steps recommended here: http://wordpress.org/support/topic/troubleshooting-wordpress-36-master-list?replies=5

    Got the exact same problem, checked out the link tara posted but still couldn’t find a solution. Anyone out there with some help?

    Have you tried to Upadate your WordPress Version? if not please update to latest version.

    The problem occured after an update to 3.6 (after the most recent version). Most of the pages i try to reach in my backend give this message. I think there went something wrong with the update process.

    I updated a lot of wp installs but this is the only one giving problems…

    Yes, I already faced the same problem just a few hrs ago, alternatively you can revert back to WordPress 2.5.2, just overwrite all the files in your server.

    I fixed the problem by updating manually all the files and maps from a clean wp 3.6 download, overwriting the existing ones (except for wp-content!).

    Hope this will help others.

    copy that function from http://core.trac.wordpress.org/browser/tags/3.6.1/wp-includes/formatting.php#L0 and paste on /wp-incluces/formatting.php

    I am having a number of related problems.

    I disabled my plugins so I could figure out what is happening to my site– arbordogdaycare.com.

    With most of the plugin enabled, I get this message
    Fatal error: Call to undefined function wp_register_plugin_realpath() in /home/content/a/r/b/arbordogcare/html/wp-settings.php on line 213

    However- when they get disabled, I can see the site
    BUT, when I then try to get into admin I get

    Fatal error: Call to undefined function wp_unslash() in /home/content/a/r/b/arbordogcare/html/wp-admin/admin.php on line 46

    The line(s) in question are
    43> do_action( ‘after_db_upgrade’ );
    44> } elseif ( get_option(‘db_version’) != $wp_db_version && empty($_POST) ) {
    45> if ( !is_multisite() ) {
    46> wp_redirect( admin_url( ‘upgrade.php?_wp_http_referer=’ . urlencode( wp_unslash( $_SERVER[‘REQUEST_URI’] ) ) ) );
    exit;

    I’m afraid to touch much else.
    It looks like I have version 3.9.1
    The theme for the site, which also seems to be causing some problems is twenty-eleven.

    There are other errors I am getting, the code/theme not recognizing the two “sidebars”, but I’d really like to get the admin and plugins fixed first and then get back to tackling the rest. HELP!

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