Error

Call to a member function setOptions() on null

/srv/www/limesurvey6/application/controllers/admin/SurveysGroupsController.php(277)

265         $model = $this->loadModel($id);
266         if (!$model->hasPermission('surveysettings', 'read')) {
267             throw new CHttpException(403, gT("You do not have permission to access this page."));
268         }
269         $aData = array(
270             'model' => $model
271         );
272 
273         $sPartial = Yii::app()->request->getParam('partial', '_generaloptions_panel');
274 
275         /** @var SurveysGroupsettings $oSurvey */
276         $oSurvey = SurveysGroupsettings::model()->findByPk($model->gsid);
277         $oSurvey->setOptions(); //this gets the "values" from the group that inherits to this group ...
278         $oSurvey->owner_id = $model->owner_id;
279 
280         if (App()->getRequest()->isPostRequest && !$model->hasPermission('surveysettings', 'update')) {
281             throw new CHttpException(403, gT("You do not have permission to update survey settings."));
282         }
283         //every $_POST checked here is one of the switchers(On|Off|Inherit) names
284         // Name of sidemenulink   => name of input field
285         // "General settings"     => 'template'
286         // "Presentation"         => 'showxquestions'
287         // "Pariticipant setting" => 'anonymized'
288         // "Notification & data"  => 'datestamp'
289         // "Publication & access" => 'listpublic'

Stack Trace

#2
+
 /srv/www/limesurvey6/application/core/SurveyCommonAction.php(83): CAction->runWithParamsInternal()
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
#6
+
 /srv/www/limesurvey6/application/controllers/AdminController.php(204): CController->run()
199         $this->runModuleController($action);
200         // this will redirect the default action to the new controller previously "admin/index" or "admin" to "dashboard/view"
201         if (empty($action) || $action === 'index') {
202             $this->redirect($this->createUrl('dashboard/view'));
203         }
204         return parent::run($action);
205     }
206 
207     /**
208      * Starting with LS4, 3rd party developer can extends any of the LimeSurve controllers.
209      *
#10
+
 /srv/www/limesurvey6/index.php(161): CApplication->run()
156 require_once APPPATH . 'core/LSYii_Application' . EXT;
157 
158 $config = require_once(APPPATH . 'config/internal' . EXT);
159 
160 Yii::$enableIncludePath = false;
161 Yii::createApplication('LSYii_Application', $config)->run();
162 
163 /* End of file index.php */
164 /* Location: ./index.php */
2025-04-25 17:18:53 nginx/1.24.0 Yii Framework/1.1.30