Support

Home Forums Events Calendar Add-on event calendar not showing

event calendar not showing

Posted: July 3, 2014 at 9:57 am

Viewing 12 reply threads


gpin

July 3, 2014 at 9:57 am

Hi,
Can’t seem to get the event calendar to show.
Test page is here: http://www.gbmcoaching.co.uk/event-calendar/

Versions below
Event Espresso version 3.1.36.5.P
Event Espresso – Calendar by Event Espresso version 2.2.3.p,
Event Espresso by Event Espresso version 3.1.36.5.P,

Any ideas?
Thanks


Tony

  • Support Staff

July 3, 2014 at 12:51 pm

Hi gpin,

You site is throwing a JavaScript error, specifically within the custom.js file – http://take.ms/qXK9O

The Calendar is JavaScript based, any issues with JavaScript will block other JS after this error from running.

Usually the error that is currently being thrown can be fixed by changing the code to use jQuery in no-conflict mode, which we discuss this here:

https://eventespresso.com/2012/08/using-jquery-in-safe-mode/


gpin

July 9, 2014 at 2:54 am

Hi Tony,
We fixed the javascript error but event calendar is still not showing. Any further ideas / advice?
Thanks


Tony

  • Support Staff

July 9, 2014 at 4:40 am

Is the Calendar Add-on currently active?

Looking at the Calendar page linked we can see the shortcode isn’t parsing at all currently.


gpin

July 9, 2014 at 5:59 am

Name: Event Espresso – Calendar
A full calendar addon for Event Espresso. Includes month, week, and day views.
Version 3.0.0.reg
Its activated only.
Can You Please give suggestion…?
Wordpress Version: 3.9.1
Parent Plugin Version: Event Espresso(Version 3.1.36.5.P)
Thanks.


Tony

  • Support Staff

July 9, 2014 at 6:16 am

That version of the Calendar is for EE4.

De-activate and delete that plugin.

From your account page:
https://eventespresso.com/users/gpin/

Download the Calendar in green (Green for EE3, blue for EE4)

http://take.ms/iYNUv

That should be version 2.2.4 which is compatible with EE3. Upload and activate that on your site and it should then work correctly.


gpin

July 9, 2014 at 11:27 pm

Thanks For Reply…
We installed the Same version of plugin which you mentioned above with screenshot, but nothing happened. Till shows the empty page as like before.
The Page follows which we included the corresponding Calender Shortcode:
http://www.gbmcoaching.co.uk/event-calendar/
The Shorcode We used: [ESPRESSO_CALENDAR].
Please Advice!
Thanks….:)


Tony

  • Support Staff

July 10, 2014 at 4:53 am

Can you enable WP_DEBUG on the site and see if any errors are thrown?

I would test one of the default themes (twentyfourteen for example) and see if the Calendar then loads, you can do this without altering the live using a plugin such as Theme Test Drive.

This will help determine if this is an issue with the theme or not.

Can you tell me what version of WordPress are you currently using?


gpin

July 11, 2014 at 12:35 am

Hi Tony,

Thanks For The Reply….!
We enable the WP_DEBUG in wp-config.php, as per your advice but there is no errors or warnings displayed in Back-end As well as Site Front-end.

And Also we installed the Theme Test Drive Plugin, in that plugin options we test the (Twenty Fourteen) WordPress default theme.
By Using Twenty Fourteen theme, the Event Espresso – Calendar Plugin Works perfectly, but we dont know why its not working in Our Theme.

The Screenshot attached below that Event Espresso – Calendar working in (Twenty Fourteen) WordPress default theme.

http://awesomescreenshot.com/01d34qgu3f


Tony

  • Support Staff

July 11, 2014 at 6:39 am

Is the theme you are using a custom theme (completely custom from the ground up) or a modified theme?

Most likely the theme is doing something strange with the_content().

First try wrapping the ESPRESSO_CALENDAR shortcode within [raw][/raw] tags, so:

[raw][ESPRESSO_CALENDAR][/raw]

then see if the Calendar loads (some themes support this, others do not)

You could check the themes functions.php file and see if there are any functions hooking into the_content or wpautop (which is another common issue)


Josh

  • Support Staff

July 16, 2014 at 10:14 am

Hi gpin,

We received your support token request and investigated. It turns out that there’s a bit of code in the theme’s functions.php file that was added as a way to try to speed up the website. The code follows:

////////////////////////////////////////////
// SPEED
////////////////////////////////////////////
if( !is_admin() ) {
	// Move all JS from header to footer
	remove_action('wp_head', 'wp_print_scripts');
	remove_action('wp_head', 'wp_print_head_scripts', 9);
	remove_action('wp_head', 'wp_enqueue_scripts', 1);
	add_action('wp_footer', 'wp_print_scripts', 5);
	add_action('wp_footer', 'wp_enqueue_scripts', 5);
	add_action('wp_footer', 'wp_print_head_scripts', 5);
}

While it’s a fairly common optimization to move JavaScript files to load at the bottom of the page where possible, the above code doesn’t take into consideration load order or script dependancies. So with the above code in action, the calendar’s scripts dependancies were not met and with that, the calendar couldn’t load as it normally would.

I simply commented out code, and the calendar starting working. Along with that, most of the scripts on the page are loading at the bottom of the page, so the above trick was likely not helping much in terms of page speed.

If you’re interested in speeding up the load time of the web page, you might try combining and compressing the scripts where possible. This will reduce the number of http requests, which can really speed up the load time of a web page because a high number of https requests is usually where the bottleneck is.

The WP better minify plugin is one I have used with success to make that happen.


gpin

July 17, 2014 at 12:49 am

Josh, Many thanks for your help.


Dean

July 17, 2014 at 1:06 am

Hi,

Is it OK to now mark this thread as resolved?

Viewing 12 reply threads

The support post ‘event calendar not showing’ 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