Archived topic
Script error on my site
2 replies · Started by Patrick on May 11, 2018
Hello Tom,
on my website there is a script error which seems to be caused by generate press.
The error message is:
Uncaught TypeError: Cannot read property 'destroy' of undefined
I traked it down to this script:
<script>
jQuery( window ).load( function() {
jQuery( '.sf-menu .menu-item-has-children' ).GenerateDropdownMenu.destroy();
jQuery( '.sf-menu .menu-item-has-children' ).GenerateDropdownMenu({
transition_speed: 0,
open_delay: 0,
close_delay: 0
});
});
</script>
Could you help me here?
Hi Patrick, GP doesn't use jQuery so must be a plugin creating the problem.
Can you try step one of this:
https://docs.generatepress.com/article/debugging-tips/
If still an issue then please add a link to your site so we can have a look
Double check that you are using the latest versions as well :)