function theme_workflow_graph_definition( $wid )
{
	require_once( 'Image/GraphViz.php' );
	drupal_set_title( t( 'Graph workflow %name', array(
		 '%name' => workflow_get_name( $wid ) 
	) ) );
	
	$G   = _workflow_graph_definition_generate( $wid );
	$dot = <<< EOS
/*
 * @formats = png
 * @imagemap = TRUE
 */
EOS;
	$dot .= $G->fetch( 'dot' ); //HERE ****************
	return graphviz_filter_process( $dot );

}

All what I have done was simply replace the above bold line with this

	$dot .= $G->parse();

That's all folks, spent a day on this!!

Comments

bakr’s picture

Issue summary: View changes

typo

infojunkie’s picture

Thanks for your report.
* What was the error you got?
* What is the version number of Image_GraphViz where you encountered this error?

bakr’s picture

No error was reported, the asci dot file was empty, except for the header comment being a png format file.

The test is done on the lastest available zend community server, that was the differentiator.

The image_graphViz has nothing to do with this error, as I tried both the old and trusted as well as the latest library as well as binaries combinations, the same issue was exhibited in both.

I point finger to php baseline instead.

infojunkie’s picture

Version: 6.x-1.6 » 6.x-1.x-dev

Can you please try the latest dev instead? I see that this code has substantially changed there and is already using Image_GraphViz::parse.

infojunkie’s picture

Issue summary: View changes

typo