Project:Support desk/Sections/System

__NEWSECTIONLINK__ = MediaWiki System Support =

Displaying links to a page
I want to have a section on my Wikiversity page that displays what other pages link to it. For example, within the project, there will be many pages that can cross-reference each other, so I want all pages that link to one page to be displayed toward the bottom of that page. Does this make sense? If so, what would be the easiest way to go about doing that? Thanks! 122.102.199.90 11:42, 29 February 2008 (UTC)

Try using the transclusion

where "name-of-your-page" is changed to the name of the page to be linked. Smaug 21:47, 26 March 2008 (UTC)

(RESOLVED) TOC not redirecting properly
I'm getting a wrong redirect for the TOC. IF there's an heading called "Story" the link should be http://www.domainsite.ext/article#STORY but the links redirect on http://www.domainsite.ext/#STORY, without "article" so the browser is redirected to the home page!!!

I think it's an hosting problem, How can I fix this? Thanks in advance! --Lorenzone92


 * I'd be nice if you gave your url and your wiki information so we can help you. -PatPeter, MediaWiki Support Team  16:03, 22 December 2007 (UTC)


 * The wiki is on www.rockciclopedia.com. For istance if you go here and you click on "Origini" you'll be redirected to the home page... --Lorenzone92 21:54, 22 December 2007 (UTC)


 * Someone on your wiki edited a page wrong, it is either a system file or a MediaWiki file that defines how the ToC displays. Do you have access to your wiki's system files and MediaWiki files? Ask all your admins who have the same permissions if they did anything. -PatPeter, MediaWiki Support Team  23:27, 22 December 2007 (UTC)


 * I'm the only admin and I've edited nothing... I think I have to replace relative links with absolute links in the PHP file that pertain to contents table... --Lorenzone92 13:52, 23 December 2007 (UTC)


 * Yes they need to be absolute. -PatPeter, MediaWiki Support Team  19:52, 24 December 2007 (UTC)


 * OK but I've edited nothing... So I don't know where the problem could be! What do you think? Which is the PHP file that "manage" the ToC? --Lorenzone92 22:38, 24 December 2007 (UTC)
 * MMh... no one can help me? --Lorenzone92 15:44, 26 December 2007 (UTC)
 * Pleaseeeeeeeeeeee!! :P --Lorenzone92 11:36, 30 December 2007 (UTC)


 * Ouch sort of forgot about you here, sorry. Anyway it might have been edited when you installed MediaWiki (i.e. random bad default edit or loss of info in file transfer). I can't find any help information on the Table of Contents on MediaWiki, stay posted. -PatPeter, MediaWiki Support Team  17:48, 7 January 2008 (UTC)


 * So what do you think I can do? Which files can i reupload? Which PHP file create the ToC? P.S.: Thx for your help! ;) --Lorenzone92 17:51, 9 January 2008 (UTC)


 * I'd start with re-uploading the /includes/ directory, along with its sub-directories. Tuvok[Talk/en.wp] 06:38, 10 January 2008 (UTC)


 * And re-uploading that dir I won't lose my pages? --Lorenzone92 18:27, 10 January 2008 (UTC)


 * Yes you won't lose your pages, includes aren't attached to your database. You would lose a Special page if you forgot to re-upload it though. -PatPeter, [[Image:Tournesol.png|20px]] MediaWiki Support Team  18:32, 10 January 2008 (UTC)


 * I've reuploaded all the directory with also subdirs but the redirections don't work anyway (for example here look at the ToC.. :( I tried to set all my files/dirs CHMOD to 777 but it's the same... --Lorenzone92 18:42, 10 January 2008 (UTC)


 * Don't forget me! :P --Lorenzone92 14:24, 14 January 2008 (UTC)


 * Don't worry, as long as you continue repling to the questions and whatnot your thread will remain here until it is resolved, see the policy up above, this is just one heak of a problem. -PatPeter, [[Image:Tournesol.png|20px]] MediaWiki Support Team  17:25, 14 January 2008 (UTC)

This is what the source of your TOC is:

So I am going to have to put this up for another MST member, I am pretty sure there is an option somewhere for enabling "fullURL" for ToC or something. -PatPeter,  MediaWiki Support Team  00:30, 17 January 2008 (UTC)


 * mmh... so what should i do? --Lorenzone92 17:46, 17 January 2008 (UTC)
 * mmmhh? :P --Lorenzone92 22:01, 22 January 2008 (UTC)

Good job, keep bumping, I know someone here must know the config setting to enable full URL. -PatPeter,  MediaWiki Support Team  02:28, 23 January 2008 (UTC)


 * Bump, bump, bump... :D --Lorenzone92 17:07, 25 January 2008 (UTC)


 * I'm still here....... --Lorenzone92 21:33, 5 February 2008 (UTC) :P


 * I need help..... --Lorenzone92 18:26, 11 February 2008 (UTC)


 * May someone help me? --Lorenzone92 14:07, 28 February 2008 (UTC)


 * Try searching meta for any help on ToCs. -PatPeter, [[Image:Tournesol.png|20px]] MediaWiki Support Team  19:36, 3 March 2008 (UTC)


 * Searched but I found nothing.... Still need help! --Lorenzone92 20:56, 13 March 2008 (UTC)
 * RESOLVED (chatting in the IRC channel)! The problem base my meta tag  ... --Lorenzone92 13:10, 14 March 2008 (UTC)

Adding an additional Sidebar

 * MediaWiki: (Reported by your Wiki's Special:Version page)
 * PHP:
 * MySQL:
 * Database:
 * URL:

Hi there I try to develop a little MediaWiki for some friends. They requested an additional Sidebar on the right side. General question: - is this possible? - I guess so... If it is possible, which file do I have to edit? I searched for Extensions but haven't found one, anyone knows about this? Ben

—212.184.19.70 10:17, 10 January 2008 (UTC)


 * You can create many sidebars as is done on this wiki, edit the MediaWiki:Sidebar article. See also Manual:Interface/Sidebar --Nad 19:41, 10 January 2008 (UTC)


 * Putting one on the right side will require some trivial CSS changes though. — color probe (talk | contribs | [[Image:Tournesol.png|20px]]Support team) 19:48, 10 January 2008 (UTC)


 * Great. Thanks for your help.Can you tell me in which file I have to add some css code?
 * CSS code can be put in the wiki article Mediawiki:Common.css --Zven 01:40, 11 January 2008 (UTC)


 * Thanks for your hint. Actually my skills writing CSS are low (sorry for that). So can you please give me more help concerning the code?
 * I read some CSS help :). Is it right, that I have to add in common.css some lines starting #rightcolumn {float:right etc} If this first thought is ok, then how to tell the code that there should be some Information in it (the right column)? Normally there is some html code e.g. text but even if I add this div tag to monobook.php I don't know how to add a WikiText into it... Hope you can understand my problems. Have a nice weekend.
 * Ok I found a possibility to insert a Wikitext into a div tag. Now the (last) problem is the Position. I added my div Container in monobook.php at several places. None of them was ok. Someone knows where exactly (after/before which lines) I have to add my code?. Or is it the wrong way? As color probe wrote I have to do the placement with "trivial" css?

(RESOLOVED) Locking Down MediaWiki
Just installed v1.11.1 on Windows 2003, PHP 5.2 and MySQL at www.theearthwitch.com as a personal knowledge dump. Trying to lock it down so only myself and wife can view/add pages. Added the following statements to the LocalSettings.php file and restarted IIS. These lines are not preventing editting or creating of new accounts. What does work?

$wgWhitelistEdit = true;
 * 1) Specify who can edit: true means only logged in users may edit pages

$wgWhitelistRead = array ("Main Page", "Special:Userlogin", "Wikipedia:Help");
 * 1) Pages anonymous (not-logged-in) users may see

$wgWhitelistAccount = array ( 'user' => 0, 'sysop' => 1, 'developer' => 1 );
 * 1) Specify who may create new accounts: 0 means no, 1 means yes

—63.118.221.94 20:04, 28 February 2008 (UTC)


 * Duh, the methods you're trying to use are for MediaWiki 1.4 (which is very old) - for example, $wgWhitelistEdit was a setting which was completely removed in MediaWiki 1.5.


 * The above code prevents anonymous and logged-in users from creating accounts, but still allows users with the 'sysop' and/or 'developer' permission to create accounts.


 * The following code prevents anonymous & logged-in users from editing but allows sysops and developers to edit:


 * And this disables anonymous reading and allows them only to read pages that are defined on $wgWhitelistRead. I suppose though that your project isn't called "Wikipedia", so you might want to remove "Wikipedia:Help" from the list or add another help page instead of that there. For example, if your wiki is called "MyWiki" (see $wgSitename), you could add "MyWiki:Help" to the list. In any case:


 * And this stops anons & logged-in users from creating pages:


 * See Manual:Preventing access for lots more information about this subject. Cheers. -- Sayuri 11:59, 6 March 2008 (UTC)

Some programming help needed

 * MediaWiki: 1.5.8
 * PHP: 4.4.0 (apache2handler)
 * MySQL: 3.23.58

For my wiki I would need some additional functions wich I hope could be possible via adding to the php code. Our users will use the wiki for their own different projects. I want them to have a way to decide if other users but them can edit their pages. We developed a "traffic light"-system for this using templates. "Green" meaning free to edit for anyone, "Yellow" please ask before editing, "Red" No editing. What would we need is the edit page to check if the "Red" template is present on a page, and if yes to not save any changes, unless the user editing is the user who first created the page. If the "Yellow" template is present in a page, the user who first created it (and that user only) should be able to revert that page.

Is this somehow possible?

—217.94.251.162 06:31, 29 February 2008 (UTC)

Main Page boxes

 * MediaWiki: 1.11.1
 * PHP: 5.2.5
 * MySQL: 5.0.24

Hi,

Fairly new to the whole wiki thing so plase bear with me.

I'm making an internal wiki for my company and managment have told me that they want several "boxes" on the Main Page (similar to the main page on wikimedia.org and wikipedia). but how do i go about adding those in? Are they just tables with all that info added in or is there a special code i need to us?

Plus, is there any way i can set all users preferences to search all namespaces as default?

Cheers

—62.49.155.133 12:41, 29 February 2008 (UTC)


 * For the namespace by default question, see Manual:$wgNamespacesToBeSearchedDefault. Not exactly sure what you want for your main page. I think just add tables. Timneu22 13:26, 9 March 2008 (UTC)

Database driver problem

 * MediaWiki: (1.11.1)
 * PHP: (5.2.5 IIS)
 * MySQL: (5)
 * URL: Not working yet but it is installed at Http://www.glsc.usgs.gov/mediawiki/

When I load index.php at the address above, I get a message that I need to configure the wiki. That's what I expect however, it fails to find a db when I click the setup link. I get this:

MediaWiki 1.11.1 Installation

Don't forget security updates! Keep an eye on the low-traffic release announcements mailing list.

Checking environment...

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

PHP 5.2.5 installed Could not find a suitable database driver! For MySQL, compile PHP using --with-mysql, or install the mysql.so module For PostgreSQL, compile PHP using --with-pgsql, or install the pgsql.so module

I have installed MySQL but there must be a problem with it.

Thank you for any help you may be able to provide.

Rich Quintal

Webmaster

Great Lakes Science Center

—159.189.64.158 20:51, 29 February 2008 (UTC)

Will Neelen: It seems that the connector between PHP and MySQL does not work. Please make sure you have copied libmysql.dll (from the zip-package) to the PHP-program-directory. Most likely this is c:\program files\php or c:\php. Then you need to reboot the server and run the MediaWiki setup again.

LDAP Groups in Wiki

 * MediaWiki: 1.11.1
 * PHP: 5.2.5
 * MySQL: 5.0.45
 * URL:

The issue we are having pertains to group access in the wiki. The code that we have lets users log in with there LDAP credentials; which is what we want. We want everyone who has a logon for our domain to have access to the information. The part that we can't get to work is we only want one group in AD to be able to edit the information on the wiki. As it stands anyone that can sign in can edit and add pages. This is the code that we are currently using. We are all new PHP so some of the code may be incorrect.

We have commented out $wgLDAPRequiredGroups, it makes the code fail when we let it run.

—198.182.163.125 18:11, 14 February 2008 (UTC)

Highly Available Wiki System

 * MediaWiki: 1.11.1 (latest)
 * PHP: 5
 * MySQL: 5.0
 * URL: (internal)

I am trying to use loadbalancing to create a highly available Wiki system. My idea is to have the wiki write to a master and read from a slave. This way, when the master fails, it can still keep on reading of the slave.

I edited the setup.php and DefaultSettings.php and added the correct values to use multiple servers, but when the master goes down, it doesn't read from the slave, it keeps on trying to go to the master...

Thanks in advance !

EDIT: It seems that when the master is up, the wiki IS conneting to the slave... Problem is that when the master goes down, the wiki crashes (which it shouldn't, it should just read from the slave)

—213.193.161.137 13:25, 18 February 2008 (UTC)


 * See Category:Database variables and particularly Manual:$wgDBservers. Try connecting to your slave server manually and test if it contains the proper data etc. Also it's bad practice to change codebase files, you should do all configuration from LocalSettings.php. --Nad 21:10, 18 February 2008 (UTC)

Thanks for your reply ! Well, I followed the manual of wgDBservers, and edited the values that are there ! When I manually connect, the slave responds and all of the data that should be there, is there :-)


 * If the slave is synchronising ok, then I don't know. All I can suggest is to analyse what's happening when it crashes. I.e are there any errors logged? is it timing out? etc --Nad 22:55, 18 February 2008 (UTC)

Well, I took the following steps:

-Edited the files according to the manual (change $wgDBservers to true and added the server to the server array).

-Set up a MySQL-master-slave replication (outside of MediaWiki, or is MediaWiki supposed to do this itself?)

Also, the slave IS NOT down, MediaWiki just doesn't seem to want to connect to it when the master goes down... I now put the following code in the LocalSettings.php and restored the other files to default...

When I put the master down, I get the following errorcode:

"Lost connection to MySQLServer during query (192.168.2.150))"

Thanks for your interest btw :)

Category page, contents breakdown
Cripes - what a load of text to wade through just to make a help desk request! I don't think any of it was relevant, so I deleted it all.

Here is my (version and platform independent) problem;

By default, pages in a category are broken down by the first letter of the page title (or the first letter of the category index) on the page for the category. i.e.

A A page A page by any other name Another page Annex All pages B Because Become By the way ...

To change that behaviour, for example to break down pages by the first two letters of the page title (or the category index), i.e.

A A page A page by any other name An Another page Annex Al All pages Be Because Become By By the way ...

Should I,


 * 1) Add a magic word to the category page,
 * 2) tweek a global parameter setting somewhere,
 * 3) install an extension,
 * 4) hack the source code,
 * 5) all of the above?

Thanks for help ppl. --Dmb 08:31, 19 February 2008 (UTC)


 * Well dude, you could hack the 'firstChar' function in ./languages/Language.php - it seems that the only code to use this function is exactly the call under ./includes/CategoryPage.php that you want to hack. Try to substitute this code, and you will see double character category indexing;

/**	 * Get the first character of a string. *	 * @param string $s * @return string */	function firstChar( $s ) { $matches = array; preg_match( '/^([\x00-\x7f]|[\xc0-\xdf][\x80-\xbf]|'. '[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xf7][\x80-\xbf]{3})([\x00-\x7f]|[\xc0-\xdf][\x80-\xbf]|'. '[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xf7][\x80-\xbf]{3})/', $s, $matches);

return isset( $matches[1] ) ? $matches[1]. $matches[2] : ""; }

Of course you should probably rename that function, and add an option to activate this behaviour somehow. --Dmb 13:19, 19 February 2008 (UTC)

OK, now I have renamed the above function 'firstTwoChar' (keeping firstChar as it was). The relevant line to edit in ./includes/CategoryPage.php is within the addPage function ...

$this->articles_start_char[] = $wgContLang->convert( $wgContLang->firstTwoChar( $sortkey ) );

Now we need to call that selectively in response to some option... Suggestions? --Dmb 13:36, 19 February 2008 (UTC)

I wanted to change the logo in the LocalSettings.php but the $wgLogo is not there
I wanted to change the logo in the LocalSettings.php but the $wgLogo is not there where do i change it then?

—66.176.143.166 18:46, 24 February 2008 (UTC)


 * Add it.  Mønobi 19:59, 24 February 2008 (UTC)

A N S W E R : The image for $wgLogo is wiki.png. And this image resides in skins/common/images/wiki.png.

Rename your image to wiki.png, even if it is .jpg.

$wgLogo should be able to be defined in includes/DefaultSettings.php. --Detlef Lindenthal 20:40, 24 February 2008 (UTC)
 * You should never adjust the codebase files, set your logo using the Manual:$wgLogo global in the LocalSettings.php file. Do not adjust DefaultSettings.php or rename image files from the codebase. --Nad 22:02, 24 February 2008 (UTC)
 * Dropping $wgLogo = "/images/b/bc/Wiki.png"; into LocalSettings.php may be easiest; this allows you to upload Image:Wiki.png to the wiki as just another image. --Carlb 01:26, 26 February 2008 (UTC)

(RESOLVED) Email notification won't work

 * MediaWiki: 1.11.1
 * PHP: 5.2.0-8+etch7 (apache2handler)
 * MySQL: 5.0.32-Debian_7etch1-log
 * URL: http://werkwelt.de/mw

Hello,

I'm trying to install Mw 1.11.1; everything works fine

