PHP Error

Trying to get property of non-object

/home/shipplaning/public_html/protected/controllers/TodayController.php(179)

167         }else{
168             $criteria_content_all->select = "t.id AS id,
169                                  cd_en.title AS title,
170                                  cd_en.subhead AS subhead,
171                                  cd_en.youtube AS youtube,
172                                  cd_en.videofile AS videofile,
173                                  cd_en.text AS text,
174                                  t.image AS image,
175                                  t.thumbnail AS thumbnail,
176                                  t.published AS published";
177             $criteria_content_all->join = 'LEFT JOIN content_detail as cd_en ON (cd_en.id = t.en_id)';
178         }
179         $criteria_content_all->condition = "t.type_id = '$content->type_id' AND published <> 'NULL'  AND t.id <> '$content->id' AND publisher_id IS NOT NULL";
180         $criteria_content_all->order = "published DESC LIMIT 0,4";
181         
182         $content_all = Content::model()->findAll($criteria_content_all);
183         
184         Yii::app()->user->setState('content_id', $content_id);
185         
186         $this->render('detail', array(
187             'content' => $content,
188             'content_all' => $content_all,
189                 )
190         );
191     }

Stack Trace

#9
+
 /home/shipplaning/public_html/index.php(24): CApplication->run()
19 defined('YII_DEBUG') or define('YII_DEBUG',true);
20 // specify how many levels of call stack should be shown in each log message
21 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
22 
23 require_once($yii);
24 Yii::createWebApplication($config)->run();
2024-03-29 18:28:19 Apache Yii Framework/1.1.8