Title: google console errors
Last modified: June 30, 2023

---

# google console errors

 *  Resolved [ayubahamed123](https://wordpress.org/support/users/ayubahamed123/)
 * (@ayubahamed123)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/google-console-errors-3/)
 * “Uncaught TypeError: Cannot read properties of null (reading ‘addEventListener’)”
 * I see this warning shown in the google developer tools console, is there a way
   to fix this? or will this be fixed in the next update? This warning is shown 
   from a js file in “light weight cookie notice” plugin directory. We need this
   fixed asap.

Viewing 1 replies (of 1 total)

 *  Plugin Author [DAEXT](https://wordpress.org/support/users/daext/)
 * (@daext)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/google-console-errors-3/#post-16861677)
 * Hello ayubahamed123,
 * thank you for all the details.
 * Since there are multiple uses of [addEventListener()](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)
   in the plugin files, to identify what’s triggering the JavaScript error in your
   website we need to identify the development file and line with that instruction.
 * If the page is visible online you can set **Options -> Advanced -> Assets Mode**
   option to “Development” and link in this thread the page URL with the error.
 * If the page is not visible online please proceed as follows:
    1. Set the **Options -> Advanced -> Assets Mode** option to “Development”
    2. Clear the server and browser cache
    3. Visit the front end page where the JavaScript error is triggered and with the
       Chrome DevTools console opened take a screenshot of the error or save the error
       in a text file. The development file name and line of the error will not be 
       displayed.
    4. Post the image or error text in this thread

Viewing 1 replies (of 1 total)

The topic ‘google console errors’ is closed to new replies.

 * ![](https://ps.w.org/lightweight-cookie-notice-free/assets/icon.svg?rev=2822220)
 * [Lightweight Cookie Notice - Cookie Banner for Cookie Consent](https://wordpress.org/plugins/lightweight-cookie-notice-free/)
 * [Support Threads](https://wordpress.org/support/plugin/lightweight-cookie-notice-free/)
 * [Active Topics](https://wordpress.org/support/plugin/lightweight-cookie-notice-free/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lightweight-cookie-notice-free/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lightweight-cookie-notice-free/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [DAEXT](https://wordpress.org/support/users/daext/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/google-console-errors-3/#post-16861677)
 * Status: resolved