Edit report at http://pear.php.net/bugs/bug.php?id=12733&edit=1
ID: 12733
Updated by: [email protected]
Reported By: simon at ruderich dot com
Summary: Warning in error.html file with XML:DocBook:peardoc2
-Status: Open
+Status: Verified
Type: Bug
Package: PhpDocumentor
Operating System: Mac OS X 10.4
Package Version: 1.4.1
PHP Version: 5.2.5
Roadmap Versions:
New Comment:
-Status: Open
+Status: Verified
Previous Comments:
------------------------------------------------------------------------
[2007-12-19 16:59:12] rudis
Description:
------------
Hi,
I'm using PhpDocumentor with XML:DocBook:peardoc2 with the following
option:
--output XML:DocBook/peardoc2:default
The problem is that the errors.html file contains the following
errors:
Warning: Smarty error: unable to read resource: "header.tpl" in
/Library/WebServer/Documents/util/phpdocumentor/phpDocumentor/Smarty-2.6.0/libs/Smarty.class.php
on line 1144
Warning: Smarty error: unable to read resource: "footer.tpl" in
/Library/WebServer/Documents/util/phpdocumentor/phpDocumentor/Smarty-2.6.0/libs/Smarty.class.php
on line 1144
This happens because the "header.tpl" and "footer.tpl" files don't
exist in
phpDocumentor/Converters/XML/DocBook/peardoc2/templates/default/templates/.
To fix it they have to be added and then everything works fine.
Maybe errors.xml should be generated instead of errors.html with valid
XML code in it which can be easily parsed.
Thanks,
Simon
------------------------------------------------------------------------