Posted: 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?
|
|
is this the issue? |
|
|
Looks like you are getting a Javascript error: |
|
Do you have the latest version of the calendar installed? |
|
|
2.2.2.p |
|
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. |
|
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. |
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:
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. |
|
|
Security plugin – I assume you are talking about a WP plugin. Where is the best place to hind a PHP Error / Log? there are 2 errors I see when using the dev. tools in chorme: |
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 ); } |
|
|
This is starting to go over my head… So… I called my ISP (HostGator) and asked for their help and they did 2 things. 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? |
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. |
|
|
sorry about the non publised page |
|
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? |
Hi, Have you tried de-activating all other (non-ee) plugins other than Event Espresso and the calendar, then viewing the page? |
|
Definitely a theme issue then. Maybe the theme is de-registering the required Javascript? |
|
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? |
|
|
I deactivated all the non EE plugins. tested. it didn’t help. i have subsequently restarted them. |
|
not sure how to email theme… |
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/ |
|
|
email sent with theme attached. hopefully that is what you were asking for. |
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. |
|
|
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… |
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. |
|
|
response from theme developer. Benjamin Tennant, Jan 29 04:33 PM: |
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. |
|
|
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. |
|
Please let us know how you get on with this. |
|
i’m back |
|
no new news. waiting on ProPhoto Themes |
|
OK, thanks for keeping us informed, just let us know once you have a response. |
|
and the answer is???
|
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: |
|
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.