except for email notification :-(

Email address confirmation does work, this means that the PHP-Mailer works.

I switched on any switch in
 * LocalSettings.php and
 * includes/DefaultSettings.php and
 * Special:Preferences (Spezial:Einstellungen).

Does somebody have any idea what is missing?

mailto:detlef(at)lindenthal.com —Detlef Lindenthal 20:32, 24 February 2008 (UTC)
 * Are all settings you need of Manual:Configuration settings enabled ? Seb35 09:16, 27 February 2008 (UTC)

(RESOLOVED) Signatures php script?

 * MediaWiki: 1.11.1

Doubt anyone knows this, but what is the php script for signatures ( ~ ) ? ——The TattleTale Strangler 05:53, 1 March 2008 (UTC)


 * Parser.php; and here is some more information that is semi-related. Timneu22 18:58, 2 March 2008 (UTC)

After editing a section, browser returns editor to the top of the article not to the section

 * MediaWiki: 1.9.3
 * PHP: 5.2.5 (cgi-fcgi)
 * MySQL: 5.1.22-rc-community

The issue is this:
 * On Wikipedia:
 * I edit section X of an article
 * After I save, the browser keeps me on section X
 * On MediaWiki Sites that I administer:
 * I edit section X of an article
 * After I save, the browser returns me to the top of the article

This issue occurs on multiple wikis on multiple versions, so I don't think it is a versioning thing.

I want my Wikis to return to the proper section, like Wikipedia does... does anyone know how to do this? —Timneu22 14:28, 2 March 2008 (UTC)

Trying to set the script up as a SubDomain

 * MediaWiki: (Reported by your Wiki's Special:Version page)
 * PHP:
 * MySQL:
 * URL:

Hi, I am trying to get the wiki to work as wiki.mydomain.com rther then domain.com/wiki, Th problem im running into is that if you goto the wiki.mydomain (which points to public_html/wiki) it trys to send me to wiki.mydomain.com/wiki. If i edit localsettings.php so that it will try to redirect to "$wgScriptPath      = ""; the page goes to text only.

Any advice on how i should edit it. or shall i start recoding it? (not sure if this is a common issue)

—90.242.137.6 10:32, 3 March 2008 (UTC)

Links to internal servers

 * MediaWiki: 1.11.1
 * PHP: 5.2.5
 * MySQL: 5.0.24

Is there any way of making a link on my internal wiki to a shared folder/file on my internal network?! I've tried numerous things, but to no avail.

Please help as this is vital for my wiki to be accepted by management!!

Cheers

—62.49.155.133 17:16, 3 March 2008 (UTC)


 * Does  not work? This is how I do it at my internal wiki, and I don't remember making any php changes for this to work. Timneu22 13:21, 9 March 2008 (UTC)

URLs and Tables

 * MediaWiki: 1.11.0
 * PHP: 5.2.4
 * MySQL: 2.8.0.2
 * URL: RockCiclopedia

1: My wiki's urls are like this: www.domain.ext/index.php/XXXX, how can I change them to www.domain.ext/XXXX (removing index.php like wikipedia)?

2: I've MediaWiki 1.11.0 and I'd like to upgrade to the new version. I can't access to the command line of the server, so I have to run the setup another time. Are you sure that selecting the same tables of the database I won't lose something?

—Lorenzone92 13:24, 4 March 2008 (UTC)


 * For #1, you should see Manual:Short URL. I'm unable to answer #2. Timneu22 13:16, 9 March 2008 (UTC)

(RESOLVED) Notice: Undefined offset: -1 in .../mediawiki/languages/Language.php on line 364

 * MediaWiki: 1.9.3
 * PHP: 5.2.4
 * PostgreSQL: 8.1.5

Hallo at all,

I installed a German Mediawiki but at the Specialpage containing the list of uploaded files I get an Error:

Notice: Undefined offset: -1 in /home/opt/lampp/htdocs/mediawiki/languages/Language.php on line 364

looking like this: [[Media:ErrorMediaWiki.png]]

Please help me soon, this System is the final test of my education...

Thank you.

--MaximilianG 07:49, 6 March 2008 (UTC)

Hallo at all,

I soluted my problem by installing the version 1.12 of Mediawiki

--MaximilianG 14:10, 25 March 2008 (UTC)

In version 1.10.0 is there a way to generate RSS in the wiki markup without adding an extension?

 * MediaWiki: (Reported by your Wiki's Special:Version page)
 * PHP:
 * MySQL:
 * URL:

I'm not experiencing an error. I am using mediawiki version 1.10.0. Is there a way to allow RSS to be generated through the wiki markup without having to add any extensions? Are there some hidden features that I can turn by editing the Localsettings.php file?

Thank you.

David

—70.168.46.143 14:40, 6 March 2008 (UTC)

(RESOLOVED) How Do I Change the Article Tab Text to "recipe?"

 * MediaWiki: 1.11.1
 * PHP: 5.2.3 (apache2handler)
 * MySQL: 5.5.51a
 * URL: DishiWiki

My wiki is a wiki for recipes. How do I change the text on the Article tab to say "recipe" instead of "article" when the article is categorized as a "recipe?"

Similarly, how do I change the Article tab to say "technique" (or "tip") when the article is categorized as a "techique" or "tip," respectively?

(I don't think a new tab for "recipe" or "technique" or "tip" makes sense, do you?)

I love the MediaWiki software and Site! When I get good at it, I'm going to pitch in.

—72.220.150.243 17:16, 6 March 2008 (UTC)


 * Solution: Change your mediawiki:nstab-main text. Timneu22 21:59, 6 March 2008 (UTC)
 * Thanks! That's just what I needed to know while in the meantime I'm reading all the MediaWiki documentation. 72.220.150.243 18:45, 8 March 2008 (UTC)

Warning: mkdir

 * MediaWiki: 1.11.0
 * PHP: 5.2.5
 * MySQL: 5.0.51a
 * URL: www.BrandweerExpert.nl

After deleting an image I've got the following warning:

Warning: mkdir [function.mkdir]: SAFE MODE Restriction in effect. The script whose uid is 626 is not allowed to access ……/wiki/images/deleted/c/8/n owned by uid 100 in ……./wiki/includes/GlobalFunctions.php on line 1670

The maps "images" and "deleted" have "Write" right for "Group" and "World".

Can you help me?

—Jaap Smit 11:36, 7 March 2008 (UTC)

Edit pages

 * MediaWiki: (Reported by your Wiki's Special:Version page)
 * PHP:
 * MySQL:
 * URL: ErasmusWiki

Hello, Sorry, this is a simple question but I cannot find it in the FAQ (with word edit): I created a wiki and on the edit pages there is only the above toolbar, but not the one with catagories and specially languages… Where can I change this? Thanks!

—129.11.120.250 23:27, 7 March 2008 (UTC)


 * Have you checked this page already?: http://www.mediawiki.org/wiki/Help:FAQ#How_do_I_add_more_buttons_on_the_edit_page.3F My best, --Gollum 22:23, 8 March 2008 (UTC)

(RESOLOVED) Changing Copyright Text in the footer

 * MediaWiki:1.11.0rc1
 * PHP: 5.1.6 (apache2filter)
 * MySQL: 4.1.20
 * URL: http://de.wiki-products.org/Hauptseite

How can I change the text concerning the copyright in the footer of our wiki? It is clear how to change the second part of the text (which displays the license of our Wiki), but how can I change the first part from "Content is available under" to "Text is available under"? This is necessary since we are using images from wikicommons which are not licensed under the GNU. Thanks for helping and best wishes, —Gollum 22:18, 8 March 2008 (UTC)


 * Maybe I'm not sure exactly what you want, but I think you want to change Mediawiki:Copyright, MediaWiki:Copyrightwarning2 or MediaWiki:Copyrightwarning. Otherwise, check special:allmessages to find the text you're changing. Sorry if this doesn't exactly answer what you want, but I think this is what you need. :} &mdash; Timneu22 22:47, 8 March 2008 (UTC)


 * Yes, that is exactly what I was looking for! Thanks!! --Gollum 08:40, 9 March 2008 (UTC)

'LoginForm execute' appearing on screen

 * MediaWiki: 1.9.3
 * PHP: 5.1.6 (isapi)
 * MySQL: 5.0.45-community-nt

I've just created a new installation and I'm getting statements (e.g. 'LoginForm execute') injected at the top of pages. This happens on the log in page and randomly elsewhere.

LoginForm execute<!DOCTYPE html ....

How do I prevent these from being injected into the page?

—Steve Slopek 16:26, 9 March 2008 (UTC)

wgBreakFrames is undefined

 * MediaWiki: 1.11.2
 * PHP: 5.2.4 (isapi)
 * MySQL: 5.0.18-nt
 * URL: (internal company site)

An error is occuring just as a user navigates to the wiki main page:
 * 'wgBreakFrames' is undefined

This value is set in the DefaultSettings.php, so I don't understand why is message is occuring. It is set to the default value and has not been changed.

Also, this error is only occuring for a few users, not all, but it occurs every time they first open the wiki. In all instances where this occurs, the user is getting to the main wiki page from their favourites list in IE. It seems to mainly be an annoyance and does not seem to restrict them from using the wiki.

—Jenn 15:40, 10 March 2008 (UTC)

Link to a directory.
Is it possible to make a link to a directory on a server? And if it is possible how do I have to do it? &mdash; Nico Van Hessche


 * Just type  Timneu22 10:37, 11 March 2008 (UTC)

What Media wiki Supports

 * MediaWiki: (Reported by your Wiki's Special:Version page)

Does MediaWiki support ASP and SQL also.

Yesjay —203.200.33.226 12:54, 11 March 2008 (UTC)

Preventing Creation of New Pages in a single namespace
I know how it is possible to prevent and allow groups of users from editing a specific namespace (using $wgNamespaceProtection). Is it possible to prevent and allow groups of users from creating a new page in a specific namespace?

—Smaug 16:57, 18 March 2008 (UTC)


 * Here's a sample of my local settings; it does what you're asking. You should get the idea.

$wgGroupPermissions[ '*' ][ 'ns0_read' ] = true; $wgGroupPermissions[ 'editor' ][ 'ns0_edit' ] = true; $wgGroupPermissions[ 'editor' ][ 'ns0_create' ] = true; $wgGroupPermissions[ 'editor' ][ 'ns0_move' ] = true;
 * 1) regular pages

$wgGroupPermissions[ '*' ][ 'ns1_read' ] = true; $wgGroupPermissions[ '*' ][ 'ns1_edit' ] = true; $wgGroupPermissions[ '*' ][ 'ns1_create' ] = true; $wgGroupPermissions[ 'editor' ][ 'ns1_move' ] = true;
 * 1) regular talk pages

$wgGroupPermissions[ '*' ][ 'ns2_read' ] = true; $wgGroupPermissions[ '*' ][ 'ns2_edit' ] = true; $wgGroupPermissions[ '*' ][ 'ns2_create' ] = true;
 * 1) user pages

$wgGroupPermissions[ '*' ][ 'ns3_read' ] = true; $wgGroupPermissions[ '*' ][ 'ns3_edit' ] = true; $wgGroupPermissions[ '*' ][ 'ns3_create' ] = true;
 * 1) user talk pages

$wgGroupPermissions[ '*' ][ 'ns4_read' ] = true; $wgGroupPermissions[ 'bureaucrat' ][ 'ns4_edit' ] = true; $wgGroupPermissions[ 'bureaucrat' ][ 'ns4_create' ] = true;
 * 1) wiki pages

$wgGroupPermissions[ '*' ][ 'ns6_read' ] = true; $wgGroupPermissions[ 'editor' ][ 'ns6_edit' ] = true; $wgGroupPermissions[ 'editor' ][ 'ns6_create' ] = true;
 * 1) images

