Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CDbException
- The table "users" for active record class "Users" cannot be found in the database.
- /usr/share/yii-1.1.14.f0fee9/framework/db/ar/CActiveRecord.php(2362)
- 2350
- 2351 /**
- 2352 * Constructor.
- 2353 * @param CActiveRecord $model the model instance
- 2354 * @throws CDbException if specified table for active record class cannot be found in the database
- 2355 */
- 2356 public function __construct($model)
- 2357 {
- 2358 $this->_modelClassName=get_class($model);
- 2359
- 2360 $tableName=$model->tableName();
- 2361 if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null)
- 2362 throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.',
- 2363 array('{class}'=>$this->_modelClassName,'{table}'=>$tableName)));
- 2364 if($table->primaryKey===null)
- 2365 {
- 2366 $table->primaryKey=$model->primaryKey();
- 2367 if(is_string($table->primaryKey) && isset($table->columns[$table->primaryKey]))
- 2368 $table->columns[$table->primaryKey]->isPrimaryKey=true;
- 2369 elseif(is_array($table->primaryKey))
- 2370 {
- 2371 foreach($table->primaryKey as $name)
- 2372 {
- 2373 if(isset($table->columns[$name]))
- 2374 $table->columns[$name]->isPrimaryKey=true;
- Stack Trace
- #0
- + /usr/share/yii-1.1.14.f0fee9/framework/db/ar/CActiveRecord.php(411): CActiveRecordMetaData->__construct(Users)
- #1
- + /usr/share/yii-1.1.14.f0fee9/framework/db/ar/CActiveRecord.php(79): CActiveRecord->getMetaData()
- #2
- – /home-www/newqsl/protected/controllers/SiteController.php(196): CActiveRecord->__construct("signup")
- 191 break;
- 192 }
- 193 }
- 194
- 195 public function actionSignupEmail() {
- 196 $ui = new Users('signup');
- 197 $ui->perm = 'N';
- 198 if(!empty($_POST)) {
- 199 $ui->setAttributes($_POST['Users']);
- 200 if($ui->validate()) {
- 201 $ui->registerip = $_SERVER['REMOTE_ADDR'];
- #3
- + /usr/share/yii-1.1.14.f0fee9/framework/web/actions/CInlineAction.php(49): SiteController->actionSignupEmail()
- #4
- + /usr/share/yii-1.1.14.f0fee9/framework/web/CController.php(308): CInlineAction->runWithParams(array("r" => "site/signupemail"))
- #5
- + /usr/share/yii-1.1.14.f0fee9/framework/web/CController.php(286): CController->runAction(CInlineAction)
- #6
- + /usr/share/yii-1.1.14.f0fee9/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array())
- #7
- + /usr/share/yii-1.1.14.f0fee9/framework/web/CWebApplication.php(282): CController->run("signupemail")
- #8
- + /usr/share/yii-1.1.14.f0fee9/framework/web/CWebApplication.php(141): CWebApplication->runController("site/signupemail")
- #9
- + /usr/share/yii-1.1.14.f0fee9/framework/base/CApplication.php(180): CWebApplication->processRequest()
- #10
- – /home-www/newqsl/index.php(15): CApplication->run()
- 10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
- 11
- 12 ini_set('display_errors', 'on');
- 13
- 14 require_once($yii);
- 15 Yii::createWebApplication($config)->run();
- 2020-12-27 22:43:31 Apache Yii Framework/1.1.14
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement