Title: Undefined variable: write
Last modified: August 21, 2016

---

# Undefined variable: write

 *  [George.k](https://wordpress.org/support/users/georgek-1/)
 * (@georgek-1)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/undefined-variable-write/)
 * Hello.
    Can please somebody help me with this. db.php is in wp-content and db-
   config.php is in main directory. They are configured and working. Everything 
   is fine except every time site is loaded debug.log says: **PHP Notice: Undefined
   variable: write in /var/www/wp-content/db.php on line 555** Also give that stack
   trace :
 *     ```
       [19-Sep-2013 19:41:37 UTC] PHP Stack trace:
       [19-Sep-2013 19:41:37 UTC] PHP   1. {main}() /var/www/wp-admin/admin-ajax.php:0
       [19-Sep-2013 19:41:37 UTC] PHP   2. require_once() /var/www/wp-admin/admin-ajax.php:20
       [19-Sep-2013 19:41:37 UTC] PHP   3. require_once() /var/www/wp-load.php:29
       [19-Sep-2013 19:41:37 UTC] PHP   4. require_once() /var/www/wp-config.php:106
       [19-Sep-2013 19:41:37 UTC] PHP   5. wp_not_installed() /var/www/wp-settings.php:102
       [19-Sep-2013 19:41:37 UTC] PHP   6. is_blog_installed() /var/www/wp-includes/load.php:429
       [19-Sep-2013 19:41:37 UTC] PHP   7. wp_load_alloptions() /var/www/wp-includes/functions.php:1115
       [19-Sep-2013 19:41:37 UTC] PHP   8. wpdb->get_results() /var/www/wp-includes/option.php:145
       [19-Sep-2013 19:41:37 UTC] PHP   9. hyperdb->query() /var/www/wp-includes/wp-db.php:1521
       [19-Sep-2013 19:41:37 UTC] PHP  10. hyperdb->db_connect() /var/www/wp-content/db.php:753
       ```
   
 * _[Moderator Note: Please post log files between backticks or use the code button.]_
 * Please tell me how to fix it ? My debug.log going 2GB for 20mins.
    Regards.
 * [http://wordpress.org/plugins/hyperdb/](http://wordpress.org/plugins/hyperdb/)

The topic ‘Undefined variable: write’ 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/)

## Tags

 * [db.php](https://wordpress.org/support/topic-tag/db-php/)
 * [undefined variable](https://wordpress.org/support/topic-tag/undefined-variable/)

 * 0 replies
 * 1 participant
 * Last reply from: [George.k](https://wordpress.org/support/users/georgek-1/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/undefined-variable-write/)
 * Status: not resolved