my hosting provider uses a FastCGI PHP configuration with suEXEC and now I have the problem that the static pages plugin always returns an error 404, although the page itself is shown correctly.
This problem is not caused by a Status header not being set (which is required for FastCGI), since that's in the code.
Code: Select all
if ($this->error_404 === FALSE) {
serendipity_header($_SERVER['SERVER_PROTOCOL'].' 200 OK');
serendipity_header('Status: 200 OK');
}
else {
serendipity_header($_SERVER['SERVER_PROTOCOL'].' 404 Not Found');
serendipity_header('Status: 404 Not Found');
}
Therefore the problem is in lines 2708 through 2711 which are:
Code: Select all
if ($_SERVER['REDIRECT_STATUS'] == '404') {
$this->error_404 = TRUE;
$serendipity['GET']['subpage'] = $this->get404Errorpage();
}
Maybe you can enlighten me on the avail of these lines. For the time being, I have commented them out.