• I just upgraded tonight to version 2.5 of wordpress and when I came to try and upgrade, i got this error:

    Fatal error: Call to undefined function: require_wp_db() in /homepages/12/d87389744/htdocs/wp-settings.php on line 204

    i have no clue what this means but I followed the installation procedures and now i’m not sure what to do. kinda bummin on this one.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter achiral

    (@achiral)

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    You failed to upload all the WordPress files. Make double sure that you uploaded everything.

    I just had the same problem and it turned out there were changes in wp-config-sample.php that I hadn’t checked. After copying over the new content to my existing wp-config.php file I got past this error.

    well, it seems I’m in the same hole, getting the error
    Fatal error: Call to undefined function: require_wp_db()
    Based on the above comments, I deleted and reloaded all of the wp-admin and wp-includes folders/files and also the top level files.
    I edited the wp-config file to add the “secret_key” entry that’s now in the sample.
    No old stuff hanging around expect the plugins and themes and stuff in wp-content (yes, I did copy in the files out of the zip).

    Any other clues as to what might be causing the problem? I was upgrading from the previous version which worked fine until this install a couple of hours ago.

    I am getting this same problem:
    https://www.umakemoneyfromhome.com/wow/

    How did you resolve it?

    Brian

    This is my first time doing this and I am getting this same error. Thank goodness I did back up was able to go back to my old version.

    If anyone find the solution to this problem please post I would love to know what I did wrong.

    I had this problem, i run wordpress on a local linux server. I made the mistake of just copying all the wp files to wp-include. What I had to do was completely remove the wp-include directory, and then move the new one there. cp wp*.php wp-include doesn’t work. This fixed my problem.

    Count me as a third for experiencing the same problem:

    Fatal error: Call to undefined function require_wp_db() in …public_html/wp-settings.php on line 204

    I did just like Pete did, and added the “secret key” to my wp-config, and have re-uploaded the wp-includes and the wp-admin folder multiple times.

    Any thoughts?

    Hello all,

    I had the same problem, but it turned out that I made the silly mistake of copying my wp-includes from my backup, instead of the latest wordpress version!

    I didn’t overwrite the wp-includes that was already there, but deleted what was on the site, then re-uploaded (like crazyrobot said).

    Also, the secret key is not the only missing line in the wp-config file. There are also 2 define statements after the database definitions that may maybe needed to overcome this fatal error.

    Hope you all get it working.

    I upgraded from wordpress 2.2.1 and needed to add just the following line to wp-config.php:

    define('SECRET_KEY', 'put your own phrase here');

    It works fine now.

    Fatal error: Call to undefined function require_wp_db() in wp-settings.php on line 206

    and line 206 looks like:
    require_wp_db();

    so what I’m gonna do? btw, I’we tried to upgrade WP and got this:(

    I fixed the problem…

    Here’s how I did it.

    First I added my db info to the new wp-config.php file and saved it to the wordpress folder on my desktop. I also saved my .htaccess file in that folder. I zipped the entire thing up in a .zip file.

    So basically I had the new wordpress 2.6.2 installation folder updated with my old htaccess file and an updated wp-config.php file all zipped up into one wordpress.zip file.

    I then deleted my entire wordpress installation EXCEPT my /wp-content/ folder and database.

    Then I uploaded the wordpress.zip to my site using smartftp, then unzipped it using file manager in cpanel.

    I went back to the site and it worked except for the sub pages because the htaccess was not corrent.. so I went into smartftp, chmodded .htaccess to 777, then went into wordpress admin and updated my permalinks structure and that did it.

    I hope that helps, or made sense.

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