Support

Home Forums Events Calendar Add-on Calendar Disappeared. 7

Calendar Disappeared. 7

Posted: January 21, 2014 at 7:40 pm


sfaber

January 21, 2014 at 7:40 pm

Calendar was working fine for the last year. I did a few updates and now it has disappeared… Help.

If I’m in WP page editing mode and i “preview edits” the calendar will show up. However, when viewed normally, it doesn’t show up.

Site: http://scottfaber.com/photography-class-calendar/

Is this the issue?

  • This topic was modified 10 years, 3 months ago by  sfaber.


sfaber

January 21, 2014 at 7:58 pm

is this the issue?
how do I solve it?


sfaber

January 21, 2014 at 7:59 pm


Seth Shoultes

  • Support Staff

January 21, 2014 at 8:22 pm

Looks like you are getting a Javascript error:
Timestamp: 1/21/14, 8:22:10 PM
Error: ReferenceError: eeCAL is not defined
Source File: http://scottfaber.com/wp-content/plugins/espresso-calendar/scripts/espresso_calendar.js?ver=2.2.2.p
Line: 4


Seth Shoultes

  • Support Staff

January 21, 2014 at 8:26 pm

Do you have the latest version of the calendar installed?


sfaber

January 22, 2014 at 6:27 am

2.2.2.p


Dean

January 22, 2014 at 6:37 am

Hi,

Can you go to the Calendar Settings page and check the settings, and importantly save the settings. Please advise if that resolves the issue or not.


sfaber

January 22, 2014 at 6:51 am

I opened calendar settings, changed an item, saved it. tested

I opened calendar settings, changed the item back, saved it. tested

it made no difference, it behaves the same. if you use “preview changes” the calendar will show up. if you use the regular “view page” it doesn’t.


Josh

  • Support Staff

January 22, 2014 at 10:34 am

Hi there,

The clue that I think will guide us to a fix is it works if you’re previewing the calendar page from the admin, but you’re getting the eeCAL is not defined error when you’re not in the admin.

The code in the calendar plugin that defines eeCAL is this:

wp_localize_script( 'espresso_calendar', 'eeCAL', $ee_calendar_js_options );

What this does is pass what’s set in the calendar settings into the the calendar scripts, and that’s why Dean suggested saving the settings to make sure the calendar options were set.

Since that didn’t seem to help, and you’re seeing the calendar when you preview the page in the admin, I’m wondering if this might be something a security plugin is causing. Can you let us know if there are any security plugins installed? We’ll continue to look into this issue on our end (can’t reproduce it yet, so not sure what the fix will be).

Another thing that may help is if we can take a look at the PHP error log. If there’s a PHP error that’s being thrown when the calendar page loads, that could pinpoint the cause of the issue.


sfaber

January 22, 2014 at 11:51 am

Security plugin – I assume you are talking about a WP plugin.
Akismet – to track spam… is the closest thing to security.
nothing really other than that.

Where is the best place to hind a PHP Error / Log?

there are 2 errors I see when using the dev. tools in chorme:
1. uncaught Reverence Error; eeCAL is not defined (as already noted)
2 a jwuery.js issue
http://scottfaber.com/wp-includes/js/jquery/jquery.js?ver=1.10.2
event.returnValue is deprecated. Please use the standard event.preventDefault() instead.


Josh

  • Support Staff

January 22, 2014 at 1:37 pm

The PHP error log may or not be on your server. Since servers will differ on where the log file is located (and can be configured to not generate a log file), here’s a link to some documentation that shows how to configure error logging:

http://codex.wordpress.org/Editing_wp-config.php#Configure_Error_Logging

I personally use this one in the wp-config.php file:

define( 'WP_DEBUG', true ); // Or false
if ( WP_DEBUG ) {
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', false );
    @ini_set( 'display_errors', 0 );
}


sfaber

January 23, 2014 at 10:21 am

This is starting to go over my head… So…

I called my ISP (HostGator) and asked for their help and they did 2 things.
1. looked at the apache logs on the server and didn’t see any any php or other errors
2. they created a new test page</a> with just the “[ESPRESSO_CALENDAR show_expired=”true”]” code. and found that it doesn’t show in either the normal “view page” (like before) or the “Preview edits” preview ~ this is different that before when the calendar was showing up…

Hostgator couldn’t come up with any answers at to why it wasn’t working other than to suggest the plug in was broken and to contact Event Espresso. Thoughts?


Josh

  • Support Staff

January 23, 2014 at 11:17 am

Hi there,

The test page you linked to leads to a not found page. It may be that it was not published.

The calendar plugin is working as expected on other sites, so this is something that’s unique to your setup. Other active plugins or even the active WP theme may possibly be affecting the calendar. You could try temporarily deactivating all the non-EE plugins temporarily to see if that makes a difference. Also, the theme can be switched by using the theme test drive plugin so the site will look the same to anyone else but you. If you can rule out the theme and other plugins causing a conflict that will help narrow down what’s causing the issue.


sfaber

January 24, 2014 at 7:21 am

sorry about the non publised page
here is the test page


sfaber

January 24, 2014 at 7:28 am

