• Resolved therealgilles

    (@chamois_blanc)


    Hi,

    I am getting an ‘undefined top’ javascript error when my page is loading on the following line of code:

    $('#wp-admin-bar-query-monitor').addClass(qm.menu.top.classname).find('a').eq(0).html(qm.menu.top.title);

    It appears that qm.menu is not (yet?) defined at this point.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter therealgilles

    (@chamois_blanc)

    Getting this PHP error too:

    [02-Feb-2018 23:36:24 UTC] PHP Fatal error:  Uncaught TypeError: Argument 1 passed to QM_Output_Html_Assets::dependency_row() must be an instance of _WP_Dependency, boolean given, called in .../public_html/wp-content/plugins/query-monitor/output/html/assets.php on line 117 and defined in .../public_html/wp-content/plugins/query-monitor/output/html/assets.php:128
    Stack trace:
    #0 .../public_html/wp-content/plugins/query-monitor/output/html/assets.php(117): QM_Output_Html_Assets->dependency_row(false, Object(WP_Scripts), 'scripts')
    #1 .../public_html/wp-content/plugins/query-monitor/output/html/assets.php(75): QM_Output_Html_Assets->dependency_rows(Array, Object(WP_Scripts), 'Footer', 'scripts')
    #2 .../public_html/wp-content/plugins/query-monitor/dispatchers/Html.php(201): QM_Output_Html_Assets->output()
    #3 .../public_html/wp-includes/cla in .../public_html/wp-content/plugins/query-monitor/output/html/assets.php on line 128
    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    The fatal error is the cause of the JavaScript error.

    Can you try deactivating all your plugins one by one to see which one is causing the error? Try also switching to one of the default themes such as Twenty Seventeen.

    John

    jramsey32

    (@jramsey32)

    Hi John,

    I am getting the same error. I know what plugin is doing it, unfortunately that is also the one that I was trying to use query monitor for. What is the best way that I can troubleshoot this to see how I can fix this.

    Best,

    Jagger

    jramsey32

    (@jramsey32)

    Actually found what I needed in here. https://github.com/johnbillion/query-monitor/issues/147

    Issue was plugin was de-registering and and de-queuing style and scripts in the core of the plugin.

    Best,

    Jagger

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Javascript error on qm.menu.top’ is closed to new replies.