Home › Forums › Calendar Products › Events Calendar PRO › Calendar widget JS error on small screens prevents other plugins from working.
- This topic has 13 replies, 3 voices, and was last updated 5 years, 5 months ago by Andras.
-
AuthorPosts
-
August 29, 2018 at 10:15 am #1609011agrilifeParticipant
Hello, we have a JS error I can’t seem to find a solution to. I’ve looked at our other sites using this plugin and they experience the same issue. After looking at the source code I can’t seem to figure out how to avoid this JS error since it is caused by JS variables not being able to find their target HTML element. I replaced the minified JS file with the source file (tribe-events-ajax-calendar.js) and the first error is coming from line 155 because $date is undefined. The function is being called from line 201 and I found that the $wrapper variable declared on line 24 wasn’t found on small screen widths.
Can you tell me how I can fix this for the dozens of sites we use this on? Is this a problem I’ve caused or does it need to be patched?
– Zach
- This topic was modified 5 years, 7 months ago by agrilife.
August 29, 2018 at 12:27 pm #1609157agrilifeParticipantThis is not an issue on https://wfsc.tamu.edu/ which is running 4.6.20.1
August 31, 2018 at 4:28 am #1610492AndrasKeymasterHello Zach,
Thanks for reaching out!
I have tried to recreate this on my end, but haven’t succeeded yet.
On my test site I put an ‘Events Calendar’ widget in the sidebar widget area. Then went to the front-end, switched to responsive view and a small screensize but the javascript error message did not appear and all kept working as it should.
I’m on latest TEC 4.6.22.1 and PRO 4.4.31
Are you doing anything differently?
To rule out any conflicts it would also be great if you could go through our conflict testing guide and see if that brings anything to the surface.
Cheers,
AndrasAugust 31, 2018 at 12:37 pm #1610972agrilifeParticipantHi Andras,
I tested the latest version of TEC and TEC Pro on a local development site this time with only Twenty Seventeen and those two plugins and I still see the same error. I am testing in Firefox 61.0.2.
How should we proceed?
September 3, 2018 at 8:33 am #1612275AndrasKeymasterHi,
I just did the same, fired up a test site with Local by Flywheel, php 7.1.7 and whatever was default, with Ffox 61.0.2.
Installed TEC and PRO and I’m not getting the error you are getting. Not on the home page, not on the calendar page.
Hmmm… interesting.
If I understand correctly you don’t have any other plugins active and there is no caching. Do you get the same with a different browser?
What’s your local environment? Server type, php version and the rest?
A.
September 4, 2018 at 9:19 am #1613134agrilifeParticipantLocal environment is Local by Flywheel, PHP 7.1.7 and default settings. Firefox 61.0.2 and Chrome 68.0.3440.106. I’ve attached a screenshot of the error in both browsers. Plugin versions: TEC 4.6.22.1, TEC Pro 4.4.31. No other plugins installed on the local site.
September 4, 2018 at 9:29 am #1613143agrilifeParticipantI should note that the error occurs when the browser window is about 780px wide or smaller.
September 5, 2018 at 2:16 am #1613905AndrasKeymasterAh okay, that explains why I didn’t see it. I see it also with less wide view.
It looks like we have a bug on our hand. I will ticket this so our developers can take a look.
I am going to set the status of this ticket to “pending fix” and we will update it once the fix is released.
If you have any new questions or issues please create a new ticket and we’ll help you out.
Thanks and cheers,
AndrasSeptember 25, 2018 at 7:15 am #1630004agrilifeParticipantOk, how can I get an email once a solution to this issue is published?
September 26, 2018 at 12:17 am #1630780AndrasKeymasterWhen the fix goes out we will post a message for you in this thread.
If you have opted in to receive email notifications about any new messages here, then you will receive an email as well.
The fix should be released next week with the maintenance release if all goes well.
Cheers,
AndrasOctober 4, 2018 at 4:41 am #1637127VictorKeymasterHi Zach!
Just wanted to share with you that a new release of our plugins is out, including a fix for this issue π
Find out more about this release β https://theeventscalendar.com/maintenance-release-for-the-week-of-30-september-2018/
We apologize for the delay and appreciate your patience while we worked on this.
As always, we suggest to setup a dev/staging site so you can make all plugin updates without disrupting the live site.
Please update the plugins and let us know if the fix works for your site.
Best,
VictorOctober 11, 2018 at 3:42 am #1641408AndrasKeymasterHello Zach,
Just wanted to give you a ping and check if you have managed to take a look at the update.
Let me know.
Cheers,
AndrasOctober 11, 2018 at 6:42 am #1641457agrilifeParticipantHi AndrΓ‘s, yes the latest update solved our issue! Thanks to your team for fixing this for us!
October 12, 2018 at 2:02 am #1641998AndrasKeymasterHappy to hear that got fixed! Awesome!
Since this is marked resolved I am going to close this ticket, but if you need anything else related to this topic or another please create a new ticket and we’ll be happy to help.
Cheers,
AndrasPS: We’d be grateful if you would give us feedback on your satisfaction with support. Just click on one of the classy looking emojis below. π If you can spare a few words, that’s even better. Thanks!
PS2: If you like our plugins, and you didn’t yet do so π we would also be happy to receive a review in the wordpress.org repository. Much appreciated!
https://wordpress.org/support/view/plugin-reviews/the-events-calendar/
https://wordpress.org/support/view/plugin-reviews/event-tickets/ -
AuthorPosts
- The topic ‘Calendar widget JS error on small screens prevents other plugins from working.’ is closed to new replies.