$wgGroupPermissions[ '*' ][ 'ns7_read' ] = true; $wgGroupPermissions[ '*' ][ 'ns7_edit' ] = true; $wgGroupPermissions[ '*' ][ 'ns7_create' ] = true;
 * 1) image talk

$wgGroupPermissions[ 'bureaucrat' ][ 'ns8_read' ] = true; $wgGroupPermissions[ 'bureaucrat' ][ 'ns8_edit' ] = true; $wgGroupPermissions[ 'bureaucrat' ][ 'ns8_create' ] = true;
 * 1) mediawiki pages

$wgGroupPermissions[ '*' ][ 'ns10_read' ] = true; $wgGroupPermissions[ 'editor' ][ 'ns10_edit' ] = true; $wgGroupPermissions[ 'editor' ][ 'ns10_create' ] = true;
 * 1) templates

$wgGroupPermissions[ '*' ][ 'ns11_read' ] = true; $wgGroupPermissions[ '*' ][ 'ns11_edit' ] = true; $wgGroupPermissions[ '*' ][ 'ns11_create' ] = true;
 * 1) template talk

$wgGroupPermissions[ '*' ][ 'ns12_read' ] = true; $wgGroupPermissions[ 'editor' ][ 'ns12_edit' ] = true; $wgGroupPermissions[ 'editor' ][ 'ns12_create' ] = true;
 * 1) help

