Support » Installing WordPress » Fatal error: Call to undefined function: stripslashes_deep()

  • I’m trying to install WordPress 2.0.2 and this is what I get when I try to run install.php

    Fatal error: Call to undefined function: stripslashes_deep() in /usr/www/virtual/XXXXXXXXXXX/www.XXXXXXXXXX.com/wp-settings.php on line 190

Viewing 8 replies - 1 through 8 (of 8 total)
  • Probably the quickest thing to try first would be to reupload the files to make sure nothing was corrupted. If using an FTP client, make sure it is in ASCII mode.

    I did that last night. It’s set to upload PHP files in ASCII mode, and I verified it was doing that correctly.

    Then double-check functions-formatting.php in the wp-includes/ directory. That’s where stripslashes_deep() is defined.

    I’m having the same problem. I did check the wp-includes directory for the stripslashes_deep definition, but i see only a “Result” there.

    for the wp-settings.php i seem to need a “do_action”. See code snipped below:

    if ( defined(‘WP_CACHE’) && function_exists(‘wp_cache_postload’) )
    wp_cache_postload();

    do_action(‘plugins_loaded’);

    // If already slashed, strip.
    if ( get_magic_quotes_gpc() ) {
    $_GET = stripslashes_deep($_GET );
    $_POST = stripslashes_deep($_POST );
    $_COOKIE = stripslashes_deep($_COOKIE);
    }

    Thanks for your help!

    I just upgraded WP, and got this same thing: Fatal error: Call to undefined function: stripslashes_deep() in …/wp-settings.php on line 189

    I use a mac, upload with Fetch. The wp-settings.php file has the exact same code as maggiecurran, above. Has anyone received any help for this problem???

    Thanks for any help!

    Okay I don’t see any reply to this problem. I’m tempted to create a new topic, will that generate a reply? I’ve tried twice now to upgrade WP, but when I go to finish the upgrade I get:

    Fatal error: Call to undefined function: stripslashes_deep() in …/wp-settings.php on line 189

    Line 189 is this, in the code given below:
    $_GET = stripslashes_deep($_GET );

    There is no stripslashes function in the “wp-settings.php” or in the “pluggable-functions.php” at all. Is this an oversight in the new version of WP?

    Please help! More code provided below. And thank you, I know you’re busy!

    require (ABSPATH . WPINC . ‘/pluggable-functions.php’);

    if ( defined(‘WP_CACHE’) && function_exists(‘wp_cache_postload’) )
    wp_cache_postload();

    do_action(‘plugins_loaded’);

    // If already slashed, strip.
    if ( get_magic_quotes_gpc() ) {
    $_GET = stripslashes_deep($_GET );
    $_POST = stripslashes_deep($_POST );
    $_COOKIE = stripslashes_deep($_COOKIE);
    }

    // Escape with wpdb.
    $_GET = add_magic_quotes($_GET );
    $_POST = add_magic_quotes($_POST );
    $_COOKIE = add_magic_quotes($_COOKIE);
    $_SERVER = add_magic_quotes($_SERVER);

    do_action(‘sanitize_comment_cookies’);

    It would generate a reply if anyone knew a solution…. I don’t know if a new thread would help. If this were me, I’d delete everything, including the database, reupload everything, start over from “vanilla square one”. But I don’t use a mac, so that might not help you.

    Things I’ve had happen similar (not with wp, with other php scripts though) have been because the ftp upload got corrupted.

    I hate having to repeat myself, but:

    Then double-check functions-formatting.php in the wp-includes/ directory. That’s where stripslashes_deep() is defined.

    And by “double-check” I mean try deleting that file (if it’s there) and uploading it again.

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