Exception

Found no L10n object

/data/webdev/master/application/controllers/QuestionAdministrationController.php(2570)

2558      * @todo document me
2559      *
2560      * @param Question $oQuestion
2561      * @param array $dataSet
2562      * @return boolean
2563      * @throws CHttpException
2564      */
2565     private function applyL10n($oQuestion, $dataSet)
2566     {
2567         foreach ($dataSet as $sLanguage => $aI10NBlock) {
2568             $i10N = QuestionL10n::model()->findByAttributes(['qid' => $oQuestion->qid, 'language' => $sLanguage]);
2569             if (empty($i10N)) {
2570                 throw new Exception('Found no L10n object');
2571             }
2572             $i10N->setAttributes(
2573                 [
2574                     'question' => $aI10NBlock['question'],
2575                     'help'     => $aI10NBlock['help'],
2576                     'script'   => isset($aI10NBlock['script']) ? $aI10NBlock['script'] : ''
2577                 ],
2578                 false
2579             );
2580             if (!$i10N->save()) {
2581                 throw new CHttpException(500, gT("Could not store translation"));
2582             }

Stack Trace

#0
+
 /data/webdev/master/application/controllers/QuestionAdministrationController.php(425): QuestionAdministrationController->applyL10n()
420             }
421 
422             // Apply the changes to general settings, advanced settings and translations
423             $setApplied = [];
424 
425             $setApplied['questionI10N'] = $this->applyL10n($question, $questionData['questionI10N']);
426 
427             $setApplied['advancedSettings'] = $this->unparseAndSetAdvancedOptions(
428                 $question,
429                 $questionData['advancedSettings']
430             );
#5
+
 /data/webdev/master/application/controllers/LSBaseController.php(160): CController->run()
155                     $this->redirect(array('/admin/authentication/sa/login'));
156                 }
157             }
158         }
159 
160         parent::run($action);
161     }
162 
163     /**
164      * Load and set session vars
165      *
#9
+
 /data/webdev/master/index.php(192): CApplication->run()
187 require_once APPPATH . 'core/LSYii_Application' . EXT;
188 
189 $config = require_once(APPPATH . 'config/internal' . EXT);
190 
191 Yii::$enableIncludePath = false;
192 Yii::createApplication('LSYii_Application', $config)->run();
193 
194 /* End of file index.php */
195 /* Location: ./index.php */
2022-09-09 16:10:31 nginx/1.18.0 Yii Framework/1.1.25