$wgGroupPermissions[ '*' ][ 'ns13_read' ] = true; $wgGroupPermissions[ '*' ][ 'ns13_edit' ] = true; $wgGroupPermissions[ '*' ][ 'ns13_create' ] = true;
 * 1) help talk

Timneu22 01:02, 26 March 2008 (UTC)


 * Thanks for the response. But how do you define what those custom rights mean? MediaWiki doesn't automatically know what 'ns0_create' means. Smaug  02:42, 26 March 2008 (UTC)


 * Those rights come from Extension:NamespacePermissions. —Emufarmers(T 03:15, 26 March 2008 (UTC)

Rewrite Rules for changed Namespace Name?
I successfully modified my .htaccess file so that I now have short URLs.

This process made me wonder if there is a way using those Apache rewrite rules to do the following: I have used the $wgNamespaceAliases array to rename a namespace. I would like this to be reflected in the URL that the user sees. As it is, typing in the alternate name just redirects to the original namespace in terms of the URL (so the $wgNamespaceAliases editing worked).

How can I use Apache rewrite rules (or any other way, for that matter) to cause the namespace to appear how I like in the URL?

Thanks for any ideas. Smaug 19:07, 18 March 2008 (UTC)

Customising the Search

 * MediaWiki: 1.11.0
 * PHP: 5.2.5-0.dotdeb.2 (apache2handler)
 * MySQL: 5.0.51-2-log
 * URL:

Hello,

this is less an error report than a configuration matter which I didn't find in the "knowledge base", so to speak; I would like to know if you can customise the search in a way that it excludes all pages with a certain name in it (in this case it would be "Dienstberichte*"; having them searched, too, is an annoyance so I would like to generally exclude it somehow from the queries. Where do I have to add which line to be able to do so?

Oh yeah, this is a double post; i sincerely hope no one replied to me in the last 2.5 weeks because i posted in the wrong category...

—141.20.121.2 09:16, 19 March 2008 (UTC)

Problem with search in russian language
Hello, when I search for russian text in my wiki installation, it sometimes work, sometimes not, even if I enter the exact word. How to fix that? (I suppose, there is the problem with upper- lowercase conversion) —Konstbel 13:55, 19 March 2008 (UTC)
 * MediaWiki: 1.11.0
 * PHP: 5.1.4 (apache2handler)
 * MySQL: 5.0.21-community-nt

Cannot search for IP addresses in articles

 * MediaWiki: 1.9.3
 * PHP: 5.2.1 (apache2handler)
 * MySQL: 5.0.37-community-nt
 * URL: private

Hi guys. We have a wiki installed for internal documentation. It contains information about various servers we have in our environments. However, we are unable to perform searches based on IP addresses. For example, searches for 192.168 will not return any results. Searches for 192.168.0.1 will not return any results. Searches for 192 will not return any results. In other words, searching for an IP, partially or in whole form, produces 0 results and the IP 192.168.0.1 exists in multiple articles.

Is there a bug? Is this a known issue? Is there a setting that needs to be set for this to work?

Thanks in advance. Zach

—209.202.131.98 15:08, 20 March 2008 (UTC)

Checking what namespace a page is in, while in the code (of LocalSettings.php)
I am using a hook in LocalSettings.php. I would like to make the action that I am making conditional, only occuring if in certain namespaces. I looked at SkinTemplate.php (wherein is the hook I am using) to see how the software already checks for what namespace the page is in, and found on line 706.

I put  in LocalSettings.php, where the "..." is code that already was in LocalSettings.php, and that worked, but that I wished to make conditional. When I add the if statement, I get a blank page.

What is the correct way to check, in a function in LocalSettings.php for use in a hook, what namespace the page is in?

Thanks. Smaug 00:44, 21 March 2008 (UTC)


 * Well. You leave me with no choice.  Bad practice as it is, I will now edit SkinTemplate.php directly. Smaug  00:06, 27 March 2008 (UTC)

Check if logged in

 * MediaWiki: 1.6.10
 * PHP: 5.2.2 (cgi)
 * MySQL: 4.1.22-standard
 * URL:

I am trying to add ads to my wiki in monobook.php but I don't want to show ads to logged in users. How can I check if someone is logged in?

—70.17.137.112 20:02, 21 March 2008 (UTC)
 * In the code they sometimes use the if statement  to determine if a user is logged in.  Try that. Smaug  21:25, 21 March 2008 (UTC)

technical user rights question

 * MediaWiki: 1.11.0
 * PHP: 5.2.5 (cgi)
 * MySQL: 5.0.45-community
 * URL: http://wiki.anamacha.net

Hi there!

I am running a private installation of MediaWiki 1.11, and I recently had to restrict editing because of spam problems. Based on some advice I got here, I modified my LocalSettings.php file to include the following:

$wgGroupPermissions['*']['edit'] = false;
 * 1) No anonymous editing allowed -

$wgGroupPermissions['user']['createpage'] = false;
 * 1) Anonymous users can't create pages; non-me users as well.  Creators
 * 2) will need to be sysops or bureaucrats.
 * 3) $wgGroupPermissions['*']['createpage'] = false;

$wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['user']['edit'] = false; $wgGroupPermissions['sysop']['edit'] = true;
 * 1) due to spam problems, only users in Sysop or Editor groups are
 * 2) allowed to edit
 * 3) thanks to Tuvok on the mediawiki helpdesk

