When I set debug to 2 and try to log in to admin, I get
PHP notice
Undefined index: pap-AW
/home/creat145/public_html/surveys/application/helpers/surveytranslator_helper.php(1081)
1069 if (isset($aConversions[$sLocale])) {
1070 $sLocale = $aConversions[$sLocale];
1071 }
1072 return strtolower($sLocale);
1073 }
1074
1075 function getLanguageDataRestricted($bOrderByNative = false, $sDetail = 'full')
1076 {
1077 $aLanguageData = getLanguageData($bOrderByNative);
1078
1079 if (trim(Yii::app()->getConfig('restrictToLanguages')) != '') {
1080 foreach (explode(' ', trim(Yii::app()->getConfig('restrictToLanguages'))) as $key) {
1081 $aResult[$key] = $aLanguageData[$key];
1082 }
1083 } else {
1084 $aResult = $aLanguageData;
1085 }
1086 if ($sDetail == 'short') {
1087 foreach ($aResult as $sKey => $aLanguageData) {
1088 $aNewArray[$sKey] = $aLanguageData;
1089 }
1090 $aResult = $aNewArray;
1091 }
1092 return $aResult;
1093 }
Stack Trace
#0
– /home/creat145/public_html/surveys/application/views/admin/authentication/login.php(86): getLanguageDataRestricted(true)
81 $blockData = $pluginContent[$selectedAuth];
82 /* @var $blockData PluginEventContent */
83 echo $blockData->getContent();
84 }
85
86 $aLangList = getLanguageDataRestricted(true);
87 $languageData = array();
88
89 $reqLang = App()->request->getParam('lang');
90 if ($reqLang === null){
91 $languageData = gT('Default');
#1
– /home/creat145/public_html/surveys/framework/web/CBaseController.php(126): require("/home/creat145/public_html/surveys/application/views/admin/authe...")
121 $data=$_data_;
122 if($_return_)
123 {
124 ob_start();
125 ob_implicit_flush(false);
126 require($_viewFile_);
127 return ob_get_clean();
128 }
129 else
130 require($_viewFile_);
131 }
#2
– /home/creat145/public_html/surveys/framework/web/CBaseController.php(95): CBaseController->renderInternal("/home/creat145/public_html/surveys/application/views/admin/authe...", array("defaultAuth" => "Authdb", "summary" => "Please log in first.", "pluginContent" => array("Authdb" => LimeSurvey\PluginManager\PluginEventContent), "display" => array("menu_bars" => false), ...), true)
090 {
091 $widgetCount=count($this->_widgetStack);
092 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile))
093 $content=$renderer->renderFile($this,$viewFile,$data,$return);
094 else
095 $content=$this->renderInternal($viewFile,$data,$return);
096 if(count($this->_widgetStack)===$widgetCount)
097 return $content;
098 else
099 {
100 $widget=end($this->_widgetStack);
#3
– /home/creat145/public_html/surveys/framework/web/CController.php(872): CBaseController->renderFile("/home/creat145/public_html/surveys/application/views/admin/authe...", array("defaultAuth" => "Authdb", "summary" => "Please log in first.", "pluginContent" => array("Authdb" => LimeSurvey\PluginManager\PluginEventContent), "display" => array("menu_bars" => false), ...), true)
867 */
868 public function renderPartial($view,$data=null,$return=false,$processOutput=false)
869 {
870 if(($viewFile=$this->getViewFile($view))!==false)
871 {
872 $output=$this->renderFile($viewFile,$data,true);
873 if($processOutput)
874 $output=$this->processOutput($output);
875 if($return)
876 return $output;
877 else
#4
– /home/creat145/public_html/surveys/application/controllers/AdminController.php(222): CController->renderPartial("/admin/authentication/login", array("defaultAuth" => "Authdb", "summary" => "Please log in first.", "pluginContent" => array("Authdb" => LimeSurvey\PluginManager\PluginEventContent), "display" => array("menu_bars" => false), ...), true, false)
217 }
218
219 }
220 }
221
222 return parent::renderPartial($view,$data,$return,$processOutput);
223 }
224
225 /**
226 * Routes all the actions to their respective places
227 *
#5
– /home/creat145/public_html/surveys/application/core/Survey_Common_Action.php(274): AdminController->renderPartial("/admin/authentication/login", array("defaultAuth" => "Authdb", "summary" => "Please log in first.", "pluginContent" => array("Authdb" => LimeSurvey\PluginManager\PluginEventContent), "display" => array("menu_bars" => false), ...), true)
269 $content = "";
270
271 foreach ($aViewUrls as $sViewKey => $viewUrl) {
272 if (empty($sViewKey) || !in_array($sViewKey, array('message', 'output'))) {
273 if (is_numeric($sViewKey)) {
274 $content .= Yii::app()->getController()->renderPartial($sViewPath.$viewUrl, $aData, true);
275 } elseif (is_array($viewUrl)) {
276 foreach ($viewUrl as $aSubData) {
277 $aSubData = array_merge($aData, $aSubData);
278 $content .= Yii::app()->getController()->renderPartial($sViewPath.$sViewKey, $aSubData, true);
279 }
#6
– /home/creat145/public_html/surveys/application/core/Survey_Common_Action.php(353): Survey_Common_Action->renderCentralContents("authentication", array("login"), array("defaultAuth" => "Authdb", "summary" => "Please log in first.", "pluginContent" => array("Authdb" => LimeSurvey\PluginManager\PluginEventContent), "display" => array("menu_bars" => false), ...))
348 $renderFile = $basePath.'/layout_main.php';
349 }
350 } else {
351 $renderFile = $basePath.'/'.$sRenderFile;
352 }
353 $content = $this->renderCentralContents($sAction, $aViewUrls, $aData);
354 $out = $this->renderInternal($renderFile, , true);
355
356 App()->getClientScript()->render($out);
357 echo $out;
358 }
#7
– /home/creat145/public_html/surveys/application/controllers/admin/authentication.php(360): Survey_Common_Action->_renderWrappedTemplate("authentication", "login", array("defaultAuth" => "Authdb", "summary" => "Please log in first.", "pluginContent" => array("Authdb" => LimeSurvey\PluginManager\PluginEventContent), "display" => array("menu_bars" => false), ...), false)
355 */
356 protected function _renderWrappedTemplate($sAction = 'authentication', $aViewUrls = array(), $aData = array(), $sRenderFile = false)
357 {
358 $aData = false;
359 $aData = Yii::app()->getLanguage() != Yii::app()->getConfig("defaultlang") ? Yii::app()->getLanguage() : 'default';
360 parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData, $sRenderFile);
361 }
362
363 }
#8
– /home/creat145/public_html/surveys/application/controllers/admin/authentication.php(82): Authentication->_renderWrappedTemplate("authentication", "login", array("defaultAuth" => "Authdb", "summary" => "Please log in first.", "pluginContent" => array("Authdb" => LimeSurvey\PluginManager\PluginEventContent), "display" => array("menu_bars" => false), ...))
77
78 // Neither success nor failure, meaning no form submission - result = template data from plugin
79 $aData = $result;
80
81 // If for any reason, the plugin bugs, we can't let the user with a blank screen.
82 $this->_renderWrappedTemplate('authentication', 'login', $aData);
83 }
84
85 /**
86 * Prepare login and return result
87 * It checks if the authdb plugin is registered and active
#9
unknown(0): Authentication->index()
#10
– /home/creat145/public_html/surveys/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(Authentication, array())
104 elseif($param->isDefaultValueAvailable())
105 $ps[]=$param->getDefaultValue();
106 else
107 return false;
108 }
109 $method->invokeArgs($object,$ps);
110 return true;
111 }
112 }
#11
– /home/creat145/public_html/surveys/application/core/Survey_Common_Action.php(86): CAction->runWithParamsInternal(Authentication, ReflectionMethod, array("sa" => "login"))
81 $oMethod = new ReflectionMethod($this, $sDefault);
82 }
83
84 // We're all good to go, let's execute it
85 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params
86 return parent::runWithParamsInternal($this, $oMethod, $params);
87 }
88
89 /**
90 * Some functions have different parameters, which are just an alias of the
91 * usual parameters we're getting in the url. This function just populates
#12
– /home/creat145/public_html/surveys/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("sa" => "login"))
303 {
304 $priorAction=$this->_action;
305 $this->_action=$action;
306 if($this->beforeAction($action))
307 {
308 if($action->runWithParams($this->getActionParams())===false)
309 $this->invalidActionParams($action);
310 else
311 $this->afterAction($action);
312 }
313 $this->_action=$priorAction;
#13
– /home/creat145/public_html/surveys/framework/web/CController.php(286): CController->runAction(Authentication)
281 * @see runAction
282 */
283 public function runActionWithFilters($action,$filters)
284 {
285 if(empty($filters))
286 $this->runAction($action);
287 else
288 {
289 $priorAction=$this->_action;
290 $this->_action=$action;
291 CFilterChain::create($this,$action,$filters)->run();
#14
– /home/creat145/public_html/surveys/framework/web/CController.php(265): CController->runActionWithFilters(Authentication, array())
260 {
261 if(($parent=$this->getModule())===null)
262 $parent=Yii::app();
263 if($parent->beforeControllerAction($this,$action))
264 {
265 $this->runActionWithFilters($action,$this->filters());
266 $parent->afterControllerAction($this,$action);
267 }
268 }
269 else
270 $this->missingAction($actionID);
#15
– /home/creat145/public_html/surveys/application/controllers/AdminController.php(165): CController->run("authentication")
160 }
161
162 $this->runModuleController($action);
163
164
165 return parent::run($action);
166 }
167
168 /**
169 * Starting with LS4, 3rd party developper can extends any of the LimeSurve controllers.
170 */
#16
– /home/creat145/public_html/surveys/framework/web/CWebApplication.php(282): AdminController->run("authentication")
277 {
278 list($controller,$actionID)=$ca;
279 $oldController=$this->_controller;
280 $this->_controller=$controller;
281 $controller->init();
282 $controller->run($actionID);
283 $this->_controller=$oldController;
284 }
285 else
286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".',
287 array('{route}'=>$route===''?$this->defaultController:$route)));
#17
– /home/creat145/public_html/surveys/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/authentication/sa/login")
136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value)
137 $_GET[$name]=$value;
138 }
139 else
140 $route=$this->getUrlManager()->parseUrl($this->getRequest());
141 $this->runController($route);
142 }
143
144 /**
145 * Registers the core application components.
146 * This method overrides the parent implementation by registering additional core components.
#18
– /home/creat145/public_html/surveys/framework/base/CApplication.php(185): CWebApplication->processRequest()
180 public function run()
181 {
182 if($this->hasEventHandler('onBeginRequest'))
183 $this->onBeginRequest(new CEvent($this));
184 register_shutdown_function(array($this,'end'),0,false);
185 $this->processRequest();
186 if($this->hasEventHandler('onEndRequest'))
187 $this->onEndRequest(new CEvent($this));
188 }
189
190 /**
#19
– /home/creat145/public_html/surveys/index.php(182): CApplication->run()
177 require_once APPPATH . 'core/LSYii_Application' . EXT;
178
179 $config = require_once(APPPATH . 'config/internal' . EXT);
180
181 Yii::$enableIncludePath = false;
182 Yii::createApplication('LSYii_Application', $config)->run();
183
184 /* End of file index.php */
185 /* Location: ./index.php */
2020-04-04 10:25:41 Apache Yii Framework/1.1.22-dev
The topic has been locked.