Hi,
I ‘inherited’ an older 1.1.x Yii site and noticed that the error pages show no markup or html at all. It seems like the error pages from Yii are completely ignored.
If I call www.website.com/blabla the only response is;
Unable to resolve the request "blabla".
Without any html markup whatsoever. Just a blank white page with black text. It doesn’t show the type of error either from what I noticed from other examples I found.
The header just lists it as a HTTP/1.1 200 OK
What I tried;
-
Updating to latest 1.1.x version; yii-1.1.19.5790cb
-
Added errorXXX.php files to themes folder /themes/<theme>/views/system/
-
Added errorXXX.php files to /protected/views/system/
-
Checked the SiteController.php but it has the default code;
/**
* This is the action to handle external exceptions.
*/
public function actionError()
{
if($error=Yii::app()->errorHandler->error)
{
if(Yii::app()->request->isAjaxRequest)
echo $error['message'];
else
$this->render('error', $error);
}
}
- Checked the main.php config but also has the default snippet
'errorHandler' => array(
// use 'site/error' action to display errors
'errorAction' => 'site/error',
),
I tried various suggestions posted in other topics/pages I found across the web but no luck as of yet. I’m kinda at a loss here.
Does anyone have any idea where to look and/or what to change?