problem with Google iCal Sync through cronjob
JEvents 2.0 was launched over 2 years ago and the latest stable version is version 2.2 which will run on Joomla 1.5 and Joomla 2.5. JEvents 1.5 is therefore no longer actively supported - you should upgrade to JEvents 2.2+ as soon as possible.
Forum rules
Please include as much detail in any test or bug reports for JEvents 1.5 as possible.
First of all, check if you are running the latest available version of Joomla! and JEvents. Posts for issues, where both systems are not updated, will be ignored.
We need the following at least:
* PHP version (e.g. 5.2.5). Note: Support for PHP4 is discontinued.
* Joomla! version
* JEvents version
* Web Server software (Apache or IIS with version number if possible)
* Server Operating system (e.g. Linux, Windows, Solaris, Darwin ...)
* Database version
* memory_limit from your phpinfo
* Web browser and version
Please enable error reporting and include any error messages in your posting. You do this via the Joomla Configuration - set "error reporting" to "maximum" on the Server tab.
Finally, please describe the steps required to recreate the problem and also please enable error reporting and give us any error messages generated.
Please include as much detail in any test or bug reports for JEvents 1.5 as possible.
First of all, check if you are running the latest available version of Joomla! and JEvents. Posts for issues, where both systems are not updated, will be ignored.
We need the following at least:
* PHP version (e.g. 5.2.5). Note: Support for PHP4 is discontinued.
* Joomla! version
* JEvents version
* Web Server software (Apache or IIS with version number if possible)
* Server Operating system (e.g. Linux, Windows, Solaris, Darwin ...)
* Database version
* memory_limit from your phpinfo
* Web browser and version
Please enable error reporting and include any error messages in your posting. You do this via the Joomla Configuration - set "error reporting" to "maximum" on the Server tab.
Finally, please describe the steps required to recreate the problem and also please enable error reporting and give us any error messages generated.
problem with Google iCal Sync through cronjob
by snoeby » Wed Dec 14, 2011 2:18 pm
Hi there
I'm trying to sync various Google Calendars with JEvents. Whilst everything works fine with a manual "refresh" I tried to get the sync working through a cronjob on our host.
Here's what I did:
1) Get the iCal Link of google
2) In JEvents link Google Kalender with iCal Link... works well
3) tested manual refresh, works well
4) created a cronjob with the following content:
/usr/local/bin/curl -o --url http://www.URL_To_Our_Website.COM/index ... als.reload > /dev/null 2>&1
The cronjob seems to run, but the calendar won't update... here's the cronjob output:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
100 106k 0 106k 0 0 58669 0 --:--:-- 0:00:01 --:--:-- 59319
so apparently something is running... but what... and why is the calendar not being updated?
Best regards!
I'm trying to sync various Google Calendars with JEvents. Whilst everything works fine with a manual "refresh" I tried to get the sync working through a cronjob on our host.
Here's what I did:
1) Get the iCal Link of google
2) In JEvents link Google Kalender with iCal Link... works well
3) tested manual refresh, works well
4) created a cronjob with the following content:
/usr/local/bin/curl -o --url http://www.URL_To_Our_Website.COM/index ... als.reload > /dev/null 2>&1
The cronjob seems to run, but the calendar won't update... here's the cronjob output:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
100 106k 0 106k 0 0 58669 0 --:--:-- 0:00:01 --:--:-- 59319
so apparently something is running... but what... and why is the calendar not being updated?
Best regards!
-

