Advertisement
Cookins

Qsl.net error

Dec 27th, 2020
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.26 KB | None | 0 0
  1. CDbException
  2. The table "users" for active record class "Users" cannot be found in the database.
  3.  
  4. /usr/share/yii-1.1.14.f0fee9/framework/db/ar/CActiveRecord.php(2362)
  5.  
  6. 2350
  7. 2351 /**
  8. 2352 * Constructor.
  9. 2353 * @param CActiveRecord $model the model instance
  10. 2354 * @throws CDbException if specified table for active record class cannot be found in the database
  11. 2355 */
  12. 2356 public function __construct($model)
  13. 2357 {
  14. 2358 $this->_modelClassName=get_class($model);
  15. 2359
  16. 2360 $tableName=$model->tableName();
  17. 2361 if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null)
  18. 2362 throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.',
  19. 2363 array('{class}'=>$this->_modelClassName,'{table}'=>$tableName)));
  20. 2364 if($table->primaryKey===null)
  21. 2365 {
  22. 2366 $table->primaryKey=$model->primaryKey();
  23. 2367 if(is_string($table->primaryKey) && isset($table->columns[$table->primaryKey]))
  24. 2368 $table->columns[$table->primaryKey]->isPrimaryKey=true;
  25. 2369 elseif(is_array($table->primaryKey))
  26. 2370 {
  27. 2371 foreach($table->primaryKey as $name)
  28. 2372 {
  29. 2373 if(isset($table->columns[$name]))
  30. 2374 $table->columns[$name]->isPrimaryKey=true;
  31. Stack Trace
  32. #0
  33. + /usr/share/yii-1.1.14.f0fee9/framework/db/ar/CActiveRecord.php(411): CActiveRecordMetaData->__construct(Users)
  34. #1
  35. + /usr/share/yii-1.1.14.f0fee9/framework/db/ar/CActiveRecord.php(79): CActiveRecord->getMetaData()
  36. #2
  37. – /home-www/newqsl/protected/controllers/SiteController.php(196): CActiveRecord->__construct("signup")
  38. 191 break;
  39. 192 }
  40. 193 }
  41. 194
  42. 195 public function actionSignupEmail() {
  43. 196 $ui = new Users('signup');
  44. 197 $ui->perm = 'N';
  45. 198 if(!empty($_POST)) {
  46. 199 $ui->setAttributes($_POST['Users']);
  47. 200 if($ui->validate()) {
  48. 201 $ui->registerip = $_SERVER['REMOTE_ADDR'];
  49. #3
  50. + /usr/share/yii-1.1.14.f0fee9/framework/web/actions/CInlineAction.php(49): SiteController->actionSignupEmail()
  51. #4
  52. + /usr/share/yii-1.1.14.f0fee9/framework/web/CController.php(308): CInlineAction->runWithParams(array("r" => "site/signupemail"))
  53. #5
  54. + /usr/share/yii-1.1.14.f0fee9/framework/web/CController.php(286): CController->runAction(CInlineAction)
  55. #6
  56. + /usr/share/yii-1.1.14.f0fee9/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array())
  57. #7
  58. + /usr/share/yii-1.1.14.f0fee9/framework/web/CWebApplication.php(282): CController->run("signupemail")
  59. #8
  60. + /usr/share/yii-1.1.14.f0fee9/framework/web/CWebApplication.php(141): CWebApplication->runController("site/signupemail")
  61. #9
  62. + /usr/share/yii-1.1.14.f0fee9/framework/base/CApplication.php(180): CWebApplication->processRequest()
  63. #10
  64. – /home-www/newqsl/index.php(15): CApplication->run()
  65. 10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
  66. 11
  67. 12 ini_set('display_errors', 'on');
  68. 13
  69. 14 require_once($yii);
  70. 15 Yii::createWebApplication($config)->run();
  71. 2020-12-27 22:43:31 Apache Yii Framework/1.1.14
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement