Support

Home Forums Event Espresso Premium Calendar events won't display

Calendar events won't display

Posted: January 13, 2015 at 11:53 am


chnikki

January 13, 2015 at 11:53 am

I just purchased the EE3 business license specifically for the recurring events, WP User and event calendar add-ons. I was able to set up some recurring events, listed events successfully on a page and allowed a member to successfully register for an event. When I tried to use the event calendar shortcode, the calendar displays but the events never load.

WP 4.1
EE3 with:
JSON API Add-on v2.1.4.P
WP User Integration v1.9.8
Recurring Events Manager Add-on v1.1.8
Events Calendar Add-on v2.2.4.p
Multiple Event Registration Add-on v1.0.5
Social Media Buttons Add-on v1.1.7

This is a new installation.
The calendar is on: http://exhale.fitness/book-class/
The list of events is on: http://exhale.fitness/event-registration/

I attempted some of the troubleshooting tips found in the calendar documentation. I used enclosed the shortcode with raw. Did a cursory check of the themes and plugins. It appears that the theme I’m using does indeed use wp_enqueue_script( ‘jquery’ );

I did find this error in Firebug:

TypeError: start.getTime is not a function
start_date: Math.round(start.getTime() / 1000),

in file http://exhale.fitness/wp-content/plugins/espresso-calendar/scripts/espresso_calendar.js?ver=2.2.4.p
on line 108

All the events have an event and registration start date (I believe they are required fields).

I’m so close to getting what I need. Can you please advise?


Josh

  • Support Staff

January 13, 2015 at 12:27 pm

Hi there,

I checked the page that has your calendar and it’s some code that’s in this file
http://exhale.fitness/wp-content/themes/workout/javascripts/_combined.min.js?ver=1.1.11
that’s causing the breakage.

I can advise dequeueing the above script for the calendar page or trying a different WordPress theme.


chnikki

January 13, 2015 at 2:27 pm

Thank you for tracking down that file! This was the last thing before marking this website complete so I’m kinda committed to using this theme. I changed the theme to not register that file for the calendar page.

For anyone that’s interested. I edited the Theme Functions in the functions.php file for my theme.
I added an if conditional statement around the registering and enqueueing of the file as follows:

 // Customization 1 of 2 by cp  on 1/13/2015
                if (!is_page('schedule-class') ){
    		  wp_register_script('combined', get_template_directory_uri() . '/javascripts/_combined.min.js', 'jquery', $theme->version, true);
		}

and several lined down:

// Customization 2 of 2 cp on 1/13/2015
                if ( !is_page('schedule-class') ){
			wp_enqueue_script('combined');
                }

It’s now working!!! Thank you so much!!!

One last question, can you color code recurring events from the admin panel (for example recurring events at 6AM are red) OR is that something I would have to customize in the code on the backend?


Lorenzo Orlando Caum

  • Support Staff

January 13, 2015 at 2:44 pm

Hi, there isn’t a specific setting for color-coding recurring events. However, event categories can be color coded:

https://eventespresso.com/wiki/event-categories/#add


Lorenzo


chnikki

January 13, 2015 at 8:04 pm

Ok. Thanks

The support post ‘Calendar events won't display’ 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