• eatsleepcode

    (@eatsleepcode)


    The following error is thrown into the console when viewing a non-admin page. This renders the Query Monitor menu useless. It works fine from the admin pages.

    Removing the db.php symlink results in no more error, but then of course I can’t get the detailed query information:

    Uncaught TypeError: Cannot read property 'top' of undefined
        at HTMLDocument.<anonymous> (/wp-content/plugins/query-monitor/assets/query-monitor.js?ver=1487622877:67)
        at i (jquery.js:2)
        at Object.fireWith [as resolveWith] (jquery.js:2)
        at Function.ready (jquery.js:2)
        at HTMLDocument.K (jquery.js:2)

    I note this when I view the Elements in Chrome’s developer tools — only when the db.php symlink is in place –, not sure if that has anything to do with it.

    PHP Error in AJAX Response”,”infinitescroll_paused”:”Infinite Scroll has been paused by Query Monitor”

    There are no Query Monitor stats being rendered to the DOM.

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

    (@johnbillion)

    WordPress Core Developer

    Thanks for the message.

    There may be an error occurring in PHP which is ultimately causing this. Can you take a look in your PHP error log and see if there’s a fatal error?

    Can you let me know which theme you’re using? Also, could try switching to one of the default themes (eg. Twenty Seventeen) and see if the error persists?

    John

    Hi John, I am facing the same issue. I am using a child theme. when I switched to the original theme it worked well but its not working in front end for the child theme. So doesn’t the plugin work with child themes? thanks.

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    It sounds like there’s a problem with the specific child theme you’re using (not child themes in general).

    Can you take a look in your PHP error log and see if there’s a fatal error being logged?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Uncaught TypeError: Cannot read property ‘top’ of undefined’ is closed to new replies.