I created an application on cloudways.com with only WordPress 5.6.2 installed. In addition, I installed the plugin LearnDash for managing a course platform. Using LearnDash I created what in LearnDash is called a Lesson.
Opening the created Lesson page, I have the following error in the console:
Uncaught TypeError: Cannot read property ‘querySelector’ of null
at n (frontend.min.js?ver=3.0.2:1)
It points to
The error points to this line in that file:
document.getElementById( 'site-navigation' ).querySelectorAll( '.menu-wrapper > .menu-item-has-children' ).forEach( function( li )
When I switched to the free Astra theme, a similar error is there (but because of the minified version more difficult to read) where
I contacted LearnDash support but they say it doesn’t appear to be an error caused by Learndash.
Any idea what is causing this error?
- The topic ‘Theme error in console with multiple themes’ is closed to new replies.