• When I’m working in the admin area (Dashboard, etc,) I see the QM link at the top (with numbers and data) and can click to get a drop-down and see the output at the bottom. But when I’m logged in as an admin and i visit pages in my website, I see the “Query Monitor” link in the admin bar at the top of the page. But when I click on it nothing happens. I can’t see the QM output anywhere. Am I missing something? Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    This is usually caused by a JavaScript error on your site. Can you take a look in your browser’s developer console and see if there’s an error showing?

    It could also be caused by a PHP error. Take a look in your PHP error logs and see if there’s anything in there.

    Let me know what you find.

    Thread Starter chamster

    (@chamster)

    No js errors in dev console.

    My php error log shows this:

    [29-Nov-2017 01:09:00 UTC] WordPress database error Table 'discovery.wp_woocommerce_sessions' doesn't exist for query SHOW FULL COLUMNS FROMwp_woocommerce_sessions` made by shutdown_action_hook, do_action(‘shutdown’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_Session_Handler->save_data, QM_DB->query
    [29-Nov-2017 01:09:04 UTC] WordPress database error Table ‘discovery.wp_woocommerce_sessions’ doesn’t exist for query SELECT session_value FROM wp_woocommerce_sessions WHERE session_key = ‘1’ made by require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WooCommerce->init, WC_Session_Handler->__construct, WC_Session_Handler->get_session_data, WC_Session_Handler->get_session, QM_DB->query`

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Are there any other JavaScript errors showing in your console?

    hi John,
    no other errors, apart from a “unreachable code after return statement” warning, caused by the Google Tag Manager’s js (i’ve read it’s something peculiar to Firefox and Gtag).

    i’ve got your plugin running fine on a clone of the same site on a completely different server. both are running PHP 7 though (earlier versions cause a blank page on the one where the js error shows up).

    hope that helps

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Only works on admin pages’ is closed to new replies.