Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error due to special characters #110

Closed
patrickbuff opened this issue Mar 20, 2017 · 1 comment
Closed

Error due to special characters #110

patrickbuff opened this issue Mar 20, 2017 · 1 comment

Comments

@patrickbuff
Copy link

patrickbuff commented Mar 20, 2017

Since one week I become this error in my ICS-Parser.

Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (20170423T120000DESCRIPTION:Paulus mit Beat Müller\nKalender:Sonntagmorgen - [ws][predigt]Beat Müller / [bethel] / [notizen]Sunnestrahle, Rägetröpfli, XfürKids,X4Teens[/notizen][/ws]) at position 15 (D): The timezone could not be found in the database in /home/httpd/vhosts/chrischonazuerich.ch/httpdocs/wp/wp-content/plugins/calendar-sync/ICal.php:494 Stack trace: #0 /home/httpd/vhosts/chrischonazuerich.ch/httpdocs/wp/wp-content/plugins/calendar-sync/ICal.php(494): DateTime->__construct('20170423T120000...') #1 /home/httpd/vhosts/chrischonazuerich.ch/httpdocs/wp/wp-content/plugins/calendar-sync/ICal.php(1112): ICal\ICal->iCalDateWithTimeZone(Array, 'DTEND') #2 /home/httpd/vhosts/chrischonazuerich.ch/httpdocs/wp/wp-content/plugins/calendar-sync/ICal.php(259): ICal\ICal->processDateConversions() #3 /home/httpd/vhosts/chrischonazuerich.ch/httpdocs/wp/wp-content/plugins/calendar-sync/ICal.php(137): ICal\ICal->initLines(Array) #4 /home/ht in /home/httpd/vhosts/chrischonazuerich.ch/httpdocs/wp/wp-content/plugins/calendar-sync/ICal.php on line 494

I have attached the ICS-File on which i refer.
On the server works PHP 7.0.11 with the following settings: http://chrischonazuerich.ch/srv-info/
I have also downloaded the newest version of the ICS-Parser from https://github.com/u01jmg3/ics-parser.

Do you see the point of error?
Thank you for your help and your answer.

ChurchTools.ics.zip

@u01jmg3 u01jmg3 changed the title Error due to TimeZone Error due to special characters Mar 20, 2017
@u01jmg3
Copy link
Owner

u01jmg3 commented Mar 20, 2017

  • There are 2 problems with the iCal you are trying to parse:
    1. Event descriptions contain special characters - specifically these events:
      • Paulus mit Beat Müller...
      • Eine Veranstaltung des...
    2. There is an event with double quotes (" ") in the description spanning multiple lines which the parser fundamentally cannot understand:
      • ... mit Vreni Theobald zum Thema...
  • These errors lie with the data and not the parser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants