Last modified: 2006-12-25 18:49:02 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 ??
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...
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 ?
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.
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 !