DOMException

Namespace Error

/var/www/html/naghdineh.com/application/common/vendors/Zend/Feed/Rss.php(496)

484      */
485     public function saveXml()
486     {
487         // Return a complete document including XML prologue.
488         $doc = new DOMDocument($this->_element->ownerDocument->version,
489                                $this->_element->ownerDocument->actualEncoding);
490         $root = $doc->createElement('rss');
491 
492         // Use rss version 2.0
493         $root->setAttribute('version', '2.0');
494 
495         // Content namespace
496         $root->setAttributeNS('https://www.w3.org/2000/xmlns/', 'xmlns:content', 'https://purl.org/rss/1.0/modules/content/');
497         $root->appendChild($doc->importNode($this->_element, true));
498 
499         // Append root node
500         $doc->appendChild($root);
501 
502         // Format output
503         $doc->formatOutput = true;
504 
505         return $doc->saveXML();
506     }
507 
508     /**

Stack Trace

#0
+
 /var/www/html/naghdineh.com/application/common/vendors/Zend/Feed/Rss.php(496): DOMElement->setAttributeNS("https://www.w3.org/2000/xmlns/", "xmlns:content", "https://purl.org/rss/1.0/modules/content/")
491 
492         // Use rss version 2.0
493         $root->setAttribute('version', '2.0');
494 
495         // Content namespace
496         $root->setAttributeNS('https://www.w3.org/2000/xmlns/', 'xmlns:content', 'https://purl.org/rss/1.0/modules/content/');
497         $root->appendChild($doc->importNode($this->_element, true));
498 
499         // Append root node
500         $doc->appendChild($root);
501 
#1
+
 /var/www/html/naghdineh.com/application/common/vendors/Zend/Feed/Rss.php(526): Zend_Feed_Rss->saveXml()
521             throw new Zend_Feed_Exception('Cannot send RSS because headers have already been sent.');
522         }
523 
524         header('Content-Type: application/rss+xml; charset=' . $this->_element->ownerDocument->actualEncoding);
525 
526         echo $this->saveXml();
527     }
528 
529 }
#2
+
 /var/www/html/naghdineh.com/application/frontend/widgets/page/feed/FeedView.php(63): Zend_Feed_Rss->send()
58             'title'   => 'My Rss Feed',
59             'link'    => Yii::app()->controller->createUrl(''),
60             'charset' => 'UTF-8',
61             'entries' => $entries,
62         ), 'rss');
63         $feed->send();
64         
65         
66     }  
67 }
2024-03-19 07:59:05 Apache/2.4.41 (Ubuntu) Yii Framework/1.1.15-dev