View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 15797 | Bug reports | Other | public | 2020-01-29 14:49 | 2021-11-03 09:19 |
| Reporter | aboettgertuhh | Assigned To | ollehar | ||
| Priority | none | Severity | minor | ||
| Status | closed | Resolution | fixed | ||
| Product Version | 4.0.1 | ||||
| Target Version | 4.0.x | ||||
| Summary | 15797: Property "Question.groups" is not defined. | ||||
| Description | Start | ||||
| Steps To Reproduce |
| ||||
| Tags | No tags attached. | ||||
| Attached Files | |||||
| Bug heat | 10 | ||||
| Complete LimeSurvey version number (& build) | 4.0.1+200120 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | |||||
| Database type & version | mariadb 10 | ||||
| Server OS (if known) | |||||
| Webserver software & version (if known) | |||||
| PHP Version | 7.2 | ||||
|
OS is Linux (Ubuntu 18.04) |
|
|
Can you clear the Yii runtime cache and try again? |
|
|
The instance runs in a Docker Container. The runtime cache does not survive the restart. The error remains. |
|
|
Can you enable debug = 2 in application/config/config.php and try again, please. Paste the complete error message here. |
|
|
I can't do that for a few days. Right now, I'm not touching the system. |
|
|
Got this issue as well after upgrading from 2.73.1 to 4.1.6. Running PHP 7.3 / MySQL 5.5. 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
|
|
|
Please update to the latest version and check if the bug can still be reproduced. Thank you. |
|
|
Hello aboettgertuhh, galads |
|
| 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 |