You are reading the Drake CMS Official Forums archive, available for historical purposes only.
Drake CMS has been rebranded into Lanius CMS, visit the new Lanius CMS Official Forums if you need support about Lanius CMS or Drake CMS -> Lanius CMS migration.
Help & Support Just installed and having problems [SOLVED]
They still have some bad issue with ALL redirects. Sorry, this
is not something related to Drake CMS.
They should fix
their server if their server is causing all redirects to show
this type of pages.
I passed this on to my
server host and after their investigation they responded with
this:
Code:
It
appears that there is an error in the script causing duplicate
headers to be parsed. I am including the error message from the
server below for your reference:
[Sun Jan 6 22:24:30
2008] [error] [client] FastCGI: comm with server
"/usr/local/cpanel/cgi-sys/php5.fcgi" aborted: error
parsing headers: duplicate header 'Status'
legolas558
Re: Just installed and having problems
07 January 2008 09:19
Anonymous
Quote by Wolf:
Quote by legolas558:
They still have some bad issue with ALL redirects. Sorry,
this is not something related to Drake CMS.
They
should fix their server if their server is causing all redirects
to show this type of pages.
I passed this
on to my server host and after their investigation they responded
with this:
Code:
It appears that there is an error in the script causing
duplicate headers to be parsed. I am including the error message
from the server below for your reference:
[Sun Jan 6
22:24:30 2008] [error] [client] FastCGI: comm with server
"/usr/local/cpanel/cgi-sys/php5.fcgi" aborted: error
parsing headers: duplicate header 'Status'
I was wrong. There was
actually a Drake CMS bug! I thank you both for helping at finding
this issue.
The bug (duplicate status headers) has
been fixed in the SVN trunk and will be shipped with the v0.4.10
RC6 release.
If you meanwhile want to test the patch,
please edit the file classes/http.php and remove the 3
'HTTP/1.1' lines as shown in this diff (line numbers may
not correspond with your v0.4.9 version of the file, but the
patch will work).
Thanks again!
wolf
Re: Just installed and having problems
07 January 2008 19:12
Anonymous
hmmm. I made the patch changes but now get this message:
Code:
Found The document has moved here.
Additionally, a 500
Internal Server Error error was encountered while trying to use
an ErrorDocument to handle the request. Apache/1.3.39 Server
at www.wakewatcher.redirect.hm Port 80
legolas558
Re: Just installed and having problems
08 January 2008 15:04
Anonymous
Quote by Wolf:
hmmm. I
made the patch changes but now get this message:
Code:
Found The
document has moved here.
Additionally, a 500 Internal
Server Error error was encountered while trying to use an
ErrorDocument to handle the request. Apache/1.3.39 Server at
www.wakewatcher.redirect.hm Port 80
So the situation seems unchanged.
Are you sure that classes/http.php has been patched as
explained?
Thanks
wolf
Re: Just installed and having problems
08 January 2008 19:28
Anonymous
Well note exactly the same. The error message is different. It
now says "found" and doesn't include "permanently
moved" as before. Here is my http.php code. I think I got
it changed per your instructions.
Code:
...removed by
legolas558
Thanks again. I'm looking
forward to getting this up and running.
legolas558
Re: Just installed and having problems
08 January 2008 19:45
Anonymous
The file is OK, well done.
Please now patch
http.php as follows (should be around line 147):
Is this patch suppose to be in the classes/http.php? I didn't
see anything similiar to what you showed. This is what is around
line 147 in http.php
Code:
function Querystring() { if
(isset($_SERVER['QUERY_STRING'])) return
$_SERVER['QUERY_STRING']; // not sure that this branch is
useful at all (!QUERYSTRING => ?REQUEST_URI) if
(isset($_SERVER['REQUEST_URI'])) { $s =
$_SERVER['REQUEST_URI']; $sn=CMSRequest::ScriptName(); $p=strpos($s, $sn); $p=strpos($s,'?',$p+strlen($sn)); if ($p!==false) return substr($s,$p+1); } return ''; }
Am I looking in the wrong place? Thx.
trex1512
Re: Just installed and having problems
09 January 2008 05:17
Anonymous
You will find the relevant area just before the lines you
quoted, see below with the edit added.
// requests go
before responses class CMSRequest {
function
Querystring() { if (isset($_SERVER['QUERY_STRING'])) return $_SERVER['QUERY_STRING']; // not sure that
this branch is useful at all (!QUERYSTRING => ?REQUEST_URI) if (isset($_SERVER['REQUEST_URI'])) { $s =
$_SERVER['REQUEST_URI']; $sn=CMSRequest::ScriptName(); $p=strpos($s, $sn); $p=strpos($s,'?',$p+strlen($sn)); if ($p!==false) return substr($s,$p+1); } return ''; }
wolf
Re: Just installed and having problems
09 January 2008 15:00
Anonymous
I made the change. Here is a snippet from my http.php file
now. Code:
// requests go before responses class
CMSRequest {
It made no difference I still get
the same error message.
legolas558
Re: Just installed and having problems
09 January 2008 18:33
Anonymous
I don't know how to work around this issue...
wolf
Re: Just installed and having problems
09 January 2008 21:17
Anonymous
Hi,
I'm very confused. Apparently Drake CMS is working
on a lot of other servers. Is there something that needs to be
changed on my hosts'? They are pretty accommodating but in this
last instance we (I mean you, after they pointed it out)agreed
that it wasn't their issue. I'm happy to go back to push them
hard if they need to change something. Just let me know. (This
is doubly strange in that they provide Mambo as part of their
fantastico package. Shouldn't that CMS have similar problems?)
Thanks.
trex1512
Re: Just installed and having problems
09 January 2008 23:31
Anonymous
Hi
Just musing, however..
are you using a
URL redirection service for your site?
I have had
issues in the past when I have made use of the cjb.net URL
redirection service. Worked fine when using the actual
address.
legolas558
Re: Just installed and having problems
10 January 2008 23:30
Anonymous
Quote by Wolf:
Hi,
I'm very confused. Apparently Drake CMS is working on a
lot of other servers. Is there something that needs to be
changed on my hosts'? They are pretty accommodating but in this
last instance we (I mean you, after they pointed it out)agreed
that it wasn't their issue. I'm happy to go back to push them
hard if they need to change something. Just let me know. (This
is doubly strange in that they provide Mambo as part of their
fantastico package. Shouldn't that CMS have similar problems?)
Thanks.
no, the Drake
CMS codebase has been changed so much that it is really difficult
to find a piece of code unchanged from the original Mambo
Can you please ask what errors do appear in their logs
now? I have also asked on irc://irc.freenode.net/web and
irc://irc.freenode.net/apache but had no luck up to now, maybe
you will have more.
legolas558
Re: Just installed and having problems
10 January 2008 23:31
Anonymous
Quote by trex1512:
Hi
Just musing, however..
are you using a URL
redirection service for your site?
I have had issues
in the past when I have made use of the cjb.net URL redirection
service. Worked fine when using the actual address.
Maybe there is some broken URL rewrital rule?
wolf
Re: Just installed and having problems
11 January 2008 15:38
Anonymous
I'm afraid all of this is getting beyond me. I will see if I can
my server host to look at this thread and make sense of it all.
I really appreciate your efforts I would have liked to use this.
And since Mambo was on my host's fantastico I tried it first and
didn't even get as far as I have with Drake. So there must be
something amiss. I know that my host's php standard is version 4
and I had them activate version 5 for me. Should that make any
difference?
legolas558
Re: Just installed and having problems
11 January 2008 16:30
Anonymous
Quote by Wolf:
I'm
afraid all of this is getting beyond me.
I think the
responsability has been on both the software (Drake CMS) and the
server configuration. The server configuration must be really
broken because as far as I have understood you cannot currently
make any redirect through PHP.
Quote:
I will see if
I can my server host to look at this thread and make sense of it
all.
A log line of the current errors would be very
useful, too.
Quote:
I really appreciate your efforts I would
have liked to use this. And since Mambo was on my host's
fantastico I tried it first and didn't even get as far as I have
with Drake. So there must be something amiss. I know that my
host's php standard is version 4 and I had them activate version
5 for me. Should that make any difference?
Maybe
the problem is on the server configuration only. PHP4 or
PHP5 will not make any difference for the redirect problem
because it is an Apache configuration problem, however trying
will not harm anything. Maybe it will get fixed as a
side-effect!
Note: Drake CMS works perfectly with PHP4
or PHP5
wolf
Re: Just installed and having problems
11 January 2008 20:14
Anonymous
I pointed the sysadmin to this thread and got this response: Quote:
Re-Directs Not
working in PHP.
Hello,
Im not sure whats
causing this. the only thing we are seeing in the logs is the
fact that your script is causing the status header to be sent
twice and hitting the security on the server. Redirecting using
the header() function is really not a good way of redirecting
users. You may want to see if theres a way to recode that line to
work on the server.
Regards, Ben
Is it worthwhile for you to work with them directly or do you
think they are the only hosting site that has these issues?
legolas558
Re: Just installed and having problems
11 January 2008 20:32
Anonymous
Quote by Wolf:
I pointed
the sysadmin to this thread and got this response: Quote:
Re-Directs Not
working in PHP.
Hello,
Im not sure whats
causing this. the only thing we are seeing in the logs is the
fact that your script is causing the status header to be sent
twice and hitting the security on the server. Redirecting using
the header() function is really not a good way of redirecting
users. You may want to see if theres a way to recode that line to
work on the server.
Regards, Ben
Is it worthwhile for you to work with them directly or do you
think they are the only hosting site that has these issues?
what is really weird to me is this statement: Quote:
Redirecting using the
header() function is really not a good way of redirecting
users.
Can you please ask if they know another
of redirection which does not use the header() function? Or by
what security principle their server is not allowing the
Location: header redirect? You can also give them my email
address legolas558 _AT users dot SF dot net.
I also
have a correction for his message: the software is no more
sending the header twice (even if it is normal to do that).
I am sorry but I think it is a limitation of their
server, although I am interested in the reasons behind such
limitation.