CComponent.php(607) : eval()'d code(2)

Site was created by other developer. And work normal on other hosting. Now moved to my hosting and get error then try to enter to admin interface:


PHP notice


Trying to get property of non-object


/var/www/proverkionline/data/www/avtomc.net/yii/framework/base/CComponent.php(607) : eval()'d code(2)


Stack Trace

#0	

–  /var/www/proverkionline/data/www/avtomc.net/yii/framework/base/CComponent.php(607): eval()

602     public function evaluateExpression($_expression_,$_data_=array())

603     {

604         if(is_string($_expression_))

605         {

606             extract($_data_);

607             return eval('return '.$_expression_.';');

608 //            return "$_expression_";

609         }

610         else

611         {

612             $_data_[]=$this;

#1	

–  /var/www/proverkionline/data/www/avtomc.net/yii/framework/zii/widgets/grid/CDataColumn.php(132): CComponent->evaluateExpression(" $data->idCreator->nomination", array("data" => ProcessingInterview, "row" => 0))

127      * @param mixed $data the data associated with the row

128      */

129     protected function renderDataCellContent($row,$data)

130     {

131         if($this->value!==null)

132             $value=$this->evaluateExpression($this->value,array('data'=>$data,'row'=>$row));

133         else if($this->name!==null)

134             $value=CHtml::value($data,$this->name);

135         echo $value===null ? $this->grid->nullDisplay : $this->grid->getFormatter()->format($value,$this->type);

136     }

137 }

#2	

–  /var/www/proverkionline/data/www/avtomc.net/yii/framework/zii/widgets/grid/CGridColumn.php(145): CDataColumn->renderDataCellContent(0, ProcessingInterview)

140                 else

141                     $options['class']=$class;

142             }

143         }

144         echo CHtml::openTag('td',$options);

145         $this->renderDataCellContent($row,$data);

146         echo '</td>';

147     }

148 

149     /**

150      * Renders the footer cell.

#3	

–  /var/www/proverkionline/data/www/avtomc.net/yii/framework/zii/widgets/grid/CGridView.php(546): CGridColumn->renderDataCell(0)

541         else

542             $class='';

543 

544         echo empty($class) ? '<tr>' : '<tr class="'.$class.'">';

545         foreach($this->columns as $column)

546             $column->renderDataCell($row);

547         echo "</tr>\n";

548     }

549 

550     /**

551      * @return boolean whether the table should render a footer.

#4	

–  /var/www/proverkionline/data/www/avtomc.net/yii/framework/zii/widgets/grid/CGridView.php(517): CGridView->renderTableRow(0)

512         echo "<tbody>\n";

513 

514         if($n>0)

515         {

516             for($row=0;$row<$n;++$row)

517                 $this->renderTableRow($row);

518         }

519         else

520         {

521             echo '<tr><td colspan="'.count($this->columns).'" class="empty">';

522             $this->renderEmptyText();

#5	

–  /var/www/proverkionline/data/www/avtomc.net/yii/framework/zii/widgets/grid/CGridView.php(427): CGridView->renderTableBody()

422         if($this->dataProvider->getItemCount()>0 || $this->showTableOnEmpty)

423         {

424             echo "<table class=\"{$this->itemsCssClass}\">\n";

425             $this->renderTableHeader();

426             ob_start();

427             $this->renderTableBody();

428             $body=ob_get_clean();

429             $this->renderTableFooter();

430             echo $body; // TFOOT must appear before TBODY according to the standard.

431             echo "</table>";

432         }

#6	

–  /var/www/proverkionline/data/www/avtomc.net/yii/framework/zii/widgets/CBaseListView.php(161): CGridView->renderItems()

156     protected function renderSection($matches)

157     {

158         $method='render'.$matches[1];

159         if(method_exists($this,$method))

160         {

161             $this->$method();

162             $html=ob_get_contents();

163             ob_clean();

164             return $html;

165         }

166         else

#7	

 unknown(0): CBaseListView->renderSection(array("{items}", "items"))

#8	

–  /var/www/proverkionline/data/www/avtomc.net/yii/framework/zii/widgets/CBaseListView.php(144): preg_replace_callback("/{(\w+)}/", array(EExcelView, "renderSection"), "{summary} {items} {pager}")

139      * The rendering results will replace the corresponding placeholders in {@link template}.

140      */

141     public function renderContent()

142     {

143         ob_start();

144         echo preg_replace_callback("/{(\w+)}/",array($this,'renderSection'),$this->template);

145         ob_end_flush();

146     }

147 

