PHP Error
Undefined variable: sponsor_data
/var/www/vice/www/webroot/themes/noisey/views/site/index.php(59)
47 <div class="right"><div class="moreLink"></div></div>
48 <div class="left"><div class="title"></div><div class="subtitle"></div></div>
49 </div>
50 </div>
51
52 <!-- With display set to none, the viewers won’t load and slow down page -->
53 <div id="ooyalaFactory" style="display: none;">
54 <script src="http://ooyala.com/player.js?width=480&height=270&playerId=homeViewer&hide=all&wmode=opaque&callback=nz.grid.viewers.playerEvents&autoplay=1"></script>
55 </div>
56 <?php
57 echo $this->renderPartial(‘partials/_deepViewer’);
58
59 echo $this->renderPartial(‘partials/_sortMenus’, array(‘isSponsored’ => $sponsor_data[‘isSponsored’]));
60
61 NoiseyHelper::outputJsData($pageData->data);
62
63 FileHelper::registerScriptFile(array(‘jquery-1.4.4.min’, ‘noisey’), CClientScript::POS_HEAD);
64 FileHelper::registerScriptFile(array(‘jquery-ui-1.8.6.custom.min’,‘jquery.imgload’, ‘jquery.address-1.3.min.js?crawlable=1’, ‘jquery.popup.min’, ‘jquery.jcarousel.min’, ‘jquery.ui.slider’, ‘jquery.pagination’, ‘fixOnMouseOut’,‘noisey.dv’,‘noisey.grid’, ‘cufon’), CClientScript::POS_END);
65
66 Yii::app()->clientScript->registerScript(‘blog-feed-script’,’
67 Cufon.replace(".gridScrollingFeedWindow .ftag");
68 ');
69
70 NoiseyHelper::outputJsVocab($pageData->vocab);
71 ?>
Stack Trace
#0 + – /var/www/vice/framework/web/CBaseController.php(119): [b]require[/b]("/var/www/vice/www/webroot/themes/noisey/views/site/index.php") 114 $data=$_data_;
115 if($return)
116 {
117 ob_start();
118 ob_implicit_flush(false);
119 require($viewFile);
120 return ob_get_clean();
121 }
122 else
123 require($viewFile);
124 }
#1 + – /var/www/vice/framework/web/CBaseController.php(88): [b]CBaseController[/b]->[b]renderInternal[/b]("/var/www/vice/www/webroot/themes/noisey/views/site/index.php", null, true) 83 {
84 $widgetCount=count($this->_widgetStack);
85 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension===’.’.CFileHelper::getExtension($viewFile))
86 $content=$renderer->renderFile($this,$viewFile,$data,$return);
87 else
88 $content=$this->renderInternal($viewFile,$data,$return);
89 if(count($this->_widgetStack)===$widgetCount)
90 return $content;
91 else
92 {
93 $widget=end($this->_widgetStack);
#2 + – /var/www/vice/framework/web/CController.php(833): [b]CBaseController[/b]->[b]renderFile[/b]("/var/www/vice/www/webroot/themes/noisey/views/site/index.php", null, true) 828 */
829 public function renderPartial($view,$data=null,$return=false,$processOutput=false)
830 {
831 if(($viewFile=$this->getViewFile($view))!==false)
832 {
833 $output=$this->renderFile($viewFile,$data,true);
834 if($processOutput)
835 $output=$this->processOutput($output);
836 if($return)
837 return $output;
838 else
#3 + – /var/www/vice/framework/web/CController.php(746): [b]CController[/b]->[b]renderPartial[/b]("index", null, true) 741 */
742 public function render($view,$data=null,$return=false)
743 {
744 if($this->beforeRender($view))
745 {
746 $output=$this->renderPartial($view,$data,true);
747 if(($layoutFile=$this->getLayoutFile($this->layout))!==false)
748 $output=$this->renderFile($layoutFile,array(‘content’=>$output),true);
749
750 $this->afterRender($view,$output);
751
#4 + – /var/www/vice/www/protected/controllers/SiteController.php(43): [b]CController[/b]->[b]render[/b]("index") 38 $this->redirectURI = $redirectURI;
39 }
40
41 // renders the view file ‘protected/views/site/index.php’
42 // using the default layout ‘protected/views/layouts/main.php’
43 $this->render(‘index’);
44 }
45
46 /**
47 * This is the action to handle external exceptions.
48 */
#5 + – /var/www/vice/framework/web/actions/CInlineAction.php(57): [b]SiteController[/b]->[b]actionIndex[/b]() 52 throw new CHttpException(400,Yii::t('yii','Your request is invalid.'));
53 }
54 $method->invokeArgs($controller,$params);
55 }
56 else
57 $controller->$methodName();
58 }
59 }
#6 + – /var/www/vice/framework/web/CController.php(300): [b]CInlineAction[/b]->[b]run[/b]() 295 {
296 $priorAction=$this->_action;
297 $this->_action=$action;
298 if($this->beforeAction($action))
299 {
300 $action->run();
301 $this->afterAction($action);
302 }
303 $this->_action=$priorAction;
304 }
305
#7 + – /var/www/vice/framework/web/CController.php(278): [b]CController[/b]->[b]runAction[/b](CInlineAction) 273 * @see runAction
274 */
275 public function runActionWithFilters($action,$filters)
276 {
277 if(empty($filters))
278 $this->runAction($action);
279 else
280 {
281 $priorAction=$this->_action;
282 $this->_action=$action;
283 CFilterChain::create($this,$action,$filters)->run();
#8 + – /var/www/vice/framework/web/CController.php(257): [b]CController[/b]->[b]runActionWithFilters[/b](CInlineAction, array()) 252 {
253 if(($parent=$this->getModule())===null)
254 $parent=Yii::app();
255 if($parent->beforeControllerAction($this,$action))
256 {
257 $this->runActionWithFilters($action,$this->filters());
258 $parent->afterControllerAction($this,$action);
259 }
260 }
261 else
262 $this->missingAction($actionID);
#9 + – /var/www/vice/framework/web/CWebApplication.php(328): [b]CController[/b]->[b]run[/b]("") 323 {
324 list($controller,$actionID)=$ca;
325 $oldController=$this->_controller;
326 $this->_controller=$controller;
327 $controller->init();
328 $controller->run($actionID);
329 $this->_controller=$oldController;
330 }
331 else
332 throw new CHttpException(404,Yii::t(‘yii’,‘Unable to resolve the request “{route}”.’,
333 array(’{route}’=>$route===’’?$this->defaultController:$route)));
#10 + – /var/www/vice/framework/web/CWebApplication.php(121): [b]CWebApplication[/b]->[b]runController[/b]("") 116 foreach(array_splice($this->catchAllRequest,1) as $name=>$value)
117 $_GET[$name]=$value;
118 }
119 else
120 $route=$this->getUrlManager()->parseUrl($this->getRequest());
121 $this->runController($route);
122 }
123
124 /**
125 * Registers the core application components.
126 * This method overrides the parent implementation by registering additional core components.
#11 + – /var/www/vice/framework/base/CApplication.php(155): [b]CWebApplication[/b]->[b]processRequest[/b]() 150 */
151 public function run()
152 {
153 if($this->hasEventHandler(‘onBeginRequest’))
154 $this->onBeginRequest(new CEvent($this));
155 $this->processRequest();
156 if($this->hasEventHandler(‘onEndRequest’))
157 $this->onEndRequest(new CEvent($this));
158 }
159
160 /**
#12 + – /var/www/vice/www/webroot/index.php(19): [b]CApplication[/b]->[b]run[/b]() 14 // specify how many levels of call stack should be shown in each log message
15 defined(‘YII_TRACE_LEVEL’) or define(‘YII_TRACE_LEVEL’,3);
16
17
18 require_once($yii);
19 Yii::createWebApplication($config)->run();
2011-05-17 07:42:17 Apache/2.2.14 (Ubuntu) Yii Framework/1.1.6