ParserFunctions installation issue - Windows / IIS7

Jump to: navigation, search

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.

Any ideas??

Dom

82.16.27.2813:36, 29 August 2012

Fixed it!

You need to ensure the filecache has been enabled:

Localsettings.php requires:

$wgUseFileCache = true; /* default: false */
$wgFileCacheDirectory = "$IP/cache";
$wgShowIPinHeader = false;
82.16.27.2811:31, 30 August 2012

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.

Bawolff (talk)04:20, 1 September 2012