View Issue Details

This bug affects 1 person(s).
 10
IDProjectCategoryView StatusLast Update
15797Bug reportsOtherpublic2021-11-03 09:19
Reporteraboettgertuhh Assigned Toollehar  
PrioritynoneSeverityminor 
Status closedResolutionfixed 
Product Version4.0.1 
Target Version4.0.x 
Summary15797: Property "Question.groups" is not defined.
Description

Start check data integrity returns an error

Steps To Reproduce
  • Login as admin
  • Select Configuration
  • Select Check data integrity
TagsNo tags attached.
Attached Files
Bug heat10
Complete LimeSurvey version number (& build)4.0.1+200120
I will donate to the project if issue is resolvedNo
Browser
Database type & versionmariadb 10
Server OS (if known)
Webserver software & version (if known)
PHP Version7.2

Users monitoring this issue

Jelle_S

Activities

aboettgertuhh

aboettgertuhh

2020-01-29 14:50

reporter   ~55563

OS is Linux (Ubuntu 18.04)

ollehar

ollehar

2020-02-03 14:28

administrator   ~55645

Can you clear the Yii runtime cache and try again?

aboettgertuhh

aboettgertuhh

2020-02-04 10:05

reporter   ~55689

The instance runs in a Docker Container. The runtime cache does not survive the restart. The error remains.

ollehar

ollehar

2020-02-04 10:14

administrator   ~55691

Can you enable debug = 2 in application/config/config.php and try again, please. Paste the complete error message here.

aboettgertuhh

aboettgertuhh

2020-02-04 10:25

reporter   ~55692

I can't do that for a few days. Right now, I'm not touching the system.

DakuTree

DakuTree

2020-02-24 10:33

reporter   ~56161

Got this issue as well after upgrading from 2.73.1 to 4.1.6. Running PHP 7.3 / MySQL 5.5.
Attached the debug log.

LimeSurvey_DEBUG.txt (4,181 bytes)   
Property "Question.groups" is not defined.

/www/site/framework/db/ar/CActiveRecord.php(145)

133      */
134     public function __get($name)
135     {
136         if(isset($this->_attributes[$name]))
137             return $this->_attributes[$name];
138         elseif(isset($this->getMetaData()->columns[$name]))
139             return null;
140         elseif(isset($this->_related[$name]))
141             return $this->_related[$name];
142         elseif(isset($this->getMetaData()->relations[$name]))
143             return $this->getRelated($name);
144         else
145             return parent::__get($name);
146     }
147
148     /**
149      * PHP setter magic method.
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)
Stack Trace
#0
+  /www/site/framework/db/ar/CActiveRecord.php(145): CComponent->__get("groups")
#1
–  /www/site/application/controllers/admin/checkintegrity.php(541): CActiveRecord->__get("groups")
536
537                                 // We check if its GID is the same as the one defined in the column name
538                                 if ($oQuestion->gid != $sGid){
539
540                                     // If not, we change the column name
541                                     $sNvColName = $oSurvey->sid . 'X'. $oQuestion->groups->gid . 'X' . $sDirtyQid;
542
543                                     if ( array_key_exists( $sNvColName, $aColumns ) ){
544                                         // This case will not happen often, only when QID + Subquestion ID == QID of a question in the target group
545                                         // So we'll change the group of the question question group table (so in admin interface, not in frontend)
546                                         $oQuestion->gid = $sGid;
#2
–  /www/site/application/controllers/admin/checkintegrity.php(40): CheckIntegrity->_checkintegrity()
35         Yii::app()->loadHelper('surveytranslator');
36     }
37
38     public function index()
39     {
40         $aData = $this->_checkintegrity();
41
42
43         $aData['fullpagebar']['returnbutton']['url'] = 'admin/index';
44         $aData['fullpagebar']['returnbutton']['text'] = gT('Return to admin home');
45
#3
 unknown(0): CheckIntegrity->index()
#4
+  /www/site/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(CheckIntegrity, array())
#5
–  /www/site/application/core/Survey_Common_Action.php(86): CAction->runWithParamsInternal(CheckIntegrity, ReflectionMethod, array("r" => "admin/checkintegrity"))
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
#6
+  /www/site/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("r" => "admin/checkintegrity"))
#7
+  /www/site/framework/web/CController.php(286): CController->runAction(CheckIntegrity)
#8
+  /www/site/framework/web/CController.php(265): CController->runActionWithFilters(CheckIntegrity, array())
#9
+  /www/site/application/controllers/AdminController.php(165): CController->run("checkintegrity")
#10
+  /www/site/framework/web/CWebApplication.php(282): AdminController->run("checkintegrity")
#11
+  /www/site/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/checkintegrity")
#12
+  /www/site/framework/base/CApplication.php(185): CWebApplication->processRequest()
#13
+  /www/site/index.php(195): CApplication->run()
2020-02-24 09:22:04 nginx/1.17.8 Yii Framework/1.1.22-dev
LimeSurvey_DEBUG.txt (4,181 bytes)   
ollehar

ollehar

2021-03-10 23:05

administrator   ~63241

Please update to the latest version and check if the bug can still be reproduced. Thank you.

galads

galads

2021-11-03 09:19

reporter   ~67075

Hello aboettgertuhh,
I checked this with the latest version and could not reproduce, so this is most likely fixed for good.
Therefore, I am closing this issue. If you still can reproduce the issue using the latest version, please feel free to re-open the issue.
Thank you!

galads

Issue History

Date Modified Username Field Change
2020-01-29 14:49 aboettgertuhh New Issue
2020-01-29 14:50 aboettgertuhh Note Added: 55563
2020-02-03 12:09 Jelle_S Issue Monitored: Jelle_S
2020-02-03 14:27 ollehar Product Version => 4.0.1
2020-02-03 14:27 ollehar Target Version => 4.0.x
2020-02-03 14:28 ollehar Note Added: 55645
2020-02-04 10:05 aboettgertuhh Note Added: 55689
2020-02-04 10:14 ollehar Note Added: 55691
2020-02-04 10:25 aboettgertuhh Note Added: 55692
2020-02-04 10:33 ollehar Assigned To => ollehar
2020-02-04 10:33 ollehar Status new => feedback
2020-02-24 10:33 DakuTree File Added: LimeSurvey_DEBUG.txt
2020-02-24 10:33 DakuTree Note Added: 56161
2021-03-10 23:05 ollehar Note Added: 63241
2021-11-03 09:19 galads Note Added: 67075
2021-11-03 09:19 galads Bug heat 8 => 10
2021-11-03 09:19 galads Status feedback => closed
2021-11-03 09:19 galads Resolution open => fixed