Project:Support desk/Sections/System

__NEWSECTIONLINK__

= MediaWiki System Support =

What has replaced mediawiki:Copyrightwarning in 1.16?
We had customized the copyrightwarning on our site. Since the 1.16 update, we see a different message under the edit box. Could someone tell me what is the new mediawiki page that is being called here? Thanks! Shushruth 13:27, 18 July 2009 (UTC)
 * MediaWiki: 1.16alpha-wmf (r53410)
 * PHP: 5.2.4-2ubuntu5wm1 (apache2handler)
 * MySQL: 4.0.40-wikimedia-log
 * URL: kn.wikipedia.org


 * That's for Licensing update. See here how to translate. That particular message was moved to Wikimedia-copyrightwarning. Please use  to translate it. --Nemo bis 01:21, 1 August 2009 (UTC)

Resolved: 404 when using short url

 * MediaWiki: 1.11.0
 * PHP: 5.2.5 (cgi-fcgi)
 * MySQL: 5.0.67.d7-ourdelta-log
 * URL: www.jainkosh.org

Hello, I have been trying to use short url for my wiki by following instructions at http://www.mediawiki.org/wiki/Manual:Short_URL/wiki/Page_title_--_no_root_access but could not achieve the results. My server is Apache and my wiki is saved at htdocs\Mediawiki. I have tried saving the .htaccess file in htdocs\Mediawiki, htdocs\, htdocs\sample_html, htdocs\Mediawiki\sample_html, but it didn't work. Whenever I tried to go to www.jainkosh.org/wiki/Main_Page, it throws error 404, page not found. This is what I have put in my .htaccess file:

RewriteEngine On RewriteRule ^wiki/(.*)$ /Mediawiki/index.php?title=$1 [PT,L,QSA] RewriteRule ^wiki/*$ /Mediawiki/index.php [L,QSA] RewriteRule ^/*$ /Mediawiki/index.php [L,QSA]

Can you please help me in getting this working?

Thanks a lot, Vikas

I tried the same settings on Godaddy.com server and it worked fine there. Somehow on my localhost it didn't work and was giving 404. Works great on the godaddy server.

Removing extra line on article save

 * MediaWiki version: 1.16.0
 * PHP version:
 * MySQL version:
 * URL:

Does anyone know if there is a way to avoid MediaWiki automatically inserting an extra line at the end of an article upon saving? Specifically, I am trying to figure out a way to remove the "     " that is being spawned onto a page which includes a template which contains no actual text, only a category.

—Bsmithme 03:32, 11 July 2009 (UTC)

Radius authentication not working after upgrading
Hello,
 * MediaWiki version: 1.15.0
 * PHP version: 5.0.4
 * MySQL version: 4.1.12
 * URL:

I've created a test environment which is a copy of our production environment. The starting point is mediawiki 1.4.5, same versions of php and mysql. I did an inplace upgrade of mediawiki per the online upgrade instructions. All in all, everything worked pretty smoothly. I had to upgrade libxm2 to 2.6, but outside of that, the only thing that appears to no longer function is our custom authentication.

In the old world, we had things setup to authenticate users against our radius server. This no longer appears to work. To do this in version 1.4.5 we made changes to

LocalSettings.php by adding the following at the end:

$wgRemotePasswordCheck = true; $wgRemotePasswordServer = "localhost"; $wgRemotePasswordPort = 80;

User.php by commenting out the existing checkPassword function and adding: function checkPassword( $password ) {			global $wgRemotePasswordCheck, $wgRemotePasswordServer, $wgRemotePasswordPort; $this->loadFromDatabase; $ep = $this->encryptPassword( $password );

if ( $wgRemotePasswordCheck ) { $lower = strtolower( $this->mName ); $credentials = $lower. ":" . $password; $out = "GET /security/index.htm HTTP/1.1\r\n"; $out .= "Host: $wgRemotePasswordServer\r\n"; $out .= "Authorization: Basic " .base64_encode($credentials). "\r\n\r\n"; $fp = fsockopen( $wgRemotePasswordServer, $wgRemotePasswordPort, $errno, $errstr, 30 ); if( !$fp ) { echo "$errstr ($errno) "; } else { fwrite( $fp, $out ); $test = fgets( $fp, 128); fclose( $fp ); }			  if( 0 == strcmp( $test, "HTTP/1.1 200 OK\r\n" ) ) { {					return true; }				}			}		}

AuthPlugin.php

change autocreate and UserExists to true

SpecialUserLogin.php comment out the processLogin if (0 == $u->getID block and add:

If (0 == $u->getID ) {			$u = & $this->init_user ($u);                  /* and add this line */ }

