Support

Home Forums Events Calendar Add-on [ESPRESSO_CALENDAR] Does not Display Calendar

[ESPRESSO_CALENDAR] Does not Display Calendar

Posted: July 30, 2021 at 11:47 am


tepitadmin

July 30, 2021 at 11:47 am

I initially requested assistance June 10 on the EE Premium forum. That post (of the same title) was closed by EE prior to finding a solution. I am reposting here, hopefully someone can be of assistance.

I know the forum has multiple postings for this issue but I still can not seem to display the calendar here:


tepitadmin

July 30, 2021 at 11:47 am

https://tepgroup.net/calendar/


Tony

  • Support Staff

August 2, 2021 at 7:41 am

Hi there,

There’s something strange going on with JavaScript here.

I can force fullCalendar to render if I call .fullCalendar() on the calendar placeholders, however the calendar passes all of the Calendar settings over to the JavaScript library using a function call wp_localized_script() which basically dumps a bunch of translated values to the page for the library to use. That function creates an eeCal object on the page so I’ll use eeCal in reference to this process.

On your site the calendar scripts (CSS and JS) are loading on the page, but eeCal is not (the calendar JS scripts check for eeCal before they do anything as they need those values, so although the JS loads it does nothing).

In your previous thread you had the Autoptimize plugin enabled, it looks like that’s disabled now, correct?

Do you have any other plugins that alter how the assets load on the page at all?

It could be either a plugin or theme conflict and the way I would check for those is to first create a full database backup of the site.

Then install the WP Health Check & Troubleshooting plugin.

Enabled troubleshooting in Tools -> Site Health -> Troubleshooting -> Enable troubleshooting.

That will deactivate all plugins and switch to a default theme, but only for you, the logged in admin.

You’ll need to then enable Event Espresso and the Calendar from the ‘Troubleshooting mode’ admin menu item. (Troubleshooting mode -> manage active plugins).

Then view the calendar page whilst the site is using a default theme, does it work then?

Now, when viewing the calendar page, in the troubleshooting admin bar menu again go to themes and select your current site’s theme, does it work when using that?

(Note when finished with the above mode you go to the Troubleshooting Mode admin bar menu again and click ‘Disable Troubleshooting Mode’. Just to show where that is, look HERE)


tepitadmin

August 4, 2021 at 8:41 am

Thank you for the info. After following the Health Check & Troubleshooting process, it seems that it is our “O3 Framework” theme. I am able to view the calendar in all default themes. I did have to enable Gravity Forms and Advanced Custom Fields PRO plugins to get the O3 theme to load the homepage. Not sure if it could be within those plugins or if it is the actual theme. Please Advise.


Tony

  • Support Staff

August 4, 2021 at 2:55 pm

It’s most likely the theme rather than those plugins.

My guess on the homepage is the theme is directly loading functions from those plugins which will then throw an error when those functions don’t exist (plugin isn’t activated).

Can you send me a copy of the theme so I can take a look? If so you can send it to support[at]eventespresso.com

Note you may need to use a service such as WeTranser depending on the filesize.


tepitadmin

August 4, 2021 at 3:39 pm

Email Sent


tepitadmin

August 4, 2021 at 5:37 pm

Looks like it is in line 93 of the header.php

Uncaught Error: Call to undefined function gravity_form() in /code/wp-content/themes/o3framework/header.php:93 Stack trace: #0 /code/wp-includes/template.php(770): require_once() #1 /code/wp-includes/template.php(716): load_template(‘/code/wp-conten…’, true, Array) #2 /code/wp-includes/general-template.php(48): locate_template(Array, true, true, Array) #3 /code/wp-content/themes/o3framework/front-page.php(12): get_header() #4 /code/wp-includes/template-loader.php(106): include(‘/code/wp-conten…’) #5 /code/wp-blog-header.php(19): require_once(‘/code/wp-includ…’) #6 /code/index.php(17): require(‘/code/wp-blog-h…’) #7 {main} thrown


Tony

  • Support Staff

August 4, 2021 at 5:41 pm

Looks like it is in line 93 of the header.php

That’s why you are getting fatal errors when in troubleshooting mode, the theme is calling gravity_froms directly without checking it exists first, so it will fatal if it is not activated.

However, I don’t think that is what is causing the current issue with the calendar.


tepitadmin

August 4, 2021 at 6:38 pm

Also this one for wp-content/themes/o3framework/header.php:14

Uncaught Error: Call to undefined function get_fields() in /code/wp-content/themes/o3framework/header.php:14 Stack trace: #0 /code/wp-includes/template.php(770): require_once() #1 /code/wp-includes/template.php(716): load_template(‘/code/wp-conten…’, true, Array) #2 /code/wp-includes/general-template.php(48): locate_template(Array, true, true, Array) #3 /code/wp-content/themes/o3framework/front-page.php(12): get_header() #4 /code/wp-includes/template-loader.php(106): include(‘/code/wp-conten…’) #5 /code/wp-blog-header.php(19): require_once(‘/code/wp-includ…’) #6 /code/index.php(17): require(‘/code/wp-blog-h…’) #7 {main} thrown


Tony

  • Support Staff

August 4, 2021 at 6:49 pm

I replied back to your email requesting the full theme so I can investigate this further.

The above error would have the same reply as above, only this time.for advanced custom fields and not gravity forms. You need both gravity forms and advanced custom fields active for your theme to work but that’s not the issue with the calendar.

The support post ‘[ESPRESSO_CALENDAR] Does not Display 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