Are there any JavaScript errors appearing in your browser console? Are there any errors in your PHP error logs?
Thread Starter
Sollie
(@sollie)
No PHP errors but there is a javascript error, when I remove the javascript Query Monitor works fine.
This is the error caused by megamenu.
Uncaught TypeError: $(…).ajaxForm is not a function
Unfortunately there’s not much that QM can do when other plugins or the theme is causing JavaScript errors. I would get in touch with the megamenu developer and ask them to look into the problem.
I encountered the same issue when using Query Monitor with the Mega Main Menu plugin and checked with the developers.
Evidently the JavaScript error has been addressed in the latest build. However, the developers also posted a quick code change that will fix the issue.
In the frontend.js file found in /src/js/ the following code should be updated in function mmm_smooth_scroll_to_anchor ():
function_selector = '#mega_main_menu a[href=\\#]:not([href\\#])';
Once the code is updated QM will work as expected.