Title: PHP warning
Last modified: August 24, 2016

---

# PHP warning

 *  [Feriman](https://wordpress.org/support/users/feriman/)
 * (@feriman)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/php-warning-56/)
 * Hi,
 * I edited db-config.php, and when I uploaded it to folder, get PHP error:
 *     ```
       Warning: Creating default object from empty value in /home3/feriman/public_html/db-config.php on line 40
   
       Fatal error: Call to undefined method stdClass::add_database() in /home3/feriman/public_html/db-config.php on line 221
       ```
   
 * In line 40 of db-config.php:
 * `$wpdb->save_queries = false;`
 * If I comment this line, I get some error.
 * What is the problem?
 * Thanks!
 * [https://wordpress.org/plugins/hyperdb/](https://wordpress.org/plugins/hyperdb/)

The topic ‘PHP warning’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/hyperdb_33353d.svg)
 * [HyperDB](https://wordpress.org/plugins/hyperdb/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hyperdb/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hyperdb/)
 * [Active Topics](https://wordpress.org/support/plugin/hyperdb/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hyperdb/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hyperdb/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Feriman](https://wordpress.org/support/users/feriman/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/php-warning-56/)
 * Status: not resolved