Fatal JS errors on Mobile on Lay 4.1.0
-
Since a recent Lay theme update our site https://dominikbachmann.com (user & pw: 0000) is no longer working on mobile (desktop works fine), due to fatal JS errors that occur both on load and on menu click:
ON LOAD error:
Uncaught TypeError: Cannot read properties of undefined (reading 'currentStyle')
at HTMLDivElement.<anonymous> (frontend.app.min.js?ver=4.1.0:1)
at Function.each (jquery.min.js?ver=3.6.0:2)
at S.fn.init.each (jquery.min.js?ver=3.6.0:2)
at ao (frontend.app.min.js?ver=4.1.0:1)
at Object.initModule (frontend.app.min.js?ver=4.1.0:1)
at Object.<anonymous> (frontend.app.min.js?ver=4.1.0:1)
at n (frontend.app.min.js?ver=4.1.0:1)
at frontend.app.min.js?ver=4.1.0:1
at frontend.app.min.js?ver=4.1.0:1ON MENU CLICK error:
frontend.app.min.js?ver=4.1.0:1 Uncaught TypeError: Cannot read properties of undefined (reading 'find')
at HTMLAnchorElement.<anonymous> (frontend.app.min.js?ver=4.1.0:1)
at HTMLDocument.dispatch (jquery.min.js?ver=3.6.0:2)
at HTMLDocument.v.handle (jquery.min.js?ver=3.6.0:2) -
Dear @brogr
Please confirm the Following:
Wordpress, Lay Theme & Laytheme's Addons are all up to date ?
Any custom CSS or JS that may interfere is temporarily removed.
Any third-party plugins are de-activated to see if this resolves the issue (most likely).
If using a WordPress Cache plugin, disable it or clear your cache.
License key not activated - (in website blank situations or button not available)
If your WordPress Dashboard shows a warning "PHP Update required” Please update your PHP version in your webhost control panel.
Sorry to give a list @brogr but this will help narrow down the possible issues for the future.
Best wishes
Richard
-
Thanks for testing @brogr Have forwarded this to Armin for further inspection ✅ could you also:
Please send your website address, /wp-admin/ username and password and a link to this topic to info@laytheme.com?
Talk soon & have a wonderful day ✨
Richard
-
Thanks @dbachmann ⭐️
-
hey there seems to be an issue where this bug happens when you have activated the tag filter for a project thumbnailgrid but it doesnt contain any tags
i deactivated the tag filter for you
but of course this is a bug and i need to fix it!
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it