Posted: January 29, 2014 at 5:32 am
|
Hi everyone, The downloaded iCal file from the registration page, contains the right address but never the right date and time. It always has 1/1/1970 at 2:00am. Any ideas? |
|
Hi Yannis, What date format are you using in the WordPress General settings and also in the event itself? |
|
It’s european date (date, month, year)(in Greek “29 ?????????? 2014”). What do you mean when you say “in the event itself”. I didn’t know that there are specific date related settings in events. Anyway, it currently reads “2014-02-07”. I hope I answered your question… |
|
When you hover over the iCal link, can you see the startyear, startmonth, startday, and starttime in the request? Are they correct there? |
|
|
|
|
|
Hi, Thanks for the link, that helped. Can you screenshot the date settings in Settings > General and also the registration and event dates from this event please http://www.diadima.gr/event-registration/?ee=4 That will give us a clearer indication of the actual issue. |
|
Hi Dean, I want to thank you for your efforts! Regards, |
|
Hi Dean, I want to thank you for your efforts! Regards, |
That is a really strange issue. Everything looks correct, but it seems like the dates are getting removed from ics link. Can you please post a list of installed plugins? |
|
|
Hi Seth, Installed plugins list below. I just want to mention that I have excluded event espresso pages from super cache plugin. Looking forward for your answer. Yannis Contact Form 7, Easy FancyBox, Envato WordPress Toolkit, Event Espresso, Event Espresso – Calendar, Event Espresso – MailChimp Integration, Event Espresso – Members Addon, Multi Events Registration addon for Event Espresso., Event Espresso – Permissions, Event Espresso – Recurring Events, Recurring Events addon for Event Espresso., Event Espresso – Social Coupons, Event Espresso – Social Media, Event Espresso – Ticketing, Ticketing system for Event Espresso, Event Espresso API Plugin, A JSON/XML API for Event Espresso, Jetpack by WordPress.com, LayerSlider WP, Revolution Slider, WordPress Backup to Dropbox, WordPress Importer, WordPress SEO, wp-Typography, WP Super Cache, Yet Another Related Posts Plugin, Zopim Widget. |
|
do you know if you have php version greater that 5.3.0? Look under EE->System Status->Server Environment. |
|
5.3.28 |
|
Excellent, then this code should work. |
|
It throughs this error: |
|
That’s really strange. Looks like it’s not creating the DateTime object. Can you try this: function espresso_ical_prepare_by_meta($meta, $title = '', $image = '', $link_only = FALSE) { var_dump($meta['start_date']); var_dump($meta['start_time']); } You can just put it in, grab the output it generates where the ical link was, and then take it out. It should give us a clue about why it is not creating the DateTime object. |
|
Hi everyone, I’ve been super busy lately, so I didn’t have the time to deal with this problem, but I have to get back to this in order to finally resolve it. I put the code above in the custom_functions.php file and it throughs the error: |
|
… and I tried to use the code you provided me with, from the previous post page and now it throughs the error: |
|
That’s really strange. var_dump has been a core php function since php 4. Can you try it with print_r instead of var_dump? |
|
Fatal error: Call to undefined function ?print_r() in /home/diadima8/public_html/yannis/wp-content/uploads/espresso/custom_functions.php on line 16 |
|
Please ignore my previous post. Update coming… |
|
So… I stopped using notepad++ for code editing this particular file because I noticed that a questionmark existed in my post above and both var_dump and print_r worked. var_dump output: Regards, |
|
… the questionmarks above is the Greek word for “January”. |
|
I see what’s going on now. The date is getting run through date format AND i18n before it gets added to the meta data that gets passed to the iCal function. Can you make a copy of event_list.php and registration_page.php from plugins/event-espresso/templates into uploads/espresso/templates? In event_list.php you want to change these two lines (375 and 376 in the copy I’m looking at): 'start_date' => event_date_display($start_date, get_option('date_format')), 'end_date' => event_date_display($end_date, get_option('date_format')), to: 'start_date' => date($start_date, get_option('date_format')), 'end_date' => date($end_date, get_option('date_format')), similarly in registration_page.php (lines 213 and 214) from: 'start_date' => event_espresso_no_format_date($start_date, get_option('date_format')), 'end_date' => event_date_display($end_date, get_option('date_format')), to: 'start_date' => date($start_date, get_option('date_format')), 'end_date' => date($end_date, get_option('date_format')), |
|
Warning: date() expects parameter 2 to be long, string given in /home/diadima8/public_html/yannis/wp-content/uploads/espresso/templates/event_list.php on line 375 Warning: include(event_list_display.php) [function.include]: failed to open stream: No such file or directory in /home/diadima8/public_html/yannis/wp-content/uploads/espresso/templates/event_list.php on line 433 Warning: include() [function.include]: Failed opening ‘event_list_display.php’ for inclusion (include_path=’.:/usr/local/php53/pear’) in /home/diadima8/public_html/yannis/wp-content/uploads/espresso/templates/event_list.php on line 433 |
|
It may be easier for us to debug it in place on your server, rather than going back and forth like this. Can you fill out the form here and be sure to include ftp (or ssh) credentials for debugging purposes. While we cannot guarantee priority without the purchase of a support token, I will certainly take a look. |
|
Hi, I’ve run into the same issue. Could you please update this thread with how you’ve fixed the bug? |
|
Sorry, I never got login credentials from Yanis to take a look. Have you done any of the debugging steps we went through? |
|
Hey, I’m sorry for the late reply, but I decided to stop working on debugging this. After Sidney’s comment above I thought that it would be inappropriate to spend his time for nothing. I decided to upgrade to Event Espresso 4 in the 7th of March. Good luck! I will let you know if the problem does not persist in v4. |
Thanks for the update! |
|
The support post ‘iCal file does not contain the right information’ 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.