Support » Fixing WordPress » Cannot redeclare class wpdb

  • Fatal error: Cannot redeclare class wpdb in /customers/ocdinfo.dk/ocdinfo.dk/httpd.www/wordpress/wp-includes/wp-db.php on line 18
    ehhmmm….what I do wrong??? TIA
    I tryed to make an upgrade from 72 to latest CVS build.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m gonna go out on a limb and say you included/required wp-db.php twice somewhere along the line. 🙂
    Try using ‘require_once()’ for that file.

    You have to redo your wp-config.php when you upgrade to 1.0/the latest CVS.

    Thread Starter wildduck

    (@wildduck)

    [flushing] i forgot to rename wp-config-sample.php to wp-config.php
    Everything works fine. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cannot redeclare class wpdb’ is closed to new replies.