[wp-trac] [WordPress Trac] #30477: Assistance required debugging 4.1-beta2-30532 wp-db.php problem

WordPress Trac noreply at wordpress.org
Mon Nov 24 14:35:01 UTC 2014


#30477: Assistance required debugging 4.1-beta2-30532 wp-db.php problem
--------------------------+------------------------------
 Reporter:  dfavor        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Database      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------
Description changed by SergeyBiryukov:

Old description:

> Someone tell me the correct way to log all queries to debug.log as they
> execute, so I can debug this...
>
> Thanks.
> _______
>
> [24-Nov-2014 13:51:13 UTC] PHP Warning:  mysqli_fetch_object() expects
> parameter 1 to be mysqli_result, boolean given in
> /cluster/vhost/fastseohosting.com/wordpress/wp-includes/wp-db.php on line
> 1677
> [24-Nov-2014 13:51:13 UTC] PHP Stack trace:
> [24-Nov-2014 13:51:13 UTC] PHP   1. {main}()
> /cluster/vhost/fastseohosting.com/wordpress/wp-admin/admin-ajax.php:0
> [24-Nov-2014 13:51:13 UTC] PHP   2. require_once()
> /cluster/vhost/fastseohosting.com/wordpress/wp-admin/admin-ajax.php:22
> [24-Nov-2014 13:51:13 UTC] PHP   3. require_once()
> /cluster/vhost/fastseohosting.com/wordpress/wp-load.php:29
> [24-Nov-2014 13:51:13 UTC] PHP   4. require_once()
> /cluster/vhost/fastseohosting.com/wordpress/wp-config.php:88
> [24-Nov-2014 13:51:13 UTC] PHP   5. require_wp_db()
> /cluster/vhost/fastseohosting.com/wordpress/wp-settings.php:79
> [24-Nov-2014 13:51:13 UTC] PHP   6. wpdb->__construct()
> /cluster/vhost/fastseohosting.com/wordpress/wp-includes/load.php:352
> [24-Nov-2014 13:51:13 UTC] PHP   7. wpdb->db_connect()
> /cluster/vhost/fastseohosting.com/wordpress/wp-includes/wp-db.php:647
> [24-Nov-2014 13:51:13 UTC] PHP   8. wpdb->set_sql_mode()
> /cluster/vhost/fastseohosting.com/wordpress/wp-includes/wp-db.php:1487
> [24-Nov-2014 13:51:13 UTC] PHP   9. wpdb->query()
> /cluster/vhost/fastseohosting.com/wordpress/wp-includes/wp-db.php:831
> [24-Nov-2014 13:51:13 UTC] PHP  10. mysqli_fetch_object()
> /cluster/vhost/fastseohosting.com/wordpress/wp-includes/wp-db.php:1677

New description:

 Someone tell me the correct way to log all queries to debug.log as they
 execute, so I can debug this...

 Thanks.
 _______
 {{{
 [24-Nov-2014 13:51:13 UTC] PHP Warning:  mysqli_fetch_object() expects
 parameter 1 to be mysqli_result, boolean given in
 /cluster/vhost/fastseohosting.com/wordpress/wp-includes/wp-db.php on line
 1677
 [24-Nov-2014 13:51:13 UTC] PHP Stack trace:
 [24-Nov-2014 13:51:13 UTC] PHP   1. {main}()
 /cluster/vhost/fastseohosting.com/wordpress/wp-admin/admin-ajax.php:0
 [24-Nov-2014 13:51:13 UTC] PHP   2. require_once()
 /cluster/vhost/fastseohosting.com/wordpress/wp-admin/admin-ajax.php:22
 [24-Nov-2014 13:51:13 UTC] PHP   3. require_once()
 /cluster/vhost/fastseohosting.com/wordpress/wp-load.php:29
 [24-Nov-2014 13:51:13 UTC] PHP   4. require_once()
 /cluster/vhost/fastseohosting.com/wordpress/wp-config.php:88
 [24-Nov-2014 13:51:13 UTC] PHP   5. require_wp_db()
 /cluster/vhost/fastseohosting.com/wordpress/wp-settings.php:79
 [24-Nov-2014 13:51:13 UTC] PHP   6. wpdb->__construct()
 /cluster/vhost/fastseohosting.com/wordpress/wp-includes/load.php:352
 [24-Nov-2014 13:51:13 UTC] PHP   7. wpdb->db_connect()
 /cluster/vhost/fastseohosting.com/wordpress/wp-includes/wp-db.php:647
 [24-Nov-2014 13:51:13 UTC] PHP   8. wpdb->set_sql_mode()
 /cluster/vhost/fastseohosting.com/wordpress/wp-includes/wp-db.php:1487
 [24-Nov-2014 13:51:13 UTC] PHP   9. wpdb->query()
 /cluster/vhost/fastseohosting.com/wordpress/wp-includes/wp-db.php:831
 [24-Nov-2014 13:51:13 UTC] PHP  10. mysqli_fetch_object()
 /cluster/vhost/fastseohosting.com/wordpress/wp-includes/wp-db.php:1677
 }}}

--

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30477#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list