148     /**

149      * Renders a section.

#9	

–  /var/www/proverkionline/data/www/avtomc.net/yii/framework/zii/widgets/CBaseListView.php(129): CBaseListView->renderContent()

124     {

125         $this->registerClientScript();

126 

127         echo CHtml::openTag($this->tagName,$this->htmlOptions)."\n";

128 

129         $this->renderContent();

130         $this->renderKeys();

131 

132         echo CHtml::closeTag($this->tagName);

133     }

134 

#10	

–  /var/www/proverkionline/data/www/avtomc.net/protected/extensions/eexcelview/EExcelView.php(222): CBaseListView->run()

217                     ob_start();

218                     Yii::app()->end();

219                     ob_end_clean();

220                 }

221             } else

222                 parent::run();

223         }

224 

225         /**

226         * Returns the coresponding excel column.(Abdul Rehman from yii forum)

227         * 

#11	

–  /var/www/proverkionline/data/www/avtomc.net/protected/modules/admin/views/analitics/_report.php(224): EExcelView->run()

219     }",

220 ));

221  

222 $widget->init();

223 //$widget->renderExportButtons();

224 $widget->run();

225 ?>

#12	

–  /var/www/proverkionline/data/www/avtomc.net/yii/framework/web/CBaseController.php(127): require("/var/www/proverkionline/data/www/avtomc.net/protected/modules/ad...")

122             $data=$_data_;

123         if($_return_)

124         {

125             ob_start();

126             ob_implicit_flush(false);

127             require($_viewFile_);

128             return ob_get_clean();

129         }

130         else

131             require($_viewFile_);

132     }

#13	

–  /var/www/proverkionline/data/www/avtomc.net/yii/framework/web/CBaseController.php(96): CBaseController->renderInternal("/var/www/proverkionline/data/www/avtomc.net/protected/modules/ad...", array("model" => ProcessingInterview, "model_form" => StatisticsFormReport), true)

091     {

092         $widgetCount=count($this->_widgetStack);

093         if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile))

094             $content=$renderer->renderFile($this,$viewFile,$data,$return);

095         else

096             $content=$this->renderInternal($viewFile,$data,$return);

097         if(count($this->_widgetStack)===$widgetCount)

098             return $content;

099         else

100         {

101             $widget=end($this->_widgetStack);

#14	

–  /var/www/proverkionline/data/www/avtomc.net/yii/framework/web/CController.php(870): CBaseController->renderFile("/var/www/proverkionline/data/www/avtomc.net/protected/modules/ad...", array("model" => ProcessingInterview, "model_form" => StatisticsFormReport), true)

865      */

866     public function renderPartial($view,$data=null,$return=false,$processOutput=false)

867     {

868         if(($viewFile=$this->getViewFile($view))!==false)

869         {

870             $output=$this->renderFile($viewFile,$data,true);

871             if($processOutput)

872                 $output=$this->processOutput($output);

873             if($return)

874                 return $output;

875             else

#15	

–  /var/www/proverkionline/data/www/avtomc.net/protected/modules/admin/views/analitics/index.php(9): CController->renderPartial("_report", array("model" => ProcessingInterview, "model_form" => StatisticsFormReport), true)

04 <?php

05 $this->widget('zii.widgets.jui.CJuiTabs', array(

06     'headerTemplate' => '<li><a href="{url}" title="{title}">{title}</a></li>',

07     'tabs'=>array(

08         'Статистика'=> $this->renderPartial('_statistics', array(), true),

09         'Сводный отчет'=>$this->renderPartial('_report', array('model' => $model_search_processing, 'model_form' => new StatisticsFormReport()), true),

10     ),

11     'options'=>array(

12         'collapsible'=>true,

13     ),

14 ));

#16	

–  /var/www/proverkionline/data/www/avtomc.net/yii/framework/web/CBaseController.php(127): require("/var/www/proverkionline/data/www/avtomc.net/protected/modules/ad...")

122             $data=$_data_;

123         if($_return_)

124         {

125             ob_start();

126             ob_implicit_flush(false);

127             require($_viewFile_);

128             return ob_get_clean();

129         }

130         else

131             require($_viewFile_);

132     }

#17	

–  /var/www/proverkionline/data/www/avtomc.net/yii/framework/web/CBaseController.php(96): CBaseController->renderInternal("/var/www/proverkionline/data/www/avtomc.net/protected/modules/ad...", array("model_search_processing" => ProcessingInterview), true)

091     {

092         $widgetCount=count($this->_widgetStack);

093         if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile))

094             $content=$renderer->renderFile($this,$viewFile,$data,$return);

095         else

096             $content=$this->renderInternal($viewFile,$data,$return);

097         if(count($this->_widgetStack)===$widgetCount)

098             return $content;

099         else

