Tuesday, 01 December 2015
  35 Replies
  2.6K Visits
0
Votes
Undo
Hi

My web site has been successfully importing from a Google calendar for several years and now all of a sudden it is failing with the above error message. I keep the JEvents component up to date and nothing has changed in the Google calendar. Any suggestions please?

Thanks,

Mike


PHP Version : 5.4.45
MySQL Version : 5.5.46-cll-lve
Server Information : Linux whitestar8.lightning1.net 2.6.32-531.29.2.lve1.3.11.10.el6.x86_64 #1 SMP Fri Jun 12 15:09:02 EDT 2015 x86_64
Fix jQuery? : Yes
Load JEvents Bootstrap CSS? : Yes
Max Input Vars ? : 1000
Club code set? : Yes
User Agent : Mozilla/5.0 (Windows NT 6.3; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0
Joomla : 3.4.5
component_com_jevents : 3.4.4
component_com_jce : 2.5.11
module_mod_jevents_cal : 3.4.4
module_mod_jevents_custom : 3.4.4
module_mod_jevents_filter : 3.4.4
module_mod_jevents_latest : 3.4.4
module_mod_jevents_legend : 3.4.4
module_mod_jevents_switchview : 3.4.4
layout_iconic : 3.4.5
layout_ruthin : 3.2.4
plugin_content_jevents : 3.4.4
plugin_finder_jevents : 3.4.4
plugin_jevents_jevcustomfields : 3.1.23
plugin_jevents_jevfiles : 3.0.13
plugin_search_eventsearch : 3.4.4
plugin_system_gwejson : 3.4.4
Friday, 18 December 2015 11:48
·
#161149
0
Votes
Undo
Thanks to you and the team for all your help this year

Have a great Christmas.

Mike
Friday, 18 December 2015 10:52
·
#161148
0
Votes
Undo
Yes - that is fine to leave the code change.

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

Friday, 18 December 2015 10:48
·
#161147
0
Votes
Undo
Edit the file components/com_jevevents/libraries/iCalImport.php and insert this code at line c. 176 .....


I've just tried this with the same result. Google has changed the link without telling anyone <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->.

Thanks for sorting this for us. Is it OK to leave that code in iCalImport?

Regards

Mike
Thursday, 17 December 2015 13:11
·
#161146
0
Votes
Undo
Hey,

This works for me too. Stupid me, I only checked the calendar ID and secret code before asking on this forum. Google made a change however in the first part or the URLs: https://calendar.google.com/... (new) instead of https://www.google.com/... (old)

They made this change without any notification however. Probably a lot of users are having this problem right now, maybe even without noticing it.

Thanks a lot for your help

Cheers

Stefan
Thursday, 17 December 2015 12:53
·
#161145
0
Votes
Undo
Hi,
thanks Carcarm and Geraint. I answer here:

Carcam: My host say that curl is enabled for php.

Geraint: I've made the changes in code, and the result of reloading is the attach screenshoot.
[attachment=0:o182fzz7]<!-- ia0 -->moved.jpg<!-- ia0 -->[/attachment:o182fzz7]

If you click in the word "here", you go to this url:

https://calendar.google.com/calendar/ic ... /basic.ics

this url is different from the old one:

http://patrimoni.peu-uji.es/index.php?o ... als.reload

Now I think it's ok. Now, with the new url all is working. I don't know why this url has changed. Perhaps my customer has made anything, or google?

This has been difficult, I think, because if you go to old url with navigator, google redirects you to the new.
Thank you very much for your help!
Thursday, 17 December 2015 08:39
·
#161144
0
Votes
Undo
Edit the file components/com_jevevents/libraries/iCalImport.php and insert this code at line c. 176
                                if (JFactory::getUser()->get('isRoot') && JFactory::getApplication()->isAdmin()) {
$config = JFactory::getConfig();
$debug = (boolean) $config->get('debug');
if ($debug){
echo "Unable to fetch calendar data<br/>";
echo "Raw Data is ".$this->rawData;
exit();
}
return false;
}

just before
JError::raiseWarning(0, 'Not a valid VCALENDAR data file: ' . $this->srcURL);

Then enable debug mode in Joomla and try reloading the calendar again in the backend of JEvents when logged in as a super user.
What does it give you?

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

Wednesday, 16 December 2015 16:18
·
#161143
0
Votes
Undo
Can you please check with your host if they offer curl support?
Wednesday, 16 December 2015 12:06
·
#161142
0
Votes
Undo
Thanks Geraint, but it doesn't work.

I'm attaching two screenshots, perhaps it's easier for you...
Wednesday, 16 December 2015 10:40
·
#161141
0
Votes
Undo
I'm wondering if its a user agent issue on your server for the data request.

Can you try adding this code
curl_setopt($ch, CURLOPT_USERAGENT, "Jevents.net");

at line c. 90 of components/com_jevents/libraries/iCalImport.php just after
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);


Does that help?

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

Wednesday, 16 December 2015 08:37
·
#161140
0
Votes
Undo
I've asked to them. They say that haven't made any changes.

