Any reason the new release would stop working in DokuWiki?

0 votes
asked Sep 25, 2013 in Bug by anonymous
edited Oct 2, 2013
When generating the following from a command line a png file is created accurately.
 
java -jar plantuml.jar -verbose test.txt
 
@startuml
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
Alice -> Bob: Another authentication Request
Alice <-- Bob: another authentication Response
Jeff -> Bob: Authentication Request
@enduml
 
When using DokuWiki  and generating the following page the text file is created in the cache but no png is created. 
 
dokuwiki page:
(uml)
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
Alice -> Bob: Another authentication Request
Alice <-- Bob: another authentication Response
Jeff -> Bob: Authentication Request
(/uml)

text page created is the same with @startuml and @enduml
 
 
 
 
Using Dokuwiki Version: Release 2013-05-10a "Weatherwax"
 
Render Locally = Yes
Path to Java = /usr/bin/java
Path to Plant UML jar File = /var/www/dokuwiki/lib/plugins/planuml/local/plantuml.jar
Remote url of PlantUML servlet = http://plantuml.com
Enable "New UML Graph" button in editor = Yes
Image used to draw the toolbar button = res/icon1.png
 
java -jar plantuml.jar -version
PlantUML version 7980 (Wed Sep 18 12:17:57 EDT 2013)
(GPL source distribution)
OpenJDK Runtime Environment
OpenJDK 64-Bit Server VM
1.6.0_24-b24
Linux
 
The environment variable GRAPHVIZ_DOT has not been set
Dot executable is /usr/bin/dot
Dot version: dot - graphviz version 2.26.0 (20091210.2329)
Installation seems OK. File generation OK


<<<UPDATE 30 Sept 2013>>>
 
plantuml is working at the command line on the file generated by dokuwiki.
 
dokuwiki is generating all of the files for plantuml to funciton. 
 
What seems to be missing is the final step that generates the png file from the text file. Is there a script or cron that needs to run?
 
<<<UPDATE 10 October 2013>>>
 
I have been able to setup a shell script to run the plantuml.jar file and it works. However, in order for plantuml to work correctly it needs to be instant. Is there a call that is missing in the php or do I need to be looking for a rights issue?

4 Answers

0 votes
answered Sep 25, 2013 by plantuml (294,960 points)
No sure that it is related, but the server is on http://plantuml.com and not on http://plantuml.no-ip.org anymore.

Maybe you can try to change that ?
commented Sep 25, 2013 by anonymous
That did fix a latency issue but still not rendering a .png file.
0 votes
answered Sep 25, 2013 by plantuml (294,960 points)
Does it work again if you switch to an older plantuml.jar version ?

Otherwhise, you should report an issue to https://www.dokuwiki.org/plugin:plantuml
commented Sep 25, 2013 by anonymous
I uploaded an older version of the .jar file and checked the .php files.

The tool still works at a command prompt but not through dokuwiki.

Per recommendation I opened an issue on that site.
0 votes
answered Oct 10, 2013 by anonymous

RESOLUTION!!


After several different trials discovered that the new version of Dokuwiki has a modification to the .htaccess.dist file that was causing a rights issue whith the java. 

  1. Used Yum to update php, java, and graphviz.
  2. Updated plantuml
  3. Cheked the plantuml settings
  4. Modified the .htaccess.dist file 

Working as expected now.

 

commented Oct 11, 2013 by plantuml (294,960 points)
Ok, thanks for the note : we will put a link to this in the http://plantuml.sourceforge.net/running.html page
commented Oct 12, 2013 by anonymous
Hi,

in my installation I have the same problem, that the redering through plantuml server doesn't function within dokuwiki. So at the moment I try to install the local rendering, but also without success until now. Could you tell me in detail, what you changed? Or is it documented somewhere on the dokuwiki webside?

Regards
Juergen
commented Jan 15, 2014 by anonymous
HI

Dokuwiki 2013-12-08 "Binky" + PlantUML Version 7990
local and remote randering do not work....

Dokuwiki Configuration Manager :
render_local => yes
java => C:/Program Files/Java/jdk1.7.0_45/bin/java.exe
jar => D:/plantuml.7990.jar
remote_url => http://plantuml.com
button_enabled => yes
button_icon => res/icon1.png
commented Feb 6, 2015 by Pander (780 points)
0 votes
answered Oct 15, 2017 by plantuml (294,960 points)
Note also that if you use remote rendering, the following version is working for us

https://github.com/vpsfreecz/dokuwiki-plugin-plantuml
...