好了,我正在尝试让GraphViz在MediaWiki安装上工作。我正在使用带有WAMPserver的Windows2012 R2。
我在我的C盘上安装了GraphViz,WAMP在D盘上。
我已经按照GraphViz页面上的建议添加了GraphViz扩展,并将设置文件夹更改为指向我的GraphViz安装。这是我的设置文件中的内容:
public $createCategoryPages;
/** * Constructor for setting configuration variable defaults. */
public function __construct() { // Set execution path if (
stristr( PHP_OS, 'WIN' ) && !stristr( PHP_OS, 'Darwin' ) ) {
$this->execPath = 'C:\Program Files (x86)\GraphViz\bin'; } else
{
$this->execPath = '/usr/bin/'; }
$this->mscgenPath = ; $this->defaultImageType = 'png';
$this->createCategoryPages = 'no'; } }但是当我插入GraphViz代码时,例如:
=== Example 1 from http://www.mediawiki.org/wiki/Extension:GraphViz ===
<graphviz border='frame' format='png' desc='none'> digraph example1 {Hello-
>"World!"}
</graphviz>它没有显示任何东西。有人知道我做错了什么吗?
发布于 2018-10-19 09:48:55
这不是扩展的配置方式。您的LocalSettings.php中不应该有任何构造函数或类定义。
您是否收到任何错误消息?确保你的东西是set up for debugging的。
你可能想要这样的东西:
wfLoadExtension( 'GraphViz' );
$wgGraphVizSettings->execPath = 'C:\Program Files (x86)\GraphViz\bin';https://stackoverflow.com/questions/52879529
复制相似问题