Last modified: 2006-12-25 18:49:02 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T10336, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 8336 - Impossible to install the Cite extension on a local WIKI
Impossible to install the Cite extension on a local WIKI
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
Cite (Other open bugs)
unspecified
Other Linux
: Normal blocker (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-12-20 14:51 UTC by labarique
Modified: 2006-12-25 18:49 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description labarique 2006-12-20 14:51:33 UTC
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 ??
Comment 1 Phil Boswell 2006-12-20 15:05:39 UTC
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...
Comment 2 labarique 2006-12-20 15:14:40 UTC
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 ?
Comment 3 Rob Church 2006-12-20 16:37:15 UTC
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.
Comment 4 labarique 2006-12-20 17:14:33 UTC
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 !

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links