View Issue Details

IDProjectCategoryView StatusLast Update
15797Bug reports[All Projects] Otherpublic2020-02-24 10:33
Reporteraboettgertuhh Assigned Toollehar  
PrioritynoneSeverityminor 
Status feedbackResolutionopen 
Product Version4.0.1 
Target Version4.0.xFixed in Version 
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.
Complete LimeSurvey version number (& build)4.0.1+200120
I will donate to the project if issue is resolvedNo
Browser
Database & DB-Versionmariadb 10
Server OS (if known)
Webserver software & version (if known)
PHP Version7.2

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)

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 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