PHP notice

Undefined index: qid

/data/webdev/master/application/controllers/admin/CheckIntegrity.php(765)

753             if ($condition['cqid'] != 0) {
754                 // skip case with cqid=0 for codnitions on {TOKEN:EMAIL} for instance
755                 if (!array_key_exists($condition['cqid'], $okQuestion)) {
756                     $iRowCount = Question::model()->countByAttributes(array('qid' => $condition['cqid']));
757                     if (!$iRowCount) {
758                         $aDelete['conditions'][] = array('cid' => $condition['cid'], 'reason' => gT('No matching CQID'));
759                     } else {
760                         $okQuestion[$condition['cqid']] = $condition['cqid'];
761                     }
762                 }
763             }
764             // Check that QID exists
765             if (!array_key_exists($condition['qid'], $okQuestion)) {
766                 $iRowCount = Question::model()->countByAttributes(array('qid' => $condition['qid']));
767                 if (!$iRowCount) {
768                     $aDelete['conditions'][] = array('cid' => $condition['cid'], 'reason' => gT('No matching QID'));
769                 } else {
770                     $okQuestion[$condition['qid']] = $condition['qid'];
771                 }
772             }
773             //Only do this if there actually is a 'cfieldname'
774             if ($condition['cfieldname']) {
775                 // only if cfieldname isn't Tag such as {TOKEN:EMAIL} or any other token
776                 if (preg_match('/^\+{0,1}[0-9]+X[0-9]+X*$/', $condition['cfieldname'])) {
777                     list ($surveyid, $gid, $rest) = explode('X', $condition['cfieldname']);

Stack Trace

#0
+
 /data/webdev/master/application/controllers/admin/CheckIntegrity.php(51): CheckIntegrity->checkintegrity()
46      *
47      * @throws Exception
48      */
49     public function index()
50     {
51         $aData = $this->checkintegrity();
52         $aData['pageTitle'] = gT('Check data integrity');
53         $aData['fullpagebar']['returnbutton']['url'] = 'admin/index';
54         $aData['fullpagebar']['returnbutton']['text'] = gT('Back');
55 
56         $this->renderWrappedTemplate('checkintegrity', 'check_view', $aData);
#3
+
 /data/webdev/master/application/core/SurveyCommonAction.php(83): CAction->runWithParamsInternal(CheckIntegrity, ReflectionMethod, array("r" => "admin/checkintegrity"))
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
#7
+
 /data/webdev/master/application/controllers/AdminController.php(202): CController->run("checkintegrity")
197         }
198 
199         $this->runModuleController($action);
200 
201 
202         return parent::run($action);
203     }
204 
205     /**
206      * Starting with LS4, 3rd party developper can extends any of the LimeSurve controllers.
207      *
2022-03-24 14:27:27 nginx/1.18.0 Yii Framework/1.1.24-dev