Advertisement
Guest User

Untitled

a guest
Feb 18th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CDbException
  2.  
  3. Table "user" does not have a column named "name".
  4.  
  5. /var/www/html/protected/yii/db/schema/CDbCommandBuilder.php(697)
  6.  
  7. 685                     }
  8. 686                     else
  9. 687                     {
  10. 688                         $conditions[]=$prefix.$column->rawName.'='.self::PARAM_PREFIX.$i;
  11. 689                         $values[self::PARAM_PREFIX.$i]=$value;
  12. 690                         $i++;
  13. 691                     }
  14. 692                 }
  15. 693                 else
  16. 694                     $conditions[]=$prefix.$column->rawName.' IS NULL';
  17. 695             }
  18. 696             else
  19. 697                 throw new CDbException(Yii::t('yii','Table "{table}" does not have a column named "{column}".',
  20. 698                     array('{table}'=>$table->name,'{column}'=>$name)));
  21. 699         }
  22. 700         $criteria->params=array_merge($values,$criteria->params);
  23. 701         if(isset($conditions[0]))
  24. 702         {
  25. 703             if($criteria->condition!='')
  26. 704                 $criteria->condition=implode(' AND ',$conditions).' AND ('.$criteria->condition.')';
  27. 705             else
  28. 706                 $criteria->condition=implode(' AND ',$conditions);
  29. 707         }
  30. 708         return $criteria;
  31. 709     }
  32. Stack Trace
  33. #0 
  34. +  /var/www/html/protected/yii/db/ar/CActiveRecord.php(1523): CDbCommandBuilder->createColumnCriteria(CMysqlTableSchema, array("name" => "admin"), "", array(), ...)
  35. #1 
  36. –  /var/www/html/protected/components/UserIdentity.php(16): CActiveRecord->findByAttributes(array("name" => "admin"))
  37. 11 {
  38. 12     public $_id;
  39. 13
  40. 14     public function authenticate($ignoreIp = false)
  41. 15     {
  42. 16         $model = User::model()->findByAttributes(array('name'=>$this->name));
  43. 17         if ($model)
  44. 18             $this->password = crypt($this->password, $model->password);
  45. 19         if(!$model)
  46. 20             $this->errorCode = self::ERROR_USERNAME_INVALID;
  47. 21         else if($model->password !== $this->password)
  48. #2 
  49. –  /var/www/html/protected/models/LoginForm.php(50): UserIdentity->authenticate("1")
  50. 45     public function authenticate($attribute,$params)
  51. 46     {
  52. 47         if(!$this->hasErrors())
  53. 48         {
  54. 49             $this->_identity=new UserIdentity($this->name, $this->password);
  55. 50             if(!$this->_identity->authenticate($this->ignoreIp))
  56. 51                 $this->addError('password',Yii::t('mc', 'Incorrect username or password.'));
  57. 52         }
  58. 53     }
  59. 54
  60. 55     public function login()
  61. #3 
  62. –  /var/www/html/protected/yii/validators/CInlineValidator.php(42): LoginForm->authenticate("password", array())
  63. 37      * @param string $attribute the attribute being validated
  64. 38      */
  65. 39     protected function validateAttribute($object,$attribute)
  66. 40     {
  67. 41         $method=$this->method;
  68. 42         $object->$method($attribute,$this->params);
  69. 43     }
  70. 44
  71. 45     /**
  72. 46      * Returns the JavaScript code needed to perform client-side validation by calling the {@link clientValidate} method.
  73. 47      * In the client validation code, these variables are predefined:
  74. #4 
  75. –  /var/www/html/protected/yii/validators/CValidator.php(201): CInlineValidator->validateAttribute(LoginForm, "password")
  76. 196         else
  77. 197             $attributes=$this->attributes;
  78. 198         foreach($attributes as $attribute)
  79. 199         {
  80. 200             if(!$this->skipOnError || !$object->hasErrors($attribute))
  81. 201                 $this->validateAttribute($object,$attribute);
  82. 202         }
  83. 203     }
  84. 204
  85. 205     /**
  86. 206      * Returns the JavaScript needed for performing client-side validation.
  87. #5 
  88. –  /var/www/html/protected/yii/base/CModel.php(159): CValidator->validate(LoginForm, null)
  89. 154         if($clearErrors)
  90. 155             $this->clearErrors();
  91. 156         if($this->beforeValidate())
  92. 157         {
  93. 158             foreach($this->getValidators() as $validator)
  94. 159                 $validator->validate($this,$attributes);
  95. 160             $this->afterValidate();
  96. 161             return !$this->hasErrors();
  97. 162         }
  98. 163         else
  99. 164             return false;
  100. #6 
  101. –  /var/www/html/protected/controllers/SiteController.php(102): CModel->validate()
  102. 097                     $session['login_time'] = $now;
  103. 098                 }
  104. 099                 if (@$session['login_tries'] >= $logTries)
  105. 100                     $model->addError('name', Yii::t('mc', 'Login temporarily blocked.'));
  106. 101             }
  107. 102             if(!$model->hasErrors() && $model->validate() && $model->login())
  108. 103             {
  109. 104                 if ($logTries)
  110. 105                 {
  111. 106                     $session = Yii::app()->session;
  112. 107                     $session['login_tries'] = 0;
  113. #7 
  114.  unknown(0): SiteController->actionLogin("", "")
  115. #8 
  116. –  /var/www/html/protected/yii/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(SiteController, array("", ""))
  117. 104             elseif($param->isDefaultValueAvailable())
  118. 105                 $ps[]=$param->getDefaultValue();
  119. 106             else
  120. 107                 return false;
  121. 108         }
  122. 109         $method->invokeArgs($object,$ps);
  123. 110         return true;
  124. 111     }
  125. 112 }
  126. #9 
  127. –  /var/www/html/protected/yii/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(SiteController, ReflectionMethod, array("r" => "site/login"))
  128. 42     {
  129. 43         $methodName='action'.$this->getId();
  130. 44         $controller=$this->getController();
  131. 45         $method=new ReflectionMethod($controller, $methodName);
  132. 46         if($method->getNumberOfParameters()>0)
  133. 47             return $this->runWithParamsInternal($controller, $method, $params);
  134. 48
  135. 49         $controller->$methodName();
  136. 50         return true;
  137. 51     }
  138. 52 }
  139. #10
  140. –  /var/www/html/protected/yii/web/CController.php(308): CInlineAction->runWithParams(array("r" => "site/login"))
  141. 303     {
  142. 304         $priorAction=$this->_action;
  143. 305         $this->_action=$action;
  144. 306         if($this->beforeAction($action))
  145. 307         {
  146. 308             if($action->runWithParams($this->getActionParams())===false)
  147. 309                 $this->invalidActionParams($action);
  148. 310             else
  149. 311                 $this->afterAction($action);
  150. 312         }
  151. 313         $this->_action=$priorAction;
  152. #11
  153. –  /var/www/html/protected/yii/web/CController.php(286): CController->runAction(CInlineAction)
  154. 281      * @see runAction
  155. 282      */
  156. 283     public function runActionWithFilters($action,$filters)
  157. 284     {
  158. 285         if(empty($filters))
  159. 286             $this->runAction($action);
  160. 287         else
  161. 288         {
  162. 289             $priorAction=$this->_action;
  163. 290             $this->_action=$action;
  164. 291             CFilterChain::create($this,$action,$filters)->run();
  165. #12
  166. –  /var/www/html/protected/yii/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array())
  167. 260         {
  168. 261             if(($parent=$this->getModule())===null)
  169. 262                 $parent=Yii::app();
  170. 263             if($parent->beforeControllerAction($this,$action))
  171. 264             {
  172. 265                 $this->runActionWithFilters($action,$this->filters());
  173. 266                 $parent->afterControllerAction($this,$action);
  174. 267             }
  175. 268         }
  176. 269         else
  177. 270             $this->missingAction($actionID);
  178. #13
  179. –  /var/www/html/protected/yii/web/CWebApplication.php(282): CController->run("login")
  180. 277         {
  181. 278             list($controller,$actionID)=$ca;
  182. 279             $oldController=$this->_controller;
  183. 280             $this->_controller=$controller;
  184. 281             $controller->init();
  185. 282             $controller->run($actionID);
  186. 283             $this->_controller=$oldController;
  187. 284         }
  188. 285         else
  189. 286             throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".',
  190. 287                 array('{route}'=>$this->defaultController)));
  191. #14
  192. –  /var/www/html/protected/yii/web/CWebApplication.php(141): CWebApplication->runController("site/login")
  193. 136             foreach(array_splice($this->catchAllRequest,1) as $name=>$value)
  194. 137                 $_GET[$name]=$value;
  195. 138         }
  196. 139         else
  197. 140             $route=$this->getUrlManager()->parseUrl($this->getRequest());
  198. 141         $this->runController($route);
  199. 142     }
  200. 143
  201. 144     /**
  202. 145      * Registers the core application components.
  203. 146      * This method overrides the parent implementation by registering additional core components.
  204. #15
  205. –  /var/www/html/protected/yii/base/CApplication.php(185): CWebApplication->processRequest()
  206. 180     public function run()
  207. 181     {
  208. 182         if($this->hasEventHandler('onBeginRequest'))
  209. 183             $this->onBeginRequest(new CEvent($this));
  210. 184         register_shutdown_function(array($this,'end'),0,false);
  211. 185         $this->processRequest();
  212. 186         if($this->hasEventHandler('onEndRequest'))
  213. 187             $this->onEndRequest(new CEvent($this));
  214. 188     }
  215. 189
  216. 190     /**
  217. #16
  218. –  /var/www/html/install.php(21): CApplication->run()
  219. 16
  220. 17 require_once($yii);
  221. 18 $app = Yii::createWebApplication($config);
  222. 19 $app->params['installer'] = 'show';
  223. 20 if (preg_match('/^(site\/log(in|out)|install\/|daemon\/ajaxGetDaemonStatus)/', @$_GET['r']))
  224. 21     $app->run();
  225. 22 else
  226. 23     $app->runController('/install');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement