1.1.8 to 1.1.10

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?

PHP 5.4? Can you post stack trace as well?

PHP Version 5.3.6-13ubuntu3.6

// specify how many levels of call stack should be shown in each log message

defined(‘YII_TRACE_LEVEL’) or define(‘YII_TRACE_LEVEL’,3);

doesnt give more information then in the first post

What version of Yii did you use… if you used a development version from github, yesterday there was a bug that could produce similar error… now it’s fixed…

yes, with the migration i did a git clone. after a git pull the problem was solved!