Topic on Project:Support desk

Fatal error after trying to install extensions

6
Halfbeing (talkcontribs)

I have been trying to install two different extensions, VisualEditor and WikiLog and in each case I come up with seemingly similar errors. Details of my software versions are listed below.

Firstly, with WikiLog, I install the extension into the extensions directory, as per the official instruction. I verify that the directory name is correct. Then I copy the two lines of code from the instructions into LocalSettings.php, save it, and then got to localhost/(path)/mw-config. I get the following error:

Fatal error: Call to undefined method Wikilog::setupBlogNamespace() in C:\wamp\www\commonplace2\LocalSettings.php on line 152

When I follow a similar procedure with VisualEditor I get the following:

Warning: require_once(C:\wamp\www\commonplace2/extensions/VisualEditor/VisualEditor.php): failed to open stream: No such file or directory in C:\wamp\www\commonplace2\LocalSettings.php on line 156

Fatal error: require_once(): Failed opening required 'C:\wamp\www\commonplace2/extensions/VisualEditor/VisualEditor.php' (include_path='.;C:\php\pear') in C:\wamp\www\commonplace2\LocalSettings.php on line 156

What am I doing wrong?

Product Version
MediaWiki 1.26.2
PHP 5.5.12 (apache2handler)
MySQL 5.6.17
Ciencia Al Poder (talkcontribs)

For the first error, be sure the setupBlogNamespace call in LocalSettings.php is after require_once( 'extensions/Wikilog/Wikilog.php' );

For the second error, does C:\wamp\www\commonplace2\extensions\VisualEditor\VisualEditor.php exist on the server?

Halfbeing (talkcontribs)

Thanks for your suggestions, one of which has worked. It turned out that I had nested VisualEditor one directory too deep because of the way I unpacked the tarball. Now it is functioning properly. However that still leaves WikiLog. I've double-checked and I do have setupBlogNamespace set already. I've left it at the default value of 100.

Ciencia Al Poder (talkcontribs)

I've fixed the installation instructions in Extension:Wikilog, Wikilog::setupNamespace should be used instead

Halfbeing (talkcontribs)

I've made the adjustments you have suggested. Now I get a long list or warnings and notices, starting with

Warning: Missing argument 2 for Wikilog::setupNamespace(), called in C:\wamp\www\commonplace2\LocalSettings.php on line 154 and defined in C:\wamp\www\commonplace2\extensions\Wikilog\Wikilog.php on line 207

Warning: Missing argument 3 for Wikilog::setupNamespace(), called in C:\wamp\www\commonplace2\LocalSettings.php on line 154 and defined in C:\wamp\www\commonplace2\extensions\Wikilog\Wikilog.php on line 207

Notice: Undefined variable: name in C:\wamp\www\commonplace2\extensions\Wikilog\Wikilog.php on line 227 (with Wikilog::setupNamespace( ) at the bottom of the call stack)

etc

87.123.5.214 (talkcontribs)

Wikilog::setupNamespace() needs exactly three parameters: The first one is an even namespace number, th second one is the name of that namespace and the third one is the name of the according talb namespace.

See Extension:Wikilog for how to install the extension correctly!

Reply to "Fatal error after trying to install extensions"