/* Group of users who are approved to edit */ $wgGroupPermissions['editor']['edit'] = true;

Now I find that I can't edit things any more. I have two accounts, both of which are in both the bureaucrat and sysop groups; when I have them look at any page in my wiki, it says "View Source" where it usually says "edit".

I think the problem is that neither of my accounts is in the 'editor' group, but I don't know how to put them in there, as I don't know anything about MySQL or php -- I can execute commands and such, but am somewhat afraid of cocking the whole thing up with the wrong command. I've found some resources online (http://meta.wikimedia.org/wiki/Setting_user_rights_in_MediaWiki) but I'm not sure how to modify the commands properly.

Help, anyone? Thanks!

—Anamacha 22:50, 25 March 2008 (UTC)


 * If your sysops have all the rights of editors, you shouldn't need to make any sysops editors. It seems like it should be working already, but try adding in

if it's not there already.
 * If that doesn't work, I must ask are the $wgGroupPermissions you listed the entirety that are in your LocalSettings.php? Smaug 02:38, 26 March 2008 (UTC)


 * no, the addition of that line didn't work. I noticed that I had two lines that said   so I commented one out while I added your suggestion.  No dice.
 * I went all through my LocalSettings.php and yes, I pasted in here all of the $wgGroupPermissions. There are none in my file that I have not quoted here.

Anamacha 22:56, 26 March 2008 (UTC)
 * Make sure all of this is at the end of LocalSettings.php. If it's too early on it could get cancelled out by DefaultSettings perhaps...
 * If you still have problems, then comment out all of the $wgGroupPermissions lines. (If you are worried about anon editing forbid access to the whole directory during this procedure, I guess.) Try to edit something.  If you can't, you know it's not an issue with $wgGroupPermissions.  If you can, then add each one in one by one and see if unexpected behavior occurs, and if so when/where. Smaug  23:36, 26 March 2008 (UTC)


 * yes, this is all at the end. There's nothing after it; your suggestion is the last line in the file.  I figure I'll have to do as you suggest; I was hoping there was an easier way.
 * are there any $wgGroupPermissions statements at the end of the stock LocalSettings.php file? and is this file read in every time someone accesses the wiki?  (i.e., so do I ahve to restart php or something)

Anamacha 01:40, 27 March 2008 (UTC)

Template parser down after accessing on other php site on same server

 * MediaWiki: 1.11.2
 * PHP: 5.2.0.8+etch10
 * MySQL: 5.0.32
 * URL: wiki only available on my companie's intranet

hi !

I would like to resolve this nasty problem, i don't understand what is the really cause :

I have two site installed on my web server :

/mediawiki with files are on /usr/share/mediawiki

/egroupware with files are on /usr/share/egroupware

When i surf on egroupware it cause a crach of the template parser on mediawiki and my template are not interpreted correctly

as an result example i have a : "about " in the footer of my mediawiki pages. template is not interpreted and replaced by "about okparanoidwiki" assuming that okparanoidwiki is the name of my wiki...

i have one apache configuration files for each site :

mediawiki.conf Alias /mediawiki /usr/share/mediawiki

 Options +FollowSymLinks AllowOverride All php_value memory_limit 32M php_value upload_max_filesize 8M </Directory>

egroupware.conf Alias /egroupware /usr/share/egroupware

<Directory "/usr/share/egroupware/"> AllowOverride None php_value memory_limit 32M php_value max_execution_time 60 php_flag register_globals Off php_flag magic_quotes_gpc Off php_flag magic_quotes_runtime Off # settings for the file upload, you might increase them further php_value upload_max_filesize 16M # session handling: now the check for expired sessions is done on every 10th session creation php_flag session.use_trans_sid Off php_value session.gc_probability 1 php_value session.gc_divisor 10 # multibyte extension: needed for utf-8 php_value mbstring.func_overload 7 </Directory>

<Location /egroupware/rpc.php> php_value mbstring.func_overload 0 Order allow,deny Allow from all </Location> Could someone please help to resolve this problem ?? I will really appreciate some help !

PS : i have first reported this problem on mediawiki mailing list but i have no answer and this problem is very annoying for us...

—83.145.100.34 19:11, 26 March 2008 (UTC)

Notice: Warning: mkdir [function.mkdir]: Permission denied in [...]/mediawiki/includes/GlobalFunctions.php on line 1649

 * MediaWiki: 1.12.0
 * PHP: 5.2.4
 * PostgreSQL: 8.1.5

Hallo at all,

I installed a German Mediawiki but at the Specialpage containing the list of unused files (Unbenutzte Dateien) I get an Error:

Warning: mkdir [function.mkdir]: Permission denied in [...]/mediawiki/includes/GlobalFunctions.php on line 1649

looking like this: [[Media:Fehler2.PNG]]

Please help me soon, this System is the final test of my education...

Thank you.

--MaximilianG 07:26, 27 March 2008 (UTC)

Session data lost, even though, it is not

 * MediaWiki: 1.11.0
 * PHP: 5.2.5 (cgi-fcgi)
 * MySQL: 5.0.51a-log
 * URL: Ardapedia

