PHP error

Non-static method Questions::updateQuestionOrder() should not be called statically, assuming $this from incompatible context

C:\xampp\htdocs\limesurvey\application\controllers\admin\question.php(894)

882                 Conditions::model()->deleteAllByAttributes(array('qid' => $qid));
883                 Question_attributes::model()->deleteAllByAttributes(array('qid' => $qid));
884                 Answers::model()->deleteAllByAttributes(array('qid' => $qid));
885 
886                 $criteria = new CDbCriteria;
887                 $criteria->addCondition('qid = :qid or parent_qid = :qid');
888                 $criteria->params[':qid'] = $qid;
889                 Questions::model()->deleteAll($criteria);
890 
891                 Defaultvalues::model()->deleteAllByAttributes(array('qid' => $qid));
892                 Quota_members::model()->deleteAllByAttributes(array('qid' => $qid));
893 
894                 Questions::updateQuestionOrder($gid, $surveyid);
895 
896                 $qid = "";
897                 $postqid = "";
898                 $_GET['qid'] = "";
899             }
900 
901             Yii::app()->session['flashmessage'] = $clang->gT("Question was successfully deleted.");
902 
903             $this->getController()->redirect($this->getController()->createUrl('admin/survey/view/surveyid/' . $surveyid . '/gid/' . $gid));
904         }
905         else
906         {

Stack Trace

#2
+
 C:\xampp\htdocs\limesurvey\application\core\Survey_Common_Action.php(82): CAction->runWithParamsInternal(question, ReflectionMethod, array("surveyid" => "978173", "gid" => "41", "qid" => "565", "sa" => "delete", ...))
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
#6
+
 C:\xampp\htdocs\limesurvey\application\controllers\AdminController.php(158): CController->run("question")
153                 Yii::app()->session['redirectopage'] = Yii::app()->request->requestUri;
154 
155                 $this->redirect($this->createUrl('/admin/authentication/login'));
156             }
157 
158             return parent::run($action);
159     }
160 
161     /**
162     * Routes all the actions to their respective places
163     *
#10
+
 C:\xampp\htdocs\limesurvey\index.php(178): CApplication->run()
173  *
174  */
175 require_once BASEPATH . 'yii' . EXT;
176 require_once APPPATH . 'core/LSYii_Application' . EXT;
177 
178 Yii::createApplication('LSYii_Application', APPPATH . 'config/config' . EXT)->run();
179 
180 /* End of file index.php */
181 /* Location: ./index.php */
2012-10-24 18:05:16 Apache/2.4.2 (Win32) OpenSSL/1.0.1c PHP/5.4.4 Yii Framework/1.1.10