JS Error: “Cannot create property ‘guid’ on string ‘.dropdown-menu.show’
-
Hello,
I am encountering a JavaScript error that is breaking functionality on my website. The error is related to jQuery and occurs when attempting to interact with elements that use the class
.dropdown-menu.show
. Below are the details:jquery-migrate.min.js:2 JQMIGRATE: Migrate is installed, version 3.4.1
jquery.min.js:2 jQuery.Deferred exception: Cannot create property 'guid' on string '.dropdown-menu.show' TypeError: Cannot create property 'guid' on string '.dropdown-menu.show'
at Object.add (https://c0.wp.com/c/6.6.1/wp-includes/js/jquery/jquery.min.js:2:37833)
at Object. (https://c0.wp.com/c/6.6.1/wp-includes/js/jquery/jquery-migrate.min.js:2:9827)
at e. as add
at HTMLDocument. (https://c0.wp.com/c/6.6.1/wp-includes/js/jquery/jquery.min.js:2:37118)
at Function.each (https://c0.wp.com/c/6.6.1/wp-includes/js/jquery/jquery.min.js:2:3129)
at e..each (https://c0.wp.com/c/6.6.1/wp-includes/js/jquery/jquery.min.js:2:1594)
at Le (https://c0.wp.com/c/6.6.1/wp-includes/js/jquery/jquery.min.js:2:37093)
at e..on (https://c0.wp.com/c/6.6.1/wp-includes/js/jquery/jquery.min.js:2:44478)
at HTMLDocument.init (https://new.redacted.fr/wp-content/themes/cloudpress/assets/js/smartmenus/jquery.smartmenus.bootstrap-4.js?ver=6.6.1:155:18)
at e (https://c0.wp.com/c/6.6.1/wp-includes/js/jquery/jquery.min.js:2:27028) undefined
ce.Deferred.exceptionHook @ jquery.min.js:2
t @ jquery.min.js:2
setTimeout
(anonymous) @ jquery.min.js:2
c @ jquery.min.js:2
fireWith @ jquery.min.js:2
fire @ jquery.min.js:2
c @ jquery.min.js:2
fireWith @ jquery.min.js:2
ready @ jquery.min.js:2
P @ jquery.min.js:2The error appears to be related to an interaction between the jQuery migrate script and custom JavaScript code for Bootstrap 4 smart menus. This issue occurs consistently across different browsers, and updating to the latest versions of all plugins, themes, and WordPress itself has not resolved the issue.
Steps to Reproduce:
- Load the affected webpage.
- Interact with any dropdown menu that uses the class
.dropdown-menu.show
. - Observe the JavaScript console for errors.
Browser/Environment:
- Browser: [e.g., Google Chrome 114]
- Operating System: [e.g., Debian 12]
- WordPress Version: 6.6.1
- jQuery Version: 3.4.1
Please let me know if you need any additional information or if there’s a known solution to this problem.
Thank you!
- You must be logged in to reply to this topic.