By mdwstmusik on Monday, 27 April 2015
Replies 3
Likes 0
Views 1.6K
Votes 0
Good Day,

I have been working on an upgrade to a site that I've been using JEvents on for some time.
The calendar feeds I'm attempting to add to the new site have been validated using an on-line iCalendar Validator, and been working flawlessly on the old site for some time.

Works

PHP Version : 5.4.38
Joomla : 2.5.17
component_com_jevents : 3.1.7
module_mod_jevents_cal : 3.1.7
module_mod_jevents_filter : 3.1.7
module_mod_jevents_latest : 3.1.7
module_mod_jevents_legend : 3.1.7
module_mod_jevents_switchview : 3.1.7
plugin_finder_jevents : 3.1.7
plugin_search_eventsearch : 3.1.7


However, on the new site with version 3.2, those same feeds are producing an Invalid VCalendar error when I attempt to add them.

Produces Not a Valid VCalendar Error

PHP Version : 5.5.22
MySQL Version : 5.0.95
Joomla : 3.4.1
component_com_jevents : 3.2.12
module_mod_jevents_cal : 3.2.12
module_mod_jevents_custom : 3.2.12
module_mod_jevents_filter : 3.2.12
module_mod_jevents_latest : 3.2.12
module_mod_jevents_legend : 3.2.12
module_mod_jevents_switchview : 3.2.12
plugin_content_jevents : 3.2.12
plugin_finder_jevents : 3.2.12
plugin_search_eventsearch : 3.2.12


After much trial and error, I narrowed the issue down to non-printable characters that had been pasted into the event creation form in the application that's providing the feed. Since I have little control over the input of the feed data, is there a way to modify the behavior of v3.2 to ignore those non-printable characters? Or, are there plans to address this in the next release?

Thank you for your time.
Hello,

Technically it is possible.. but we support quote printable for exporting so should support it for importing.

Can you provide a sample of your ical?

Thanks
Tony
·
Monday, 27 April 2015 22:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you for such a quick response.

I did manage to filter the offending characters out using a script that I wrote read the feed, then serve a "clean" feed to JEvents...kind of a hack, but it's working. My concern is, I've only stripped out those characters that I know are causing a problem. I suspect others will pop up in the future and I won't know until the JEvents calendar stops working.
I uploaded an ics, that I know causes JEvents to throw the invalid VCalendar error here:

rac.iaccrr.org/training_calendar/cca_training_calendar_original.ics
(My account won't allow me to post links)

I believe you will find the offending characters here:

cat -v cca_training_calendar_original.ics | grep -n M-
96:SUMMARY:No more PRAISEM-^EENCOURAGE to change behavior^M
1026:SUMMARY:Day in the life of a Toddler: Filling\, dumping\, and climbingM-^EOh My!^M
1401:SUMMARY:What do I do with all these papers? Home Licensing Support M- M- ^M
1671:SUMMARY:No more PRAISEM-^EENCOURAGE to change behavior^M
3081:SUMMARY:Ask the Experts!M- Home Licensing 101^M
3651:SUMMARY:Understanding and Nurturing a ChildM-^Rs Fascination with Superheroes (2.25 hrs)^M
4086:SUMMARY:No more PRAISEM-^EENCOURAGE to change behavior^M
4206:SUMMARY:Day in the life of a Toddler: Filling\, dumping\, and climbingM-^EOh My!^M
4386:SUMMARY:Ask the Experts!M- Center Licensing 101 ^M
4416:SUMMARY:Ask the Experts!M- Center Licensing 101 ^M
4971:SUMMARY:Ask the Experts!M- Unlicensed Ministry 101 ^M

Regards,
Jeff
·
Tuesday, 28 April 2015 16:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Jeff,

This ICS isn't saying anything about quote-printable so we won't format it as quote-printable.

I imported that ics file perfectly...

Thanks
Tony
·
Tuesday, 28 April 2015 16:24
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post