Posted: September 29, 2014 at 10:12 am
September 29, 2014 at 10:12 am Hello, I can not view the event in the calendar: http://www.lakzaevents.com/calendrier/ |
|
September 29, 2014 at 11:40 am Hi Pom, Can you edit one of the events and tell me the Event and Registration Start/End dates please? Also what do you currently have set for the ‘Date format’ within Dashboard -> Settings -> General? |
|
September 29, 2014 at 12:06 pm Thank you for your reply. I try to change the date format but it doesn’t change anything ? |
|
September 29, 2014 at 12:21 pm Hi, Is there any maintenance on the server? I tried to complete a test registration for the event that you shared and it isn’t getting past the single event registration page. Was Event Espresso 3 installed through WordPress plugins or manually via SFTP or FTP? — |
|
September 29, 2014 at 12:33 pm What is set for the Registration start/end date? |
|
September 29, 2014 at 12:40 pm I’m not sure I understand. There is no maintenance procedure on the server (It should be, because the website is not finish, but I reactivated it in order to let you help me 🙂 Registration start/end date : |
|
Hi Pom, After discussing this with @Sidney I think we’ve found the problem. Can you open up espresso-calendar/espresso-calendar.php, go to lines 583-586: $events[ $cntr ]['start'] = date("c", strtotime($event->start_date . ' ' . event_date_display($event->start_time, get_option('time_format')))); $events[ $cntr ]['end'] = date("c", strtotime($event->end_date . ' ' . event_date_display($event->end_time, get_option('time_format')))); $events[ $cntr ]['reg_start'] = date("c", strtotime($event->registration_start . ' ' . event_date_display($event->registration_startT, get_option('time_format')))); $events[ $cntr ]['reg_end'] = date("c", strtotime($event->registration_end . ' ' . event_date_display($event->registration_endT, get_option('time_format')))); Change those to: $events[ $cntr ]['start'] = date("c", strtotime($event->start_date . ' ' . event_date_display($event->start_time, 'H:i'))); $events[ $cntr ]['end'] = date("c", strtotime($event->end_date . ' ' . event_date_display($event->end_time, 'H:i'))); $events[ $cntr ]['reg_start'] = date("c", strtotime($event->registration_start . ' ' . event_date_display($event->registration_startT, 'H:i'))); $events[ $cntr ]['reg_end'] = date("c", strtotime($event->registration_end . ' ' . event_date_display($event->registration_endT, 'H:i'))); Refresh the calendar page and see if the events are displayed correctly. |
|
Thank you, it works fine now! |
|
It’s the date format your site is using, from this: Date format : 29 septembre 2014 I’m guessing your date format is ‘j F Y’ – http://take.ms/51ZFr strtotime() fails when using this format. So this line: $events[ $cntr ]['start'] = date("c", strtotime($event->start_date . ' ' . event_date_display($event->start_time, get_option('time_format')))); On your site is actually $events[ $cntr ]['start'] = date("c", strtotime($event->start_date . ' ' . event_date_display($event->start_time, 'j F Y'))); Which causes strtotime() to return either nothing or an invalid value, which then confuses the calendar. So the modified code above forces your calendar to use a sepcific format, rather than the one your site uses. |
|
The support post ‘EE3 – Calendar doesn't show events’ 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.