Support

Home Forums Events Calendar Add-on [ESPRESSO_CALENDAR] Shortcode not displaying calendar

[ESPRESSO_CALENDAR] Shortcode not displaying calendar

Posted: February 18, 2014 at 1:18 pm


William

February 18, 2014 at 1:18 pm

Wordpress version 3.8.1

Event Espresso Version 3.1.36.4.P (would do 4, but we want to utilize the WP User Integration plugin, which according to the documentation, is only compatible with EE3. When 4 was installed, I was getting a fatal error when trying to install the WP User Integration)

EE Installed Add-Ons: Calendar, Members Addon

New installation

I’ve searched through the forums and found multiple topics on this subject, so I do apologize for the repeat post. However, most of the other posts seem to report that this problem is related to theme-specific issues, which the EE developers helped track down. So, I was hoping I could get that assistance in tracking down what the issue may be. 🙂

– I’ve tried the [raw][/raw] tags surrounding the shortcode.
– When viewing the source code, it doesn’t appear as though the theme is wrapping the code in <p> tags, as far as I can tell.

I’m not really well-versed enough in jquery to know if this is a conflict issue between the theme and the plugin, but, I do know that it is something with the theme itself, because when I activated the 2014 theme, the calendar worked just fine.

Obviously it’s a problem with the theme itself, but I just don’t know exactly where the theme is causing the conflict. I did view the Chrome console, and it did give the error of “Uncaught ReferenceError: eeCAL is not defined”, if that helps at all.

Since it is a theme issue, I don’t expect assistance from EE support as how to resolve it, but any guidance as far as what might be causing the conflict is greatly appreciated. From there I could get some co-workers involved / get the theme developer involved in resolving it.

The calendar page in question is located at: http://bomaindy.com/program-calendar/

Thanks!


Josh

  • Support Staff

February 18, 2014 at 1:45 pm

Hi William,

This looks like something we’ve seen before where the JavaScript error that’s being thrown is:

Uncaught ReferenceError: eeCAL is not defined

What normally happens is the calendar plugin takes all your calendar settings that you configure and uses the wp_localize_script function to feed those to the web page that displays the calendar.

The other time we’ve seen this was when the theme did some internal post content caching and that ended up breaking the wp_localize_script functionality. The site owner could actually view the calendar if he previewed the page within the page editor, but not when viewing the page.

The solution that the theme developer came up with was they disabled the theme’s post cache functionality (I’m not sure if they did this for the calendar page only or for the whole site). This is a link to the other thread:

https://eventespresso.com/topic/calendar-disappeared-7/page/3/

So if the theme in use is also doing post content caching, then there should be a way to disable it.

It could be something else causing this to happen though, so one thing to look out for is if the theme is doing something that conflicts with the WordPress wp_localize_script function.


William

February 18, 2014 at 1:50 pm

Ok, great, thank you. I’ll start looking down this route, trying to track down if the theme is doing any post caching. As needed, I’ll get with the theme developer letting them know what you have told me here, and have them look for a solution.

Thank you for your prompt response. I’ll update the thread when the issue is resolved one way or another.

Thanks!


Dean

February 19, 2014 at 5:57 am

Thanks William, we would love to hear the feedback once known.

The support post ‘[ESPRESSO_CALENDAR] Shortcode not displaying calendar’ 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