Home » Images » Image_GraphViz » Bug #121
after update from php 4.3.1 to 4.3.3 labels are not drawn
Details
| Submitted | 2003-10-18 18:34 UTC |
|---|---|
| From | volker dot augustin at multiartstudio dot com |
| Status | Closed |
| Package | Image_GraphViz |
| PHP Version | 4.3.3 |
| OS | linux |
| Roadmaps | (Not assigned) |
Comments
[2003-10-18 18:34 UTC] volker dot augustin at multiartstudio dot com
Description:
------------
as i used php 4.3.1 and installed graphviz, i only had to change path to neato and dot, also to the temp-path...... (its NOT always /tmp ;-)
now i upgraded to php 4.3.3 and installe dgrahviz with the pear command, i did my changes to the path......and the diagram is shown. bit no labes are drawn.....so i got only boxes, circles and edges, but no text on it......
i dont find any hints on the net about this.
i also put a link, or some links the /usr/X11/lib.......blabla/fonts ir wehereever i expect graphviz to lok for the fonts, like described in some docs....... i already did this sometimes ago, and in php 4.3.1 there was no problem with this.
whats wrong?
all custom statistics belongs to graphviz and cant be displayed now for some weeks i digged for this annoying problem. (a config php for the commands an paths would be more easily to handle than searching in the php script)
best regards, grahpviz is great - yours sincerely
volker :-)
Reproduce code:
---------------
example code in Grahviz.php only drwas boxes and circles etc, but no text at all.
Actual result:
--------------
dont know where to look for output of php-calles command dot or neato.....
there are no erros in the logfiles of php and the webserver, diagram is shown but without text.
[2003-10-18 20:23 UTC] volker dot augustin at multiartstudio dot com
i recognized i used a new freetype2 library for php update, so in downloaded the latest version of graphviz (v1.10) and compiled against the newest installed freetype2 library too.
installed , overwriting old binaries, but labels are not shown...., also verified carefully output of running dot with an example dot-file with -Tpng, got an png with graph but without labels. Font file was found, i tried different ones without font-errors on console. then dumping to a file and views with netscape. no labels.
so this is not a problem of the pear module, and regarding to this, not a bug, sorry. (didnt i see the link to the mailinglist?) i only used graphviz with php for this time.
sincerelly
volker
[2003-10-18 21:26 UTC] volker dot augustin at multiartstudio dot com
problem with missing labels solved.
the problem of the missing labels was not in graphwiz pear module, but also this might help some other people, or may be listed in the pear_module readme or what else ;)
....for the 'archive':
the problem was that i used freetype v 2.0.2 with graphviz and php 4.3.2, that was ok. but after updating php to 4.3.3 i also updated freetype 2 to v2.1.5.
so dot and neato cant use the new freetype2 lib.
i compiled the old version of freetype 2(v2.0.2) and installed in somewhere out of the system, and linked graphviz (e.g. v 1.10) against the old freetype2 lib, and use this 'downgraded' dot and neato command, graphviz commands dot and neato draw the labels successfully.
great.
i will close this 'bug' now,
volker