Monday 25 October 2010 3:28:21 am
Well, it almost works. I have put this code in lib/ezutils/classes/ezexecution.php from line 195, in the defaultExceptionHandler function
what do you think ? I still have some problems with the include of img in the html source, maybe a rewrite rule in the apache vhost config file.
static public function defaultExceptionHandler( Exception $e )
{ if( PHP_SAPI != 'cli' )
{
header( 'HTTP/1.x 500 Internal Server Error' );
header( 'Content-Type: text/html' );
///////////
if ( $documentRoot )
{
self::$eZDocumentRoot = $documentRoot; }
else if ( self::$eZDocumentRoot === null )
{
self::$eZDocumentRoot = getcwd(); }
chdir( self::$eZDocumentRoot );
$stringerror = file_get_contents('./errorpages/erreur_500.html', true);
$splitString = str_split($stringerror, 8192);
foreach($splitString as $chunk)
echo $chunk;
///////////
if( eZDebug::isDebugEnabled() )
//[...]
|