TPhpErrorException

Description

[Warning] DOMDocument::loadXML(): Empty string supplied as input (@line 12 in file /var/www/protected/SNS/RelsExt.php).

Source File

/var/www/protected/SNS/RelsExt.php (12)

0001: <?php
0002: 
0003: class RelsExt
0004: {
0005:   private $_domDoc = null;
0006:   private $_domXPath = null;
0007:   private $_parentCollections = array();
0008: 
0009:   public function __construct($xml)
0010:   {
0011:     $this->_domDoc = new DOMDocument;
0012: $this->_domDoc->loadXML($xml);
0013: $this->_domXPath = new DOMXPath($this->_domDoc); 0014: 0015: $xpath = "/rdf:RDF/rdf:Description/*[local-name()='isMemberOfCollection']/@rdf:resource"; 0016: foreach ($this->_domXPath->query($xpath) as $item) { 0017: $this->_parentCollections[] = str_replace('info:fedora/', '', $item->nodeValue); 0018: } 0019: } 0020: 0021: public function getParentCollections() { 0022: return $this->_parentCollections; 0023: } 0024:

Stack Trace

#0 [internal function]: PradoBase::phpErrorHandler(2, 'DOMDocument::lo...', '/var/www/protec...', 12, Array)
#1 /var/www/protected/SNS/RelsExt.php(12): DOMDocument->loadXML('')
#2 /var/www/protected/SNS/DigitalObject.php(175): RelsExt->__construct(NULL)
#3 /var/www/protected/SNS/DigitalObject.php(48): DigitalObject->getParentCollections()
#4 /var/www/protected/pages/View/ObjectContent.php(53): DigitalObject->isLocked()
#5 /var/www/prado-3.1.10.r3017/framework/Web/UI/TPage.php(204): ObjectContent->onPreInit(NULL)
#6 /var/www/prado-3.1.10.r3017/framework/Web/UI/TPage.php(198): TPage->processNormalRequest(Object(THtmlWriter))
#7 /var/www/prado-3.1.10.r3017/framework/Web/Services/TPageService.php(498): TPage->run(Object(THtmlWriter))
#8 /var/www/prado-3.1.10.r3017/framework/Web/Services/TPageService.php(444): TPageService->runPage(Object(ObjectContent), Array)
#9 /var/www/prado-3.1.10.r3017/framework/TApplication.php(1095): TPageService->run()
#10 /var/www/prado-3.1.10.r3017/framework/TApplication.php(382): TApplication->runService()
#11 /var/www/index.php(23): TApplication->run()
#12 {main}
2024-11-28 17:56 Apache PRADO/3.1.10