ParserFunctions installation issue - Windows / IIS7
Mediawiki 1.19.1 PHP 5.4.5 MySQL 5.5.27 IIS 7.5
I am having issues installing ParserFunctions extensions. As soon as the extension is added to LocalSettings navigating to the wiki will result in the following error:
PHP Warning: fopen(C:\inetpub\wwwroot\mediawiki/cache/l10n_cache-en.cdb.tmp.1011707164): failed to open stream: Permission denied in C:\inetpub\wwwroot\mediawiki\includes\Cdb_PHP.php on line 278
I've noticed that the fopen path contains a mixture of back and forward slashes. If this is the issue, how do i change this??! I've also given \cache write permissions in case this was the issue.
You need to ensure the filecache has been enabled:
$wgUseFileCache = true; /* default: false */ $wgFileCacheDirectory = "$IP/cache"; $wgShowIPinHeader = false;
Note (for other onlookers) - This is unrelated to ParserFunctions - Basically $wgFileCacheDirectory has to point to the right place for the i18n cache to work (Assuming storing i18n cache in files is enabled. I do not believe it is by default) . The error probably occurred when installing parser functions as that causes all existing caches to be cleared.