WordPress.org

Ready to get started?Download WordPress

Forums

Installation Error:Fatal error: Call to undefined function: wp_specialchars() in (7 posts)

  1. boomertrading
    Member
    Posted 7 years ago #

    Fatal error: Call to undefined function: wp_specialchars() in wallstreetkam.com/wp-includes/wp-db.php on line 96

    Can you guys tell me what is going on? I've installed this in the past and it went through fine. By the way, I haven't touched that file, only the config file as instructed to do so.

    Thanks.

  2. 24heures
    Member
    Posted 7 years ago #

    I was about to report the same error. This happens when I run the install.php file. First I had WP installed in the root directory on my Web server. Then I tried it in a subdirectory. Same error each time. My SQL settings should be good to go. No clue what the issue could be.

  3. zanzaban
    Member
    Posted 7 years ago #

    Same issue here with a fresh install of 2.0.4 in a fresh new site.

    I tried both the zip and the tar.gz. If I dont have a wp-config.php it runs the config file maker fine, but then hangs on install.php

  4. shane1828
    Member
    Posted 7 years ago #

    same issue here... was going to post it as well.

    fresh install 2.0.4 on fresh database

    all files are there and chmodded

  5. arnee
    Member
    Posted 7 years ago #

    Open
    wp-includes/wp-db.php
    and change line 96+97 from
    $str = wp_specialchars($str, 1);
    $query = wp_specialchars($this->last_query, 1);

    to
    $str = htmlspecialchars($str, ENT_QUOTES);
    $query = htmlspecialchars($this->last_query, ENT_QUOTES);

  6. Ryan Boren
    WordPress Dev
    Posted 7 years ago #

    We had a bad 2.0.4 package up for a few minutes. You were unlucky enough to grab the bad one. You can download the package again or grab a corrected wp-db.php.

  7. boomertrading
    Member
    Posted 7 years ago #

    Wow, great. It's working now. I felt like an idiot for an hour.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.