Can someone clue me in on what has changed? (Looks like SpecialUserLogin.php isn't used anymore).

Does someone have the procedure for enabling radius authentication in version 1.15.0? Any help would be appreciated.

Thanks, -Erik erik.watts@ecitele.com

—63.94.127.33 16:55, 13 July 2009 (UTC)

system messages - wikitext or html
The page MediaWiki:Badaccess-group0 doesn't render wikitext neither html....

What should be done to add a link to it?!

—almaghi 14:41, 24 July 2009 (UTC)

How do I edit the body tag?

 * MediaWiki version: 1.15.1
 * PHP version: 5.2.9
 * MySQL version: 5.0.81

I'd like to edit the HTML body tag to add an onload value for a bit of javascript. I've looked in the OuputPage.php file, but I can't see an easy way. Can someone help me? thanks in advance.

—Weirdy12 11:28, 27 July 2009 (UTC)


 * The structure of the outputted page is defined by the skin templates, in the /skins folder. However, if you want to load JavaScript, you can call $wgOut->addScript( 'path_to_script' ) to load an extra JS file.  Or you can just set $wgUseSiteJs and put the script in MediaWiki:Common.js on your wiki. Which is probably much easier than editing the output page. Happy ‑ melon 16:57, 27 July 2009 (UTC)


 * Thanks! I've tried the Common.js method, but I can't get it to load as it runs before the output is finished. Where would I call $wgOut->addScript( 'path_to_script' )?

--Weirdy12 11:57, 29 July 2009 (UTC)

Automatic login script

 * MediaWiki version: 1.15.0
 * PHP version: 5.2.9
 * MySQL version: 5.1.33
 * URL: http://r99kmjnr8.device.mst.edu:8500/aepi/wiki

Is there a way i can write a custom login script to automaticly login users when they login to our site? We have a Coldfusion login script that I would like to also redirect to php script that queries the users mediawiki credentials from one of our databases and uses it to login to our mediawiki.

Any help is greatly appriciated

Thanks, Kevin

—131.151.129.81 00:21, 28 July 2009 (UTC)

non-standard port redirection bug

 * MediaWiki version: 1.15.1
 * PHP version: 5.2.6 (apache2handler)
 * MySQL version: 5.0.51b-community
 * URL: http://taras.dlinkddns.com:8888/

My provider blocks the 80 port and I have to use non-standard one(for example 8888). I configured Apache and MediaWiki and all works fine exept fast search. When the name of the existing article is written into the search line, MediaWiki automatically redirects to this article, but the port number is losing. For example, writing "cуп" or "Суп" in the search line, redirection goes to http://taras.dlinkddns.com/wiki/Cуп (The article with this name exists). But I need redirection like http://taras.dlinkddns.com:8888/wiki/Cуп. And when I am writing in browser link http://taras.dlinkddns.com:8888/wiki/cуп (in word "cуп" the first letter is in the lowercase but the article name starts with the uppercase), redirection is also http://taras.dlinkddns.com/wiki/Cуп. All works fine in all other cases. Help me please with this trouble.

—77.122.36.5 00:42, 29 July 2009 (UTC) Taras, Ukraine, Kyiv

Duplicating links because second or later words not Capitalized

 * MediaWiki version: 1.15.1
 * PHP version: 5.1.6. apache2handler
 * MySQL version: 5.0.45
 * URL:

(By default at least) MediaWiki cannot tell that Star Formation and Star formation are the same thing. I could not find a hook or any other easy way to have it capitalize every word or otherwise solve this issue. As it stands, I am getting problems with users duplicating pages that already exist and broken links. Is there a work around for this issue? -- Thanks

James Wadsley —130.113.172.122 14:27, 29 July 2009 (UTC)

Expression Engine

 * MediaWiki version:
 * PHP version:
 * MySQL version:
 * URL:

We use expression engine - can we download WordPress on our site?

—167.154.46.98 21:18, 29 July 2009 (UTC) Janet Geary Nevada Magazine jmgeary@nevadamagazine.com

User order on enhanced recentchanges
See Help_talk:Tracking_changes. I can't understand if there's a logical order or there's a bug. Thank you, Nemo bis 01:16, 1 August 2009 (UTC)

Removing Main Page from "Special:Uncategorized" pages

 * MediaWiki version: All
 * PHP version:
 * MySQL version:
 * URL: http://ml.wikipedia.org/

Hello, I am Shiju Alex (http://ml.wikipedia.org/wiki/User:Shijualex) from "Malayalam wikipedia" (http://ml.wikipedia.org).

We have a peculiar problem with the "Main Page" (പ്രധാന താള്‍) in Malayalam wikies. Currently the "Main Page" (പ്രധാന താള്‍) is listed in "Special:Uncategorized" (http://ml.wikipedia.org/wiki/Special:UncategorizedPages) pages. Can some one tell us how to remove it from the list of Special:Uncategorized page?

—Shijualex 05:57, 1 August 2009 (UTC)


 * Well, add a category. :-) You can also use a hidden category, adding __HIDDENCAT__ to the category page. --Nemo bis 09:22, 1 August 2009 (UTC)