From: Matthew S. <yo....@gm...> - 2006-06-14 01:13:17
|
Fez is making a REST call to getDatastreamDissemination see: http://www.fedora.info/definitions/1/0/api/Fedora-API-A-LITE.html The result is HTML for some reason (it should be XML). To debug what the error is, use these lines in include/class.fedora_api.php. Insert this before line 635 (before the call to process url) echo "$filename<br/>\n"; Then after the processURL line add: echo nl2br(htmlspecialchars($xml)); exit; This will halt processing just before all those error messages and print the fedora REST url being used and what fedora said back to Fez. Matt On 6/13/06, Tony Clarke <ton...@uc...> wrote: > > > > > Hi, > > > > I've just installed fez 1.2 and I keep the below messages when I try to > Create a Community. I'm using PHP 5.1.2 and doing a phpinfo() tells me that > DOM/XML support is enabled and also that Tidy support is enabled. Any help > would be greatly appreciated. > > > > Thanks, > > > > Tony. > > > > > > Warning: DOMDocument::loadXML() [function.loadXML]: Opening and ending tag > mismatch: img line 9 and td in Entity, line: 9 in > /usr/local/apache/htdocs/fez/include/class.fedora_api.php > on line 637 > > Warning: DOMDocument::loadXML() [function.loadXML]: Opening and ending tag > mismatch: td line 9 and tr in Entity, line: 16 in > /usr/local/apache/htdocs/fez/include/class.fedora_api.php > on line 637 > > Warning: DOMDocument::loadXML() [function.loadXML]: Opening and ending tag > mismatch: tr line 8 and tbody in Entity, line: 17 in > /usr/local/apache/htdocs/fez/include/class.fedora_api.php > on line 637 > > Warning: DOMDocument::loadXML() [function.loadXML]: Opening and ending tag > mismatch: tbody line 8 and table in Entity, line: 17 in > /usr/local/apache/htdocs/fez/include/class.fedora_api.php > on line 637 > > Warning: DOMDocument::loadXML() [function.loadXML]: Opening and ending tag > mismatch: table line 7 and center in Entity, line: 18 in > /usr/local/apache/htdocs/fez/include/class.fedora_api.php > on line 637 > > Warning: DOMDocument::loadXML() [function.loadXML]: Opening and ending tag > mismatch: center line 6 and body in Entity, line: 19 in > /usr/local/apache/htdocs/fez/include/class.fedora_api.php > on line 637 > > Warning: DOMDocument::loadXML() [function.loadXML]: Opening and ending tag > mismatch: body line 5 and html in Entity, line: 19 in > /usr/local/apache/htdocs/fez/include/class.fedora_api.php > on line 637 > > Warning: DOMDocument::loadXML() [function.loadXML]: Premature end of data > in tag html line 3 in Entity, line: 20 in > /usr/local/apache/htdocs/fez/include/class.fedora_api.php > on line 637 > > Fatal error: Uncaught exception 'DOMException' with message > 'DOMXPath::__construct() expects parameter 1 to be DOMDocument, boolean > given' in > /usr/local/apache/htdocs/fez/include/class.fedora_api.php:638 > Stack trace: #0 > /usr/local/apache/htdocs/fez/include/class.fedora_api.php(638): > DOMXPath->__construct(false) #1 > /usr/local/apache/htdocs/fez/include/class.record.php(1238): > Fedora_API->callGetDatastreamContentsField('ucdlib:3', > 'FezMD', Array) #2 > /usr/local/apache/htdocs/fez/include/class.record.php(820): > RecordGeneral->getXmlDisplayId() #3 > /usr/local/apache/htdocs/fez/include/class.record.php(1168): > Record->setIndexMatchingFields('ucdlib:3') #4 > /usr/local/apache/htdocs/fez/include/class.record.php(1806): > Record->insertXML('ucdlib:3', Array, true) #5 > /usr/local/apache/htdocs/fez/include/class.record.php(278): > RecordObject->fedoraInsertUpdate() #6 > /usr/local/apache/htdocs/fez/workflow/enter_metadata.php(95): > Record::insert() #7 {main} thrown in > /usr/local/apache/htdocs/fez/include/class.fedora_api.php > on line 638 > > > > > > > _______________________________________________ > Fez-users mailing list > Fez...@li... > https://lists.sourceforge.net/lists/listinfo/fez-users > > > |