View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
13108Bug reportsUser / Groups / Rolespublic2018-01-10 17:15
ReporterTonisOrmisson Assigned ToLouisGac 
PrioritynoneSeverityminor 
Status closedResolutionfixed 
Product Version3.0.0-rc.x 
Summary13108: Property "Template.creator" is not defined.
Description

try opening r=admin/user/sa/setusertemplates
results in

CException

Property "Template.creator" is not defined.

/var/www/html/framework/db/ar/CActiveRecord.php(162)

150 This method is overridden so that AR attributes can be accessed like properties.
151
@param string $name property name
152 @param mixed $value property value
153
@throws CException
154 */
155 public function __set($name,$value)
156 {
157 if($this->setAttribute($name,$value)===false)
158 {
159 if(isset($this->getMetaData()->relations[$name]))
160 $this->_related[$name]=$value;
161 else
162 parent::set($name,$value);
163 }
164 }
165
166 /*
167
Checks if a property value is null.
168 This method overrides the parent implementation by checking
169
if the named attribute is null or not.
170 @param string $name the property name or the event name
171
@return boolean whether the property value is null
172 */
173 public function
isset($name)
174 {

Stack Trace
#0
+
/var/www/html/framework/db/ar/CActiveRecord.php(162): CComponent->set("creator", 1)
#1

/var/www/html/application/controllers/admin/useraction.php(708): CActiveRecord->
set("creator", 1)

703 $result = Template::model()->findByPk($tp);
704
705 if (count($result) == 0) {
706 $post = new Template;
707 $post->folder = $tp;
708 $post->creator = Yii::app()->session['loginID'];
709
710 try {
711 $post->save();
712 } catch (Exception $ex) {
713 Yii::app()->setFlashMessage(

#2

/var/www/html/application/controllers/admin/useraction.php(530): UserAction->_refreshtemplates()

525 if (!$oUser) {
526 // @todo : review to send a 403
527 $this->getController()->redirect(array("admin/user/sa/index"));
528 }
529 $aData['oUser'] = $oUser;
530 $this->_refreshtemplates();
531 $templaterights = array();
532
533 $trights = Permission::model()->findAllByAttributes(array('uid' => $oUser->uid, 'entity'=>'template'));
534 foreach ($trights as $srow) {
535 $templaterights[$srow["permission"]] = array("use"=>$srow["read_p"]);

#3
unknown(0): UserAction->setusertemplates()
#4
+
/var/www/html/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(UserAction, array())
#5

/var/www/html/application/core/Survey_Common_Action.php(83): CAction->runWithParamsInternal(UserAction, ReflectionMethod, array("r" => "admin/user/sa/setusertemplates", "sa" => "setusertemplates"))

78 $oMethod = new ReflectionMethod($this, $sDefault);
79 }
80
81 // We're all good to go, let's execute it
82 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params
83 return parent::runWithParamsInternal($this, $oMethod, $params);
84 }
85
86 /*
87
Some functions have different parameters, which are just an alias of the
88 * usual parameters we're getting in the url. This function just populates

#6
+
/var/www/html/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("r" => "admin/user/sa/setusertemplates", "sa" => "setusertemplates"))
#7
+
/var/www/html/framework/web/CController.php(286): CController->runAction(UserAction)
#8
+
/var/www/html/framework/web/CController.php(265): CController->runActionWithFilters(UserAction, array())
#9
+
/var/www/html/application/controllers/AdminController.php(162): CController->run("user")
#10
+
/var/www/html/framework/web/CWebApplication.php(282): AdminController->run("user")
#11
+
/var/www/html/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/user/sa/setusertemplates")
#12
+
/var/www/html/framework/base/CApplication.php(185): CWebApplication->processRequest()
#13
+
/var/www/html/index.php(195): CApplication->run()
2017-12-30 13:45:37 nginx/1.10.3 Yii Framework/1.1.18

TagsNo tags attached.
Attached Files
Bug heat4
Complete LimeSurvey version number (& build)Version 3.0.1
I will donate to the project if issue is resolvedNo
Browserna
Database type & versionna
Server OS (if known)na
Webserver software & version (if known)na
PHP Versionna

Users monitoring this issue

There are no users monitoring this issue.

Activities

TonisOrmisson

TonisOrmisson

2017-12-30 14:52

developer   ~45412

https://github.com/LimeSurvey/LimeSurvey/pull/908

TonisOrmisson

TonisOrmisson

2017-12-30 14:57

developer   ~45413

seems I have been downgraded from developer to reporter

giphy.gif (31,082 bytes)   
giphy.gif (31,082 bytes)   
LouisGac

LouisGac

2018-01-08 10:47

developer   ~45441

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=25836

Related Changesets

LimeSurvey: master 427fd3b0

2018-01-08 10:47:39

TonisOrmisson


Committer: LouisGac Details Diff
Fix 13108: Property "Template.creator" is not defined. (#908) Affected Issues
13108
mod - application/controllers/admin/useraction.php Diff File

Issue History

Date Modified Username Field Change
2017-12-30 14:48 TonisOrmisson New Issue
2017-12-30 14:52 TonisOrmisson Note Added: 45412
2017-12-30 14:57 TonisOrmisson File Added: giphy.gif
2017-12-30 14:57 TonisOrmisson Note Added: 45413
2018-01-08 10:47 LouisGac Changeset attached => LimeSurvey master 427fd3b0
2018-01-08 10:47 LouisGac Note Added: 45441
2018-01-08 10:47 LouisGac Assigned To => LouisGac
2018-01-08 10:47 LouisGac Resolution open => fixed
2018-01-08 11:42 LouisGac Status new => resolved
2018-01-10 17:15 ollehar Status resolved => closed
2018-01-10 17:15 ollehar Target Version => 3.0.2
2019-11-01 17:26 c_schmitz Category User/User groups => User / Groups / Roles