Moved Temporarily

1,058 views
Skip to first unread message

Bridget

unread,
Dec 11, 2009, 6:49:11 AM12/11/09
to RESTYLEgc
I am using restylegc on my website and it was working fine for the
last week, now all of a sudden I get a page telling me Moved
Temporarily: The document has moved here. ("here" is linked to the
google calendar with no styling). I don't know if it makes a
difference since it was working beautifully, but I am using wordpress
to run my site, and nothing has changed to precipitate this issue. I
have reuploaded all files and reapplied the embed code for the
calendar page, but nothing seems to change. Please help!

Brian Gibson

unread,
Dec 11, 2009, 1:49:56 PM12/11/09
to RESTYLEgc
A user, Wes, was kind enough to post a workaround in the comments
section of the Troubleshooting page: http://code.google.com/p/restylegc/wiki/Troubleshooting

When I have time, I'll look at this problem and probably incorporate
the code or something similar.

Bridget

unread,
Dec 11, 2009, 3:04:13 PM12/11/09
to RESTYLEgc
Drat! I did look at that page, but only the top portion with the
headings and didn't see anything that answered my question.
I will try Wes' fix over the weekend and hope that it resolves my
issue. Thanks for the help and the terrific script! :)

Bridget

unread,
Dec 12, 2009, 7:40:03 AM12/12/09
to RESTYLEgc
If there are any other solutions to this issue I would like to see/
hear them. I did try Wes' solution and it didn't work for me.
> > > calendar page, but nothing seems to change. Please help!- Hide quoted text -
>
> - Show quoted text -

Brian Gibson

unread,
Dec 13, 2009, 6:09:50 PM12/13/09
to RESTYLEgc
Try this:

In restylegc.php, in the section "// Request a calendar" lines
115-119, insert

curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); // follow redirects
curl_setopt($ch, CURLOPT_MAXREDIRS, 10); // maximum number of
redirects

Also could you please provide the value of the iframe src attribute
you are using? I am unable to reproduce this problem.

Bridget

unread,
Dec 15, 2009, 9:54:55 AM12/15/09
to RESTYLEgc
Brian,
I entered the information you gave so that my code looks like this:

// Request the calendar
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); // follow redirects
curl_setopt($ch, CURLOPT_MAXREDIRS, 10); // maximum number of
redirects
$buffer = curl_exec($ch);
curl_close($ch);

but that leaves me with an error message:

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION
cannot be activated when in safe_mode or an open_basedir is set in /
home/mummy/public_html/borden/restylegc/restylegc.php on line 119

Moved Temporarily
The document has moved here.

My frame source is:

<p><iframe src="http://borden.mummymusings.com/restylegc/restylegc.php?
height=600&amp;wkst=1&amp;bgcolor=%23FFFFFF&amp;src=bridget.glauner
%40tdsb.on.ca&amp;color=%23AB8B00&amp;ctz=America%2FToronto" style="
border-width:0 " width="650" height="600" frameborder="0"
scrolling="no"></iframe></p>

I really love this script and would appreciate getting it to work on
my site.
Thank you for your help! :)

Wes

unread,
Jan 25, 2010, 2:36:23 PM1/25/10
to RESTYLEgc
Hi Bridget, I suspect you've already solved this problem but just in
case you are still playing with this...

I noticed that the arrangement of the URL parameters seemed to make a
difference. For example, when I visited the URL you posted above, I
do see the "Moved Temporarily" message. However, if you move the
"src" variable up in the list I was able to view your calendar...it's
weird...I know! So here is the same URL, with just the "src" and
"color" variables moved up in the list as the first parameters:

http://borden.mummymusings.com/restylegc/restylegc.php?src=bridget...@tdsb.on.ca&amp;color=%23AB8B00&amp;height=600&amp;wkst=1&amp;bgcolor=%23FFFFFF&amp;ctz=America/Toronto

Maybe this was just a fluke...but it seemed to produce different and
more positive results :)

Wes

Mustafa Al-ammar

unread,
Jan 26, 2010, 11:42:15 PM1/26/10
to RESTYLEgc
I did the same as Wes and it worked.

Just letting you know.

~Mus

On Jan 25, 2:36 pm, Wes <wphamp...@gmail.com> wrote:
> Hi Bridget, I suspect you've already solved this problem but just in
> case you are still playing with this...
>
> I noticed that the arrangement of the URL parameters seemed to make a
> difference.  For example, when I visited the URL you posted above, I
> do see the "Moved Temporarily" message.  However, if you move the
> "src" variable up in the list I was able to view your calendar...it's
> weird...I know!  So here is the same URL, with just the "src" and
> "color" variables moved up in the list as the first parameters:
>

> http://borden.mummymusings.com/restylegc/restylegc.php?src=bridget.glau...@tdsb.on.ca&amp;color=%23AB8B00&amp;height=600&amp;wkst=1&amp;bgcolor=%23FF­FFFF&amp;ctz=America/Toronto

Reply all
Reply to author
Forward
0 new messages