application.debug-b4…d501552b79.js:13280 Uncaught TypeError: Cannot read properties of…
- User
application.debug-b4…d501552b79.js:13280 Uncaught TypeError: Cannot read properties of undefined (reading 'subHtmlUrl') at LightGallery2.addHtml (application.debug-b4…1552b79.js:13280:36) at LightGallery2.openGallery (application.debug-b4…1552b79.js:13159:12) at HTMLAnchorElement. (application.debug-b4…1552b79.js:12948:17) LightGallery2.addHtml @ application.debug-b4…d501552b79.js:13280 LightGallery2.openGallery @ application.debug-b4…d501552b79.js:13159 (anonymous)
- Assistant
The error message indicates that there is an issue with the code in the "LightGallery2" function, specifically in the "addHtml" method. The error is being caused by an attempt to read the 'subHtmlUrl' property of an undefined variable, which means that the variable has not been initialized or does not exist.
To fix this error, you should check the code in the "addHtml" method of the "LightGallery2" function and ensure that all variables are properly initialized and defined. Additionally, you may want to check if the variable containing the 'subHtmlUrl' property is being properly passed to the "addHtml" method.
If you are not familiar with the codebase or do not have access to it, you may need to consult with the original developer or seek additional assistance from a colleague or a technical support team.