View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
12777Bug reportsInstallationpublic2017-10-19 09:52
Reportertammo Assigned ToDenisChenu  
PrioritynoneSeverityblock 
Status closedResolutionfixed 
Product Version2.7x.x 
Fixed in Version2.7x.x 
Summary12777: Property "CDefaultValueValidator.0" is not defined.
Description

Internal Server Error

Property "CDefaultValueValidator.0" is not defined.

An internal error occurred while the Web server was processing your request. Please contact the webmaster to report this problem.

Thank you.

2017-10-12 21:44:48

Steps To Reproduce

Either update from older installation, or
Brand new installation

And login as admin

TagsNo tags attached.
Attached Files
Bug heat8
Complete LimeSurvey version number (& build)2.72.1 171012
I will donate to the project if issue is resolvedNo
BrowserChrome
Database type & versionMySQL
Server OS (if known)Centos
Webserver software & version (if known)Apache
PHP Version5.6.31

Users monitoring this issue

There are no users monitoring this issue.

Activities

tammo

tammo

2017-10-12 21:55

developer   ~44640

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,

ollehar

ollehar

2017-10-13 12:50

administrator   ~44647

Will try a fresh reinstall.

ollehar

ollehar

2017-10-13 12:52

administrator   ~44648

Cannot reproduce on my machine, latest git, PHP 7.

ollehar

ollehar

2017-10-13 12:52

administrator   ~44649

Screenshot?

ollehar

ollehar

2017-10-13 12:53

administrator   ~44651

Are you using a fresh database?

sebp

sebp

2017-10-13 13:11

reporter   ~44652

same here.
ubuntu 16.04
apache
php7

Auswahl_011.bmp (547,510 bytes)
sebp

sebp

2017-10-13 13:17

reporter   ~44653

OK, if i clone the git, it's working fine.
when using the latest .tar.gz I got the error described.

tammo

tammo

2017-10-13 13:29

developer   ~44654

OK, done again.

  1. download latest stable: https://www.limesurvey.org/stable-release?download=2145:limesurvey2721%20171012zip
  2. upload via FTP to Centos at: https://shinydev.toolsforresearch.com
  3. installation ran normally.
  4. 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

ollehar

ollehar

2017-10-13 13:40

administrator   ~44655

Ah, the release on the homepage is not latest. You should clone the git, as sebp did. Then you can just do "git pull" when you want to test the latest changes.

tammo

tammo

2017-10-13 14:14

developer   ~44659

Hi Ollehar, I do know that, but many users will use the "latest stable", which has this bug. You might want to fix that... (not for me, but for other users...)

ollehar

ollehar

2017-10-13 14:39

administrator   ~44660

Sure, it will be fixed on our next beta release next week.

tammo

tammo

2017-10-13 16:44

developer   ~44683

Beta is for 3.0. This error was in 2.72.1!

ollehar

ollehar

2017-10-13 17:09

administrator   ~44684

Huh?? OK. I think Carsten/Louis fixed it now.

c_schmitz

c_schmitz

2017-10-19 09:52

administrator   ~44727

Version 2.72.2+171017 released

Related Changesets

LimeSurvey: master e2586e29

2017-10-13 08:28:15

DenisChenu

Details Diff
Dev: Fixed issue at first installation Affected Issues
12777
mod - application/models/Plugin.php Diff File

Issue History

Date Modified Username Field Change
2017-10-12 21:52 tammo New Issue
2017-10-12 21:55 tammo Note Added: 44640
2017-10-13 12:50 ollehar Note Added: 44647
2017-10-13 12:52 ollehar Note Added: 44648
2017-10-13 12:52 ollehar Note Added: 44649
2017-10-13 12:53 ollehar Note Added: 44651
2017-10-13 13:11 sebp File Added: Auswahl_011.bmp
2017-10-13 13:11 sebp Note Added: 44652
2017-10-13 13:17 sebp Note Added: 44653
2017-10-13 13:29 tammo Note Added: 44654
2017-10-13 13:33 DenisChenu Changeset attached => LimeSurvey master e2586e29
2017-10-13 13:34 DenisChenu Assigned To => DenisChenu
2017-10-13 13:34 DenisChenu Status new => resolved
2017-10-13 13:34 DenisChenu Resolution open => fixed
2017-10-13 13:35 DenisChenu Fixed in Version => 2.7x.x
2017-10-13 13:40 ollehar Note Added: 44655
2017-10-13 14:14 tammo Note Added: 44659
2017-10-13 14:39 ollehar Note Added: 44660
2017-10-13 16:44 tammo Note Added: 44683
2017-10-13 17:09 ollehar Note Added: 44684
2017-10-13 17:10 ollehar Target Version 3.0 =>
2017-10-19 09:52 c_schmitz Note Added: 44727
2017-10-19 09:52 c_schmitz Status resolved => closed