Support » Plugin: Query Monitor » Not working on the frontend

  • Resolved joel.a.taylor

    (@joelataylor-1)


    Hi there John,
    Your plugin seems to have some conflict with my sites and I was wondering if you could help. I’m happy to debug with you.

    The option shows in the WP Admin bar while viewing a frontend WP page, but it’s as if all the JS is disabled for the plugin. Clicking the link does nothing except add the #qm-overview to the URL.

    There are no JS errors in the Console. I see the <div> with the plugin content loaded in the DOM. I see the calls to the plugin JS working onLoad. But something is blocking the rendering of the div (or a callback on the button in the WP Admin header bar).

    Thoughts?

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

    (@johnbillion)

    WordPress Core Developer

    Can you try switching your theme to one of the default themes such as Twenty Twenty-One to see if the problem is in your theme?

    If not, try deactivating your other plugins one by one to see if one is causing a conflict and if you find the culprit and then I can take a look.

    Let me know how it goes.

    Thread Starter joel.a.taylor

    (@joelataylor-1)

    Hi John, thanks for getting back to me (and sorry for the extremely slow response). You’re right, it was the theme.

    It seems the theme is loading ALL javascript in the footer (including jQuery, etc). And Query Monitor loads it in the header.

    When I updated /plugins/query-monitor/dispatchers/Html.php Line 198 – to “true” which loads the script in the footer, the plugin works again.

    Thoughts?

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    To be honest you’d be best asking the author of your theme about this because it’ll affect other plugins too, not just QM.

    Best of luck!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.