The Events Calendar
[resolved] Javascript Errors and Responsive Issues (5 posts)

  1. RevolutionGroup
    Posted 2 years ago #


    My site can be found here: http://tinyurl.com/o8utu56

    I currently am getting two javascript errors caused by this script:

    "Uncaught ReferenceError: tribe_bootstrap_datepicker_strings is not defined
    Uncaught TypeError: Cannot read property 'data' of undefined"

    It is also effecting the responsive navigation of my site. When viewed on the iPad a dropdown menu should appear instead of the standard menu, as you can see here that isn't happening: http://tinyurl.com/pktgvte

    I am not having this issue with any other pages of the site. I'm not sure if the menu issues are due to the JavaScript errors but either way, how can I fix these issues?



  2. Barry Hughes
    Plugin Author

    Posted 2 years ago #

    Hi Rob:

    The best thing to do in the first instance is deactivate all other plugins and switch to a default, unmodified theme such as Twenty Twelve - then check if the same problem still occurs.

    If it does not, try reactivating everything one-at-a-time, checking at each stage to see if it has returned. This is a great technique for isolating conflicts.

    Let us know!

  3. Barry Hughes
    Plugin Author

    Posted 2 years ago #

    Hi Rob - hopefully you got to the bottom of this one. If not, or you need further help, please post a reply to my question or create a new thread. Thanks!

  4. RevolutionGroup
    Posted 2 years ago #

    Hi Barry

    Sorry, i missed your reply.

    I have found it is an issue with minifying javascript with W3 Total Cache.

    It is strange because if i disable minfying javascript for just the event page, the problem still persists. If I turn off minifying javascirpt completely however then this fixes the problem.

    Is there a list available anywhere of the all the .js files that the events calneder uses?

    Kind Regards,

  5. Barry Hughes
    Plugin Author

    Posted 2 years ago #

    The easiest way to determine this would be to look in the resources directory (within The Events Calendar's own plugin directory). Minification certainly isn't a perfect art so, yes, you do need to be careful with this - note also that we already ship and by default serve up minified versions of each script.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • The Events Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic