Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
could you explain what this does exactlyp?Figured out solution, and posting as it might be useful for others. It requires a hack of /administrator/components/com_sef/core/sef.resolver.php
Change (around line 600):
[code:1] function error404( $requestURL ) {
global $database;
$errorHeader = 'HTTP/1.1 404 Not Found';
$errorURL = $this->config->validate_404_url;
if (!$errorURL) {
$language = ($GLOBALS != '' ?
$GLOBALS : 'english');
@include_once( 'language/' . $language . '.php' );
while (@ob_end_clean());
header( $errorHeader );
die( defined( '_NOT_EXIST' ) ? _NOT_EXIST : '404 Not Found' ); [/code:1]
to
[code:1] function error404( $requestURL ) {
global $database;
$errorHeader = 'HTTP/1.1 404 Not Found';
$errorURL = $this->config->validate_404_url;
if (!$errorURL) {
$language = ($GLOBALS != '' ?
$GLOBALS : 'english');
@include_once('errorpagesef.php');
die();
/**@include_once( 'language/' . $language . '.php' );
while (@ob_end_clean());
header( $errorHeader );
die( defined( '_NOT_EXIST' ) ? _NOT_EXIST : '404 Not Found' ); */[/code:1]
Rename your original errorpage.php (put together below) to errorpagesef.php. I'd keep the basic server 404 page file completely plain and different from the php file you wrote below so that if it needs to call the 404 page file after it fails both OpenSEF or calls the above script, it does not go on an infinite loop.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
What i'm doing bad?Warning: Cannot modify header information - headers already sent by (output started at \webs\HCC\profile_url.php: in \webs\HCC\profile_url.php on line 24
Please Log in or Create an account to join the conversation.