hmmmm so i tried previewing other themes, twenty twelve, twenty thirteen, twenty fourteen…. and the calenders, both original & the test page work.

So… now what?


Tony

  • Support Staff

January 24, 2014 at 7:34 am

Hi,

Have you tried de-activating all other (non-ee) plugins other than Event Espresso and the calendar, then viewing the page?


Seth Shoultes

  • Support Staff

January 24, 2014 at 7:55 am

hmmmm so i tried previewing other themes, twenty twelve, twenty thirteen, twenty fourteen…. and the calenders, both original & the test page work.

So… now what?

Definitely a theme issue then. Maybe the theme is de-registering the required Javascript?


Josh

  • Support Staff

January 24, 2014 at 8:33 am

I already checked this, the required JavaScript is all there, but calendar’s settings are not getting passed into the Calendar script. It may be that the theme is preventing the wp_localize_script from doing its job.

Can you email a copy of the theme to support@eventespresso.com so we can take a look at its code?


sfaber

January 24, 2014 at 8:37 am

I deactivated all the non EE plugins. tested. it didn’t help. i have subsequently restarted them.


sfaber

January 24, 2014 at 8:48 am

not sure how to email theme…
What is the best way to email theme.


Josh

  • Support Staff

January 24, 2014 at 9:04 am

The theme is a folder that contains a bunch of files. This can be zipped up and attached to an email, then sent to support@eventespresso.com.

http://windows.microsoft.com/en-us/windows/compress-uncompress-files-zip-files#1TC=windows-7

http://osxdaily.com/2012/01/10/how-to-zip-files-in-mac-os-x/


sfaber

January 24, 2014 at 11:04 am

email sent with theme attached. hopefully that is what you were asking for.


Josh

  • Support Staff

January 24, 2014 at 1:01 pm

Hi there,

I’m afraid that the theme that you sent doesn’t allow us to set it up for debugging purposes without an API key. This is the first time I have encountered anything like this.

Since this is an issue that’s being caused by the theme, and the theme is locked down to the point that we can’t set it up for testing, the only option I can think of is to contact the theme developer for support. You can let them know that the calendar displays on all the WP twenty* themes, it appears when you’re viewing the page in the previewer, but it doesn’t display on the WP page when this theme is active.


sfaber

January 29, 2014 at 1:44 pm

I forwarded your comments on to the theme creator ProPhoto Photographer Site by NetRivet, Inc. & I’m waiting to see what they have to say…


Josh

  • Support Staff

January 29, 2014 at 2:36 pm

You can also let them know that the issue seems to be related to the wp_localize_script function. The calendar passes its settings through that function. It works on all the other themes out there, and even within this theme’s page preview. But not if you view the page directly.


sfaber

January 29, 2014 at 6:53 pm

response from theme developer.

Benjamin Tennant, Jan 29 04:33 PM:
Scott,
If the plugin developer wants to run the theme for testing, they can either register with your purchase info or (better yet) enable “unregistered test mode” in “ProPhoto” > “Customize” > “Site Settings” > “Misc.”.
See here:
http://www.prophoto.com/support/unregistered-test-mode/
Can you point me to a page where the calendar is embedded and send your WordPress login info? Thanks!
Benjamin Tennant
ProPhoto Blogs Support
Follow us for the latest ProPhoto news and updates:
http://www.twitter.com/prophotoblogs/


Josh

  • Support Staff

January 30, 2014 at 7:21 am

It would be best if they can troubleshoot this since it’s the theme that’s causing the issues, and they should know their way around their theme better than anyone else.


sfaber

January 31, 2014 at 11:05 am

fyi: i’ve sent sent WP & FTP login info to PROPHOTO – theme creator – to see if they can solve the mysteries of the disappearing calendar.


Dean

February 3, 2014 at 1:36 am

Please let us know how you get on with this.


sfaber

February 3, 2014 at 7:41 am

i’m back


sfaber

February 3, 2014 at 8:17 am

no new news. waiting on ProPhoto Themes


Dean

February 4, 2014 at 1:51 am

OK, thanks for keeping us informed, just let us know once you have a response.


sfaber

February 6, 2014 at 2:44 pm

and the answer is???

Jared Henderson, Feb 06 03:08 PM:
Scott,
Ok, thanks for your patience. I think I’ve got this fixed now. I spent a couple hours on this, and never figured exactly why the problem was occurring — I wasn’t able to make a simplified version of the same code produce the same error. I did however determine that the problem went away if I turned of(off?) ProPhoto’s internal post content cache. So, I made a small modification to ProPhoto to make it possible to disable ProPhoto’s post cache functionality, for tricky instances like this where plugins are calling wp_localize_script in an unusual way.
Anyway, it seems to have resolved your problem.
Jared Henderson
ProPhoto Blogs Support
Follow us for the latest ProPhoto news and updates:
http://www.prophoto.com/blog/


Josh

  • Support Staff

February 6, 2014 at 2:58 pm

Hi there,

I’m glad that they got that sorted out. As an aside, the calendar plugin is using the wp_localize_script function in a recommended way:

http://ottopress.com/tag/wp_localize_script/

The support post ‘Calendar Disappeared. 7’ 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