I've the same problem in another web (same server).
Tuesday, 15 December 2015 13:26
·
#161139
0
Votes
Undo
Hi joomla1597,
both, downloading the file and using the URL worked for me in my development box. Can you please check with your Hosting if they have made any changes on last couple of weeks?
Tuesday, 15 December 2015 13:01
·
#161138
0
Votes
Undo
Tuesday, 15 December 2015 11:37
·
#161137
0
Votes
Undo
Hi joomla1597,
can you please show us the VCalendar file so that we can see the format?
Tuesday, 15 December 2015 01:04
·
#161136
0
Votes
Undo

PHP Version : 5.5.23
MySQL Version : 5.5.42-cll
Server Information : Linux cp125.webempresa.eu 2.6.32-531.29.2.lve1.3.11.1.el6.x86_64 #1 SMP Thu Dec 18 06:49:17 EST 2014 x86_64
Fix jQuery? : Yes
Load JEvents Bootstrap CSS? : Yes
Max Input Vars ? : 1000
Club code set? : No
User Agent : Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:42.0) Gecko/20100101 Firefox/42.0
Joomla : 3.4.6
component_com_jevents : 3.4.4
component_com_jce : 2.3.2.4
module_mod_jevents_cal : 3.4.4
module_mod_jevents_custom : 3.4.4
module_mod_jevents_filter : 3.4.4
module_mod_jevents_latest : 3.4.4
module_mod_jevents_legend : 3.4.4
module_mod_jevents_switchview : 3.4.4
plugin_content_jevents : 3.4.4
plugin_finder_jevents : 3.4.4 (not enabled)
plugin_search_eventsearch : 3.4.4
plugin_system_gwejson : 3.4.4

I've just updated joomla, but the error stills here
Tuesday, 15 December 2015 00:55
·
#161135
0
Votes
Undo

PHP Version : 5.5.23
MySQL Version : 5.5.42-cll
Server Information : Linux cp125.webempresa.eu 2.6.32-531.29.2.lve1.3.11.1.el6.x86_64 #1 SMP Thu Dec 18 06:49:17 EST 2014 x86_64
Fix jQuery? : Yes
Load JEvents Bootstrap CSS? : Yes
Max Input Vars ? : 1000
Club code set? : No
User Agent : Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:42.0) Gecko/20100101 Firefox/42.0
Joomla : 3.4.1
component_com_jevents : 3.4.4
component_com_jce : 2.3.2.4
module_mod_jevents_cal : 3.4.4
module_mod_jevents_custom : 3.4.4
module_mod_jevents_filter : 3.4.4
module_mod_jevents_latest : 3.4.4
module_mod_jevents_legend : 3.4.4
module_mod_jevents_switchview : 3.4.4
plugin_content_jevents : 3.4.4
plugin_finder_jevents : 3.4.4 (not enabled)
plugin_search_eventsearch : 3.4.4
plugin_system_gwejson : 3.4.4


Same problem. Jevents has imported events from a google calendar for a long time, but a few weeks ago it doesn't work. I have this msg:

Not a valid VCALENDAR data file
Monday, 14 December 2015 10:03
·
#161134
0
Votes
Undo
Thank you. I will check it with my hoster. It's not a development machine, but a hosting service for Scouting groups.
Friday, 11 December 2015 17:30
·
#161133
0
Votes
Undo
They imported fine to my server

Is this your desktop development machine? The version of PHP, MySQL and Linux are very old (all 3 years old) - I wonder if this could be part of your problem?

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

Friday, 11 December 2015 12:38
·
#161132
0
Votes
Undo
They are not that private ;)

https://calendar.google.com/calendar/ic ... /basic.ics

https://calendar.google.com/calendar/ic ... /basic.ics

Jevents support information

PHP Version : 5.3.29-pl0-gentoo
MySQL Version : 5.1.67-log
Server Information : Linux leeuwarden 3.2.12-gentoo #2 SMP Mon Apr 2 09:56:27 CEST 2012 x86_64
Fix jQuery? : Yes
Load JEvents Bootstrap CSS? : Yes
Max Input Vars ? : 1000
Club code set? : No
User Agent : Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.80 Safari/537.36
Joomla : 3.4.5
component_com_jevents : 3.4.4
component_com_jce : 2.5.11
module_mod_jevents_cal : 3.4.4
module_mod_jevents_custom : 3.4.4
module_mod_jevents_filter : 3.4.4
module_mod_jevents_latest : 3.4.4
module_mod_jevents_legend : 3.4.4
module_mod_jevents_switchview : 3.4.4
plugin_content_jevents : 3.4.4
plugin_finder_jevents : 3.4.4 (not enabled)
plugin_search_eventsearch : 3.4.4
plugin_system_gwejson : 3.4.4
Friday, 11 December 2015 09:16
·
#161131
0
Votes
Undo
I had no problems importing either of these files but to test it properly from Google I will need the google URL. If the events are private you can send the URL via PM.

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

Thursday, 10 December 2015 17:27
·
#161130
0
Votes
Undo
For example this file (zipped it because I was not allowed to upload a file with the .ics extension). Thanks for your quick response Geraint!

EDIT: added smaller file with less events. Maybe easier to find the problem? [attachment=0:2xey35r9]<!-- ia0 -->basic (5).rar<!-- ia0 -->[/attachment:2xey35r9]
I think there is a problem due to repeating events, but I'm not really sure about that.
  • Page :
  • 1
  • 2
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.