Home › Forums › Calendar Products › Events Calendar PRO › Cannot read property 'top' of undefined Events Calendar Pro
- This topic has 5 replies, 2 voices, and was last updated 8 years, 6 months ago by
Michael Andersen.
-
AuthorPosts
-
October 2, 2017 at 6:04 am #1357680
Michael Andersen
ParticipantDear Support,
We bought your plugin, but sadly it`s not working correct. there is a bug…
I did everything in the testing for for conflicts manual on:
When i click into the November month. ( month with events ), the bar with the month disappears and i get the error from in the screenshots i added.
I saw that it was on the Tribe-events.js on line 954, as shown in the screenshot. So i followed the files in wp-content/plugins/the-events-calendar/src/resources/js/tribe-events.js Tried to be smart, and delete the line. But in some black magic way, it can still find the line!
So i deleted my browser history. Started a incognito. And still the same… Then i even deleted the whole tribe-events.js. And still it can find the file. I don`t think that should even be possible. ( yes i cleared cache, no cache plugins, incognito, browser cache disabled in dev mode on chrome, and a hard refresh.) But The magic is persistent, it still shows perfectly that the file is there….
also i see there is a warning on line 93 as you can see in screenshot 3.
I was supposed to deliver the project tomorrow, and this is holding everything up. Can you please help and try figure out what is going on?
I have spend hours to find the error myself, but i`m clueless how this works as i it even still works when you delete the whole file.
( Yes i put everything back in original state )
Here is the link: http://dancham.seoheroesbangkok.com/events-dancham
You can reproduce the error by clicking on november, and see the console.
Thanks in advance,
Roy
October 3, 2017 at 4:20 pm #1358611Cliff
MemberHi, Matteo. Sorry you’re experiencing this.
Thanks for your detailed message. We haven’t received this report from other users, and it’s not happening on my localhost testing site or on our demo site: http://wpshindig.com/events/
Normally when users say they followed all the Testing for Conflicts steps, they didn’t fully, but you seem to have a good grasp of the situation and the importance of following each and every step.
Therefore, I’ll suggest you enable WP_DEBUG and WP_DEBUG_LOG (which will create a file on your server at /wp-content/debug.log if there are any WP_DEBUG messages) and share any debug messages you see around your site.
Also, do you have SCRIPT_DEBUG enabled?
Finally, please add an event in the current month (October) and see if, after doing that, the JS error goes away — maybe that’s what’s causing it?
Please let me know what you find out.
October 3, 2017 at 6:56 pm #1358682Michael Andersen
ParticipantHi Guys,
So i enabled all the logs etc, but that is not of importance anymore as it is solved. So my little present to you:
There is a programming error!
If you switch from month, it will always give that error. However that is not what breaking it, bit of a illusion there. The problem is with switching from a month with no events, towards a month WITH events. The system disables to go to other months that have no events in it. ( Which makes sense in programmers logic, but not in UX).
So the devs might want to enable navigation for months without events as well.
I solved it by adding a test event in the month October:
http://dancham.seoheroesbangkok.com/events-dancham/
It still throws the error, but it doesn’t break anything. Makes sense as it’s just a jquery scroll to top function.
Hope this helps for the next update!
October 4, 2017 at 1:24 pm #1359199Cliff
MemberMatteo, thanks for the update.
I tried a site with only 1 event in it (in November).
Going to /events displays the Month View for October (no events). Clicking “November” as the bottom-right corner Next Month link didn’t throw any JS console error and it actually worked (did display November).
Since I wasn’t able to replicate this issue with The Events Calendar 4.6 or 4.5.13, I’ll need more details from you before filing a bug report to our developers.
Could you put the site in Testing for Conflicts Mode on a staging site on the same server environment and then provide me an Administrator login via Private Reply (not possible via email replies)?
If you’re not wanting to pursue this further, that’s okay, but if you want to get this confirmed and eventually resolved, please do provide the requested information.
Please note that threads get Closed automatically after a couple weeks of inactivity. If it does get Closed, please open a new thread, adding your current problem description and also linking back to this thread.
Thank you!
October 26, 2017 at 9:35 am #1369336Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Cannot read property 'top' of undefined Events Calendar Pro’ is closed to new replies.
