CDbException

The value for the column "gid" is not supplied when querying the table "lime_groups".

C:\xampp\htdocs\limesurvey\framework\db\schema\CDbCommandBuilder.php(686)

674 
675                 for($i=0;$i<$n;++$i)
676                 {
677                     if(isset($values[$i][$name]))
678                     {
679                         $value=$table->columns[$name]->typecast($values[$i][$name]);
680                         if(is_string($value))
681                             $values[$i][$name]=$db->quoteValue($value);
682                         else
683                             $values[$i][$name]=$value;
684                     }
685                     else
686                         throw new CDbException(Yii::t('yii','The value for the column "{column}" is not supplied when querying the table "{table}".',
687                             array('{table}'=>$table->name,'{column}'=>$name)));
688                 }
689             }
690             if(count($values)===1)
691             {
692                 $entries=array();
693                 foreach($values[0] as $name=>$value)
694                     $entries[]=$prefix.$table->columns[$name]->rawName.($value===null?' IS NULL':'='.$value);
695                 return implode(' AND ',$entries);
696             }
697 
698             return $this->createCompositeInCondition($table,$values,$prefix);

Stack Trace

#2
+
 C:\xampp\htdocs\limesurvey\application\controllers\admin\checkintegrity.php(529): CActiveRecord->findAllByPk("41")
524         $criteria->compare('scope', 'G');
525         $assessments = Assessment::model()->findAll($criteria);
526         if (Assessment::model()->hasErrors()) safeDie(Assessment::model()->getError());
527         foreach ($assessments as $assessment)
528         {
529             $iAssessmentCount = count(Groups::model()->findAllByPk($assessment['gid']));
530             if (Groups::model()->hasErrors()) safeDie(Groups::model()->getError());
531             if (!$iAssessmentCount) {
532                 $aDelete['assessments'][] = array('id' => $assessment['id'], 'assessment' => $assessment['name'], 'reason' => $clang->gT('No matching group'));
533             }
534         }
#3
+
 C:\xampp\htdocs\limesurvey\application\controllers\admin\checkintegrity.php(39): CheckIntegrity->_checkintegrity()
34         Yii::app()->loadHelper('database');
35     }
36 
37     public function index()
38     {
39         $aData = $this->_checkintegrity();
40         $this->_renderWrappedTemplate('checkintegrity', 'check_view', $aData);
41     }
42 
43     public function fixredundancy()
44     {
#6
+
 C:\xampp\htdocs\limesurvey\application\core\Survey_Common_Action.php(82): CAction->runWithParamsInternal(CheckIntegrity, ReflectionMethod, array())
77             $oMethod = new ReflectionMethod($this, $sDefault);
78         }
79 
80         // We're all good to go, let's execute it
81         // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params
82         return parent::runWithParamsInternal($this, $oMethod, $params);
83     }
84 
85     /**
86     * Some functions have different parameters, which are just an alias of the
87     * usual parameters we're getting in the url. This function just populates
2012-11-21 13:13:44 Apache/2.4.2 (Win32) OpenSSL/1.0.1c PHP/5.4.4 Yii Framework/1.1.10