Skip to content
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

Some changes and it works fine with actual dokuwiki (I think) #4

Open
amglez opened this issue Nov 12, 2022 · 5 comments
Open

Some changes and it works fine with actual dokuwiki (I think) #4

amglez opened this issue Nov 12, 2022 · 5 comments

Comments

@amglez
Copy link

amglez commented Nov 12, 2022

I am a total newie and I was trying the grapher.php in my dokuwiki (Release 2022-07-31a "Igor") but it did not work. I looked around and, after changing things as said after, it looks to work fine.
As indicated in phpcli, I put :

use splitbrain\phpcli\CLI;
use splitbrain\phpcli\Options;

class Grapher extends CLI {...

And I changed :

$namespaces = array_map('cleanID', $options->args);
for
$namespaces = array_map('cleanID', $options->getArgs());

I attached the file in case is any good.

grapher (1).zip

@HenriGEIST
Copy link

Thanks a lot Amglez your modifications are just what I needed.

@DoomBudgie
Copy link

Does this still work, or am I doing something wrong? When I run the command line with the output specified, I get Content-type: text/html and no file generated. This is with or without the changes above.

@HenriGEIST
Copy link

Hello DoomBudgie !

It work for me just now. Can your elaborate on your context.
What is your environment Windows version / Linux distribution and version.
PHP version DockWiki version and so on.

@DoomBudgie
Copy link

Debian GNU/Linux 11 (bullseye)
PHP 4.4.9
Release 2024-02-06b "Kaos"

I use the command php bin/grapher1.php -o outputfile

I suspect I'm doing something simple wrong. Thanks for your help!

@HenriGEIST
Copy link

Here is the command I run to get the result as "result_image.png" in the hope it will help you.

bin/grapher.php -d 0 -m all -f dot | dot -Tpng > result_image.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants