- This topic has 5 replies, 3 voices, and was last updated 4 years, 7 months ago by
Leo.
-
AuthorPosts
-
August 18, 2021 at 6:23 am #1900040
Colin
Hello, a strange error happens on my calendar generated by the popular Events Calendar / Calendar Pro plugins when I activate my GP child theme. I’ve used troubleshooting mode with the Health Check plugin to determine that, with every other plugin inactive except those two calendar ones, toggling from the standard GP theme (or a default WordPress theme) to my child theme causes the issue. I’d appreciate any help here; I’ve added temporary admin login info for my live site to the private info box in case that helps. Thanks — Colin
The issue happens on this month view URL for September, when you hit the arrow to scroll over to October:
https://www.green-wood.com/calendar/month/2021-09/And this is the console error that appears:
jquery.min.js?ver=3.6.0:2 Uncaught TypeError: Failed to execute ‘getComputedStyle’ on ‘Window’: parameter 1 is not of type ‘Element’.
at Re (jquery.min.js?ver=3.6.0:2)
at We (jquery.min.js?ver=3.6.0:2)
at Function.css (jquery.min.js?ver=3.6.0:2)
at Object.get (jquery.min.js?ver=3.6.0:2)
at Function.css (jquery.min.js?ver=3.6.0:2)
at jquery.min.js?ver=3.6.0:2
at $ (jquery.min.js?ver=3.6.0:2)
at S.fn.init.S.fn.<computed> [as outerWidth] (jquery.min.js?ver=3.6.0:2)
at breakpoints.js?ver=5.8.2:74
at Array.forEach (<anonymous>)August 18, 2021 at 7:32 am #1900116David
StaffCustomer SupportHi there,
first thing to try is disabling any cache plugins, to make sure some cached JS is not the issue.
If the issue still persists, them temporarily remove ALL functions from the Child Theme functions.php – this will identify if there is a conflicting code. Then add them back one at a time to see which one is the cause.
Let me know.
August 19, 2021 at 2:47 pm #1901846Colin
Thanks, David. I’ve tried disabling the cache plugins, and indeed every plugin except the ones I need to show the calendar (Events Calendar and Events Calendar Pro). If I have everything disabled except for those and my child theme, the error comes up. I’ve also tried emptying out my function.php there, and it still happens. Is there anything else in the theme settings I may have active which would be causing this? Anything else I can give you to help diagnose? In the private info is a video of me disabling (via the Health Check plugin) everything and then triggering the error in Chrome, if it helps.
August 19, 2021 at 4:28 pm #1901891Leo
StaffCustomer SupportHi Colin,
The default child theme is empty so it cannot cause any issues.
Can you try a blank one from here to confirm that?
https://docs.generatepress.com/article/using-child-theme/If that’s the case then I’d assume the error is coming from something in your existing child theme – you will need to remove the function one by one to test.
August 20, 2021 at 9:24 pm #1903211Colin
Hello, thanks again for all of the help here. I’m sorry and embarrassed to admit that it turned out to be a false alarm — the issue was that I had too many events published in the one month throwing the error. So it had nothing to do with the theme at all, and much more to do with the limitations of the events calendar plugins, though their team had suggested nothing was amiss on their end. Closing this out!
August 20, 2021 at 9:29 pm #1903215Leo
StaffCustomer SupportNo problem 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.