Workaround to fix calendar sync problems

Discussions about the Calendar Tool at lds.org. Questions about the calendar on the classic site should be posted in the LUWS forum.
User avatar
samliddicott
Member
Posts: 77
Joined: Wed May 20, 2009 8:48 am
Location: England

Postby samliddicott » Fri Aug 12, 2011 12:12 am

I shall probably be closing down my server in the next couple of weeks, and so the work-around will no longer be operational.

Would anyone else (or perhaps the church?) host the workaround script? It is a single php script that makes use of /tmp to store log files to help users self-debug any failures they experience.

There is less than 2000 users making use of it.

I suppose whoever hosts it could insert advertising into the calendars :-) Maybe the guys running ldsaudio would try? Anyone have a contact there we could put it to?

EarloftheWest
New Member
Posts: 30
Joined: Wed Jan 26, 2011 11:55 am

Postby EarloftheWest » Sun Aug 14, 2011 10:53 am

Sam,

Thanks for all you do. This was a great work around.
Has anyone imported this into something like Hotmail and then synced the Hotmail account with the Google account?
Thanks.

silid
Member
Posts: 70
Joined: Wed Jan 31, 2007 8:54 am
Location: United Kingdom

Postby silid » Tue Aug 16, 2011 6:05 am

I'll host it.

Si.

User avatar
samliddicott
Member
Posts: 77
Joined: Wed May 20, 2009 8:48 am
Location: England

Postby samliddicott » Mon Aug 29, 2011 2:40 am

Hah - good man. I've got mormonite.com that you can host it under.

User avatar
TimRiker
Community Administrator
Posts: 192
Joined: Sun Dec 19, 2010 5:16 pm
Location: USA, Utah
Contact:

Postby TimRiker » Tue Aug 30, 2011 8:42 am

I don't know what the status on this is... I've added your script to the phpstack project. The test site for phpstack is here:

https://cdev.lds.org/phpstack/
https://cdev.lds.org/phpstack/ldscalendar/

I hope this is ok with you. Anyone here interested can join the phpstack project to work on this and other php scripts that often get reused on other projects.

I added proxy support to get to the lds.org original page from the community DMZ where this server is hosted. I cleaned up some warnings. I think it's working now. Testers welcome.

[B]samliddicott[/B] I added you as a developer on the phpstack project. There's no attribution in the script. Feel free to add your contact info. I would like to add a church copyright as well if you're ok with that.

josephcreed
New Member
Posts: 23
Joined: Sat Apr 16, 2011 12:53 pm
Location: Plano, TX

Postby josephcreed » Tue Aug 30, 2011 11:27 am

I tried using the following link on my Google Calendar:

https://cdev.lds.org/phpstack/ldscalendar.php/xxxxxxxxxxxxxxxxxxx where xxxxxxxxxxxxxxxxxxx is my calendar ID.

and I get this error in:

Settings Error
Could not fetch the url because robots.txt prevents us from crawling the url.


I also noticed that when trying to test my calendar id on the page https://cdev.lds.org/phpstack/ldscalendar/ the script removes the first number, so for my test I added a 0 in front and then re-performed the test.

User avatar
TimRiker
Community Administrator
Posts: 192
Joined: Sun Dec 19, 2010 5:16 pm
Location: USA, Utah
Contact:

Postby TimRiker » Tue Aug 30, 2011 12:45 pm

hmmm...

ok, modified robots.txt so phpstack is not included.

I do not see it removing any numbers from the calendar id. I'm not including ".php" in my url, but I've tried it with that included and I can still get an ical file.

josephcreed
New Member
Posts: 23
Joined: Sat Apr 16, 2011 12:53 pm
Location: Plano, TX

Postby josephcreed » Tue Aug 30, 2011 1:05 pm

Thank you.

Google let me add the calendar without error, it did not immediately sync. I will give it an hour or two and report back.

TimRiker wrote:I do not see it removing any numbers from the calendar id


I put my calendar ID into the text field on the page (https://cdev.lds.org/phpstack/ldscalendar/) and when I press the button "Test My ID", the first number disappears and the test fails with text that ends in "URL does not work".

Each time I press "Test My ID", the number gets shorter by truncating the first number.

So I copied in my 19 digit number ID and then put a "0" in the front, effectively making the ID 20 digits long. The preceeding character has to be numeric for the truncating to occur, I tried adding an "a" and it stayed in placed and failed.

josephcreed
New Member
Posts: 23
Joined: Sat Apr 16, 2011 12:53 pm
Location: Plano, TX

Postby josephcreed » Tue Aug 30, 2011 1:22 pm

josephcreed wrote:Thank you.

I will give it an hour or two and report back.



I am too impatient. :) I changed my sync link by removing the "s" from "https", and the events showed up immediately.

User avatar
TimRiker
Community Administrator
Posts: 192
Joined: Sun Dec 19, 2010 5:16 pm
Location: USA, Utah
Contact:

Postby TimRiker » Tue Aug 30, 2011 1:25 pm

oops. Regex typo. removing ^[0-9] instead of [^0-9]. fixed.

I hear internally that the lds.org calendar url may be available soon over http as well as https. I don't have a timeline for that yet.


Return to “Calendar”

Who is online

Users browsing this forum: No registered users and 1 guest