In this case, the version contained a string that the extension appeared to have a hard time dealing with. This resulted in an empty XML file. The offending string (using Markdown Extra with Smarty Pants) contained the following (this is what I added to the textarea to trigger this behaviour):
DOMDocument::load() [domdocument.load]: Document is empty in /Users/stephen/Sites/domain7/team/manifest/versions/255/2.xml, line: 1
/Users/stephen/Sites/domain7/team/extensions/entry_versions/lib/class.entryversionsmanager.php line 80
75 $files['filelist'] = array_reverse($files['filelist']);
76
77
78 foreach($files['filelist'] as $file) {
79 $entry = new DomDocument();
80 $entry->load(MANIFEST . '/versions/' . $entry_id . '/' . $file);
81 $entries[] = $entry;
82 }
83
84 return $entries;
I was able to view the entry after copying content from another version into the file and changing the entry element version attribute value to the appropriate version number.
The problem does not occur when the offending string is wrapped in a CDATA section.
In this case, the version contained a string that the extension appeared to have a hard time dealing with. This resulted in an empty XML file. The offending string (using Markdown Extra with Smarty Pants) contained the following (this is what I added to the textarea to trigger this behaviour):
This resulted in the following error:
I was able to view the entry after copying content from another version into the file and changing the entry element version attribute value to the appropriate version number.
The problem does not occur when the offending string is wrapped in a CDATA section.