Class 'CTheme' not found in ....

Hi

This puzzled me for a while and I have seen others post similar issues…

Turns out that there is actually an underling error but when Yii attempts to display the error it tries to use the theme class which has not been loaded yet.

In my case the first error is "Declaration of BeavBaseActiveRecord::save() should be compatible with that of CActiveRecord::save()", but in trying to display this error an autoload attempt is made to load CTheme - which fails.

The stack to the issue is

YiiBase.php.YiiBase::import:261

web/CThemeManager.php.CThemeManager->getTheme:60

web/CWebApplication.php.CWebApplication->getTheme:255

base/CErrorHandler.php.CErrorHandler->getViewFile:299

base/CErrorHandler.php.CErrorHandler->render:286

base/CErrorHandler.php.CErrorHandler->handleError:235

base/CErrorHandler.php.CErrorHandler->handle:105

base/CApplication.php.CApplication->handleError:715

A quick fix for this would be to modify CThemeManager->getTheme:60




$class=Yii::import($this->themeClass, true);



I am using the HEAD of SVN…

thx

Steve