i’ve migrated my webserver to the latest version of PHP, MySQL, Yii and Ubuntu linux. After installing and copying the website and database files i get a 505 error on the website.
In the log file i see the following error:
[Wed Mar 07 19:15:57 2012] [error] [client 192.168.158.1] PHP Fatal error: Wrong parameters for Exception([string $exception [, long $code [, Exception $previous = NULL]]]) in /usr/share/yii/framework/db/CDbException.php on line 37
Controller
public function actionIndex()
{
$dataProvider=new CActiveDataProvider('Post', array(
'criteria'=>array(
'order'=>'post_date DESC',
'limit'=>3
),
'pagination'=>false,
));
$this->render('index', array('posts'=>$dataProvider));
}
Any ideas?