Project:Support desk/Archives/System/003

Jump to navigation Jump to search

(OUTDATED) search with wildcards?


in my wiki its not possible, to use the wildcardsearch like ka*

The word "katrin" and other words with ka.... are there.

What could be the problem? — 11:26, 25 June 2008 (UTC)

(RESOLVED) Display source code

  • MediaWiki: 1.12.0
  • PHP: 5.1.6 (apache2handler)


I need to add source code on my page. The source code contains html :

<#-- Liste des documents de type "ISFB:actualité" -->
<#-- Shows the Icon and link to the content for the doc, also the size in KB and lock status -->
<#assign rowcount=0>
<#assign allNews=companyhome.childrenByXPath["//.[@ISFB:actualite='isfbActu']"]?reverse>
<#--assign allNews=companyhome.childrenByLuceneSearch["TYPE:ISFB:actualite"]-->
<#list allNews as child> <#if child.isDocument> <#if rowcount % 2 = 0><#else></#if> <#assign rowcount=rowcount+1> </#if> </#list>
Name Date
<a href="/alfresco${child.url}" target="new"><img src="/alfresco${child.icon16}" border=0></a> <a href="/alfresco${child.url}" target="new">${}</a> ${}

As usually, I added a space at the beginning of each line. But the result is ugly, partially displayed as source code and partially interpreted as html. How could I display source code without having it interpreted by mediawiki ?

Best regards

Lil — 10:30, 26 June 2008 (UTC)

please use <pre> and/or <nowiki> tags to surround that code, see also Category:Syntax highlighting extensions --:bdk: 11:23, 3 September 2008 (UTC)

(OUTDATED) Login error: Wiki uses cookies to log in users.

Login error
Wiki uses cookies to log in users. You have cookies disabled. Please enable them and try again.

I'm having a similar problem to what was going on here Manual_talk:$wgCookiePath where when i try to login using Internet Explorer it will give me the error message

Login error:wiki uses cookies to log in users. You have cookies disabled. Please enable them and try again.

When i use firefox it doesn't give me any problems and allows me to log right in. I went through the guide that was posted as the solution for the guide above where i created the php directories c:\php\uploadtemp and c:\php\sessiondata. I made sure to give them write permissions but I didn't know what was meant by adding the user IUSR_<server name>. I didn't know what to replace server name with. The name of the windows machine or the name of the apache server?

I too have the wiki setup on an internal server. This server was running mediawiki 1.4.5 before and didn't have any issues with Internet Explorer logins. Since the upgrade from 1.4.5 to 1.12 it has been giving me this error. The server is currently running on Windows XP with Apache 2.2.8

Checking through the Apache logs. I see that firefox only generates the following in the access logs

"POST /wiki/index.php?title=Special:Userlogin&action=submitlogin&type=login HTTP/1.1" 200 8837

Where Internet Explorer will generate

"POST /wiki/index.php?title=Special:Userlogin&action=submitlogin&type=login HTTP/1.1" 302
"GET /wiki/index.php?title=Special:Userlogin&wpCookieCheck=login HTTP/1.1" 200 9914

I also noticed that in the php\sessiondata directory that an IE login will create 2 cookies, 1 that has nothing written in it while the other has the user name and what looks to be the security key. A Firefox login only generates 1 session file. 00:00, 27 June 2008 (UTC)

(OUTDATED) Install Problems

  • MediaWiki: (1.12.0)
  • PHP: 5.2.4
  • MySQL: 5.0.45
  • URL:

I am trying to create a wiki documentation page. I have installed the software and ran the install script (twice). The install script says it was successful. I am running this on a minimalistic laptop. I have tested both Apache, PHP & Mysql and know they are all working.

The Unix is Fedora Core 8 and the rest of the statistics you should have. When I try to go to the Wiki page, I just get a blank web page.

If it could be a permission problem, what should the wiki directory be set to? It is currently set to apache. What other possible issues should I be looking at?

Output for Failure.php:

Please include all of the lines below when reporting installation problems.

  • PHP 5.2.4 installed
  • Found database drivers for: MySQL
  • PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title)
  • Have XML / Latin1-UTF-8 conversion support.
  • Session save path (/var/lib/php/session) appears to be valid.
  • PHP's memory_limit is 32M.
  • Couldn't find <a href="">Turck MMCache</a>, <a href="">eAccelerator</a>, <a href="">APC</a> or <a href="">XCache</a>; cannot use these for object caching.
  • Found GNU diff3: /usr/bin/diff3.
  • Found ImageMagick: /usr/bin/convert; image thumbnailing will be enabled if you enable uploads.
  • Installation directory: /var/www/html/mediawiki-1.12.0
  • Script URI path: /mediawiki-1.12.0
  • Installing MediaWiki with php file extensions
  • Environment checked. You can install MediaWiki.
  • Generating configuration file...

  • Database type: MySQL
  • Loading class: DatabaseMysql
  • Attempting to connect to database server as wikiuser...success.
  • Connected to 5.0.45
  • Database wikidb exists
  • There are already MediaWiki tables in this database. Checking if updates are needed...
