-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to load external entity components.xsl #255
Comments
This seems to be a MacOS specific problem as I fail to reproduce this problem under Linux. |
I have the same issue with PHAR and GIT version. |
I still have no idea as to why this happens or how to avoid it from happening. Can any of you, by any chance, verify if the problem is PHP 5.4 specific? |
5.5.3 PHP Version: 5.5.30 (Darwin) XSLTProcessor::transformToDoc(): No stylesheet associated to this object #0 phar:///usr/local/bin/phpdox/vendor/theseer/fxsl/src/fxsltprocessor.php(192): XSLTProcessor->transformToDoc() |
|
I did a latest git pull version to see if I could run a debugger and it ran OK.
` ` 1. run phpdox/phpdoxHave no phploc summary, but do have phpdox output. |
I extracted the phar - the templates directory is one level up from the source version. I don't know how the templates location is configured though. |
The bug only manifests itself when phpdox is run from a phar. The problem seems to be that for a yet to be determined reason the PHP I/O-Subsystem aka the phar stream wrapper does have issues with libxml under MacOS and possibly windows. I'm already considering to add a build step that replaces the includes into a static when creating the phar. |
I just encountered the very same issue on Mac OS.
|
@Solomonic installing from composer then using |
I still have this issue and I am unable to resolve it even after using composer to install PHPDox on MAC. Any further clues? The above suggested workaround is not working. Is there anything specific that needs to be done while using above workaround? |
Is this resolved? I just faced this issue and above information is not clear on how to address the problem. I am on MAC and what I am reading above is that this only manifests on MAC. Any pointer? |
I do not own a Mac so I cannot debug this any further or actively try out additional solutions. For the time being, the only two workaround are to a) not use the phar version but install phpDox via composer or b) extract the templates and give a custom directory within phpdox.xml that is outside the phar. |
Thanks for your response. I used method b) to solve my problem. It worked !!! |
I implemented a workaround that resolves the includes manually rather than having libxslt do it. |
Just a dump of my output... Not that much information from what I can see.
[26.11.2015 - 21:00:28] Collector process completed
[26.11.2015 - 21:00:28] Starting generator
[26.11.2015 - 21:00:28] Loading enrichers
[26.11.2015 - 21:00:28] Enricher Build Information initialized successfully
[26.11.2015 - 21:00:28] Starting event loop.
....I/O warning : failed to load external entity "phar://phpdox.phar/templates/html/components.xsl"
I/O warning : failed to load external entity "phar://phpdox.phar/templates/html/functions.xsl"
I/O warning : failed to load external entity "phar://phpdox.phar/templates/html/synopsis.xsl"
Oups... phpDox encountered a problem and has terminated!
It most likely means you've found a bug, so please file a report for this
and paste the following details and the stacktrace (if given) along:
PHP Version: 5.4.45 (Darwin)
PHPDox Version: 0.8.1.1
ErrorException: E_WARNING
Location: phar:///usr/local/bin/phpdox/vendor/theseer/fxsl/src/fxsltprocessor.php (Line 192)
XSLTProcessor::transformToDoc(): No stylesheet associated to this object
#0 phar:///usr/local/bin/phpdox/vendor/theseer/fxsl/src/fxsltprocessor.php(192): XSLTProcessor->transformToDoc()
#1 phar:///usr/local/bin/phpdox/phpdox/generator/engine/html/Html.php(208): TheSeer\fXSL\fXSLTProcessor->transformToDoc()
#2 unknown(0): TheSeer\phpDox\Generator\Engine\Html->buildClass()
#3 phar:///usr/local/bin/phpdox/phpdox/generator/Generator.php(203): call_user_func()
#4 phar:///usr/local/bin/phpdox/phpdox/generator/Generator.php(277): TheSeer\phpDox\Generator\Generator->handleEvent()
#5 phar:///usr/local/bin/phpdox/phpdox/generator/Generator.php(249): TheSeer\phpDox\Generator\Generator->processClass()
#6 phar:///usr/local/bin/phpdox/phpdox/generator/Generator.php(142): TheSeer\phpDox\Generator\Generator->processWithNamespace()
#7 phar:///usr/local/bin/phpdox/phpdox/Application.php(241): TheSeer\phpDox\Generator\Generator->run()
#8 phar:///usr/local/bin/phpdox/phpdox/CLI.php(165): TheSeer\phpDox\Application->runGenerator()
#9 /usr/local/bin/phpdox(451): TheSeer\phpDox\CLI->run()
The text was updated successfully, but these errors were encountered: