Page MenuHomePhabricator

Impossible to install the Cite extension on a local WIKI
Closed, InvalidPublic

Description

Author: labadie.pierre

Description:
I'm trying to install the Cite.php extension on the Mediawiki which I have
installed on my home server. But modifying the Localsettings.php file doesn't do
much good.

If I insert :

require_once( "$IP/extensions/Cite.php" );

> I get a big "revision page", entitled "Log of

/trunk/extensions/Cite/Cite.php" with a list of revisions of Cite.php instead,
of my SongoWiki (as it is called)'s homepage.

If I add at the end of the document

include( '$IP/extensions/Cite.php' );

> I get the same page.

If I only put the second sentence at the end of the document,and not
require_once, etc. I get my homepage, but with an error message :

Warning: include($IP/extensions/Cite.php) [function.include]: failed to open
stream: No such file or directory in /var/www/SongoWiki/LocalSettings.php on
line 136

Warning: include() [function.include]: Failed opening '$IP/extensions/Cite.php'
for inclusion
(include_path='/var/www/SongoWiki:/var/www/SongoWiki/includes:/var/www/SongoWiki/languages:.:/usr/share/php:/usr/share/pear')
in /var/www/SongoWiki/LocalSettings.php on line 136

What should I do ??


Version: unspecified
Severity: blocker
OS: Linux
Platform: Other

Details

Reference
bz8336

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:29 PM
bzimport added a project: Cite.
bzimport set Reference to bz8336.
bzimport added a subscriber: Unknown Object (MLST).

Check your paths. Did you put your Cite.php in the extensions folder or in a sub-folder?

I have this nasty feeling that the instructions on meta are not consistent on this point...

labadie.pierre wrote:

Cite.php is in the extensions folder.

Path : var/www/SongoWiki/extensions

Should I delete "$IP" to stick with just the name of the folder ?

robchur wrote:

It sounds to me like you didn't download the Cite.php file; rather, you
downloaded the revision history. Try getting the file directly from
http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/Cite/Cite.php.

Save this as Cite.php; place it in your extensions/ directory, and add the
following line to LocalSettings.php, above the ?>:

require_once( 'extensions/Cite.php' );

That should be all that's needed; you can confirm that installation was
successful through Special:Version.

labadie.pierre wrote:

That was exactly it : the links named Cite.php on meta.wikimedia.org were not a
direct link to the file, but a link to a download page where all recent Cite.php
are available.

I downloaded the latest Cite.php, and Cite.i18n.php, added above the ?>:

require_once( 'extensions/Cite.php' );

and everything works fine !

Change 369805 had a related patch set uploaded (by Jdlrobson; owner: BearND):
[mediawiki/services/mobileapps@master] Bring back anchorencode and locutus dependency

https://gerrit.wikimedia.org/r/369805

@Jdlrobson @bearND The patch at https://gerrit.wikimedia.org/r/369805 looks unrelated to this task. Did you link to the wrong task in the patch?

Yes, I forgot a digit in the task number. Please ignore that patch for your purposes.