Home › Forums › Calendar Products › Events Calendar PRO › Javascript Error
- This topic has 16 replies, 4 voices, and was last updated 9 years, 10 months ago by Casey.
-
AuthorPosts
-
April 8, 2014 at 8:20 pm #129883petemichaudParticipant
I’m getting a javascript error that seems to be interfering with other scripts on the page. The error is: “Uncaught TypeError: undefined is not a function”
in reference to this minified line:
c(this).addClass(“tribe-events-loading”).css(“opacity”,0.25)};which corresponds to line 300 in the tribe-events.js file.
So for some reason c (which is the jquery $ variable) is undefined here.
April 9, 2014 at 6:01 am #129958CaseyParticipantpetemichaud,
Thanks for reaching out and sorry to hear you’re having trouble here, but hopefully I can help. I’m seeing several other javascript errors when visiting your site: http://grab.by/vTgo. Can you try temporarily reverting to the default 2013 theme to see if this issue persists? I suspect that this is an issue with your theme, but just want to narrow it down a bit before troubleshooting further.Thanks! π
-Casey-
April 9, 2014 at 2:27 pm #130279petemichaudParticipantYeah, I tried reverting to 2013, but the error didn’t change. I also resolved the other errors, which were unrelated, and the code still breaks. I’m trying to figure out how to enqueue the unminified version of the file to see if that changes things, but I haven’t quite figured that out yet.
April 9, 2014 at 2:44 pm #130292petemichaudParticipantI see on line 640 of tribe-template-factory.class.php where it uses the min version if the SCRIPT_DEBUG constant is not true, but I’m not sure where to set that value so I can output unminified files.
April 9, 2014 at 4:06 pm #130367petemichaudParticipantThis code is really gross 8/
Crappy, table-based HTML output from php code directly (talking about EDD Tickets plugin here) 1998 much?.
Events PRO also has an issue that I haven’t even tried to begin troubleshooting yet (“Uncaught TypeError: Cannot read property ‘pro_tooltips’ of undefined”)
document ready isn’t firing my custom jquery code, I suspect because of invalid markup being output by EDD Tickets, and when I fix that it’ll mean I can’t upgrade the plugin anymore without losing my changes.
I just spent like $150 on these plugins, and I’m not too happy about how they are working.
April 9, 2014 at 5:26 pm #130404CaseyParticipantpetemichaud,
Can you try deactivating all other plugins to see if that resolves the issue? If so, then try reactivating them one-by-one to determine if another plugin is the culprit. Give that a try and let me know what you discover.While I wish I could say that the plugin seamlessly integrates with every theme and plugin out there, the reality is that custom themes and third-party plugins have so many settings/options that it would be nearly impossible for us to account for all of those.
Have you taken a look at our themer’s guide and Documentation to see if any of your questions have been covered in there? If you still have further questions, we’d be glad to help where we can.
Thanks! π
-Casey-
April 22, 2014 at 8:39 pm #140039CaseyParticipantI just wanted to follow up and see if youβre all set here or if you still have further questions. Just let me know if you have further questions or if I should go ahead and close out this thread. Thanks! π
-Casey-
April 24, 2014 at 12:37 pm #141634Jamie OastlerParticipantI’m also experiencing this error.
WP 3.8.2 or 3.9
TEC 3.5.1Theme: Roots (http://roots.io/) specifically on the single-event view
May 3, 2014 at 9:25 pm #149262360zenParticipantHi there,
I’m having this exact same issue and it is killing my current project. I have multiple other jquery functions that all break when Events Calendar is active.May 3, 2014 at 9:30 pm #149266360zenParticipantI’d be happy to give a support representative login or debugging privileges if that would help. Looks like this guy had the same problem and it never got resolved: https://theeventscalendar.com/support/forums/topic/3-2-upgrade-breaks-infocus-theme-timthumb-image-resizing/#post-78837
May 3, 2014 at 10:49 pm #149307360zenParticipantAnother thread with the same issue. Again, it was blamed on the theme… I’m pretty concerned by this because it looks like none of these have been resolved.
https://theeventscalendar.com/support/forums/topic/upgrade-to-pro-has-caused-issues-on-site/May 5, 2014 at 6:43 am #150225petemichaudParticipantYes, mine was never resolved either. I haven’t had time to really dig in and fix it, but I know from the nature of the error that it should not be the result of theme conflicts or anything like that. I’m taking an educated guess that the client code is not encapsulated correctly in a closure, so key values are leaking and perhaps being overwritten. That would make it “work” while on it’s own, and break when you introduce other javascript, and it would also mean the problem isn’t the other javascript 8)
May 7, 2014 at 7:23 am #152780CaseyParticipant@jamie and @360zen,
If your issue is the same as the above please do feel free to monitor this thread, but if you need assistance for your own specific scenario it would be great if you could create a fresh thread of your own. Thanks!
@petemichaud,
Try testing with the following in you wp-config.php file:
define('SCRIPT_DEBUG', true);
This will output the unminified javascript for you to inspect further. Give that a shot and let me know if you have further questions. Thanks! π
-Casey-
May 14, 2014 at 7:11 am #160652CaseyParticipantpetemichaud,
I just wanted to follow up and see if youβre all set here or if you still have further questions. Just let me know if you have further questions or if I should go ahead and close out this thread. Thanks! π-Casey-
June 4, 2014 at 6:59 am #203700petemichaudParticipantAdding that line of code to wp-config.php isn’t forcing the plugin to serve unminified JS files (Screenshots: http://imgur.com/a/sOWqr). Do you have any other work arounds to get this working?
-
AuthorPosts
- The topic ‘Javascript Error’ is closed to new replies.