Phpdocumentor: Transform doesn't happen on Windows.

Created on 24 Dec 2012  路  37Comments  路  Source: phpDocumentor/phpDocumentor

PHPDocumentor v2.0.0a12 on Windows, PHAR version:

W:\src\frmwrk>php ..\phpdocumentor.phar

Initializing parser and collecting files .. OK
Parsing files
Parsing W:\src\frmwrk\index.php
  No DocBlock was found for property $smarty
  No DocBlock was found for property $flash_data
  No DocBlock was found for property $config
  No DocBlock was found for property $shorthand
  No DocBlock was found for property $libs
  No DocBlock was found for property $action
  No DocBlock was found for method __construct()
  Argument $asset is missing from the Docblock of get_asset()
  Argument $class is missing from the Docblock of add_message()
  Argument $message is missing from the Docblock of add_message()
  Argument $key is missing from the Docblock of get_flashdata()
  Argument $key is missing from the Docblock of add_flashdata()
  Argument $value is missing from the Docblock of add_flashdata()
Storing structure.xml in "W:\src\frmwrk\doc\output\structure.xml" .. OK
Initializing transformer .. OK
Processing behaviours .. OK
Executing transformations
PHP Warning:  XSLTProcessor::transformToUri(): No stylesheet associated to this
object in phar://W:/src/phpdocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php on line 116

Warning: XSLTProcessor::transformToUri(): No stylesheet associated to this object in phar://W:/src/phpdocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/
Writer/Xsl.php on line 116
PHP Warning:  XSLTProcessor::transformToUri(): No stylesheet associated to this
object in phar://W:/src/phpdocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php on line 104

Warning: XSLTProcessor::transformToUri(): No stylesheet associated to this object in phar://W:/src/phpdocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/
Writer/Xsl.php on line 104
PHP Warning:  XSLTProcessor::transformToUri(): No stylesheet associated to this
object in phar://W:/src/phpdocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php on line 104

Warning: XSLTProcessor::transformToUri(): No stylesheet associated to this object in phar://W:/src/phpdocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/
Writer/Xsl.php on line 104
PHP Warning:  XSLTProcessor::transformToUri(): No stylesheet associated to this
object in phar://W:/src/phpdocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php on line 104

[truncated]

This only happens with PHAR version -- appears to be a problem with PHAR?

bug

Most helpful comment

I confirm this issue for PHAR on ubuntu 16.04 and php 7.1.3
Happens only when i use a template other than 'clean' (for example 'zend')

All 37 comments

Ignore; Documentation says to check the PHAR pitfalls list: This was covered (had phar.read_only = On in php.ini)

I have phar.readonly disabled and this issue is still happening for me.

  • Windows 7
  • PHP 5.4.11
  • phpDocumentor 2.0.0a12

It might be related to the way the XSL writer calls the XSL sheets; the artifact attribute in the template.xml contains a relative path. If that path is exploded into an absolute path then the XSLProcessor will try to look outside the phar, where the template is not located (it is inside the phar).

As a workaround you can create a directory data/templates/responsive and download the http://github.com/phpDocumentor/template.responsive repository contents.

Since beta1 we have moved our main template to use Twig as templating engine and made a whole lot of fixes; do these resolve your issue?

I have reproduced this issue and will attempt to fix that

The issue is still reproducible (only on Win) for me too.
Any estimation regarding a fix?
thanks

