PHP notice

Trying to get property of non-object

/home/rcherz/web/themes/classic/views/results/vip/_vipDay.php(12)

01 <?php
02 /**
03  * User: V. Jurenka
04  * Date: 19.8.2012
05  * Time: 11:19
06  */
07 
08 ?>
09 
10 <div class="day_wrapper">
11     <?php
12     foreach ($model->day->day_distances as $distance) {
13         $arrow_cats = array(); //arrows distributed by ends
14         $arrows = array(); //all arrows
15         $arrow_values = array(); //just numbers of values
16         $end_sums = array();
17 
18         for ($i = 0; $i < $distance->ends; $i++) {
19             $criteria = new CDbCriteria();
20             $criteria->addCondition('end_index = :end_index');
21             $criteria->addCondition('distance_id = :distance_id');
22             $criteria->addCondition('results_detailed_day = :results_detailed_day');
23             $criteria->join = 'JOIN `format_day_distances` fdd ON `t`.`distance_id` = `fdd`.`id` ';
24             $criteria->order = '`fdd`.`distance_index` ASC, `t`.`end_index` ASC';

Stack Trace

#3
+
 /home/rcherz/web/themes/classic/views/results/vip/vip.php(222): CController->renderPartial("vip/_vipDay", array("model" => ResultsDetailedDay, "summary_array" => SummaryContainer))
217     @usort($ddrs, array('Results','sortDD'));
218 
219     foreach ($ddrs as $ddr) {
220         $this->renderPartial('vip/_vipDay', array(
221             'model' => $ddr,
222             'summary_array' => $summary_array,
223         ));
224     }
225 
226     $avg_group_size = 0;
227     if (count($summary_array->avg_groups) > 0) {
#8
+
 /home/rcherz/web/protected/components/Controller.php(696): CController->render("vip/vip", array("model" => Results), false)
691      */
692     public function render($view,$data=null,$return=false)
693     {
694         if (!empty($_GET['oldContent']))
695             $this->layout = 'embeddedInNewApp';
696         return parent::render($view,$data,$return);
697     }
698 
699 }
#9
+
 /home/rcherz/web/protected/controllers/ResultsController.php(1412): Controller->render("vip/vip", array("model" => Results))
1407             //$model->estimateDetailedXY($override);
1408             if(!empty($model['user'])){
1409                 $model['user']['name'] = $model['user']->getName();
1410             }
1411             $this->render('vip/vip', array(
1412                 'model' => $model,
1413             ));
1414         }
1415 
1416     }
1417 
2024-03-29 11:44:21 nginx/1.18.0 Yii Framework/1.1.15