Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

CGI misbehaviour when using SEF
(1 viewing) (1) Guest
Support forum for users using free edition of JoomSEF 3 (Joomla 1.5 compatible). These forums are mainly for mutual help between users.

Please note that due to our capacity limitations, we do not monitor these forums regularly.
  • Page:
  • 1

TOPIC: CGI misbehaviour when using SEF

CGI misbehaviour when using SEF 14 years, 9 months ago #145

  • jteb
Hi,

I'm experiencing some weird behaviour when turning on SEF. Unfortunately I'm stuck with IIS 6.0. I'm using PHP 5.0.4 with it's php5activescript.dll from PECL. When I write a testscript (.wsf) all seems to work.

Now the thing is that when I turn on SEF, the URL's get rewritten nicely. No problem there. Just when I click a link, I get the following error:

CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.

There's not much I can find about this error on Google. Here's my web.config (which I placed in the virtual directory).

<?xml version="1.0" encoding="utf-8">
<configuration>
<system.web>
<compilation defaultLanguage="PHPScript" debug="true" />
<customErrors mode="On" defaultRedirect="/index.php" />
</system.web>
</configuration>

I hope someone can help, I need to get this site fully working in a couple of weeks from now.

Thanks in advance for any answer!

Regards,
Jan

Re:CGI misbehaviour when using SEF 14 years, 9 months ago #146

  • jteb
Hmm, I fixed it by commenting out a conditional and just including the 404sef page. Somehow, the URI doesn't get put in new Net_URL properly?!

Weird, bu it works now.

Re:CGI misbehaviour when using SEF 14 years, 8 months ago #499

  • Dan Rice
Hi, could you explain what you did to fix this as im having the same problems.

Many thanks.

Re:CGI misbehaviour when using SEF 14 years, 8 months ago #502

  • jteb
This is an excerpt from my components/com_sef/sef.php from what i did:

//Make sure host name matches our config, we need this later.

include_once($sef404);

// The following has been hacked out by Jan te Beest on 2006-09-08
// Somehow, the URL doesn't get picked up properly and the header gets rewritten in a non conformant way.

/*
if (strpos($GLOBALS['mosConfig_live_site'],$URI->host) === false) {

header("HTTP 1.0 301 Moved Permanently");

header("Location: ".$GLOBALS['mosConfig_live_site']);

}else

include_once($sef404);
*/

Hope that helps you.

Re:CGI misbehaviour when using SEF 14 years, 8 months ago #511

  • Dan Rice
Hi, thanks very much for your help, it solved the problem!

Much appreciated.

Dan.
  • Page:
  • 1
Přihlášení uživatele Prázdný