It is still not very clear to me what causes this issue exactly, I need to do more testing to fix this. (doesn't help that I do not have a nicely working Windows environment to test on). I hope to have more information in the next week

Reproduced this issue on Mac Mountain Lion as well, with php 5.4.16, and phpDocumentor 2.0.1 :

Log Errors:
phpDocumentor.INFO: OK [] []
phpDocumentor.INFO: Initializing parser .. [] []
phpDocumentor.INFO: OK [] []
phpDocumentor.INFO: Parsing files [] []
phpDocumentor.INFO: Parsing /usr/local/zend/apache2/htdocs/aaasecdg/config/application.config.php [] []
phpDocumentor.INFO: Parsing /usr/local/zend/apache2/htdocs/aaasecdg/config/autoload/global.php [] []
phpDocumentor.INFO: Parsing /usr/local/zend/apache2/htdocs/aaasecdg/init_autoloader.php [] []
phpDocumentor.INFO: Parsing /usr/local/zend/apache2/htdocs/aaasecdg/module/Application/config/module.config.php [] []
phpDocumentor.INFO: Parsing /usr/local/zend/apache2/htdocs/aaasecdg/module/Application/Module.php [] []
phpDocumentor.INFO: Parsing /usr/local/zend/apache2/htdocs/aaasecdg/module/Application/src/Application/Controller/IndexController.php [] []
phpDocumentor.INFO: Parsing /usr/local/zend/apache2/htdocs/aaasecdg/module/Application/view/application/index/index.phtml [] []
phpDocumentor.INFO: Parsing /usr/local/zend/apache2/htdocs/aaasecdg/module/Application/view/error/404.phtml [] []
phpDocumentor.INFO: Parsing /usr/local/zend/apache2/htdocs/aaasecdg/module/Application/view/error/index.phtml [] []
phpDocumentor.INFO: Parsing /usr/local/zend/apache2/htdocs/aaasecdg/module/Application/view/layout/layout.phtml [] []
phpDocumentor.INFO: Parsing /usr/local/zend/apache2/htdocs/aaasecdg/public/index.php [] []
phpDocumentor.INFO: Storing cache in "/private/var/folders/lk/1vgc6sx9181_k45_s7pd_cfm0000gn/T/output/build" .. [] []
phpDocumentor.INFO: OK [] []
phpDocumentor.INFO: Load cache .. [] []
phpDocumentor.INFO: 0.003s [] []
phpDocumentor.INFO: Preparing template "abstract" .. [] []
phpDocumentor.INFO: 0.012s [] []
phpDocumentor.INFO: Preparing 13 transformations .. [] []
phpDocumentor.INFO: 0.000s [] []
phpDocumentor.INFO: Build "elements" index .. [] []
phpDocumentor.INFO: 0.000s [] []
phpDocumentor.INFO: Replace textual FQCNs with object aliases .. [] []
phpDocumentor.INFO: 0.001s [] []
phpDocumentor.INFO: Build "packages" index .. [] []
phpDocumentor.INFO: 0.000s [] []
phpDocumentor.INFO: Build "namespaces" index and add namespaces to "elements" .. [] []
phpDocumentor.INFO: 0.000s [] []
phpDocumentor.INFO: Transform analyzed project into artifacts .. [] []
phpDocumentor.WARNING: E_WARNING: XSLTProcessor::transformToUri(): No stylesheet associated to this object {"file":"phar:///Users/boazziniman/.zend/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php","line":123} []
phpDocumentor.WARNING: E_WARNING: XSLTProcessor::transformToUri(): No stylesheet associated to this object {"file":"phar:///Users/boazziniman/.zend/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php","line":123} []
phpDocumentor.WARNING: E_WARNING: XSLTProcessor::transformToUri(): No stylesheet associated to this object {"file":"phar:///Users/boazziniman/.zend/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php","line":123} []
phpDocumentor.WARNING: E_WARNING: XSLTProcessor::transformToUri(): No stylesheet associated to this object {"file":"phar:///Users/boazziniman/.zend/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php","line":123} []
phpDocumentor.WARNING: E_WARNING: XSLTProcessor::transformToUri(): No stylesheet associated to this object {"file":"phar:///Users/boazziniman/.zend/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php","line":123} []
phpDocumentor.WARNING: E_WARNING: XSLTProcessor::transformToUri(): No stylesheet associated to this object {"file":"phar:///Users/boazziniman/.zend/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php","line":123} []
phpDocumentor.WARNING: E_WARNING: XSLTProcessor::transformToUri(): No stylesheet associated to this object {"file":"phar:///Users/boazziniman/.zend/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php","line":111} []
phpDocumentor.WARNING: E_WARNING: XSLTProcessor::transformToUri(): No stylesheet associated to this object {"file":"phar:///Users/boazziniman/.zend/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php","line":111} []
phpDocumentor.WARNING: E_WARNING: XSLTProcessor::transformToUri(): No stylesheet associated to this object {"file":"phar:///Users/boazziniman/.zend/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php","line":111} []
phpDocumentor.WARNING: E_WARNING: XSLTProcessor::transformToUri(): No stylesheet associated to this object {"file":"phar:///Users/boazziniman/.zend/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php","line":111} []
phpDocumentor.WARNING: E_WARNING: XSLTProcessor::transformToUri(): No stylesheet associated to this object {"file":"phar:///Users/boazziniman/.zend/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php","line":111} []
phpDocumentor.WARNING: E_WARNING: XSLTProcessor::transformToUri(): No stylesheet associated to this object {"file":"phar:///Users/boazziniman/.zend/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php","line":111} []
phpDocumentor.WARNING: E_WARNING: XSLTProcessor::transformToUri(): No stylesheet associated to this object {"file":"phar:///Users/boazziniman/.zend/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php","line":111} []
phpDocumentor.WARNING: E_WARNING: XSLTProcessor::transformToUri(): No stylesheet associated to this object {"file":"phar:///Users/boazziniman/.zend/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php","line":111} []
phpDocumentor.WARNING: E_WARNING: XSLTProcessor::transformToUri(): No stylesheet associated to this object {"file":"phar:///Users/boazziniman/.zend/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php","line":111} []
phpDocumentor.WARNING: E_WARNING: XSLTProcessor::transformToUri(): No stylesheet associated to this object {"file":"phar:///Users/boazziniman/.zend/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php","line":111} []
phpDocumentor.WARNING: E_WARNING: XSLTProcessor::transformToUri(): No stylesheet associated to this object {"file":"phar:///Users/boazziniman/.zend/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php","line":111} []
phpDocumentor.WARNING: E_WARNING: XSLTProcessor::transformToUri(): No stylesheet associated to this object {"file":"phar:///Users/boazziniman/.zend/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php","line":123} []
phpDocumentor.INFO: 0.220s [] []
phpDocumentor.INFO: Analyze results and write report to log .. [] []
phpDocumentor.DEBUG: In the ProjectDescriptor are:
11 files
1 top-level namespaces
2 unresolvable parent classes
2 phpDocumentor\Descriptor\ClassDescriptor elements
4 phpDocumentor\Descriptor\MethodDescriptor elements
3 phpDocumentor\Descriptor\NamespaceDescriptor elements
[] []
phpDocumentor.INFO: 0.000s [] []

Can you retry this with ZendServer 6.2? Because the issue with the phar file length seemed to have mysteriously fixed itself after an upgrade perhaps this is also related?

I will try to install Zend Server and perform more tests

Tested just now with new PHP binraies and latest phpDocumentor.phar file.
While this combination fixes the phar file length issue, it doesn't help in this case.
Still the same result.

@itayf can you run the same test using this phar: https://dl.dropboxusercontent.com/u/7411417/phpDocumentor.phar

Please send me the output and use the -vvv flag? This will output additional debugging information that might help me

hey @mvriel , here's a link to the console output and the log file:
https://www.dropbox.com/sh/m4xanxp9ul5ycc5/MXRjwFcpxL
I also shared it with you by email

Hmm.. if I didn't know better then I'd think that the structure.xml might be missing. @itayf I see in the output that there is an issue looping through the namespace aliases. I think there might be something in your code that phpDocumentor doesn't like.

Is it possible for you to share the code that you use as a test-case? I'd like to see if I can reproduce the issue with that code.

@mvriel I uploaded ExampleProject.zip to the same dropbox dir I shared here.
But it's not a project specific issue.
It happens regardless of the project selection.

@itayf is it possible that you have installed the XslCache PECL extension? I do not have have that and that might explain. Otherwise I am a little at a loss what is going wrong; the error message indicates an erroneous or absent XSL template; though the foreach errors are weird as well..

Do you have the same issue when you use the downloadable version of phpDocumentor instead of the phar file?

(have been trying to reproduce the issue but still unable to :()

@mvriel I haven't installed the XslCache PECL extension.
not sure I follow what you mean by "the downloadable version", is unpacking the phar file enough?
if so I ran:
php.exe phpdoc.php -c config.xml
with "responsive-twig" template which worked fine, and "old-ocean" and "new-black" which provided lacking documentation.
I uploaded 4 files to the same dropbox url as before:
https://www.dropbox.com/sh/m4xanxp9ul5ycc5/MXRjwFcpxL

DocMe.zip is the project
extractedConsoleOutput.txt for the output
doc-responsivetwig.zip, and doc-old-ocean.zip are the generated documentation for both cases

Ok, so that means it is related to the way phar files are being handled ..

Can you post the contents of your php.ini that are related to phar?

Mine is :

$ php -i | grep phar

Registered PHP Streams => https, ftps, compress.zlib, compress.bzip2, php, file, glob, data, http, ftp, phar, zip
Phar-based phar archives => enabled
Tar-based phar archives => enabled
ZIP-based phar archives => enabled
phar.cache_list => no value => no value
phar.readonly => On => On
phar.require_hash => On => On

Please note that you may have a different php.ini for command line versus apache; I need the settings from the command line version.

Just ran into this issue myself.

phpDocumentor v2.2.0

Windows 7 Ultimate
XAMPP:

  • PHP 5.4.22 (cli)
  • Zend Engine v2.4.0

I've enabled everything in the php.ini that others have suggested with still no luck.

I've just ran the 'php -i | grep phar' and have the exact same settings you show above.

$ php -i | grep phar
Registered PHP Streams => php, file, glob, data, http, ftp, zip, compress.zlib, compress.bzip2, https, ftps, phar
Phar-based phar archives => enabled
Tar-based phar archives => enabled
ZIP-based phar archives => enabled
phar.cache_list => no value => no value
phar.readonly => On => On
phar.require_hash => On => On

What else do you need from me to help track this down?

-- Christopher Mullins

This is a most unusual issue .. the most annoying part for me is the difficulty in tracking it down as I have not found a way to reproduce it.

Can you show my your libxsl versions using the $ php -i | grep xsl command?

$ php -i | grep xsl
/etc/php5/cli/conf.d/20-xsl.ini
xsl
libxslt Version => 1.1.26
libxslt compiled against libxml Version => 2.8.0
libexslt Version => 1.1.26

Does any of you use a virtual machine that you could export and transfer (using for example wetransfer) that shows that issue?

Well it looks like you finally found a difference in setup:

$ php -i | grep xsl
xsl
libxslt Version => 1.1.27
libxslt compiled against libxml Version => 2.7.8
libexslt Version => 0.8.16

I have virtual machine capability, but I guess I would have to load Windows 7 and configure it to test it to see if the problem is reproduced in that environment.

-- Christopher Mullins

I am unfortunately still unable to reproduce this issue :(
Has any of the people here have had any luck in tracing the issue?

Also: after some searching I found this blog post indicating a compatibility issue between libxsl and Redland PHP interface (whatever that may be) http://madea.net/strange-phpdocumentor-issue/

Could something similar be happening?

If I can reproduce it, I will attempt to create a virtual machine and attempt to duplicate it there. If I can then I'll send you the virtual machine if possible. Any particular preference of virtual machines? (Virtual PC, Virtual Box, and so forth)

-- Christopher Mullins

Hi @schir1964, I use virtualbox to run my VMs; if you can generate a Virtualbox VM that would be awesome!

(interesting approach; I hadn't thought about this solution)

Okay, I'll put that on things I need to do. It may take a while to get the time to do it.

-- Christopher Mullins

No problem; I will still be here and got plenty of other issues to tackle. Windows is always a bit fickle with me so I am happy if you are able to reproduce it and as such I can then reproduce it and kill the issue

After wondering for some time this _might_ be related to the bug mentioned in #284; because you are on windows an additional / is added after the file:// scheme. Windows requires this. BUT: what if the PHAR file stream wants the Xsl URI as if it were on Linux and that extra '\' causes issues?

I will try to comment the line https://github.com/phpDocumentor/phpDocumentor2/blob/develop/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php#L175 and generate a temporary phar file. Can any of you test the outcome?

@schir1964 @itayf here is a new phar file that has the possible cause commented, can you try again with this version? https://dl.dropboxusercontent.com/u/7411417/phpDocumentor.phar

I will try this out and let you know.

Eureka! It appears to be working. It is taking a long time to process the project I used it on, but that may be normal for the first time through.

The 'Transform analyzed project into artifacts' section has my four processors pegged out. Is this process that CPU intensive?

Addendum: Tried it on a smaller project and it worked just fine. This issue can probably be closed now.

-- Christopher Mullins

@schir1964 the 'Transform analyzed project into artifacts' is the part where the HTML files are actually generated and written to disk. This is very CPU and I/O intensive but can be improved by installing the Twig PHP Extension.

Thank you very much for trying this out! I am going to make a patch that will introduce this behaviour permanently and close the issue once that is done

I have issued PR #1269 to fix this; the fix will be included in the next release of phpDocumentor.

Hello,

I still have this issue on Windows 7 64 Bit, PHP 5.4.23 running the phar downloaded yesterday from your website.

Greetings

Got this issue on Windows 7 x64 with the most recent phar file.

PHP 7.0.13 (cli) (built: Nov  8 2016 13:45:28) ( ZTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies

These are the errors:

[2017-01-02 10:07:18] phpDocumentor.WARNING: E_WARNING: XSLTProcessor::transformToUri(): No stylesheet associated to this object {"code":2,"message":"XSLTProcessor::transformToUri(): No stylesheet associated to this object","file":"phar://D:/Work/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php","line":307} []
PHP Warning:  XSLTProcessor::transformToUri(): No stylesheet associated to this object in phar://D:/Work/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php on line 307

Warning: XSLTProcessor::transformToUri(): No stylesheet associated to this object in phar://D:/Work/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php on line 307
  Execute transformation using writer "xsl"
  Execute transformation using writer "xsl"
[2017-01-02 10:07:18] phpDocumentor.WARNING: E_WARNING: XSLTProcessor::transformToUri(): No stylesheet associated to this object {"code":2,"message":"XSLTProcessor::transformToUri(): No stylesheet associated to this object","file":"phar://D:/Work/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php","line":307} []
PHP Warning:  XSLTProcessor::transformToUri(): No stylesheet associated to this object in phar://D:/Work/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php on line 307

Warning: XSLTProcessor::transformToUri(): No stylesheet associated to this object in phar://D:/Work/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php on line 307
[2017-01-02 10:07:18] phpDocumentor.WARNING: E_WARNING: XSLTProcessor::transformToUri(): No stylesheet associated to this object {"code":2,"message":"XSLTProcessor::transformToUri(): No stylesheet associated to this object","file":"phar://D:/Work/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php","line":307} []
PHP Warning:  XSLTProcessor::transformToUri(): No stylesheet associated to this object in phar://D:/Work/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php on line 307

Warning: XSLTProcessor::transformToUri(): No stylesheet associated to this object in phar://D:/Work/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php on line 307
  Execute transformation using writer "xsl"
  Execute transformation using writer "xsl"
[2017-01-02 10:07:18] phpDocumentor.WARNING: E_WARNING: XSLTProcessor::transformToUri(): No stylesheet associated to this object {"code":2,"message":"XSLTProcessor::transformToUri(): No stylesheet associated to this object","file":"phar://D:/Work/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php","line":307} []
PHP Warning:  XSLTProcessor::transformToUri(): No stylesheet associated to this object in phar://D:/Work/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php on line 307

Warning: XSLTProcessor::transformToUri(): No stylesheet associated to this object in phar://D:/Work/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php on line 307
  Execute transformation using writer "xsl"
[2017-01-02 10:07:18] phpDocumentor.WARNING: E_WARNING: XSLTProcessor::transformToUri(): No stylesheet associated to this object {"code":2,"message":"XSLTProcessor::transformToUri(): No stylesheet associated to this object","file":"phar://D:/Work/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php","line":307} []
PHP Warning:  XSLTProcessor::transformToUri(): No stylesheet associated to this object in phar://D:/Work/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php on line 307

Warning: XSLTProcessor::transformToUri(): No stylesheet associated to this object in phar://D:/Work/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php on line 307
  Execute transformation using writer "xsl"
[2017-01-02 10:07:18] phpDocumentor.WARNING: E_WARNING: XSLTProcessor::transformToUri(): No stylesheet associated to this object {"code":2,"message":"XSLTProcessor::transformToUri(): No stylesheet associated to this object","file":"phar://D:/Work/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php","line":307} []
PHP Warning:  XSLTProcessor::transformToUri(): No stylesheet associated to this object in phar://D:/Work/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php on line 307

Warning: XSLTProcessor::transformToUri(): No stylesheet associated to this object in phar://D:/Work/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php on line 307
  Execute transformation using writer "xsl"
[2017-01-02 10:07:18] phpDocumentor.WARNING: E_WARNING: XSLTProcessor::transformToUri(): No stylesheet associated to this object {"code":2,"message":"XSLTProcessor::transformToUri(): No stylesheet associated to this object","file":"phar://D:/Work/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php","line":307} []
PHP Warning:  XSLTProcessor::transformToUri(): No stylesheet associated to this object in phar://D:/Work/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php on line 307

Warning: XSLTProcessor::transformToUri(): No stylesheet associated to this object in phar://D:/Work/phpDocumentor.phar/src/phpDocumentor/Plugin/Core/Transformer/Writer/Xsl.php on line 307
  Execute transformation using writer "Graph"
   0.791s

I'm using Git Bash to run the phar file, the same happens with Powershell.

After managing to install it via composer globally, the problem isn't present.

Using composer is a solution, thank you @blackfyre

I confirm this issue for PHAR on ubuntu 16.04 and php 7.1.3
Happens only when i use a template other than 'clean' (for example 'zend')

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Schlaefer picture Schlaefer  路  4Comments

adjenks picture adjenks  路  5Comments

neooblaster picture neooblaster  路  4Comments

mvriel picture mvriel  路  5Comments

jrfnl picture jrfnl  路  5Comments