/mnt/data/shnoulle/nginx/www/master/plugins/brokenPlugin/views/test.php(2)
1 <?php 2 if($moreData['invalid']) { 3 echo "Invalid data"; 4 } else { 5 echo "Valid data"; 6 }
#0 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CBaseController.php(126): require("/mnt/data/shnoulle/nginx/www/master/plugins/brokenPlugin/views/t...") 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 } |
#1 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CBaseController.php(95): CBaseController->renderInternal("/mnt/data/shnoulle/nginx/www/master/plugins/brokenPlugin/views/t...",
array("aSurvey" => array("htmlemail" => "Y", "format" => "G",
"template" => "skelvanilla", "language" => "en", ...), "moreData"
=> array(), "plugin" => brokenPlugin), 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); |
#2 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(872): CBaseController->renderFile("/mnt/data/shnoulle/nginx/www/master/plugins/brokenPlugin/views/t...",
array("aSurvey" => array("htmlemail" => "Y", "format" => "G",
"template" => "skelvanilla", "language" => "en", ...), "moreData"
=> array(), "plugin" => brokenPlugin), 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 |
#3 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/libraries/PluginManager/PluginBase.php(314): CController->renderPartial("plugin_views_folder124.views.test",
array("aSurvey" => array("htmlemail" => "Y", "format" => "G",
"template" => "skelvanilla", "language" => "en", ...), "moreData"
=> array(), "plugin" => brokenPlugin), true, false) 309 } 310 311 // Provide this so we can use $plugin->gT() in plugin views 312 $data['plugin'] = $this; 313 314 return \Yii::app()->controller->renderPartial($fullAlias, $data, $return, $processOutput); 315 } 316 317 /** 318 * Translation for plugin 319 * |
#4 |
+
–
/mnt/data/shnoulle/nginx/www/master/plugins/brokenPlugin/brokenPlugin.php(138): LimeSurvey\PluginManager\PluginBase->renderPartial("test",
array("aSurvey" => array("htmlemail" => "Y", "format" => "G",
"template" => "skelvanilla", "language" => "en", ...), "moreData"
=> array(), "plugin" => brokenPlugin), true) 133 'aSurvey' => \Survey::model()->findByPk($surveyId)->getAttributes(), 134 'moreData' => array( 135 // Just to show the issue 136 ), 137 ); 138 $content = $this->renderPartial('test', $aData, true); 139 return $content; 140 } 141 } |
#5 |
unknown(0): brokenPlugin->actionView("583968")
|
#6 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/controllers/admin/PluginHelper.php(125): ReflectionMethod->invoke(brokenPlugin, "583968") 120 * @return string 121 */ 122 protected function getContent($surveyId, $plugin, $method) 123 { 124 list($pluginInstance, $refMethod) = $this->getPluginInstanceAndMethod($plugin, $method); 125 return $refMethod->invoke($pluginInstance, $surveyId); 126 } 127 } |
#7 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/controllers/admin/PluginHelper.php(40): PluginHelper->getContent("583968", "brokenPlugin", "actionView") 35 $aData['activated'] = $oSurvey->active; 36 } 37 // Plugin must test to send 404 if needed, maybe want to “create” a new survey, who know … 38 } 39 $aData['surveyid'] = $surveyid; 40 $content = $this->getContent($surveyid, $plugin, $method); 41 42 $aData['sidemenu'] = array(); 43 $aData['sidemenu']['state'] = false; 44 $aData['sideMenuBehaviour'] = getGlobalSetting('sideMenuBehaviour'); 45 $aData['content'] = $content; |
#8 |
unknown(0): PluginHelper->sidebody("583968", "brokenPlugin", "actionView")
|
#9 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(PluginHelper, array("583968", "brokenPlugin", "actionView")) 104 elseif($param->isDefaultValueAvailable()) 105 $ps[]=$param->getDefaultValue(); 106 else 107 return false; 108 } 109 $method->invokeArgs($object,$ps); 110 return true; 111 } 112 } |
#10 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/core/Survey_Common_Action.php(83): CAction->runWithParamsInternal(PluginHelper,
ReflectionMethod, array("surveyid" => "583968", "plugin" =>
"brokenPlugin", "method" => "actionView", "sa" => "sidebody",
...)) 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 |
#11 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("surveyid" => "583968", "plugin" => "brokenPlugin", "method" => "actionView", "sa" => "sidebody", ...)) 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; |
#12 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(286): CController->runAction(PluginHelper) 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(); |
#13 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(265): CController->runActionWithFilters(PluginHelper, 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); |
#14 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/controllers/AdminController.php(158): CController->run("pluginhelper") 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 * |
#15 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CWebApplication.php(282): AdminController->run("pluginhelper") 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))); |
#16 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/pluginhelper/sa/sidebody") 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. |
#17 |
+
–
/mnt/data/shnoulle/nginx/www/master/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 /** |
#18 |
+
–
/mnt/data/shnoulle/nginx/www/master/index.php(194): CApplication->run() 189 require_once APPPATH . 'core/LSYii_Application' . EXT; 190 191 $config = require_once(APPPATH . 'config/internal' . EXT); 192 193 Yii::$enableIncludePath = false; 194 Yii::createApplication('LSYii_Application', $config)->run(); 195 196 /* End of file index.php */ 197 /* Location: ./index.php */ |