...have ipb_id field in ipblocks table.
...have ipb_expiry field in ipblocks table.
...already have interwiki table
...indexes seem up to 20031107 standards
...hitcounter table already exists.
...have rc_type field in recentchanges table.
...have user_real_name field in user table.
...querycache table already exists.
...objectcache table already exists.
...categorylinks table already exists.
Already have pagelinks; skipping old links table updates.
...have rc_ip field in recentchanges table.
...image primary key already set.
...have rc_id field in recentchanges table.
...have rc_patrolled field in recentchanges table.
...logging table already exists.
...have user_token field in user table.
The watchlist table is already set up for email notification.
...watchlist talk page rows already present
...user table does not contain old email authentication field. table already exists.
...have log_params field in logging table.
Logging table has correct title encoding.
...have ar_rev_id field in archive table.
...have page_len field in page table.
revision timestamp indexes already up to 2005-03-13
...rev_text_id already in place.
...have rev_deleted field in revision table.
...have img_width field in image table.
...have img_metadata field in image table.
...have user_email_token field in user table.
...have ar_text_id field in archive table.
...page_namespace is already a full int (int(11)).
...ar_namespace is already a full int (int(11)).
...rc_namespace is already a full int (int(11)).
...wl_namespace is already a full int (int(11)).
...qc_namespace is already a full int (int(11)).
...log_namespace is already a full int (int(11)).
...have img_media_type field in image table.
...already have pagelinks table.
No img_type field in image table; Good.
Already have unique user_name index.
...user_groups table already exists.
...user_groups is in current format.
...have ss_total_pages field in site_stats table.
...user_newtalk table already exists.
...transcache table already exists.
...have iw_trans field in interwiki table.
...trackbacks table already exists.
...wl_notificationtimestamp is already nullable.
...timestamp key on logging already exists.
...have ipb_range_start field in ipblocks table.
Setting page_random to a random value on rows where it equals 0...changed 0 rows
...have user_registration field in user table.
...templatelinks table already exists
...externallinks table already exists.
...job table already exists.
...have ss_images field in site_stats table.
...langlinks table already exists.
...querycache_info table already exists.
...filearchive table already exists.
...have ipb_anon_only field in ipblocks table.
Checking for additional recent changes indices...
...index `rc_ns_usertext` seems ok.
...index `rc_user_text` seems ok.
...have user_newpass_time field in user table.
...redirect table already exists.
...querycachetwo table already exists.
...have ipb_enable_autoblock field in ipblocks table.
Checking for backlinking indices...
Checking if pagelinks index pl_namespace includes field pl_from...
...index pl_namespace on table pagelinks seems to be ok
Checking if templatelinks index tl_namespace includes field tl_from...
...index tl_namespace on table templatelinks seems to be ok
Checking if imagelinks index il_to includes field il_from...
...index il_to on table imagelinks seems to be ok
...have rc_old_len field in recentchanges table.
...have user_editcount field in user table.
...page_restrictions table already exists.
...have log_id field in logging table.
...have rev_parent_id field in revision table.
...have pr_id field in page_restrictions table.
...have rev_len field in revision table.
...have rc_deleted field in recentchanges table.
...have log_deleted field in logging table.
...have ar_deleted field in archive table.
...have ipb_deleted field in ipblocks table.
...have fa_deleted field in filearchive table.
...have ar_len field in archive table.
...have ipb_block_email field in ipblocks table.
Checking for categorylinks indices...
Checking if categorylinks index cl_sortkey includes field cl_from...
...index cl_sortkey on table categorylinks seems to be ok
...have oi_metadata field in oldimage table.
...usertext,timestamp key on archive already exists.
...usertext,timestamp key on image already exists.
...usertext,timestamp key on oldimage already exists.
...have ar_page_id field in archive table.
...have img_sha1 field in image table.
...protected_titles table already exists.
Deleting old default messages (this may take a long time!)...Done
Checking site_stats row...ok.
Purging caches...done.

Finished update checks.

Creating LocalSettings.php...

Output for Settings.php:


# This file was automatically generated by the MediaWiki installer.
# If you make manual changes, please keep track in case you need to
# recreate them later.
# See includes/DefaultSettings.php for all configurable settings
# and their default values, but don't forget to make changes in _this_
# file, not there.

