I'm trying to move my site from MAMP to the live server and I'm getting this error:
Fatal error: Class 'wpdb' not found in /data/folder_name/public_html/wp-includes/load.php on line 404
I went through the basic steps of moving everything. Created the Database, Imported my database, updated the wp-config.php and uploaded all of my files so I'm not sure what the issue is. I'm not even sure where to start.
Here is the code in load.php
/**
* Load the database class file and instantiate the `$wpdb` global.
*
* @since 2.5.0
*
* @global wpdb $wpdb The WordPress database class.
*/
function require_wp_db() {
global $wpdb;
require_once( ABSPATH . WPINC . '/wp-db.php' );
if ( file_exists( WP_CONTENT_DIR . '/db.php' ) )
require_once( WP_CONTENT_DIR . '/db.php' );
if ( isset( $wpdb ) )
return;
$wpdb = new wpdb( DB_USER, DB_PASSWORD, DB_NAME, DB_HOST );<--Line 404
}
/** * Load the database class file and instantiate the '$wpdb' global. * * @since 2.5.0 * * @global wpdb $wpdb The WordPress database class. */ function require_wp_db() { global $wpdb; require_once( ABSPATH . WPINC . '/wp-db.php' ); if ( file_exists( WP_CONTENT_DIR . '/db.php' ) ) require_once( WP_CONTENT_DIR . '/db.php' ); if ( isset( $wpdb ) ) return; $wpdb = new wpdb( DB_USER, DB_PASSWORD, DB_NAME, DB_HOST ); }
if ( !defined('ABSPATH') ) define('ABSPATH', dirname(__FILE__) . '/'); /** Sets up WordPress vars and included files. */ require_once(ABSPATH . 'wp-settings.php');