Hi, I wrote a bot API for MediaWiki in Ruby (http://freifunk-halle.de/~konstantin/rubot). That API runs smooth on my local wiki, a test wiki and so on. And if I try it with Ardapedia it works, too, but only from my laptop, not if I run it on my server. However, on my server I've got exactly the same version of Ruby and the Ruby Net::HTTP library I'm using, it even is exactly the same OS (Ubuntu Gutsy), though my server is amd64 and my laptop x86, but that should not matter. If I run exactly the same script on my server, login works fine and all, but when trying to edit some page, I get an error: "Sorry! We could not process your edit due to a loss of session data. Please try again. If it still doesn't work, try logging out and logging back in." Still, the bot is logged in. Logging out and in and things like that don't solve it. And it is not possible that this error depends on my server's internet connection or something, since my local bot uses a private proxy on the server (since I'm surfing the internet via a wireless community network that the server is connected to via VPN). I even tried to use the proxy when running the script on the server, still session data is lost.

I don't use the build-in MediaWiki API, since it's not available on most of the wikis I intended the bot to be used for.

Note: I cannot change the wiki's configuration and contacting their technical admin really is a pain in the lower bottom. And since I want the bot to run smooth on as many wikis as possible this wouldn't be a satisfying solution, neither. And I have to run the bot on my server, since it is supposed to check for changes frequently.

Any help is welcome, thanks in advance. —88.198.51.136 09:06, 28 March 2008 (UTC)

texvc will not render a simple array box

 * MediaWiki: 1.7.1
 * PHP: 5.2.0-8+etch10 (apache2handler)
 * MySQL: 5.0.32-Debian_7etch5-log
 * URL: My Math Wiki

Attempting "\begin{array}" in a math formula causes texvc to give an F code back, this is "unknown command." Sandbox tests on the Wikimedia projects shows their subversion distributions have no problems with formulas that contain "\begin{array}".

I suspect there is a texlive package I might be missing that is needed, but I have hit a brick wall in understanding what texvc needs to correctly render this image.

—Wguynes 03:28, 31 March 2008 (UTC)

Email notification of every change
Is it possible to be notified via email whenever a page is added or edited? I'm the only administrator, but I'd like to be notified when anyone contributes/vandalises something.

--EchilonEchilon 20:29, 1 April 2008 (UTC)

Section edit not working

 * MediaWiki: 1.12.0
 * PHP: 5.0.4 (apache2handler)
 * MySQL: 4.1.20
 * URL:

After upgraded to 1.12.0, full page editing is ok but section edit was not working and getting internal server errror - Invalid h node passed to PPNode_DOM::splitHeading

Backtrace:


 * 1) 0 /var/www/html/wiki/includes/Preprocessor_DOM.php(1348): PPNode_DOM::splitHeading
 * 2) 1 /var/www/html/wiki/includes/Parser.php(4605): PPNode_DOM->splitHeading
 * 3) 2 /var/www/html/wiki/includes/Parser.php(4675): Parser->extractSections('This is a test,...', '2', 'get', false)
 * 4) 3 /var/www/html/wiki/includes/EditPage.php(193): Parser->getSection('This is a test,...', '2', false)
 * 5) 4 /var/www/html/wiki/includes/EditPage.php(982): EditPage->getContent(false)
 * 6) 5 /var/www/html/wiki/includes/EditPage.php(473): EditPage->initialiseForm
 * 7) 6 /var/www/html/wiki/includes/EditPage.php(323): EditPage->edit
 * 8) 7 /var/www/html/wiki/includes/Wiki.php(444): EditPage->submit
 * 9) 8 /var/www/html/wiki/includes/Wiki.php(48): MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest))
 * 10) 9 /var/www/html/wiki/index.php(90): MediaWiki->initialize(Object(Title), Object(OutputPage), Object(User), Object(WebRequest))
 * 11) 10 {main}

I appreciate if any one can let me know what I can do to resolve this issue. Would it help if I upgrade to latest php and mysql? I am running fedora 4 and apache, would there be any compatibility issues with php 5.2 and mysql 5.x?

Thanks for your attention

—12.106.66.116 21:42, 1 April 2008 (UTC)

Server giving HTTP 404 Error when trying to access Wiki main page

 * MediaWiki: 1.11.0
 * PHP: Server has both PHP 4 and 5 running (Register_globals is ON due to another CMS system I have running on the same server that is old enough to require it)
 * MySQL: 4.1.22
 * URL: http://wiki.horizonfleet.net/index.php5?title=Main_Page

Basically the error can be seen by going to the Wiki. When someone tries to access the wiki it throws up a 404 error reading: "The requested URL /cgi-sys/php5/index.php5 was not found on this server."

The Wiki was working fine until about a week ago. My only working theories are that someone changed something they weren't supposed to in trying to put in a new skin or some of my server settings were changed by the hosting company. Unfortunately, I can't even find a reference to the file or directory that the 404 error references in any of the code.

Any ideas what's causing this?

—98.27.189.117 02:49, 3 April 2008 (UTC)

URL

 * MediaWiki: (Reported by your Wiki's Special:Version page)
 * PHP:
 * MySQL:
 * URL:

Hello, I'am administrator of www.spiriwiki.com. Every page shows in the browser http://www.spiriwiki.com/index.php?title=Main_Page Is it possible to get rid of the index.php?title= part of it ?

Great thanks Spiriwiki.com 08:27, 3 April 2008 (UTC)

—Spiriwiki.com 08:27, 3 April 2008 (UTC)


 * Yes it is. <font color="#006500">Smaug 20:15, 3 April 2008 (UTC)


 * Great.... can yoy tell me how ? Spiriwiki.com 10:18, 4 April 2008 (UTC)


 * Go to Manual:Short URL. In my first response, "Yes it is" is a link to that page.  I'm sorry for not being more clear.  <font color="#006500">Smaug  19:54, 4 April 2008 (UTC)

'Special: Recent Changes' not working

 * MediaWiki: 1.12.0
 * PHP: 5.?
 * MySQL: 4.?
 * URL: Wyfopedia

I have backed up the database and image files, and upgraded to v. 1.12.0. The site now seems to be working again. However, I have the following error on 'Recent Changes':

'Fatal error: Class 'ChangesList' not found in /home/fhlinux182/w/wyfopedia.org.uk/user/htdocs/includes/SpecialRecentchanges.php on line 221'

-Wyfopedia 13:07, 3 April 2008 (UTC)

Media Wiki requires IIS restart daily

 * MediaWiki: (Reported by your Wiki's Special:Version page)
 * PHP:
 * MySQL:
 * URL:

< Media Wiki requires IIS restart daily, Windows 2000, IIS 6, URL not accessible from outside our network. I am looking for suggestions on what to check. It seems to only be Media Wiki because IIS says it is running fine however our Wiki pages will not come up unless I give IIS a restart command.

* MediaWiki: 1.10.1 * PHP: 5.2.4 (isapi) * MySQL: 5.0.24-community-nt

-->

—65.192.212.98 20:06, 4 April 2008 (UTC)