PHP notice

Undefined property: stdClass::$aswerscales

/mnt/data/shnoulle/nginx/www/develop/application/helpers/admin/activate_helper.php(170)

158         if ((int)$questionTypesMetaData[$chkrow['type']]['settings']->subquestions > 0) {
159             for ($i = 0; $i < (int)$questionTypesMetaData[$chkrow['type']]['settings']->subquestions; $i++) {
160                 $chaquery = Yii::app()->db->createCommand()
161                     ->select('COUNT(qid)')
162                     ->from('{{questions}}')
163                     ->where('parent_qid = :qid and scale_id=:scaleid', [':qid'=>$chkrow['qid'], ':scaleid'=>$i]);
164                 $chacount = $chaquery->queryScalar();
165                 if ($chacount == 0) {
166                     $failedcheck[] = array($chkrow['qid'], flattenText($chkrow['question'], true, true, 'utf-8', true), ": ".gT("This question has missing subquestions."), $chkrow['gid']);
167                 }
168             }
169         }
170         if ((int)$questionTypesMetaData[$chkrow['type']]['settings']->aswerscales > 0) {
171             for ($i = 0; $i < (int)$questionTypesMetaData[$chkrow['type']]['settings']->aswerscales; $i++) {
172                 $chaquery = Yii::app()->db->createCommand()
173                     ->select('COUNT(aid)')
174                     ->from('{{answers}}')
175                     ->where('qid = :qid and scale_id=:scaleid', [':qid'=>$chkrow['qid'], ':scaleid'=>$i]);
176                 $chacount = $chaquery->queryScalar();
177                 if ($chacount == 0) {
178                     $failedcheck[] = array($chkrow['qid'], flattenText($chkrow['question'], true, true, 'utf-8', true), ": ".gT("This question has missing answer options."), $chkrow['gid']);
179                 }
180             }
181         }
182     }

Stack Trace

#0
+
 /mnt/data/shnoulle/nginx/www/develop/application/controllers/SurveyAdministrationController.php(1614): checkQuestions(275719, 275719)
1609                 fixNumbering($_GET['fixnumbering'], $iSurveyID);
1610             }
1611 
1612             // Check consistency for groups and questions
1613             $failedgroupcheck = checkGroup($iSurveyID);
1614             $failedcheck = checkQuestions($iSurveyID, $iSurveyID);
1615 
1616             $aData['failedcheck'] = $failedcheck;
1617             $aData['failedgroupcheck'] = $failedgroupcheck;
1618             $aData['aSurveysettings'] = getSurveyInfo($iSurveyID);
1619 
#7
+
 /mnt/data/shnoulle/nginx/www/develop/application/controllers/LSBaseController.php(140): CController->run("activate")
135                     $this->redirect(array('/admin/authentication/sa/login'));
136                 }
137             }
138         }
139 
140         parent::run($action);
141     }
142 
143     /**
144      * Load and set session vars
145      *
#11
+
 /mnt/data/shnoulle/nginx/www/develop/index.php(182): CApplication->run()
177 require_once APPPATH . 'core/LSYii_Application' . EXT;
178 
179 $config = require_once(APPPATH . 'config/internal' . EXT);
180 
181 Yii::$enableIncludePath = false;
182 Yii::createApplication('LSYii_Application', $config)->run();
183 
184 /* End of file index.php */
185 /* Location: ./index.php */
2021-01-13 07:37:55 nginx/1.18.0 Yii Framework/1.1.22-dev