# If you customize your file layout, set $IP to the directory that contains
# the other MediaWiki files. It will be used as a base to locate files.
if( defined( 'MW_INSTALL_PATH' ) ) {
} else {
	$IP = dirname( __FILE__ );

$path = array( $IP, "$IP/includes", "$IP/languages" );
set_include_path( implode( PATH_SEPARATOR, $path ) . PATH_SEPARATOR . get_include_path() );

require_once( "$IP/includes/DefaultSettings.php" );

# If PHP's memory limit is very low, some operations may fail.
# ini_set( 'memory_limit', '20M' );

if ( $wgCommandLineMode ) {
	if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) {
		die( "This script must be run from the command line\n" );
## Uncomment this to disable output compression
# $wgDisableOutputCompression = true;

$wgSitename         = "ShOp";

## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
$wgScriptPath       = "/mediawiki-1.12.0";
$wgScriptExtension  = ".php";

## For more information on customizing the URLs please see:

$wgEnableEmail      = true;
$wgEnableUserEmail  = true;

$wgEmergencyContact = "root@localhost";
$wgPasswordSender = "root@localhost";

## For a detailed description of the following switches see
## and
## There are many more options for fine tuning available see
## /includes/DefaultSettings.php
## UPO means: this is also a user preference option
$wgEnotifUserTalk = true; # UPO
$wgEnotifWatchlist = true; # UPO
$wgEmailAuthentication = true;

$wgDBtype           = "mysql";
$wgDBserver         = "localhost";
$wgDBname           = "wikidb";
$wgDBuser           = "wikiuser";
$wgDBpassword       = "xxxxxxxx";

# MySQL specific settings
$wgDBprefix         = "";

# MySQL table options to use during installation or update
$wgDBTableOptions   = "TYPE=InnoDB";

# Experimental charset support for MySQL 4.1/5.0.
$wgDBmysql5 = false;

# Postgres specific settings
$wgDBport           = "5432";
$wgDBmwschema       = "mediawiki";
$wgDBts2schema      = "public";

## Shared memory settings
$wgMainCacheType = CACHE_NONE;
$wgMemCachedServers = array();

## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads       = false;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";

## If you want to use image uploads under safe mode,
## create the directories images/archive, images/thumb and
## images/temp, and make them all writable. Then uncomment
## this, if it's not already uncommented:
# $wgHashedUploadDirectory = false;

## If you have the appropriate support software installed
## you can enable inline LaTeX equations:
$wgUseTeX           = false;

$wgLocalInterwiki   = $wgSitename;

$wgLanguageCode = "en";

$wgProxyKey = "f3ad946ce9d6ff3a4df8ab0f7dc3e3577536be45ce4cee636fbfaad8d3a82b22";

## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook':
$wgDefaultSkin = 'monobook';

## For attaching licensing metadata to pages, and displaying an
## appropriate copyright notice / icon. GNU Free Documentation
## License and Creative Commons licenses are supported so far.
# $wgEnableCreativeCommonsRdf = true;
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "";
$wgRightsText = "";
$wgRightsIcon = "";
# $wgRightsCode = ""; # Not yet used

$wgDiff3 = "/usr/bin/diff3";

# When you make changes to this configuration file, this will make
# sure that cached pages are cleared.
$wgCacheEpoch = max( $wgCacheEpoch, gmdate( 'YmdHis', @filemtime( __FILE__ ) ) );

-- 27 June 2008

(RESOLVED) Language problems

Hi, I have a question about the language in mediawiki. I've installed mediawiki 1.6.10 and selected the interface language as polish but still some parts of the site are in english (e.g. page tabs (article, edit etc.) or some messages like "Login required to edit") How can I change it?

I'd really appreciate your help

Thanks in advance!

tsp. — 11:33, 27 June 2008 (UTC)

Probably because in 1.6.10 (it's a very old version) not all phrases have been translated into polish. Updating to 1.13.1 will fix the problem I think. 17:36, 15 September 2008 (UTC)

Reverting mass vandalism

Are their any way to ban users and undo all of his\her edits instantly? Do I need any extension(s) to do this?-- 17:58, 24 July 2008 (UTC)

Extension:Nuke --:bdk: 11:30, 13 December 2008 (UTC)

(OUTDATED) Restrict viewing Categories by AD Group

  • MediaWiki: 1.12.0
  • PHP: 5.1.4 (apache2handler)
  • MySQL: 4.1.12-log
  • URL: Local Intranet

Ok I just installed MediaWiki for my companies internal wiki that I am creating. So far I have successfully installed the LdapExtension and have added some data to the wiki and everything is working perfect! But before I go farther into the project, I need different parts of the site to be secured for different groups (from Active Directory). I have looked around the site here and all the forums I could find and could not find any extensions or any instructions on how to go about restricting access by categories. Is there a way to do this or an extension that I can add?

Thank you in advance!

Stephen Lindauer — 20:25, 27 June 2008 (UTC)

(OUTDATED) Mediawiki protected by htaccess

  • MediaWiki: 1.11.0
  • PHP: 5.2.5-pl1-gentoo (cgi-fcgi)
  • MySQL: 4.1.22-log page)
Mediawiki protected by htaccess gives an internal error when accessed through a proxy

My mediawiki works fine when accessed without passing thourgh a proxy, however when accessed through a proxy from an intranet workplace I get the following error when I try to login for editing. Read only without login works perfectly well.

Are there wrong proxy server settings?

May there be an error or missing items in LocalSettings.php

Interner Fehler

SkinTemplate::makeTalkUrlDetails given invalid pagename Benutzer:


#0.../includes/SkinTemplate.php(562): SkinTemplate->makeTalkUrlDetails('Benutzer:')
#1.../includes/SkinTemplate.php(436): SkinTemplate->buildPersonalUrls()
#2.../includes/OutputPage.php(696): SkinTemplate->outputPage(Object(OutputPage))
#3.../includes/Wiki.php(301): OutputPage->output()
#4.../index.php(90): MediaWiki->finalCleanup(Array, Object(LoadBalancer), Object(OutputPage))
#5 {main} 07:58, 3 July 2008 (UTC)

(OUTDATED) The Unresolvable Edit Conflict

  • MediaWiki: 1.12.0
  • PHP: 5.2.6 (cgi-fcgi)
  • MySQL: 5.0.51-log
  • URL: Security Wire

I've got an Edit Conflict that I just can't seem to fix. I've run a few of the maintenance scripts in hopes of rebuilding or fixing or clearing the error. But to no avail. If I save the page as instructed, I am repeatedly brought back to the blank original, forced to start over, which eventually brings me full circle again.

I'm making the edits as WikiSysop the only bureaucrat, so this problem is baffling. I am using the FCKEditor Extension.

If someone visits my site - the page I am having issues with is linked from the SideBar called Tool List.

NOTE This appears to only happen on large edits. Small edits are not affected.
Update I removed FCKEditor and reverted code changes for the EditBeforeConflict changes on the install page.
No luck.
I still am conflicting on most edit attempts larger than 15-30 lines of text.

--oldr4ver 17:48, 4 July 2008 (UTC)

(OUTDATED) Automated editing via Index.php

  • MediaWiki: 1.13alpha
  • PHP: 5.2.0-8+etch11 (apache2handler)
  • MySQL: 5.0.32-Debian_7etch5-log
  • URL: localhost :P

I posted this on IRC, but everyone was AFK, so here's it again:

<div class='previewnote'><p><strong>Your edit has been rejected because your client mangled the punctuation characters in the edit token.
The edit has been rejected to prevent corruption of the page text.
This sometimes happens when you are using a buggy web-based anonymous proxy service.</strong>

<NotATree> Here's the lib I'm working on
<NotATree> The token is returned just fine
<NotATree> I don't know what I could be doing wrong in passing it in the post to edit the page

I know without a doubt that my edit token is returning what is it suppose to, but, what do I do with the +\ on the end? Do I pass that through?

NotATree 03:47, 8 July 2008 (UTC)

(OUTDATED) Connection to Wikipedia?/Independent Wiki page question

I was wondering how to tell whether your independent wiki page is connected to the rest of Wikipedia - is it searchable, etc. The page is already created, but I can't find it when I type in the title in Wikipedia's search engine. If my wiki page isn't connected to the rest of Wikipedia, how do I go about doing that? (Also, I used MediaWiki to develop it) Thanks. 13:39, 9 July 2008 (UTC)

(OUTDATED) Automatic template when creating article

Is there a way so a template will automatically be added when you create a article in a specific category? Thanks, --Boebi 10:50, 13 July 2008 (UTC)

(RESOLVED) Hindi Unicode title - bulk editing

Hi there I installed media wiki and have couple hundred pages to add. I am trying to automate this so I don't have to manually enter everything. So I am navigating to this URL to create/edit a page called 'परिवर्तन' -परिवर्तन&action=edit

But this gives ???????? for the title of the page. If I enter the word manually in search box (परिवर्तन) and then click create page, URL looks like this:

So I am wondering how can I generate this URL progamatically given a UNICODE word and use it to create the page. Any help or pointers will be helpful.

thanks, VJ — 06:09, 24 July 2008 (UTC)

This is weird. If I click the link above from this page with परिवर्तन, it opens the page fine and doesn't display the ??? chars. If I take the same link on a test page and then click it, it starts showing ???? again. I thought these Unicode chars may need to be converted to HEX numbers, but looking at their encoding, doesn't seem to match. Any ideas ? or any other way to bulk insert to the DB with Unicode? 14:06, 25 July 2008 (UTC)
Check how your browser is set to display character encoding. Firefox, for example, has several options (and they kinda change on me without warning sometimes). -- töff 19:53, 7 September 2008 (UTC)

(RESOLVED) directory error: needs a "public" dir?!

  • MediaWiki: 1.12.0
  • PHP: 5.2.3 (apache2handler)
  • MySQL: 5.0.45
  • URL: (firewalled)

I have a mediawiki originally created with mediawiki-1.9.3, updated to mediawiki-1.11.0rc1 and now updated to 1.12. Everything worked fine, except some little adjustments... I'm happy with the new version!

But now I encountered a problem, that is very suspicious to me and I'm not able to understand what exact is the problem. "Googling" around the net could not help me out...

Here is the problem: I have uploads enabled and also allowed '.zip' as filetype. I have already a file in the wiki called '', now if I try to update/overwrite this file by a new one, I get this message:

Interner Fehler

Die Datei „public/5/56/“ konnte nicht nach „public/archive/5/56/20080717085028!“ umbenannt werden. 

I would translate it in this way:

Internal error

The file „public/5/56/“ could not be renamed to „public/archive/5/56/20080717085028!“.

My problem here is I don't know in what place that directory should be. It seems to me that images got replaced with public since the link to this file is .../images/5/56/ Is it possible that 1.12 stores other that default file types to a new directory called 'public'? How to update my old wiki structure to reflect those changes?? Any help would be very welcome!DrTrigon 18:23, 26 July 2008 (UTC)

Conclusion (here is the most recent)
First entry in Manual talk:Upgrading to 1.12.
Second entry in Project:Support desk/Sections/System (here).
Then found a description at Bugzilla (MediaWiki) and this e-mail which explains a lot! Hopefully this explains everything...?!
For further information (e.g. in case of a new appearance of this error) look at Support and contact someone from Project:Support desk/Support team directly.
--DrTrigon 08:26, 29 July 2008 (UTC)

(RESOLVED) Linking to Local Files

I run a personal wiki and would like to link to useful files on my computer. I have been using

[file:///C:/.../.../x.pdf My x PDF file]

to open up pdf files, for example, but I've used it for other file types.

However, the MOST important things I want to link to are some of the Administrative Tools -- for example, services.msc. When I type

[file:///C:/Windows/System32/Services.msc Windows Services]

The link shows, and the location it links to is correct, but nothing happens when I click on the link. Why does this happen, and is there any way I can overcome it by editing LocalSettings or something similar? Soonshort 04:58, 11 July 2008 (UTC)

Just an update, I still have not been able to get this working. I have tried the UNC extension and still no luck. Soonshort 05:52, 25 July 2008 (UTC)


For security reasons Firefox browser does not follow local links. Please check

-- 14:36, 26 July 2008 (UTC)

(RESOLVED) How to set right to edit for bureaucrats?

The options to prevent an article from being edited are "All", "Non registred users", "Sysops" only. How can I grant bureaucrats (including sysops) to edit a page? Thx :o) --Rob.

The simplest thing to do would just be to promote your bureaucrats to sysops too (by default, they can do this themselves anyway!). However, if you really want what you're asking, you can use $wgRestrictionLevels:

$wgRestrictionLevels = array( "", 'autoconfirmed', 'sysop', 'cratop' );
$wgGroupPermissions['bureaucrat']['cratop'] = true;
$wgGroupPermissions['sysop']['cratop'] = true;

You might then need to edit MediaWiki:Protect-level-cratop to say something along the lines of "Bureaucrats and sysops only". —Emufarmers(T|C) 09:49, 27 July 2008 (UTC)
Great! Thank you very much. I really don't understand, why this is not generally implemented, but anyway, this solution works perfectly. This should be documented in an appropriate place. Bye for now --Rob.

(OUTDATED) Short URL-Problem

As recommended I moved my mediawiki-folder to c:/XAMPP/xyz. Though I tried with every possible configuration one can think of, I didn't get this short-URL-thing working. Meanwhile I found out, that the instruction withhold the information, that for folders outside the root-folder apache has to be granted access explicitly. But though I added ...

 <Directory C:/XAMPP/xyz>
 Order allow,deny
 Allow from all

... to the httpd.conf I got nothing but 403-messages when open http://localhost/xyz/Main_Page

So please, could anyone tell me, what to put in these settings to make this thing operate properly? The last try was with


 $wgScriptPath       = "/xyz";
 $wgScriptExtension  = ".php";
 ## Short URL:
 $wgScript           = "$wgScriptPath/index.php";
 $wgArticlePath      = "/xyz/$1";

 <Directory C:/XAMPP/xyz>
 Order allow,deny
 Allow from all
 Alias /xyz/index.php C:/XAMPP/mediawiki/index.php
 Alias /xyz C:/XAMPP/mediawiki/index.php
 Alias /xyz/ C:/XAMPP/mediawiki/
 Alias /index.php C:/XAMPP/mediawiki/index.php
 Alias /xyz/images/ /wiki/images/
 Alias /xyz/skins/ /wiki/skins/

Thank you very, very much... --Martin Balser 21:27, 27 July 2008 (UTC)

(RESOLVED) Search doesn't work

  • MediaWiki: (last stable version!)
  • PHP: 5.1
  • MySQL: 5.0.51
  • URL: it's only for internal users sorry ^^

The Search don't work correctly! For example I search for AGB and he don't find the page. The word AGB is 4 or 5 times in the text, but it is not found. When I search for ÖBB it will be found. Where is the Problem? 08:46, 29 July 2008 (UTC)

Adjust MySQL. —Emufarmers(T|C) 08:21, 30 July 2008 (UTC)

(RESOLVED) Group permissions not being honored

The subject line says it all. Not only that, Mediawiki's parsing of the groups/permissions seems to be erratic. (And that, on the face of it, makes no sense -- I fully admit that.)

  • USERID 1 "bureaucrat" does not have Special:Userrights permission, even though this is the default (and has not been changed), Special:Userlist shows USERID 1 as having those privileges (and I looked at the database tables and both bureaucrat and sysop are clearly assigned.
  • No other user with 'bureaucrat' privileges has access to Special:Userrights either, even though they are a member of the 'bureaucrat' group.
  • I can force access to the Special:Userrights tables by opening up the system: $wgGroupPermissions['*']['userrights'] = true;. (And I can force editing access by opening up the system too.)
  • 'sysop' privileges are not being honored -- accept when they are; behavior seems erratic.
  • Other permissions settings are not being honored -- accept when they are; behavior seems erratic. According to my understanding of the below, I should be denying edit permissions to unknowns and to "user"; but then allowing a set of permissions, including edit permission, to users that are either 'emailconfirmed' or 'trusted user'. Unfortunately, that is not what is happening -- except when it does.
$wgGroupPermissions['*']['edit'] = false; #if you're not registered you can't edit
$wgGroupPermissions['user']['edit'] = false; 
$wgAutopromote['emailconfirmed'] = APCOND_EMAILCONFIRMED; #put users with confirmed e-mail addresses in the group
$wgImplicitGroups = array( 'emailconfirmed' ); #hide group from user list
$wgGroupPermissions['emailconfirmed']['edit'] = true; #assign desired permissions to group
$wgGroupPermissions['emailconfirmed']['createpage'] = true;
$wgGroupPermissions['emailconfirmed']['createtalk'] = true;
$wgGroupPermissions['emailconfirmed']['move'] = true;
$wgGroupPermissions['trusted user']['edit'] = true; #manually promoted; a bit higher than emailconfirmed
$wgGroupPermissions['trusted user']['createpage'] = true;
$wgGroupPermissions['trusted user']['createtalk'] = true;
$wgGroupPermissions['trusted user']['move'] = true;
$wgGroupPermissions['trusted user']['delete'] = true;
  • Last night edit permissions worked as expected, though access to Special:Userrights was still flaky. This morning edit permission is denied to users listed in the Special:Userlist as members of either the 'emailconfirmed' or 'trusted user' groups (or both). Also, acknowledgment of 'sysop' status is being ignored. I tried to install the AWC forum, and even USERID 1 who is 'bureaucrat' and 'sysop' (obviously) is told he cannot install it because he's not a sysop.

So I am confused. DefaultSettings.php has not been touched, as per standard instructions. All changes have been made to LocalSettings.php. I have checked the contents of the database against what mediawiki tells me it's finding and have found no errors.

To my mind that leaves some kind installation error or a system error (bad bad bad since this is running on a server).

I hope you can clear this up, cuz right now the wiki cannot be opened up to users.

Blackhawke 16:19, 3 August 2008 (UTC)

Discovered that the mySQL database was corrupted at creation time. So corrupted, in fact, that even an attempt at repairing it didn't correct the problem
Whatever the corruption issue was, it was not one that was causing Mediawiki to report or log any errors that I could find. I deleted the entire database, recreated it, and did a reinstall of Mediawiki, and now things are working properly.
--Blackhawke 16:01, 13 August 2008 (UTC)

(RESOLVED) Is there a WORDCOUNT feature or extension available anywhere?

Is there a WORDCOUNT feature or extension available anywhere? Something that will, um, simply, tell me how many words are in any article?

Töff 01:18, 4 August 2008 (UTC)

Has anybody tried this? ... ... I'mma try it. Worst that can happen, I destroy my wiki, right? --Töff 03:47, 4 August 2008 (UTC)
Holy crap, it works :) cool. --Töff 04:32, 4 August 2008 (UTC)

(OUTDATED) What file formats come with MediaWiki apart from PHP?

  • MediaWiki: Trunk version
  • PHP: 5.26
  • MySQL: Latest
  • URL: On when I can upload it!

It's my first time uploading MediaWiki to a server, but not using it, as I've used the software since 2005 at Wikipedia (the English one!). However, what other file formats come when you upload it??

What exactly are .d files, and some of the other formats that come with the zip/gz downloads (apart from XML, which I understand!). If anyone can explain, I'd be glad to know. This is because I want to set up my wiki on, but I need to know what files are available other than PHP so I can upload them via FTP. I'm not new to running/maintaining websites, I did that in university in 2005/2006, but have never done it with MediaWiki apart from on a localhost (it was really a case of download files, copy folders, and run install script for me!) All advice is much appreciated. --Malrick 09:26, 4 August 2008 (UTC)

(OUTDATED) Remove Search Namespaces and turn off auto Edit of new pages

  • MediaWiki: 1.12.0
  • PHP: 5.2.5 (apache2handler)
  • MySQL: 5.1.26-rc
  • URL: Local LAN Only URL

I would love to know how to accomplish two things.

  1. How do I turn off the Auto Edit for pages that do not have content (New URL's)? I would like users to see the message that the page is new and have to click the "Edit Page" option to edit it. I have disallowed anonymous users from editing and this throws an error rather than showing the page such as category pages.
  2. How can I remove the default namespaces from the search window (check boxes) so my custom namespaces are the only ones there with the exception of a couple of default ones like Main, Talk, etc.

Andrewggrant 01:02, 6 August 2008 (UTC)

(RESOLVED) MediaWiki authentication by URL (GET method)

  • MediaWiki: 1.5.3
  • PHP: 5.0.4 (apache2handler)
  • MySQL: 4.1.13
  • URL:


Because we want to use a crawler, which indicates the articles of our internal mediawiki, i have to find a way to login to our mediawiki by GET paramter (URL). Is this possible?
Thanks in advance.

best regards
Marc — 10:02, 6 August 2008 (UTC)

Use the API. You'll probably have to upgrade first. —Emufarmers(T|C) 10:25, 6 August 2008 (UTC)

(OUTDATED) How can I link to files/documents on users system?

  • MediaWiki: (Reported by your Wiki's Special:Version page)
  • PHP: (unknown, but certainly latest version)
  • MySQL: (unknown, but certainly latest version)
  • URL: (intranet only)

How can I link to a file on the users environment like c:/haystack/2007/monday.doc ? As it is simple to do so in Excel, I want to link from a wiki-page. Thank you very much in advance -Rob. 07:33, 7 August 2008 (UTC)

(RESOLVED) Is it possible to deny anonymous users to read (view) images of the wiki?

Is it possible to deny anonymous users to read (view) images of the wiki? How can I do that? Thanks, — 08:37, 9 August 2008 (UTC)

With img_auth.php. Aaron 21:53, 9 August 2008 (UTC)
Well... is there an other way to protect the images? I dont have permission to edit the httpd.conf file to add the two aliases. :-( -- 08:03, 10 August 2008 (UTC)
No. Aaron 15:07, 10 August 2008 (UTC)

(RESOLVED) Problems with templates

  • MediaWiki: 1.11.0
  • PHP: 5.25
  • MySQL: 5.0.51


I have a problem with templates. I made an export of a few articles from the wikipedia-project. I imported this xml file with the php tool into my private wiki.

When I open one of these imported pages, I see only a part of the original page.

original: [1]

my copy: [2]

How you can see, the box on the right side is missing, but the template "Infobox Chemikalie" is stored in the wiki.

Can you tell me, what I have to do, to let my imported page look like the original one?

Best Regards

Sven Mayer

You probably forgot to add some infobox CSS from Wikipedia to your wiki, cf. de:MediaWiki:Common.css. --:bdk: 11:30, 13 December 2008 (UTC)

(OUTDATED) Replace

  • MediaWiki: 1.13.0rc2
  • PHP: N/A
  • MySQL: N/A
  • URL: N/A

I have what I hope is a straightforward question. I want to do an str_replace on the page of html code that is rendered by Mediawiki at the last possible moment before it hits the user's screen, and I would like to know in what file such a replacement should take place, at what point (a line number would be useful, so it gets executed for every page returned by Mediawiki) and what variable name is used for the string representing the page. This is not for a complicated set of replacements or something that will drastically slow down the rendering, just a simple replace at the end. I hope you can help 21:16, 13 August 2008 (UTC)

(OUTDATED) 'Go' button in search box produces unexpected results

  • MediaWiki: 1.12.0
  • PHP: 5.2.5 (cgi)
  • MySQL: 5.0.51a-community
  • URL: DemonPedia


I have just changed the DNS location of my Mediawiki install - previously, it was the same URL without the leading www. Since doing this, everything seems to work find apart from the search box in the left-hand column. Entering a search term and clicking 'Search' brings up the search results as nature intended. However, doing the same thing and clicking on 'Go' now doesn't work. Instead, it seems to try and load the correct page without the www. in the URL. Try it yourself using th term 'dfax', which is a valid article name.

I expect that this is a simple fix, as i'm a relative n00b with Mediawiki, but any help would be greatly appreciated ^_^ 16:17, 14 August 2008 (UTC)

(RESOLVED) Display recent changes in TABLE format

MediaWiki: 1.11.0; PHP: 5.2.6 (cgi-fcgi); MySQL: 5.0.45-community-log; URL:

Is a there a setting or extension to display recent changes in TABLE format? Wouldn't it be easier to read? I think so! -- töff 03:39, 16 August 2008 (UTC)

... aww, nobody? really? -- töff 01:02, 30 August 2008 (UTC)
Seemed like such a simple thing :( -- töff 18:49, 7 September 2008 (UTC)
Maybe I'll hack the durn thing myself. The generator seems to be ChangesList.php. Kinda complicated, and I don't know the programming language. But that's never stopped me before! -- töff 19:22, 7 September 2008 (UTC)

(OUTDATED) InitialiseSettings.php questions

I installed the latest version from SVN, the install went correctly. However, I would like to know how to get InitialiseSettings.php and CommonSettings.php to work for my version of MediaWiki on the host I've got it installed at -

I am not sure how to configure these correctly for my database setup. If anyone has any advice, please can they contact me at
Ta, —Sunstar NW XP 19:29, 17 August 2008 (UTC)

(RESOLVED) wfSpecialUserlogin()

  • MediaWiki: 1.13.0
  • PHP: 5.2.3-1ubuntu6 (apache2handler)
  • MySQL: 5.0.45-Debian_1ubuntu3-log
  • URL:

After updating to 1.13.0 (from 1.11.0) my custom made part of SpecialUserlogin.php is no longer executed. I replaced the wfSpecialUserlogin() funtion by something simular of my own that allows decryption of login credentials that are posted through the URL and after that submits the form. An ugly hack.

It seems however SpecialUserlogin.php is not used at all anymore in 1.13.0 as my function does not get executed and even typing erroneous statements in the php of the file does not produce any problems.

My question, after 1 morning of research is simple: have there been any big changes in the handling of the login form? Or do I just need to start digging further in my own modifications of the wiki engine.

btw, I used the tar xvfz mediawiki-1.13.0.tar.gz -C /path/to/your/wiki/ --strip-components=1 statement to update the files of the wiki.

Thanks a lot for your response! — 09:02, 18 August 2008 (UTC)

I too hacked SpecialUserlogin.php, though it sounds like less so than you, and am currently preparing to upgrade from 1.11.2 to 1.13.0. As I discovered, all the special pages are no longer in the wiki/includes/ directory but rather the wiki/includes/specials/ directory. Hope this helps you solve your issue. Smaug Tournesol.png(talk) 00:29, 19 August 2008 (UTC)
Thanks for pointing that out, I thought the tar command would clean up things, so I missed the obvious ...

(RESOLVED) Complete Deleting of an User Account

  • MediaWiki 1.12.0
  • PHP 5.2.6 (cgi)
  • MySQL 5.0.51a-12

How is it possible? There are several double accounts and no more need for it.

--Krischan 18:26, 18 August 2008 (UTC)

You can use Extension:User Merge and Delete. --MF-Warburg 15:12, 26 August 2008 (UTC)

(RESOLVED) Edit Buttons in each box?

I have recently upgraded to the latest version of mediawiki and like many of the changes. I have a query though, in the past on the main page (which for me re-uses much of the wikipedia source code) an edit button was visible for each section (in the top right corner of each box). This is no longer there. I am definatley logged in with rights to edit the page. How can i get these buttons back? 08:25, 19 August 2008 (UTC)

Did you accidentally add __NOEDITSECTION__ to the page (or an included template)? --:bdk: 11:30, 13 December 2008 (UTC)

(RESOLVED) Adding extra buttons to Media Wikis

  • MediaWiki 1.12.0
  • PHP 5.2.5 (cgi)
  • MySQL 5.0.51a-community

Hi. I want to ask this question outright. How do you add the table button and others like the wikipedia one, onto our own? Hours of trawling the net still leave this question unanswered!!!!

[EDIT] - URL: 10:30, 19 August 2008 (UTC)

Manual:Custom edit buttons --:bdk: 11:30, 13 December 2008 (UTC)

(OUTDATED) Move page creates error

  • MediaWiki: 1.14 SVN version
  • PHP:
  • MySQL:
  • URL:

When you try to revert a page being moved, this error came up on my host:

Notice: Object of class Title could not be converted to int in /www/ on line 91
Notice: Object of class Title to string conversion in /www/ on line 168
Warning: htmlspecialchars() expects parameter 1 to be string, object given in /www/ on line 724

Does anyone know why these errors came up, and is it something I have to resolve with my webhost?? Ta, —Sunstar NW XP 17:35, 19 August 2008 (UTC)

This still comes up every time you revert a pagemove... --Sunstar NW XP 18:56, 19 August 2008 (UTC)

(RESOLVED) Give permission to create account only for a set of user

  • MediaWiki 1.12.0
  • PHP 5.2.6
  • MySQL 5.0.51b

I wanted to give permissions to create account for only a set of users. How do i achieve this? help needed

Manual:Preventing access --:bdk: 11:30, 13 December 2008 (UTC)

(OUTDATED) Edit links missing from sidebar!

  • MediaWiki: 1.13.0
  • PHP: 5.2.5
  • MySQL: 5.0.51
  • URL: local

I am a Sysop, I have read the instructions hundreds of times, etc. etc. The edit links are simply not there on the sidebar page.

They are on other pages, no problem, but none on sidebar page. I am going mad. HELP!

(RESOLVED) How to change the password of user? 14:35, 25 August 2008 (UTC)

Manual:Resetting passwords --:bdk: 11:30, 13 December 2008 (UTC)

(RESOLVED) ed2k://

  • URL:

How is establishing a link ed2k? (e.g. http:// (, https://, mailto:// ) --Econt 23:23, 26 August 2008 (UTC)

Hmm, I'm unsure if you asked for pt.wikipedia in particular or if you only used the link as an example.
Well, in general please see Manual:$wgUrlProtocols.
For enabling such an option on Wikipedia, I'm pretty sure this won't be done, at least not in the foreseeable future – see meta:URI schemes (you can open a new bug though). --:bdk: 14:58, 2 September 2008 (UTC)

(OUTDATED) Disabling Search Preview

When you type a word into the search box, it displays a list of articles along with a short "preview" of that article's contents. Is it possible to disable this preview on a page-by-page basis, via use of extensions or...? Otherwise, how would I go about disabling it altogether on my personal Wiki, if possible? Soonshort 02:16, 1 September 2008 (UTC)

Just a quick update, did some search around but only people asking for this feature. It seems it's possible, just no one wants to do it. Soonshort 06:46, 10 September 2008 (UTC)

(RESOLVED) cannot modify header error

I have modifyed index.php and wiki.php but then i deleted the changes and thaved it. But now on my site come this errors:

Warning: Cannot modify header information - headers already sent by (output started at /var/www/user/ in /var/www/user/ on line 10
Warning: Cannot modify header information - headers already sent by (output started at /var/www/user/ in /var/www/user/ on line 10
Warning: Cannot modify header information - headers already sent by (output started at /var/www/user/ in /var/www/user/ on line 10
Warning: Cannot modify header information - headers already sent by (output started at /var/www/user/ in /var/www/user/ on line 10
Warning: Cannot modify header information - headers already sent by (output started at /var/www/user/ in /var/www/user/ on line 10
Warning: Cannot modify header information - headers already sent by (output started at /var/www/user/ in /var/www/user/ on line 10
Warning: Cannot modify header information - headers already sent by (output started at /var/www/user/ in /var/www/user/ on line 10
Warning: Cannot modify header information - headers already sent by (output started at /var/www/user/ in /var/www/user/ on line 10

I have nothing modifyed on webresponse.php

And how to enable html codes in wiki pages? Thx — 13:23, 2 September 2008 (UTC) Sorry for my bad english i came from Germany.

Do you still get these errors? If yes, where exactly (which action)?
For eabling html, see Manual:FAQ#How can I allow use of HTML tags?
Btw, you should look up your Special:Version page to get the version info (you wrote "I don't know" – I filled out the above information for you now) ;-) --:bdk: 14:42, 2 September 2008 (UTC)

(OUTDATED) Saving a page returns a white page : memory problem

  • MediaWiki: 1.11.0 & 1.12.0
  • PHP: 5
  • MySQL: 5

When I save a page (not all it seems), the script returns a white page. With the debug options, I saw the error :

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 23040 bytes) in /var/www/vhosts/.../htdocs/includes/Exif.php on line 665

But this doesn't help me a lot. After some research on Google, I found out that it's possible but not recommended to change the memory limit with ini_set("memory_limit", '16M'); for example. But it also says that the script is not optimized.

So what can I do ? Pages are saved correctly, but the fact that a white page appears can be really confusing...

Matt84 10:02, 3 September 2008 (UTC)

I upgrade MW to 1.12 (from 1.11) and now every load of a page leads to a white page. But if I refresh it's ok. Could it be a problem of cache or... ??
If PHP runs out of memory, give it more memory. (Wikimedia Foundation wikis have a memory limit of 50MB.) —Emufarmers(T|C) 22:38, 3 September 2008 (UTC)

I don't have the rights to change the memory limit (even with ini_set).

The error is :

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 20 bytes) in
/var/www/vhosts/ on line 2469

But I don't understand why it opens MessagesAr.php which is for arabic... and I only use English or French.. Matt84 12:57, 4 September 2008 (UTC)

(OUTDATED) How to rid of redirect from site root to "Main_page"?

  • MediaWiki version: 1.11.0
  • PHP version: 5.2.5-pl1-gentoo (apache2handler)
  • MySQL version: 5.0.44
  • URL:

How can I rid of redirect from site root to "Main_page"? is typical example of such a trick, but I have no idea how they did it.

Organic 19:27, 3 September 2008 (UTC)

(OUTDATED) Get rid of history - Only one version

Is there ANY way in WikiMedia to disable writing history of articles or pages? I mean - to have ONLY ONE version of each article, which is overwritten each time I save a new one. I don't mean to just remove history tab.

I'm looking for this solution for many reasons. To lower database, because I need to, because I want to, because I want to assure myslef that it is possible! :)

I'm doing a simple "private" Wiki, which will be edited by only one person (rest can view). Administrator know what he or she is doing and therefore doesn't need a history of edits or an abillity of reverting article to previous version.

I've searched the Internet and MediaWiki for this and found nothing (maybe due to incorectly defined search), that's why I'm asking.

Trejder 10:30, 8 September 2008 (UTC)

(OUTDATED) Groups and Group Management

  • MediaWiki version: 1.11.2
  • PHP version: 5.2.4-2ubuntu5.3 (apache2handler)
  • MySQL version: 5.0.51a-3ubuntu5.1
  • URL: Intranet/private

My question/suggestion refers to user group management. Is there currently a way, or extension that will allow wiki interface to ADD/MODIFY/DELETE user groups when logged in as admin??? I added the extensions CategoryPermissions and GroupBasedAccessControl, and I've also added groups in to the MySQL database under table mywiki_user_groups but they do not show up in the admin user group management - I still only see the defaults (sysop/bot... etc). I've read about editing the LocalSettings.php to pass new groups but those also do not show up in the group list.

My suggestion would be if there is not a way to definitely integrate this into future versions. It would be a very simple addition to the database by adding a single table and using the existing _user_groups table with a many to many relation between the group table and user table. This would allow inherent user by user access control via extensions while still maintaining the core focus of a wiki. (IE allowing both public and private wikis to group users in logical ways which could also be used for ACL if needed.)

T3chn0m0nk3y 16:09, 8 September 2008 (UTC)

(RESOLVED) Automatic Login to the wiki from another site.

  • MediaWiki version: 1.13.0
  • PHP version: 5.2.6
  • MySQL version: 5.0.51b

I'm trying to set up an internal wiki for employees of a company. We want it so that they access the wiki from an another site which they have to log into. Once they click on a "Go to the Wiki" button, it will either send a $_POST variable or set a $_SESSION variable to the wiki which will log them in as a generic 'user' that can't edit the pages, just view them. I have it setup so that no one can edit the pages but the Admin, and all that works perfectly. Just can't find where I would be able to set an:

       etc, etc, etc.

Thanks for the help! — 15:58, 10 September 2008 (UTC)

You should make an AuthPlugin Bryan 14:39, 2 October 2008 (UTC)

(RESOLVED) Navigation tool

I want to install this tool w:en:Wikipedia:NAVPOP

In order to do that i need to edit my monobook.js file. But where can i find that? I`am searching for like 2 hours and still nothing came up

Please help 11:50, 11 September 2008 (UTC)

If you're logged in to your wiki, go to Special:Mypage/monobook.js and create/edit that page. --:bdk: 11:30, 13 December 2008 (UTC)

(OUTDATED) Search api

  • MediaWiki version: 1.13.0
  • PHP version: 5.2.6 (apache2handler)
  • MySQL version: 5.0.51a-community
  • URL:

My search api doesn't like to give suggestions to Firefox.


The first url works, but Firefox can't create a search plugin without &amp; (causing errors).

Thereby I've got a non-existing page: but it's listened at: (all pages, my wiki is in Dutch). How can I delete this one (manually)?

What should I do? — 10:03, 14 September 2008 (UTC)

Those two URL's look identical to me. .... I don't understand the problem, but is this something an HTML META redirect could work around? -- töff 18:32, 16 September 2008 (UTC)
See the source code of this page, you'll see the difference. 15:34, 17 September 2008 (UTC)

(RESOLVED) How To Transclude Categories?

MediaWiki: 1.11.0; PHP: 5.2.6 (cgi-fcgi); MySQL: 5.0.45-community-log; URL:

I'd like to make a page that shows the contents of TWO existing categories. But the categories' lists don't appear. How can I put two category LISTS on one page? -- töff 22:53, 15 September 2008 (UTC)

Not possible in MediaWiki. Bryan 14:38, 2 October 2008 (UTC)

(RESOLVED) MediaWiki research for e-portfolio

I am a part of a leadership program. I am helping an organization in the development of an E-Portfolio as a team project. We are looking into your product (MediaWIKI). Can you assist with answering the following questions?

WEB ADDESS/CONTACT INFO Is your product Web 2.0 compatible? Who are your clients? List of references we can contact Do you provide: - Support for synchronization to these enterprise systems; Additional cost for upgrades; 24 hour technical support; Emergency outage notifications; Administrative handbooks for end users; Do you provide hosted version from locations outside of the client institution? Do you provide technical support to deal with technical question/problems? What training do you provide for users (University, faculty, and students) in organizing and using the system and data? For initial server space rental; for changes in server space used; for maintenance/updates; for data download to students (upon graduation); for initial set-up; for training; Do you provide training or orientation to new users? What are the projected hardware impacts (costs, equipment requirements, etc.) upon the client? What are the hardware and system requirements required to run the product? Will the client have a single POC at your company or will there be a group interactive dynamic? Will you work with the client to make changes over time to the system to maximize their needs? Do you have any other clients that are using a similar system in a similar manner? Do you provide unlimited storage space or a limited default storage space? If limited, what is the default setting (e.g. 25MB) Do you provide system integration capability - (e.g. can this tool be integrated into existing systems such as institutional data bases or other university systems? How do you provide privacy and security to student/faculty data? Are student/faculty IDs and passwords encrypted? Can students download and save their eportfolios? 22:32, 16 September 2008 (UTC)

What is MediaWiki?Emufarmers(T|C) 06:39, 17 September 2008 (UTC)