|
I search why i don't have this issue on my server then an idea can be:
I have this in application/config/config.php
'urlManager' => array(
'urlFormat' => 'get',
'rules' => array(
// You can add your own rules here
),
'showScriptName' => true,
),
You have this
'urlManager' => array(
'urlFormat' => 'path',
'rules' => array(
// You can add your own rules here
),
'showScriptName' => true,
),
Then maybe 'urlFormat' => 'path', is broken.
Another solution : i upgrade, and don't do a new install.
This just allow to find the final issue, with hope it was quickly fixed (currently : y only solution for new feature in dvelop is : do it, but don't test since develop is broken). |
|
Exception
Selected Surveys language not found
V:\lsgit\framework\db\ar\CActiveRecord.php(145)
133 */
134 public function get($name)
135 {
136 if(isset($this->_attributes[$name]))
137 return $this->_attributes[$name];
138 elseif(isset($this->getMetaData()->columns[$name]))
139 return null;
140 elseif(isset($this->_related[$name]))
141 return $this->_related[$name];
142 elseif(isset($this->getMetaData()->relations[$name]))
143 return $this->getRelated($name);
144 else
145 return parent::get($name);
146 }
147
148 /*
149 PHP setter magic method.
150 This method is overridden so that AR attributes can be accessed like properties.
151 @param string $name property name
152 @param mixed $value property value
153 @throws CException
154 */
155 public function __set($name,$value)
156 {
157 if($this->setAttribute($name,$value)===false)
Stack Trace
#0
- V:\lsgit\framework\base\CComponent.php(111): Survey->getCurrentLanguageSettings()
#1
- V:\lsgit\framework\db\ar\CActiveRecord.php(145): CComponent->get("currentLanguageSettings")
#2
– V:\lsgit\application\controllers\admin\surveyadmin.php(440): CActiveRecord->get("currentLanguageSettings")
435 // Ensure Last GetLastPrettyPrintExpression get info from this sid and default lang
436 LimeExpressionManager::SetEMLanguage($baselang);
437 LimeExpressionManager::SetSurveyId($iSurveyID);
438 LimeExpressionManager::StartProcessingPage(false, true);
439
440 $aData['title_bar']['title'] = $survey->currentLanguageSettings->surveyls_title." (".gT("ID").":".$iSurveyID.")";
441 $aData['surveyid'] = $iSurveyID;
442 $aData['display']['surveysummary'] = true;
443
444 // Last survey visited
445 $setting_entry = 'lastsurvey'.Yii::app()->user->getId();
#3
unknown(0): SurveyAdmin->view("146865", null, null)
#4
- V:\lsgit\framework\web\actions\CAction.php(109): ReflectionMethod->invokeArgs(SurveyAdmin, array("146865", null, null))
#5
– V:\lsgit\application\core\Survey_Common_Action.php(83): CAction->runWithParamsInternal(SurveyAdmin, ReflectionMethod, array("surveyid" => "146865", "sa" => "view", "iSurveyId" => "146865", "iSurveyID" => "146865", ...))
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
- V:\lsgit\framework\web\CController.php(308): Survey_Common_Action->runWithParams(array("surveyid" => "146865", "sa" => "view", "iSurveyId" => "146865", "iSurveyID" => "146865", ...))
#7
- V:\lsgit\framework\web\CController.php(286): CController->runAction(SurveyAdmin)
#8
- V:\lsgit\framework\web\CController.php(265): CController->runActionWithFilters(SurveyAdmin, array())
#9
– V:\lsgit\application\controllers\AdminController.php(158): CController->run("survey")
153 $this->redirect(array('/admin/authentication/sa/login'));
154 }
155 }
156 }
157
158 return parent::run($action);
159 }
160
161 /*
162 Routes all the actions to their respective places
163 *
#10
- V:\lsgit\framework\web\CWebApplication.php(282): AdminController->run("survey")
#11
- V:\lsgit\framework\web\CWebApplication.php(141): CWebApplication->runController("admin/survey/sa/view")
#12
- V:\lsgit\framework\base\CApplication.php(185): CWebApplication->processRequest()
#13
- V:\lsgit\index.php(195): CApplication->run()
|
|
You mean this?
PHP notice
Undefined index: en
V:\lsgit\application\helpers\common_helper.php(114)
102 static $cached = null;
103 $bCheckIntegrity = false;
104 $timeadjust = getGlobalSetting('timeadjust');
105 App()->setLanguage((isset(Yii::app()->session['adminlang']) ? Yii::app()->session['adminlang'] : 'en'));
106 $surveynames = array();
107
108 if (is_null($cached)) {
109 $surveyidresult = Survey::model()
110 ->permission(Yii::app()->user->getId())
111 ->with('languagesettings')
112 ->findAll();
113 foreach ($surveyidresult as $result) {
114 $surveynames[] = array_merge($result->attributes, $result->languagesettings[$result->language]->attributes);
115 }
116
117 usort($surveynames, function($a, $b)
118 {
119 return strcmp($a['surveyls_title'], $b['surveyls_title']);
120 });
121 $cached = $surveynames;
122 } else {
123 $surveynames = $cached;
124 }
125 $surveyselecter = "";
126 if ($bReturnArray === true) {
Stack Trace
#0
– V:\lsgit\application\views\admin\survey\subview\tabCopy_view.php(17): getSurveyList(false)
12 <!-- Select survey -->
13 <div class="form-group">
14 <label for='copysurveylist' class=" control-label"><?php eT("Select survey to copy:"); ?> </label>
15 <div class="">
16 <select id='copysurveylist' name='copysurveylist' required="required" class="form-control">
17 <?php echo getSurveyList(false); ?>
18 </select>
19 </div>
20 <div class="">
21 <p class="form-control-static">
22 <span class='annotation text-warning'><?php echo gT("Required"); ?> </span>
#1
- V:\lsgit\framework\web\CBaseController.php(126): require("V:\lsgit\application\views\admin\survey\subview\tabCopy_view.php")
#2
- V:\lsgit\framework\web\CBaseController.php(95): CBaseController->renderInternal("V:\lsgit\application\views/admin/survey/subview/tabCopy_view.php", array("action" => "newsurvey", "owner" => array("uid" => "1", "users_name" => "admin", "password" => "$2y$10$KoTYiTgPaJthaG7rdlHPCukeJS9sCUqCRKzdHt3WbzsSHcTMWYsZy", "full_name" => "inherit", ...), "sRadixDefault" => 0, "sDateFormatDefault" => 9, ...), true)
#3
- V:\lsgit\framework\web\CController.php(872): CBaseController->renderFile("V:\lsgit\application\views/admin/survey/subview/tabCopy_view.php", array("action" => "newsurvey", "owner" => array("uid" => "1", "users_name" => "admin", "password" => "$2y$10$KoTYiTgPaJthaG7rdlHPCukeJS9sCUqCRKzdHt3WbzsSHcTMWYsZy", "full_name" => "inherit", ...), "sRadixDefault" => 0, "sDateFormatDefault" => 9, ...), true)
#4
– V:\lsgit\application\views\admin\survey\newSurvey_view.php(44): CController->renderPartial("/admin/survey/subview/tabCopy_view", array("action" => "newsurvey", "owner" => array("uid" => "1", "users_name" => "admin", "password" => "$2y$10$KoTYiTgPaJthaG7rdlHPCukeJS9sCUqCRKzdHt3WbzsSHcTMWYsZy", "full_name" => "inherit", ...), "sRadixDefault" => 0, "sDateFormatDefault" => 9, ...))
39 <?php $this->renderPartial('/admin/survey/subview/tabImport_view',$data); ?>
40 </div>
41
42 <!-- Copy -->
43 <div id='copy' class="tab-pane fade in <?php if($active=='copy'){echo ' active ';}?>" >
44 <?php $this->renderPartial('/admin/survey/subview/tabCopy_view',$data); ?>
45 </div>
46 </div>
47 </div>
48 </div>
49
#5
- V:\lsgit\framework\web\CBaseController.php(126): require("V:\lsgit\application\views\admin\survey\newSurvey_view.php")
#6
- V:\lsgit\framework\web\CBaseController.php(95): CBaseController->renderInternal("V:\lsgit\application\views/admin/survey/newSurvey_view.php", array("oSurvey" => Survey, "data" => array("action" => "newsurvey", "owner" => array("uid" => "1", "users_name" => "admin", "password" => "$2y$10$KoTYiTgPaJthaG7rdlHPCukeJS9sCUqCRKzdHt3WbzsSHcTMWYsZy", "full_name" => "inherit", ...), "sRadixDefault" => 0, "sDateFormatDefault" => 9, ...), "title_bar" => array("title" => "New survey"), "fullpagebar" => array("savebutton" => array("form" => "addnewsurvey"), "closebutton" => array("url" => "admin/index"))), true)
#7
- V:\lsgit\framework\web\CController.php(872): CBaseController->renderFile("V:\lsgit\application\views/admin/survey/newSurvey_view.php", array("oSurvey" => Survey, "data" => array("action" => "newsurvey", "owner" => array("uid" => "1", "users_name" => "admin", "password" => "$2y$10$KoTYiTgPaJthaG7rdlHPCukeJS9sCUqCRKzdHt3WbzsSHcTMWYsZy", "full_name" => "inherit", ...), "sRadixDefault" => 0, "sDateFormatDefault" => 9, ...), "title_bar" => array("title" => "New survey"), "fullpagebar" => array("savebutton" => array("form" => "addnewsurvey"), "closebutton" => array("url" => "admin/index"))), true)
#8
– V:\lsgit\application\core\Survey_Common_Action.php(267): CController->renderPartial("/admin/survey/newSurvey_view", array("oSurvey" => Survey, "data" => array("action" => "newsurvey", "owner" => array("uid" => "1", "users_name" => "admin", "password" => "$2y$10$KoTYiTgPaJthaG7rdlHPCukeJS9sCUqCRKzdHt3WbzsSHcTMWYsZy", "full_name" => "inherit", ...), "sRadixDefault" => 0, "sDateFormatDefault" => 9, ...), "title_bar" => array("title" => "New survey"), "fullpagebar" => array("savebutton" => array("form" => "addnewsurvey"), "closebutton" => array("url" => "admin/index"))), true)
262 // Load views
263 $content = "";
264 foreach ($aViewUrls as $sViewKey => $viewUrl) {
265 if (empty($sViewKey) || !in_array($sViewKey, array('message', 'output'))) {
266 if (is_numeric($sViewKey)) {
267 $content .= Yii::app()->getController()->renderPartial($sViewPath.$viewUrl, $aData, true);
268 } elseif (is_array($viewUrl)) {
269 foreach ($viewUrl as $aSubData) {
270 $aSubData = array_merge($aData, $aSubData);
271 $content .= Yii::app()->getController()->renderPartial($sViewPath.$sViewKey, $aSubData, true);
272 }
#9
- V:\lsgit\application\core\Survey_Common_Action.php(345): Survey_Common_Action->renderCentralContents("survey", array("newSurvey_view"), array("oSurvey" => Survey, "data" => array("action" => "newsurvey", "owner" => array("uid" => "1", "users_name" => "admin", "password" => "$2y$10$KoTYiTgPaJthaG7rdlHPCukeJS9sCUqCRKzdHt3WbzsSHcTMWYsZy", "full_name" => "inherit", ...), "sRadixDefault" => 0, "sDateFormatDefault" => 9, ...), "title_bar" => array("title" => "New survey"), "fullpagebar" => array("savebutton" => array("form" => "addnewsurvey"), "closebutton" => array("url" => "admin/index"))))
#10
- V:\lsgit\application\controllers\admin\surveyadmin.php(2251): Survey_Common_Action->_renderWrappedTemplate("survey", array("newSurvey_view"), array("oSurvey" => Survey, "data" => array("action" => "newsurvey", "owner" => array("uid" => "1", "users_name" => "admin", "password" => "$2y$10$KoTYiTgPaJthaG7rdlHPCukeJS9sCUqCRKzdHt3WbzsSHcTMWYsZy", "full_name" => "inherit", ...), "sRadixDefault" => 0, "sDateFormatDefault" => 9, ...), "title_bar" => array("title" => "New survey"), "fullpagebar" => array("savebutton" => array("form" => "addnewsurvey"), "closebutton" => array("url" => "admin/index"))), false)
#11
- V:\lsgit\application\controllers\admin\surveyadmin.php(201): SurveyAdmin->_renderWrappedTemplate("survey", array("newSurvey_view"), array("oSurvey" => Survey, "data" => array("action" => "newsurvey", "owner" => array("uid" => "1", "users_name" => "admin", "password" => "$2y$10$KoTYiTgPaJthaG7rdlHPCukeJS9sCUqCRKzdHt3WbzsSHcTMWYsZy", "full_name" => "inherit", ...), "sRadixDefault" => 0, "sDateFormatDefault" => 9, ...), "title_bar" => array("title" => "New survey"), "fullpagebar" => array("savebutton" => array("form" => "addnewsurvey"), "closebutton" => array("url" => "admin/index"))))
#12
unknown(0): SurveyAdmin->newsurvey()
#13
- V:\lsgit\framework\web\actions\CAction.php(109): ReflectionMethod->invokeArgs(SurveyAdmin, array())
#14
- V:\lsgit\application\core\Survey_Common_Action.php(83): CAction->runWithParamsInternal(SurveyAdmin, ReflectionMethod, array("sa" => "newsurvey"))
#15
- V:\lsgit\framework\web\CController.php(308): Survey_Common_Action->runWithParams(array("sa" => "newsurvey"))
#16
- V:\lsgit\framework\web\CController.php(286): CController->runAction(SurveyAdmin)
#17
- V:\lsgit\framework\web\CController.php(265): CController->runActionWithFilters(SurveyAdmin, array())
#18
- V:\lsgit\application\controllers\AdminController.php(158): CController->run("survey")
#19
- V:\lsgit\framework\web\CWebApplication.php(282): AdminController->run("survey")
#20
- V:\lsgit\framework\web\CWebApplication.php(141): CWebApplication->runController("admin/survey/sa/newsurvey")
#21
- V:\lsgit\framework\base\CApplication.php(185): CWebApplication->processRequest()
#22
- V:\lsgit\index.php(195): CApplication->run()
|