My error was related to a ‘nextgen-gallery’ plugin.
“Warning: Missing argument 2 for wpdb::prepare(), called in ../nextgen-gallery/lib/tags.php on line 315 and defined in ../wp-includes/wp-db.php on line 990”
By the looks of it, wpdb::prepare() function, inside wp-db.php, now requires an array of arguments to be passed to it.
example, $wpdb->prepare($query, $args)
My gallery plugin used this function to submit a request query to the database but wasn’t including any $args.