Author Topic: Suggestions for making your Google Calendar sync working  (Read 2120 times)

Rendrix

  • Newbie
  • *
  • Posts: 3
    • View Profile
Suggestions for making your Google Calendar sync working
« on: July 31, 2012, 09:51:36 am »
Hi Peepz

After a few hours of trial and error, i figured out what stopped my Google calendar sync from working. If you have the same problems, here's what solved it for me:

1. Make sure your google calendar is not localized to your local language
I set mine to English UK. Because when you follow the procedure described in the wiki (sorry, forum doesn't allow link to it), Feng actually creates a new calendar in Google Calendar named "Feng Office Calendar". This however seems to fail, if you are using local language.

2. Make sure you config/config.php does not contain cookie path
If present, then remove the line:
define('COOKIE_PATH', '/');
I migrated and therefore had this in my original 1.7x config, which caused problems.

3. Make sure  /cache/log.php is writable (chmod 777)

4. Make sure you configured cron jobs in both feng and on server.
In feng under Administration/Cron Jobs, you have to enable the 2 jobs:
Import Google Calendar:
Export Feng Office:

I set mine to run at 10 minute intervals.

THEN you have to make a cron job on your server. I use cPanel, which has a control panel for this and created a job at 5 minute with the following line:

php /home/myaccount/public_html/feng2/cron.php

NOTE: To trouble shoot i sent output to .txt file the following way:
php /home/myaccount/public_html/feng2/cron.php >cron_log.txt 2>&1.

Furthermore to test that sync is working you can always simply add a few calendar entries in Feng and Google Calendar, and then run /installpath/cron.php

For other ways to acomplish automating jobs, read the Feng wiki (sorry forum doesn't allow me to post the link)
 
Hope it helps.

Big cheers to the Feng team for bringin us Google Calendar Sync. Magnificent to be able to sync calendars properly with mobile devices etc :).

Best R.