Topic on Project:Support desk

Can't get Cite extension and DnamicArticleExtensions to work

26
Dlen345 (talkcontribs)

I have mediawiki 1.1.16 I believe, the latest version installed.

I did everything described several times.

There is an alternative I believe to DynamicArticleList but not sure whey Cite wouldnt work.

Dlen345 (talkcontribs)

Installed software Product Version MediaWiki 1.16.1 PHP 5.2.17 (cgi-fcgi) MySQL 5.1.54

That's what I have. But the ConfirmEdit simple captcha is not working either so something really weird is going on.

MaxSem (talkcontribs)

Elaborate on "installed" and "doesn't work". How exactly? And do you use the version of this extension for 1.16.x?

Dlen345 (talkcontribs)

Well the Mediawiki software is running perfectly. Image uploads are nabled.

But having trouble with just about every extension we try to add even though we're adding the proper lines to LocalSettings.php and doing the right directory structure, etc.

I tested this code on the test page I created.

[1]

And the software just displays it like that, not as a footnote like it's supposed to be.

I have Networksolutions hosting this, so they have Plesk for regular directory structure and Virtuosso software for root access. We've been adding the extensions to the httpdocs folder, but I seem to remember there's an extensions folder on root somewhere as well. Of course, that may not be it at all.

  1. E. Miller, The Sun, (New York: Academic Press, 2005), 23-5.
Dlen345 (talkcontribs)

Ok your software converted

//[1]

to a footnote.

  1. E. Miller, The Sun, (New York: Academic Press, 2005), 23-5.
Dlen345 (talkcontribs)

Alright as far as version, it does state it's for Mediawiki 1.11 (I didn't notice that before).

http://www.mediawiki.org/wiki/Extension:Cite/Cite.php

But in the chart it says "Configure Supported from latest".

Where would the extension be for my version? I was under the impression all the extensions were written and updated for the newest version of Mediawiki, which is what I installed.

Dlen345 (talkcontribs)

This is getting to be a nightmare btw because if most of the popular extensions haven't even been updated for the newest version of Mediawiki and it's not backwards compatible, then that significantly reduces the functionality of the software.

Reach Out to the Truth (talkcontribs)

Is Cite listed on Special:Version on your wiki?

Dlen345 (talkcontribs)

No.

Reach Out to the Truth (talkcontribs)

Then it's not installed. In the same directory as LocalSettings.php, there should be a directory named "extensions". Put the Cite directory inside that extensions directory and make sure to install the extension as specified on the extension's page.

All the extensions you're using should be placed in that extensions directory, unless explicitly stated otherwise in the installation instructions.

Dlen345 (talkcontribs)

We've done it.

And not a single extension is working.

this is what I have in LocalSettings.php to get Cite to work:

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

other changes in LocaSettings.php work flawlessly though like disabling anonymous users from being able to edit.

Reach Out to the Truth (talkcontribs)

$IP is the directory that LocalSettings.php is in, the root of your MediaWiki install. If you're not putting the extensions in $IP/extensions, you need to change the require_once statement to point to the path that it is located in.

Dlen345 (talkcontribs)

What is the process involved in installing?

For example, I had the IT people from Network Solutions try installing the DynamicArticleList extension and it did not work.

For the Cite.php extension I thought all you had to do was create the Cite directory in the extensions directory and add the line to the LocalSettings.php.

Is there something else involved in installing these extensions?

Dlen345 (talkcontribs)

No, as unbelievable as it sounds I think most of the common extensions still have not been re-written to work with the newest version of Mediawiki which is a nightmare.

I've been told by Networksolutions the extensions directory is the correct one that I'm using and most of the extensions just don't work.

Reach Out to the Truth (talkcontribs)

If they're having you use a different directory than the one MediaWiki normally uses, then we're probably not going to be able to help you. Try the standard MediaWiki extensions directory, and if that doesn't work go back to Networksolutions for help.

Dlen345 (talkcontribs)

No, it's the right one I believe.

/httpdocs/extensions

is the path we have for extensions.

The other directory is somewhere on the root where I was browsing. I was told by their (Network Solution's) IT people that's the wrong one.

What is the default directory supposed to be btw?

Maybe I have to modify the path in LocalSettings.php somehow because of the way they installed it?

It's a virtual private server.

Reach Out to the Truth (talkcontribs)

Where is LocalSettings.php? Is it in /httpdocs? If it's anywhere else, the provided include statement will not find the extension unless you modify the include statement.

Dlen345 (talkcontribs)

Yes, LocalSettings.php is in httpdocs.

Cite for example I have in httpdocs/extensions/Cite directory.

Dlen345 (talkcontribs)

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

and this in LocalSettings.php to enable it.

It's not converting the tags into footnotes.

Dlen345 (talkcontribs)

It looks like I may also need the file ExtensionFunctions.php but the links to download it (SVN and mirrors) are busted?

Hello?

Reach Out to the Truth (talkcontribs)

If you're using MediaWiki 1.16 you don't need it. It's only needed for particularly old versions of MediaWiki.

I don't know what the problem is, but it's not ExtensionFunctions.

Dlen345 (talkcontribs)

It's extremely bizarre. Literally none of the extensions work even the ones for the proper version of Mediawiki I have, not Flagged Revisions, not FancyCaptcha, not ConfirmEdit.

Is there anyway these people (Network Solutions) could have botched the installation?

Maybe they edited LocaSettings.php with Notepad? I told them not to do it even before as it leaves byte marks.

Do you want to look at the installation/site?

I'd rather send you the link privately (how?) as the site is not ready for the public.

Dlen345 (talkcontribs)

Does this mean anything to you?

I'm pretty sure they did a Linux install for me.

Please note that under POSIX systems (Linux...), parent of a symbolic path refers to the link source, NOT to the target! You should check the env variable MW_INSTALL_PATH in case the extension is not in the default location.

The following code snippet let you override the default path:

$IP = getenv( 'MW_INSTALL_PATH' );
if( $IP === false ) {

$IP = dirname( __FILE__ ) . '/../..';

}
require( "$IP/maintenance/Maintenance.php" ); // a MediaWiki core file
Reach Out to the Truth (talkcontribs)

That's from the README in the extensions folder, right? I've never paid much attention to that part of the README, and I'm not sure you need to either.

Dlen345 (talkcontribs)

how would I hard code the MW_INSTALL_PATH though?

the extensions are in the folder httpdocs/extensions

I'm thinking maybe the Network Solutions guys messed up the default path during install or didn't set the environment variable right?

That would explain why not a single properly installed extension is picked up.

Dlen345 (talkcontribs)

Can I hire someone to help me check out my install and see why no extensions are being detected?

I don't feel I'm getting any help here. I only found one other wikitech forum but there seems to be a cooling off period before I can make new posts.

Who else can I email or where else can I post for help?

Reply to "Can't get Cite extension and DnamicArticleExtensions to work"