|
Debug=1:
CException
Property "CDefaultValueValidator.0" is not defined.
/home/shinydev/domains/shinydev.toolsforresearch.com/public_html/framework/validators/CValidator.php(177)
165 if(isset($params['skipOnError']))
166 $validator->skipOnError=$params['skipOnError'];
167 }
168 else
169 {
170 $params['attributes']=$attributes;
171 if(isset(self::$builtInValidators[$name]))
172 $className=Yii::import(self::$builtInValidators[$name],true);
173 else
174 $className=Yii::import($name,true);
175 $validator=new $className;
176 foreach($params as $name=>$value)
177 $validator->$name=$value;
178 }
179
180 $validator->on=empty($on) ? array() : array_combine($on,$on);
181 $validator->except=empty($except) ? array() : array_combine($except,$except);
182
183 return $validator;
184 }
185
186 /*
187 Validates the specified object.
188 @param CModel $object the data object being validated
189 @param array $attributes the list of attributes to be validated. Defaults to null, |
|
OK, done again.
- download latest stable: https://www.limesurvey.org/stable-release?download=2145:limesurvey2721%20171012zip
- upload via FTP to Centos at: https://shinydev.toolsforresearch.com
- installation ran normally.
- try do login after installation
CException
Property "CDefaultValueValidator.0" is not defined.
/home/shinydev/domains/shinydev.toolsforresearch.com/public_html/framework/validators/CValidator.php(177)
165 if(isset($params['skipOnError']))
166 $validator->skipOnError=$params['skipOnError'];
167 }
168 else
169 {
170 $params['attributes']=$attributes;
171 if(isset(self::$builtInValidators[$name]))
172 $className=Yii::import(self::$builtInValidators[$name],true);
173 else
174 $className=Yii::import($name,true);
175 $validator=new $className;
176 foreach($params as $name=>$value)
177 $validator->$name=$value;
178 }
179
180 $validator->on=empty($on) ? array() : array_combine($on,$on);
181 $validator->except=empty($except) ? array() : array_combine($except,$except);
182
183 return $validator;
184 }
185
186 /
187 Validates the specified object.
188 @param CModel $object the data object being validated
189 @param array $attributes the list of attributes to be validated. Defaults to null,
Stack Trace
#0
– /home/shinydev/domains/shinydev.toolsforresearch.com/public_html/framework/validators/CValidator.php(177): CComponent->__set("0", 0)
172 $className=Yii::import(self::$builtInValidators[$name],true);
173 else
174 $className=Yii::import($name,true);
175 $validator=new $className;
176 foreach($params as $name=>$value)
177 $validator->$name=$value;
178 }
179
180 $validator->on=empty($on) ? array() : array_combine($on,$on);
181 $validator->except=empty($except) ? array() : array_combine($except,$except);
182
#1
– /home/shinydev/domains/shinydev.toolsforresearch.com/public_html/framework/base/CModel.php(287): CValidator::createValidator("default", Plugin, "active", array(0))
282 {
283 $validators=new CList;
284 foreach($this->rules() as $rule)
285 {
286 if(isset($rule[0],$rule[1])) // attributes, validator name
287 $validators->add(CValidator::createValidator($rule[1],$this,$rule[0],array_slice($rule,2)));
288 else
289 throw new CException(Yii::t('yii','{class} has an invalid validation rule. The rule must specify attributes to be validated and the validator name.',
290 array('{class}'=>get_class($this))));
291 }
292 return $validators;
#2
– /home/shinydev/domains/shinydev.toolsforresearch.com/public_html/framework/base/CModel.php(260): CModel->createValidators()
255 @return array the validators applicable to the current {@link scenario}.
256 /
257 public function getValidators($attribute=null)
258 {
259 if($this->_validators===null)
260 $this->_validators=$this->createValidators();
261
262 $validators=array();
263 $scenario=$this->getScenario();
264 foreach($this->_validators as $validator)
265 {
#3
– /home/shinydev/domains/shinydev.toolsforresearch.com/public_html/framework/base/CModel.php(158): CModel->getValidators()
153 {
154 if($clearErrors)
155 $this->clearErrors();
156 if($this->beforeValidate())
157 {
158 foreach($this->getValidators() as $validator)
159 $validator->validate($this,$attributes);
160 $this->afterValidate();
161 return !$this->hasErrors();
162 }
163 else
#4
– /home/shinydev/domains/shinydev.toolsforresearch.com/public_html/framework/db/ar/CActiveRecord.php(810): CModel->validate(null)
805 meaning all attributes that are loaded from DB will be saved.
806 @return boolean whether the saving succeeds
807 /
808 public function save($runValidation=true,$attributes=null)
809 {
810 if(!$runValidation || $this->validate($attributes))
811 return $this->getIsNewRecord() ? $this->insert($attributes) : $this->update($attributes);
812 else
813 return false;
814 }
815
#5
– /home/shinydev/domains/shinydev.toolsforresearch.com/public_html/application/controllers/admin/authentication.php(102): CActiveRecord->save()
097 $plugin = Plugin::model()->findByAttributes(array('name'=>'Authdb'));
098 if (!$plugin) {
099 $plugin = new Plugin();
100 $plugin->name = 'Authdb';
101 $plugin->active = 1;
102 $plugin->save();
103 App()->getPluginManager()->loadPlugin('Authdb', $plugin->id);
104 } else {
105 $plugin->active = 1;
106 $plugin->save();
107 }
#6
– /home/shinydev/domains/shinydev.toolsforresearch.com/public_html/application/controllers/admin/authentication.php(47): Authentication::prepareLogin()
42 }
43 // The page should be shown only for non logged in users
44 $this->_redirectIfLoggedIn();
45
46 // Result can be success, fail or data for template
47 $result = self::prepareLogin();
48
49 $isAjax = isset($_GET['ajax']) && $_GET['ajax'] == 1;
50 $succeeded = isset($result[0]) && $result[0] == 'success';
51 $failed = isset($result[0]) && $result[0] == 'failed';
52
#7
unknown(0): Authentication->index()
#8
– /home/shinydev/domains/shinydev.toolsforresearch.com/public_html/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(Authentication, array())
104 elseif($param->isDefaultValueAvailable())
105 $ps[]=$param->getDefaultValue();
106 else
107 return false;
108 }
109 $method->invokeArgs($object,$ps);
110 return true;
111 }
112 }
#9
– /home/shinydev/domains/shinydev.toolsforresearch.com/public_html/application/core/Survey_Common_Action.php(86): CAction->runWithParamsInternal(Authentication, ReflectionMethod, array("sa" => "login"))
81 $oMethod = new ReflectionMethod($this, $sDefault);
82 }
83
84 // We're all good to go, let's execute it
85 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params
86 return parent::runWithParamsInternal($this, $oMethod, $params);
87 }
88
89 /
90 Some functions have different parameters, which are just an alias of the
91 usual parameters we're getting in the url. This function just populates
#10
– /home/shinydev/domains/shinydev.toolsforresearch.com/public_html/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("sa" => "login"))
303 {
304 $priorAction=$this->_action;
305 $this->_action=$action;
306 if($this->beforeAction($action))
307 {
308 if($action->runWithParams($this->getActionParams())===false)
309 $this->invalidActionParams($action);
310 else
311 $this->afterAction($action);
312 }
313 $this->_action=$priorAction;
#11
– /home/shinydev/domains/shinydev.toolsforresearch.com/public_html/framework/web/CController.php(286): CController->runAction(Authentication)
281 @see runAction
282 /
283 public function runActionWithFilters($action,$filters)
284 {
285 if(empty($filters))
286 $this->runAction($action);
287 else
288 {
289 $priorAction=$this->_action;
290 $this->_action=$action;
291 CFilterChain::create($this,$action,$filters)->run();
#12
– /home/shinydev/domains/shinydev.toolsforresearch.com/public_html/framework/web/CController.php(265): CController->runActionWithFilters(Authentication, array())
260 {
261 if(($parent=$this->getModule())===null)
262 $parent=Yii::app();
263 if($parent->beforeControllerAction($this,$action))
264 {
265 $this->runActionWithFilters($action,$this->filters());
266 $parent->afterControllerAction($this,$action);
267 }
268 }
269 else
270 $this->missingAction($actionID);
#13
– /home/shinydev/domains/shinydev.toolsforresearch.com/public_html/application/controllers/AdminController.php(174): CController->run("authentication")
169 $this->redirect(array('/admin/authentication/sa/login'));
170 }
171
172 }
173
174 return parent::run($action);
175 }
176
177 /
178 Routes all the actions to their respective places
179
#14
– /home/shinydev/domains/shinydev.toolsforresearch.com/public_html/framework/web/CWebApplication.php(282): AdminController->run("authentication")
277 {
278 list($controller,$actionID)=$ca;
279 $oldController=$this->_controller;
280 $this->_controller=$controller;
281 $controller->init();
282 $controller->run($actionID);
283 $this->_controller=$oldController;
284 }
285 else
286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".',
287 array('{route}'=>$route===''?$this->defaultController:$route)));
#15
– /home/shinydev/domains/shinydev.toolsforresearch.com/public_html/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/authentication/sa/login")
136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value)
137 $_GET[$name]=$value;
138 }
139 else
140 $route=$this->getUrlManager()->parseUrl($this->getRequest());
141 $this->runController($route);
142 }
143
144 /
145 Registers the core application components.
146 This method overrides the parent implementation by registering additional core components.
#16
– /home/shinydev/domains/shinydev.toolsforresearch.com/public_html/framework/base/CApplication.php(185): CWebApplication->processRequest()
180 public function run()
181 {
182 if($this->hasEventHandler('onBeginRequest'))
183 $this->onBeginRequest(new CEvent($this));
184 register_shutdown_function(array($this,'end'),0,false);
185 $this->processRequest();
186 if($this->hasEventHandler('onEndRequest'))
187 $this->onEndRequest(new CEvent($this));
188 }
189
190 /*
#17
– /home/shinydev/domains/shinydev.toolsforresearch.com/public_html/index.php(214): CApplication->run()
209 die (sprintf('%s should be writable by the webserver (766 or 776).', $sDefaultRuntimePath));
210 }
211 }
212
213 Yii::$enableIncludePath = false;
214 Yii::createApplication('LSYii_Application', $config)->run();
215
216 / End of file index.php /
217 / Location: ./index.php */
2017-10-13 13:27:11 Apache/2 Yii Framework/1.1.18 |