PHP warning

DOMDocument::loadHTML(): Unexpected end tag : p in Entity, line: 86

/home/cvb255/apps/binoth/protected/controllers/ContentController.php(103)

091         list($h, $m, $s) = explode(":", $hms);
092         $seconds = 0;
093         $seconds += (intval($h) * 3600);
094         $seconds += (intval($m) * 60);
095         $seconds += (intval($s));
096         return $seconds;
097     }
098 
099     function getTextBetweenTags($tag, $html, $class = '') {
100         $out = null;
101         if ($html) {
102             $dom = new domDocument;
103             $dom->loadHTML($html);
104             $dom->preserveWhiteSpace = false;
105             $content = $dom->getElementsByTagname($tag);
106             $out = array();
107             foreach ($content as $item) {
108                 if ($item->getAttribute("class") == $class) {
109                     $out[] = iconv('UTF-8', 'ISO-8859-9//TRANSLIT', $item->nodeValue);
110                 }
111             }
112         }
113 
114         return $out;
115     }

Stack Trace

#0
+
 /home/cvb255/apps/binoth/protected/controllers/ContentController.php(103): DOMDocument->loadHTML()
098 
099     function getTextBetweenTags($tag, $html, $class = '') {
100         $out = null;
101         if ($html) {
102             $dom = new domDocument;
103             $dom->loadHTML($html);
104             $dom->preserveWhiteSpace = false;
105             $content = $dom->getElementsByTagname($tag);
106             $out = array();
107             foreach ($content as $item) {
108                 if ($item->getAttribute("class") == $class) {
#1
+
 /home/cvb255/apps/binoth/protected/controllers/ContentController.php(60): ContentController->getTextBetweenTags()
55 
56         if ($data) {
57             if ($data->tid == 19) {
58                 $this->render("listpublic3", array('data' => $data));
59             } else {
60                 $parts = $this->getTextBetweenTags('div', $data->body, 'mat-parts-title');
61                 $times = $this->getTextBetweenTags('div', $data->body, 'mat-parts-time');
62                 if (isset($_REQUEST['q'])) {
63                     $data->body = content::model()->highlight($data->body, $_REQUEST['q']);
64                 }
65                 if ((count($times) > 0 ) && (count($times) == count(array_unique($times)) )) {
#16
+
 /home/cvb255/apps/binoth/index.php(20): CApplication->run()
15 defined('YII_DEBUG') or define('YII_DEBUG',false);
16 // specify how many levels of call stack should be shown in each log message
17 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
18 
19 require_once($yii);
20 Yii::createWebApplication($config)->run();
21 
22 
23 //Yii::app()->assetManager->forceCopy = true; //to force relode assets files 
24 
2024-03-28 12:44:11 nginx/1.18.0 Yii Framework/1.1.12