Support

Home Forums Events Calendar Add-on Calendar not working after update

Calendar not working after update

Posted: March 12, 2017 at 7:54 am


kjustice

March 12, 2017 at 7:54 am

The calendar module shows the categories in a bulleted list (unoformatted) and the actual calendar doesn’t show. URL: https://m4reactor.org/hours/

I’ve tried disabling all plugins except EE and changing skins to 2015 and 2017 and the same problem exists.

There are no javascript errors.

Please advise. Very frustrating.


Tony

  • Support Staff

March 13, 2017 at 9:16 am

Hi there,

It looks like you are using a visual builder on your site which may be breaking the shortcode tracking, if you add the calendar shortcode to the standard WP editor does it correctly show then?


kjustice

March 14, 2017 at 2:38 pm

I have disabled ALL plugins except EE and gone to WP 2017 theme and the problem still exists. This is not an issue with the builder. Screenshot of no other plugins plus 2017 theme: https://www.dropbox.com/s/hu4a8uiaiyiruvx/eebug.png?dl=0


Tony

  • Support Staff

March 14, 2017 at 4:24 pm

So was that calendar page in the screenshot created using 2017?

I didn’t say the issue was with the builder, it looks like the problem is the shortcode tracking which may be getting confused by the builder. Simply switching to another theme and/or disabling all plugins does not fix the shortcode tracking within EE as its done on post save/update.

Try switching to 2017, create a new test page using the default editor and add [ESPRESSO_CALENDAR] to that page, then publish and check if the calendar is output correctly then.

I can give you a snippet that will force the calendar styles to load on specific pages which can be used to work around this, but I’m trying to confirm if the issue is with the shortcode tracking on your site or not.


kjustice

March 16, 2017 at 7:33 am

I added a page and used the expresso_calendar shortcode without using the builder and yes, it displays. I’m not clear on how the shortcode would work differently depending on if it is served via the pagebuilder.

The URL to see that it works is https://m4reactor.org/ee4troubleshooting/

So is this a bug with EE or just a compatability issue with EE and the builder? …and how do I fix it? (Please don’t say don’t use the builder.)


kjustice

March 16, 2017 at 7:44 am

Update: Now this makes less sense. On one page, I had added the calendar and it works fine (using the builder). https://m4reactor.org/hours/

On another page it doesn’t (still using the builder): https://m4reactor.org/calendar/

Logic is failing here…


Tony

  • Support Staff

March 16, 2017 at 8:30 am

I added a page and used the expresso_calendar shortcode without using the builder and yes, it displays. I’m not clear on how the shortcode would work differently depending on if it is served via the pagebuilder.

When you add a shortcode to a page, EE monitors the save and then tracks the page ID so it knows where to load the scripts for the shortcode, so rather than just loading them everywhere we load them only when needed.

When you use a page builder they can save the content differently and EE doesn’t see the shortcode and so does not track the page.

So is this a bug with EE or just a compatability issue with EE and the builder? …and how do I fix it? (Please don’t say don’t use the builder.)

It’s a compatability issue with EE and the page builder, in a nutshell EE doesn’t officially support page builders.

Logic is failing here…

It depends what the page builder is doing its not as simple as one page works and another doesn’t, there is a lot going on under the hood, both with EE and the page builder.

/hours/ is not a new page, /calendar/ I’m assuming is?


kjustice

March 16, 2017 at 8:35 am

Calendar is a newer page (3 days?). But Hours is only about a week old.

So if the issue is CSS and/or javascript not loading, do you have code to force it to?


Josh

  • Support Staff

March 16, 2017 at 10:07 am

The code is in the documentation:

https://eventespresso.com/wiki/events-calendar-add-on/#ee4customizations


kjustice

March 16, 2017 at 12:15 pm

I’m not looking for php code because the last thing I want to do is customize the template or any other plugin. If the issue is that js/css is not being included and firing, what is missing and what do I need to call?


Josh

  • Support Staff

March 17, 2017 at 3:40 pm

You’ll need use some PHP code to tell WordPress to load the correct JavaScript and CSS. You can put the code into a site specific plugin, then make it so the code only fires only on the pages you want the calendar to load on by using the is_page() function.

The support post ‘Calendar not working after update’ 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