100         {

101             $widget=end($this->_widgetStack);

#18	

–  /var/www/proverkionline/data/www/avtomc.net/yii/framework/web/CController.php(870): CBaseController->renderFile("/var/www/proverkionline/data/www/avtomc.net/protected/modules/ad...", array("model_search_processing" => ProcessingInterview), true)

865      */

866     public function renderPartial($view,$data=null,$return=false,$processOutput=false)

867     {

868         if(($viewFile=$this->getViewFile($view))!==false)

869         {

870             $output=$this->renderFile($viewFile,$data,true);

871             if($processOutput)

872                 $output=$this->processOutput($output);

873             if($return)

874                 return $output;

875             else

#19	

–  /var/www/proverkionline/data/www/avtomc.net/yii/framework/web/CController.php(783): CController->renderPartial("index", array("model_search_processing" => ProcessingInterview), true)

778      */

779     public function render($view,$data=null,$return=false)

780     {

781         if($this->beforeRender($view))

782         {

783             $output=$this->renderPartial($view,$data,true);

784             if(($layoutFile=$this->getLayoutFile($this->layout))!==false)

785                 $output=$this->renderFile($layoutFile,array('content'=>$output),true);

786 

787             $this->afterRender($view,$output);

788 

#20	

–  /var/www/proverkionline/data/www/avtomc.net/protected/modules/admin/controllers/AnaliticsController.php(173): CController->render("index", array("model_search_processing" => ProcessingInterview))

168             ));

169             

170             die();

171         }

172         

173         $this->render('index', array('model_search_processing' => $model));

174     }

175     

176     public function actionGetstat()

177     {

178         $model=new StatisticsForm;

#21	

–  /var/www/proverkionline/data/www/avtomc.net/yii/framework/web/actions/CInlineAction.php(50): AnaliticsController->actionIndex()

45         $controller=$this->getController();

46         $method=new ReflectionMethod($controller, $methodName);

47         if($method->getNumberOfParameters()>0)

48             return $this->runWithParamsInternal($controller, $method, $params);

49         else

50             return $controller->$methodName();

51     }

52 

53 }

#22	

–  /var/www/proverkionline/data/www/avtomc.net/yii/framework/web/CController.php(309): CInlineAction->runWithParams(array())

304     {

305         $priorAction=$this->_action;

306         $this->_action=$action;

307         if($this->beforeAction($action))

308         {

309             if($action->runWithParams($this->getActionParams())===false)

310                 $this->invalidActionParams($action);

311             else

312                 $this->afterAction($action);

313         }

314         $this->_action=$priorAction;

#23	

–  /var/www/proverkionline/data/www/avtomc.net/yii/framework/web/CController.php(287): CController->runAction(CInlineAction)

282      * @see runAction

283      */

284     public function runActionWithFilters($action,$filters)

285     {

286         if(empty($filters))

287             $this->runAction($action);

288         else

289         {

290             $priorAction=$this->_action;

291             $this->_action=$action;

292             CFilterChain::create($this,$action,$filters)->run();

#24	

–  /var/www/proverkionline/data/www/avtomc.net/yii/framework/web/CController.php(266): CController->runActionWithFilters(CInlineAction, array())

261         {

262             if(($parent=$this->getModule())===null)

263                 $parent=Yii::app();

264             if($parent->beforeControllerAction($this,$action))

265             {

266                 $this->runActionWithFilters($action,$this->filters());

267                 $parent->afterControllerAction($this,$action);

268             }

269         }

270         else

271             $this->missingAction($actionID);

#25	

–  /var/www/proverkionline/data/www/avtomc.net/yii/framework/web/CWebApplication.php(283): CController->run("")

278         {

279             list($controller,$actionID)=$ca;

280             $oldController=$this->_controller;

281             $this->_controller=$controller;

282             $controller->init();

283             $controller->run($actionID);

284             $this->_controller=$oldController;

285         }

286         else

287             throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".',

288                 array('{route}'=>$route===''?$this->defaultController:$route)));

#26	

–  /var/www/proverkionline/data/www/avtomc.net/yii/framework/web/CWebApplication.php(142): CWebApplication->runController("admin/analitics")

137             foreach(array_splice($this->catchAllRequest,1) as $name=>$value)

138                 $_GET[$name]=$value;

139         }

140         else

141             $route=$this->getUrlManager()->parseUrl($this->getRequest());

142         $this->runController($route);

143     }

144 

145     /**

146      * Registers the core application components.

147      * This method overrides the parent implementation by registering additional core components.

#27	

–  /var/www/proverkionline/data/www/avtomc.net/yii/framework/base/CApplication.php(162): CWebApplication->processRequest()

157      */

158     public function run()

159     {

160         if($this->hasEventHandler('onBeginRequest'))

161             $this->onBeginRequest(new CEvent($this));

162         $this->processRequest();

163         if($this->hasEventHandler('onEndRequest'))

164             $this->onEndRequest(new CEvent($this));

165     }

166 

167     /**

#28	

–  /var/www/proverkionline/data/www/avtomc.net/index.php(13): CApplication->run()

08 defined('YII_DEBUG') or define('YII_DEBUG',true);

09 // specify how many levels of call stack should be shown in each log message

10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);

11 

12 require_once($yii);

13 Yii::createWebApplication($config)->run();

2015-02-06 17:25:07 Apache/2.2.22 (@RELEASE@) Yii Framework/1.1.12

Can somebody help me?