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?
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?
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.
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.
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.
Support forum for Event Espresso 3 and Event Espresso 4.