CDbException

Description

The table "users" for active record class "User" cannot be found in the database.

Source File

/var/www/default/protected/views/layouts/main.php(34)

00022: <div class="container" id="page">
00023: 
00024:     <div id="header">
00025:         <div id="logo"><?php echo CHtml::encode(Yii::app()->name); ?></div>
00026:     </div><!-- header -->
00027: 
00028:     <div id="mainmenu">
00029:         <?php $this->widget('zii.widgets.CMenu',array(
00030:             'items'=>array(
00031:                 array('label'=>'Home', 'url'=>array('/site/index')),
00032:                 array('label'=>'About', 'url'=>array('/site/page', 'view'=>'about')),
00033:                 array('label'=>'Contact', 'url'=>array('/site/contact')),
00034: array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
00035: array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest) 00036: ), 00037: )); ?> 00038: </div><!-- mainmenu --> 00039: 00040: <?php $this->widget('zii.widgets.CBreadcrumbs', array( 00041: 'links'=>$this->breadcrumbs, 00042: )); ?><!-- breadcrumbs --> 00043: 00044: <?php echo $content; ?> 00045: 00046: <div id="footer">

Stack Trace

#0 /var/www/default/yii/framework/db/ar/CActiveRecord.php(329): CActiveRecordMetaData->__construct(Object(User))
#1 /var/www/default/yii/framework/db/ar/CActiveRecord.php(342): CActiveRecord::model('User')
#2 /var/www/default/yii/framework/db/ar/CActiveRecord.php(59): CActiveRecord->getMetaData()
#3 /var/www/default/yii/framework/YiiBase.php(205): CActiveRecord->__construct()
#4 /var/www/default/yii/framework/base/CComponent.php(302): YiiBase::createComponent(Array)
#5 /var/www/default/yii/framework/base/CComponent.php(271): CComponent->attachBehavior('User', Array)
#6 /var/www/default/yii/framework/base/CApplicationComponent.php(45): CComponent->attachBehaviors(Array)
#7 /var/www/default/yii/framework/web/auth/CWebUser.php(161): CApplicationComponent->init()
#8 /var/www/default/yii/framework/base/CModule.php(352): CWebUser->init()
#9 /var/www/default/yii/framework/base/CModule.php(86): CModule->getComponent('user')
#10 /var/www/default/protected/views/layouts/main.php(34): CModule->__get('user')
#11 /var/www/default/yii/framework/web/CBaseController.php(119): require('/var/www/defaul...')
#12 /var/www/default/yii/framework/web/CBaseController.php(88): CBaseController->renderInternal('/var/www/defaul...', Array, true)
#13 /var/www/default/yii/framework/web/widgets/CContentDecorator.php(78): CBaseController->renderFile('/var/www/defaul...', Array, true)
#14 /var/www/default/yii/framework/web/widgets/CContentDecorator.php(56): CContentDecorator->decorate('<div class="con...')
#15 /var/www/default/yii/framework/web/widgets/COutputProcessor.php(45): CContentDecorator->processOutput('<div class="con...')
#16 /var/www/default/yii/framework/web/CBaseController.php(193): COutputProcessor->run()
#17 /var/www/default/yii/framework/web/CBaseController.php(288): CBaseController->endWidget('CContentDecorat...')
#18 /var/www/default/protected/views/layouts/column1.php(7): CBaseController->endContent()
#19 /var/www/default/yii/framework/web/CBaseController.php(119): require('/var/www/defaul...')
#20 /var/www/default/yii/framework/web/CBaseController.php(88): CBaseController->renderInternal('/var/www/defaul...', Array, true)
#21 /var/www/default/yii/framework/web/CController.php(683): CBaseController->renderFile('/var/www/defaul...', Array, true)
#22 /var/www/default/protected/modules/user/controllers/InstallController.php(154): CController->render('start')
#23 /var/www/default/protected/modules/user/controllers/InstallController.php(163): InstallController->actionInstall()
#24 /var/www/default/yii/framework/web/actions/CInlineAction.php(32): InstallController->actionIndex()
#25 /var/www/default/yii/framework/web/CController.php(300): CInlineAction->run()
#26 /var/www/default/yii/framework/web/CController.php(278): CController->runAction(Object(CInlineAction))
#27 /var/www/default/yii/framework/web/CController.php(257): CController->runActionWithFilters(Object(CInlineAction), Array)
#28 /var/www/default/yii/framework/web/CWebApplication.php(320): CController->run('')
#29 /var/www/default/yii/framework/web/CWebApplication.php(120): CWebApplication->runController('user/install')
#30 /var/www/default/yii/framework/base/CApplication.php(135): CWebApplication->processRequest()
#31 /var/www/default/index.php(12): CApplication->run()
#32 {main}
2010-04-05 16:29:25 Apache/2.2.12 (Ubuntu) Yii Framework/1.1.1
Application Log
Timestamp Level Category Message
16:29:20.145860 trace system.web.CModule
Loading "log" application component
in /var/www/default/index.php (12)
16:29:20.525521 trace system.web.CModule
Loading "request" application component
in /var/www/default/index.php (12)
16:29:20.826076 trace system.web.CModule
Loading "urlManager" application component
in /var/www/default/index.php (12)
16:29:21.329613 trace system.base.CModule
Loading "user" module
in /var/www/default/index.php (12)
16:29:22.342684 trace system.web.CModule
Loading "messages" application component
in /var/www/default/protected/modules/user/views/install/start.php (1)
in
/var/www/default/protected/modules/user/controllers/InstallController.php
(154)
in
/var/www/default/protected/modules/user/controllers/InstallController.php
(163)
16:29:23.72711 trace system.web.CModule
Loading "db" application component
in /var/www/default/protected/modules/user/views/install/start.php (16)
in
/var/www/default/protected/modules/user/controllers/InstallController.php
(154)
in
/var/www/default/protected/modules/user/controllers/InstallController.php
(163)
16:29:23.306196 trace system.db.CDbConnection
Opening DB connection
in /var/www/default/protected/modules/user/views/install/start.php (16)
in
/var/www/default/protected/modules/user/controllers/InstallController.php
(154)
in
/var/www/default/protected/modules/user/controllers/InstallController.php
(163)
16:29:23.833343 trace system.web.CModule
Loading "user" application component
in /var/www/default/protected/views/layouts/main.php (34)
in /var/www/default/protected/views/layouts/column1.php (7)
in
/var/www/default/protected/modules/user/controllers/InstallController.php
(154)
16:29:24.705121 trace system.db.CDbCommand
Querying SQL: SHOW COLUMNS FROM `users`
in /var/www/default/protected/views/layouts/main.php (34)
in /var/www/default/protected/views/layouts/column1.php (7)
in
/var/www/default/protected/modules/user/controllers/InstallController.php
(154)
16:29:24.888803 error system.db.CDbCommand
Error in querying SQL: SHOW COLUMNS FROM `users`
in /var/www/default/protected/views/layouts/main.php (34)
in /var/www/default/protected/views/layouts/column1.php (7)
in
/var/www/default/protected/modules/user/controllers/InstallController.php
(154)
16:29:24.890620 trace system.web.CModule
Loading "coreMessages" application component
in /var/www/default/protected/views/layouts/main.php (34)
in /var/www/default/protected/views/layouts/column1.php (7)
in
/var/www/default/protected/modules/user/controllers/InstallController.php
(154)
16:29:24.990220 error exception.CDbException
exception 'CDbException' with message 'The table "users" for active record
class "User" cannot be found in the database.' in
/var/www/default/yii/framework/db/ar/CActiveRecord.php:1952
Stack trace:
#0 /var/www/default/yii/framework/db/ar/CActiveRecord.php(329):
CActiveRecordMetaData->__construct(Object(User))
#1 /var/www/default/yii/framework/db/ar/CActiveRecord.php(342):
CActiveRecord::model('User')
#2 /var/www/default/yii/framework/db/ar/CActiveRecord.php(59):
CActiveRecord->getMetaData()
#3 /var/www/default/yii/framework/YiiBase.php(205):
CActiveRecord->__construct()
#4 /var/www/default/yii/framework/base/CComponent.php(302):
YiiBase::createComponent(Array)
#5 /var/www/default/yii/framework/base/CComponent.php(271):
CComponent->attachBehavior('User', Array)
#6 /var/www/default/yii/framework/base/CApplicationComponent.php(45):
CComponent->attachBehaviors(Array)
#7 /var/www/default/yii/framework/web/auth/CWebUser.php(161):
CApplicationComponent->init()
#8 /var/www/default/yii/framework/base/CModule.php(352): CWebUser->init()
#9 /var/www/default/yii/framework/base/CModule.php(86):
CModule->getComponent('user')
#10 /var/www/default/protected/views/layouts/main.php(34):
CModule->__get('user')
#11 /var/www/default/yii/framework/web/CBaseController.php(119):
require('/var/www/defaul...')
#12 /var/www/default/yii/framework/web/CBaseController.php(88):
CBaseController->renderInternal('/var/www/defaul...', Array, true)
#13 /var/www/default/yii/framework/web/widgets/CContentDecorator.php(78):
CBaseController->renderFile('/var/www/defaul...', Array, true)
#14 /var/www/default/yii/framework/web/widgets/CContentDecorator.php(56):
CContentDecorator->decorate('<div class="con...')
#15 /var/www/default/yii/framework/web/widgets/COutputProcessor.php(45):
CContentDecorator->processOutput('<div class="con...')
#16 /var/www/default/yii/framework/web/CBaseController.php(193):
COutputProcessor->run()
#17 /var/www/default/yii/framework/web/CBaseController.php(288):
CBaseController->endWidget('CContentDecorat...')
#18 /var/www/default/protected/views/layouts/column1.php(7):
CBaseController->endContent()
#19 /var/www/default/yii/framework/web/CBaseController.php(119):
require('/var/www/defaul...')
#20 /var/www/default/yii/framework/web/CBaseController.php(88):
CBaseController->renderInternal('/var/www/defaul...', Array, true)
#21 /var/www/default/yii/framework/web/CController.php(683):
CBaseController->renderFile('/var/www/defaul...', Array, true)
#22
/var/www/default/protected/modules/user/controllers/InstallController.php(154):
CController->render('start')
#23
/var/www/default/protected/modules/user/controllers/InstallController.php(163):
InstallController->actionInstall()
#24 /var/www/default/yii/framework/web/actions/CInlineAction.php(32):
InstallController->actionIndex()
#25 /var/www/default/yii/framework/web/CController.php(300):
CInlineAction->run()
#26 /var/www/default/yii/framework/web/CController.php(278):
CController->runAction(Object(CInlineAction))
#27 /var/www/default/yii/framework/web/CController.php(257):
CController->runActionWithFilters(Object(CInlineAction), Array)
#28 /var/www/default/yii/framework/web/CWebApplication.php(320):
CController->run('')
#29 /var/www/default/yii/framework/web/CWebApplication.php(120):
CWebApplication->runController('user/install')
#30 /var/www/default/yii/framework/base/CApplication.php(135):
CWebApplication->processRequest()
#31 /var/www/default/index.php(12): CApplication->run()
#32 {main} REQUEST_URI=/index.php?r=user/install
16:29:25.23540 trace system.web.CModule
Loading "errorHandler" application component