snoeby - Gold Members
- Posts: 10
- Joined: Sun Sep 20, 2009 8:30 am
Re: problem with Google iCal Sync through cronjob
by carcam » Thu Dec 15, 2011 8:28 am
Why are you using -o in the curl command without the output file where to write the results? Just change add a filename after the -o option to see what are you getting with the curl command or simply replace it with -s and check if it works.
-
carcam
- Contributor
- Posts: 3391
- Joined: Wed Aug 06, 2008 7:50 pm
- Location: Córdoba
Re: problem with Google iCal Sync through cronjob
by snoeby » Fri Jan 13, 2012 12:34 pm
Hi carcam
I tried replacing in -o with -s ... the result is that it still doesn't work
But the cron deamon is sending me an email containing the HTML content of our website with the calendar view..
Any ideas?
I tried replacing in -o with -s ... the result is that it still doesn't work
But the cron deamon is sending me an email containing the HTML content of our website with the calendar view..
Any ideas?
-

snoeby - Gold Members
- Posts: 10
- Joined: Sun Sep 20, 2009 8:30 am
Re: problem with Google iCal Sync through cronjob
by Geraint » Fri Jan 13, 2012 12:40 pm
did you enable anonymous refresh of the calendar in JEvents backend?
------------
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!
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!
-

Geraint - Posts: 30507
- Joined: Fri Feb 15, 2008 6:14 pm
Re: problem with Google iCal Sync through cronjob
by snoeby » Tue Jan 17, 2012 12:45 pm
yes, the calendar is public, anonymous refresh is allowed (thus I know the URL to configure the cronjob) and even calendar viewing is public... 
-

snoeby - Gold Members
- Posts: 10
- Joined: Sun Sep 20, 2009 8:30 am
Re: problem with Google iCal Sync through cronjob
by Geraint » Tue Jan 17, 2012 2:04 pm
what if you run the anon refresh URL in a webbrowser?
------------
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!
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!
-

Geraint - Posts: 30507
- Joined: Fri Feb 15, 2008 6:14 pm
Re: problem with Google iCal Sync through cronjob
by snoeby » Fri Jan 20, 2012 12:40 pm
In that case (running the anon refresh URL in a browser) I get a 403 error (not allowed to view the resource)
-

snoeby - Gold Members
- Posts: 10
- Joined: Sun Sep 20, 2009 8:30 am
Re: problem with Google iCal Sync through cronjob
by snoeby » Fri Jan 20, 2012 1:35 pm
as an add-on to the message above, just to be clear:
when I enter the anon url directly in a browser the html content of the 403-error message is NOT the same as when replacing the curl -o option with -s
using curl -s does NOT get a 403-error message....
hmm??
when I enter the anon url directly in a browser the html content of the 403-error message is NOT the same as when replacing the curl -o option with -s
using curl -s does NOT get a 403-error message....
hmm??
-

snoeby - Gold Members
- Posts: 10
- Joined: Sun Sep 20, 2009 8:30 am
Re: problem with Google iCal Sync through cronjob
by Geraint » Fri Jan 20, 2012 2:05 pm
If you get a 403 in the webbrowser then this is what google will get.
What does the URL look like?
What does the URL look like?
------------
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!
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!
-

Geraint - Posts: 30507
- Joined: Fri Feb 15, 2008 6:14 pm
Re: problem with Google iCal Sync through cronjob
by snoeby » Fri Jan 20, 2012 7:02 pm
the URL is: http://www.snowboardregion-nordwest.ch/ ... als.reload
and the cronjob commands I've tried are:
/usr/local/bin/curl -o --url http://www.snowboardregion-nordwest.ch/ ... als.reload
> /dev/null 2>&1
/usr/local/bin/curl -s --url http://www.snowboardregion-nordwest.ch/ ... als.reload
> /dev/null 2>&1
and the cronjob commands I've tried are:
/usr/local/bin/curl -o --url http://www.snowboardregion-nordwest.ch/ ... als.reload
> /dev/null 2>&1
/usr/local/bin/curl -s --url http://www.snowboardregion-nordwest.ch/ ... als.reload
> /dev/null 2>&1
-

snoeby - Gold Members
- Posts: 10
- Joined: Sun Sep 20, 2009 8:30 am
25 posts
• Page 1 of 3 • 1, 2, 3
Return to JEvents 1.5 (No longer actively supported)
Who is online
Users browsing this forum: Google [Bot]

