Support

Home Forums Event Espresso Premium Calendar Day View "Disappears"

Calendar Day View "Disappears"

Posted: February 18, 2015 at 5:13 am


sdavea

February 18, 2015 at 5:13 am

I have had this problem for weeks now and I can’t figure out how to solve it.

On this page: http://rtf.123abc.co.nz/calendar/

If you click on the day view button it displays for half a second and then suddenly disappears again. If you click on the month and week view the content is fine.

Any ideas anyone?

Thanks in advanced

Wordpress 4.1
EE 4.4.8
Calendar Plug-in 4.3 (recently reinstalled)


Tony

  • Support Staff

February 18, 2015 at 6:27 am

Hi,

Which browser are you using?

I seen no issue here with Chrome, Firefox and IE


sdavea

February 18, 2015 at 1:52 pm

OK I’ve finally worked out what the problem is but I need help with the solution. This happens on every PC and browser I have and every time I ask you for support (or thinking that a new version of EE4 will solve it) I keep getting the same answer: “We can’t replicate the problem.” So I changed the timezone on my PC to the US (Pacific Time) and the problem goes away. I am based in New Zealand so if you change your time zone to GMT-12 you can see the problem. I’ll look at adding a video to this thread so you can also see it. Any ideas on how to fix it?


sdavea

February 18, 2015 at 1:53 pm

Also to clarify what I mean: ALL PCs that I’ve tested in New Zealand (where I am based) have this problem, not just my ones.


sdavea

February 18, 2015 at 3:04 pm

Here is a video demonstrating the behaviour: https://www.youtube.com/watch?v=x4f10YfYis4&feature=youtu.be


Josh

  • Support Staff

February 18, 2015 at 3:25 pm

Hi there,

I changed my Mac’s time settings to use UTC +, and I can see the issue on your site. However, I’m not seeing it over on our demo site here:

http://demoee.org/events-calendar/

Can you check the day view on the above link?

Do you have a testing server set up where you can test this out with only EE and the calendar active along with the default WordPress theme?


sdavea

February 19, 2015 at 4:25 pm

Yes I can confirm: brand new WordPress install (4.1.1) with latest release of Event Espresso 4, Calendar and Events table.

No changes whatsoever to the codebase – using Twenty Fifteen theme – no extra plug-ins. I get *exactly* the same behaviour.

It seems to me that this is a javascript issue with the Calendar .js file. Any ideas on a fix?


sdavea

February 19, 2015 at 4:36 pm

I can also confirm that it doesn’t matter if I create the timezone with the server set to US or NZ timezones, I can see it fine when the client PC is using the US timezone, but not when I set the client PC to NZ timezone.


sdavea

February 19, 2015 at 4:43 pm

Finally, it seems to not work for Australian timezones, and most of Asia. When I set the timezone to east India however, it starts to work. Strangely enough I can see the day views on demoee.org – what time zone is this server based in?


Josh

  • Support Staff

February 19, 2015 at 5:43 pm

I don’t know. Are you sure it’s not something unique to your website, like the theme or another plugin? The reason I ask is because some WordPress plugins will actually change the default timezone. WordPress expects the default timezone to be UTC 0.


sdavea

February 19, 2015 at 7:08 pm

NO this is a blank WordPress install with no other plugins.

I have just changed the timezone in WordPress to GMT (which is 12 hours behind New Zealand) and now I can see all the dates in the calendar (albeit 12 hours behind).

I do not understand why I am the only one with this problem as I’m not doing anything unusual here. Surely someone in Asia Pacific has come across this problem before?

Is there a workaround that you can think of?


sdavea

February 19, 2015 at 7:40 pm

If I create a new event AFTER changing the timezone to UTC+0, this does not fix the problem. So even though you say “WordPress expects the default timezone to be UTC 0”, I have the exact same behaviour. The calendar day view simply does not display when the client PC has a time zone that is GMT-12/13.


sdavea

February 19, 2015 at 8:16 pm

OK after spending hours and hours on this, I can confirm exactly what the bug is.

I can replicate it both on my PC and on demoee.org.

If the client PC has a timezone set to New Zealand then any appointments that are past midday (12:00) will NOT display in the day-view (you can confirm this yourself by setting the timezone to New Zealand time, then go to demoee.org; you can see the appointments in the morning in the day view but ones after midday you cannot see in day view, only month and sometimes weekly view).

When you chance your local time to a US timezone, you can see everything.

Do you have any ideas on how to fix so that I can implement this before your next major release/bug fix? Thanks


Josh

  • Support Staff

February 20, 2015 at 7:46 am

Hi there,

Please try installing this version of the calendar in the meantime:

https://www.dropbox.com/s/ws8cfxx2bcpfzyd/ee4-calendar_c72b7a2065a1.zip?dl=0


sdavea

February 20, 2015 at 3:11 pm

Hi Josh – I see you’ve given me a previous version (3.1.0). This version wasn’t working completely either, although it works slightly better than 3.2.1 but not for what I want to do. Let me explain:

If you want to show the calendar *first in day view* (which is what I want to do), it will only show events before midday. The ‘workaround’ in v3.1.0 (which isn’t acceptable to me), is that if you show the month or week view first, then it will show all the events correctly in the day view afterwards.

What I would like to do is show ‘What’s happening today’ by showing a calendar of today only (basicDay).

I imagine that other countries in will be getting this same issue – not just little far-flung New Zealand – it will just be for varying levels of degree depending on their timezone. I imagine it might not have come up in your testing because of where you’re located (e.g. everything works perfectly if I change the timezone on my client PC to US time).

By the way, I logged this issue about 3.5 months ago but didn’t get a satisfactory result then either: https://eventespresso.com/topic/day-views-both-agenda-and-basic-dont-show-events-if-day-views-are-default/

Thanks


Josh

  • Support Staff

February 20, 2015 at 3:34 pm

You’re welcome, and I’m sorry that what I sent you was unacceptable. We will need some time before we can come up with a fix.


Josh

  • Support Staff

February 24, 2015 at 9:25 am

Hi Shaun,

Here is a temporary fix you can add to your site. Instructions you can follow to implement follow:

1) Update to the current calendar plugin.
2) Install this plugin. It will swap out the standard espresso-calendar.js file with one that removes the buggy “Events per day” feature.

The support post ‘Calendar Day View "Disappears"’ 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