PHP notice

Trying to get property of non-object

/var/www/uralstudent.ru/public_html/protected/models/TextEx.php(114)

102         
103     static function getPartnersArr() {
104         Yii::import('ext.simple_html_dom.simple_html_dom');
105         $result = array();
106         
107         $htmlObject = new simple_html_dom;
108         
109         $html = $htmlObject->load(self::get(68));
110         
111         foreach ($html->find('p') as $item) {
112             $anchor = $item->find('a', 0);
113             $title = $item->find('img', 0);
114             $result[] = array('alt' => $title->alt, 'html' => $anchor->outertext);
115         }
116         
117         return $result;
118     }
119 
120     public function getTinyMceFolder() {
121     if ($this->isNewRecord) {
122             return '';
123             }
124     return get_class($this)."/$this->primaryKey/p/";
125     }
126 }

Stack Trace

#0
+
 /var/www/uralstudent.ru/public_html/protected/views/site/pages/friends.php(27): TextEx::getPartnersArr()
#5
+
 /var/www/uralstudent.ru/public_html/protected/components/Controller.php(458): CController->render("pages/friends", null, false)
453         ///Для тестирования страниц модулем sitemap//////
454         if (key_exists('test', $_GET) && $_GET['test'] === 'true')
455             $this->renderPartial($view, $data, $return);
456         /////////////////////////////////////////////////
457         
458         parent::render($view, $data, $return);
459     }
460 
461 }
462 
463 ?>
#14
+
 /var/www/uralstudent.ru/public_html/index.php(71): CApplication->run()
66 defined('YII_DEBUG') or define('YII_DEBUG',true);
67 // specify how many levels of call stack should be shown in each log message
68 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
69 
70 require_once($yii);
71 Yii::createWebApplication($config)->run(); 
2024-03-29 19:13:58 nginx/1.6.2 Yii Framework/1.1.13