- Priority: 0
- Status: Closed
- Theme: Alysum
-
Assigned To:
Fred
- Private: No
- Open Date: 11.12.20, 13:43
- Opened by: Axon web
- Closed by: Anonymous Submitter
- Closed on:
- Reason: Not a bug
Ticket #20190 - Sometimes the mobile menu doesn't open
When it happens I see this error in the browser console (Chrome):
theme.js:1 Uncaught TypeError: Cannot read property 'switchErrorStat' of undefined at r (theme.js:1) at HTMLDocument.<anonymous> (theme.js:1) at u (core.js:39) at Object.add [as done] (core.js:39) at m.fn.init.m.fn.ready (core.js:39) at Object.<anonymous> (theme.js:1) at e (theme.js:1) at Object.<anonymous> (theme.js:1) at e (theme.js:1) at Object.<anonymous> (theme.js:1)
On the network panel I don’t see any error loading Javascript files. It look like some race condition.
Not sure if it’s related but sometimes the home page gets stuck with the loading spinner (screenshot attached). There are also similar errors on the console (Firefox):
12:18:56.650 Uncaught ReferenceError: $ is not defined <anonymous> http://localhost/modules/ph_simpleblog/views/js/ph_simpleblog-17.js:9 ph_simpleblog-17.js:9:1 12:18:56.688 Uncaught ReferenceError: jQuery is not defined <anonymous> http://localhost/modules/pkfacebook/views/assets/js/scripts.js:51 scripts.js:51:1 12:18:56.689 Uncaught ReferenceError: $ is not defined <anonymous> http://localhost/modules/pk_menu/views/js/front.js:28 front.js:28:1 12:18:56.690 Uncaught ReferenceError: $ is not defined <anonymous> http://localhost/modules/pspagebuilder/views/js/pagebuilder.js:1 pagebuilder.js:1:1 12:18:56.694 Uncaught ReferenceError: jQuery is not defined <anonymous> http://localhost/modules/pkinstagram/views/js/instastory.js:610 instastory.js:610:1 12:18:56.696 Uncaught ReferenceError: $ is not defined <anonymous> http://localhost/modules/pk_testimonials/assets/js/scripts.js:6 scripts.js:6:1 12:18:56.700 Uncaught ReferenceError: $ is not defined <anonymous> http://localhost/modules/pk_wishlist/views/js/front.js:12 front.js:12:1 12:18:56.700 Uncaught ReferenceError: $ is not defined <anonymous> http://localhost/modules/pkfavorites/views/assets/js/scripts.js:1 scripts.js:1:1 12:18:56.709 Uncaught ReferenceError: jQuery is not defined <anonymous> http://localhost/modules/pkthemesettings/views/js/front.js:8 <anonymous> http://localhost/modules/pkthemesettings/views/js/front.js:8 front.js:8:13
Comments
Hi, Axon web.
What is the path to prestashop in your server?
It’s on /web/anne/.
Ok.
I don’t see the issue anymore (I didn’t even change any file) Please check it out now
Have you reproduced the issue? I’ve just have. I’ve had to do about 10 page reloads for it to happen.
I’ve noticed that, although the mobile menu is failing, the home page loading issue isn’t happening. So I guess the cause is not the same. I’ll open another issue if I see it again after having this one solved.
About the menu, it’s strange because, since it has failed, it’s failing almost every time. It works only from time to time.
If it helps, when the menu fails, the arrows of the products list aren’t shown (widget from the page builder) in the “Novedades” section of the home page.
The issue has been fixed. Please test to confirm the change
Updated file is /web/anne/themes/alysum/templates/_partials/javascript.tpl
Yes, it seems it’s not failing anymore. Thanks a lot for fixing it so fast!
Great!