Support

Home Forums Event Espresso Premium Events Calendar has eeCal not defined JS error with Beaver Builder

Events Calendar has eeCal not defined JS error with Beaver Builder

Posted: July 31, 2018 at 7:05 am

Viewing 7 reply threads


3thought

July 31, 2018 at 7:05 am

Hi,

We are getting JS error of eeCal not defined on http://staging2.childrensmuseumineaston.org/. It is blocking the ability to edit text modules in Beaver Builder. I added a couple of functions in a plugin to make sure the Scripts are being loaded, but I still see the error. I have it split into two functions rather than using the || for the conditional to test and see if that worked, but it did not. Is there another way to make sure everything is getting loaded properly?

Thanks,
Rich


Tony

  • Support Staff

July 31, 2018 at 7:12 am

Hi Rich,

Can you create either a gist or pastebin showing the function you used, please?


3thought

July 31, 2018 at 7:19 am

Hi Tony,
I created it but forgot to paste it in, sorry about that.
https://gist.github.com/richsalvucci/70a73b5463002a757bfc52af2f74f172#file-ee-code-added-php


Tony

  • Support Staff

July 31, 2018 at 7:35 am

You’re currently loading the Calendar scripts on the front page but as far as I can see you don’t have the calendar shrotcode/widget loading there (which is why the error is being thrown).

I’ve just pushed an update for the calendar live that includes a fix to prevent the error under those conditions, if you go to Event Espresso -> General Settings and just save EE will check for updates.

Then go to Dashboard -> Plugins and update the calendar, does that prevent the error?


3thought

July 31, 2018 at 9:03 am

Hi Tony,

That does fix the error. We are using the Event Espresso Beaver Builder add-on, so that may be why the shortcode is not present. https://github.com/eventespresso/eea-beaver-builder Would you suggest that we not use the plugin? Thanks for the help.

-Rich


Tony

  • Support Staff

July 31, 2018 at 10:29 am

No, that plugin should be fine.

The problem was with the Calendar JS, it always expected the calendar to be loaded on the page if the scripts were loading (which is fine) but when forcing the scripts to load everywhere (or on pages that didn’t have the calendar) it threw the JS error.

The latest version just checks for the calendar JS object before it tries to use it to prevent the error.


3thought

July 31, 2018 at 10:51 am

Thanks so much for the help and the quick response time. We appreciate it.

Thanks,
Rich


Tony

  • Support Staff

July 31, 2018 at 10:55 am

You’re most welcome, Rich.

Any further problems just let us know.

Viewing 7 reply threads

The support post ‘Events Calendar has eeCal not defined JS error with Beaver Builder’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso