Project:Support desk/Archives/System/001

(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)

(RESOLVED) 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? —The preceding unsigned comment was added by 212.184.19.70 (talk • contribs) 11:00, 11 January 2008. Please sign your posts with ~ !

(OUTDATED) LDAP Groups in Wiki

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

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)

(RESOLVED) 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 :) --IP


 * I believe that MediaWiki still needs to write (such as page hits) this means that even though it is reading data from the DB... when it tries to write you page hit (or other data) it fails because it can not find your Write Database

(OUTDATED) 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)

(RESOLVED) 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)

(RESOLVED) 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)

(OUTDATED) 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)

(RESOLVED) 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)
 * where "name-of-your-page" is changed to the name of the page to be linked. Smaug 21:47, 26 March 2008 (UTC)

(RESOLVED) 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)

(RESOLVED) 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.

(RESOLVED) 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)

(OUTDATED) Postedit Error

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


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

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)

(OUTDATED) Trying to set the script up as a SubDomain
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)

(OUTDATED) 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)

(RESOLVED) 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)

(RESOLVED) Generating RSS in 1.10.0
In version 1.10.0 is there a way to generate RSS in the wiki markup without adding an extension? 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?
 * MediaWiki: 1.10.0
 * PHP:
 * MySQL:
 * URL:

Thank you.

David

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


 * Please give your Wiki info and then you may un-mark this topic from RESOLVED status. -PatPeter [[Image:Tournesol.png|20px]]  MediaWiki Support Team  18:03, 20 September 2008 (UTC)

(RESOLVED) 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)

(RESOLVED) 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)
 * Use CHMOD -R and/or CHOWN -R to give the apache user the rights to Write and read in the Images directory AND bellow! That should fix your problem! --TheDevilOnLine 12:49, 29 May 2008 (UTC)

(RESOLVED) 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)

(RESOLVED) 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)

(OUTDATED) '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)

(OUTDATED) 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)

(RESOLVED) 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)

(RESOLVED) What Media wiki Supports
Does MediaWiki support ASP and SQL also.

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


 * Please give your Wiki info and then you may un-mark this topic from RESOLVED status. -PatPeter [[Image:Tournesol.png|20px]]  MediaWiki Support Team  18:11, 20 September 2008 (UTC)

(RESOLVED) Preventing Creation of New Pages in a single namespace

 * MediaWiki: 1.13.0
 * PHP: 5.2.4-2ubuntu5.3
 * MySQL: 5.0.51a-3ubuntu5.1

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)

(RESOLVED) Rewrite Rules for changed Namespace Name?

 * MediaWiki: 1.13.0
 * PHP: 5.2.4-2ubuntu5.3
 * MySQL: 5.0.51a-3ubuntu5.1

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)


 * Solved this after discussions on irc. Didn't have to use Rewrite rules after all!  I used
 * where # is the number of the namespace I was changing the name of and NewName is the name I changed it to. Apparantly $wgExtraNamespaces overwrites old namespaces in addition to adding new ones. Smaug  [[Image:Tournesol.png|20px]] 02:42, 15 April 2008 (UTC)
 * where # is the number of the namespace I was changing the name of and NewName is the name I changed it to. Apparantly $wgExtraNamespaces overwrites old namespaces in addition to adding new ones. Smaug  [[Image:Tournesol.png|20px]] 02:42, 15 April 2008 (UTC)

(OUTDATED) Customising the Search

 * MediaWiki: 1.11.0
 * PHP: 5.2.5-0.dotdeb.2 (apache2handler)
 * MySQL: 5.0.51-2-log
 * URL: sorry, not allowed to

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)

(OUTDATED) 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

I have the same problem with the Hebrew language
In the Hebrew language, the search cannot find a thing. Only in English. --IP

(RESOLVED) Cannot search for numbers (e.g. 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)


 * Is there anyone who knows anything about this issue yet? I have a similar need for searching by IPs and have the same problem.

—Anonymous


 * I have this same problem - if any word in a search query is a number, then there will always be 0 results, even if I know a page has that number on it, or if I include other search terms in the query that I know are on some pages. It's not a word length issue... for example a page about a 64-bit PC is returned for searches for "PC" but not "64".  I am using PostgreSQL and MediaWiki 1.9.1.
 * I've submitted a bug about it since I found nothing about it in Google, or in Bugzilla, or the manual, or the release notes for the current version (1.13). The bug report is at: https://bugzilla.wikimedia.org/show_bug.cgi?id=15229
 * --216.204.206.146 17:57, 18 August 2008 (UTC) - Reed Hedges reed@mobilerobots.com


 * Update: I upgraded to MediaWiki 1.13 and it now seems to work.
 * (MediaWiki 1.13.1, PHP 5.2.5 (apache), PostgreSQL 8.2.6 on OpenBSD 4.3)
 * --216.204.206.146 19:59, 15 September 2008 (UTC) - Reed Hedges reed@mobilerobots.com

(OUTDATED) Conditional coding of LocalSettings.php

 * MediaWiki: 1.13.0
 * PHP: 5.2.4-2ubuntu5.3
 * MySQL: 5.0.51a-3ubuntu5.1

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)

(RESOLVED) Check if logged in

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

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)

(RESOLVED) 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? <font color="#006500">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. <font color="#006500">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)

(RESOLVED) 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

<Directory /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)


 * Resolved : this is a php bug : http://bugs.php.net/bug.php?id=27421 when we use a per directory configuration with mbstring.func overload option
 * i have removed "php_value mbstring.func_overload 7 "from my egroupware conf file and it works now. Okparanoid 09:47, 5 April 2008 (UTC)

(OUTDATED) Notice: Warning: mkdir

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


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

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)


 * I just got this error and did a bit of snooping, found I somehow changed file ownership from the webhost to some random numbers, after chown'ing them back, it's worked fine! The-Client 08:29, 20 April 2008 (UTC)


 * Also had this problem. Has not yet been fixed, even with the very generous chmod 777 GlobalFunctions.php 72.54.34.34 19:02, 23 May 2008 (UTC)


 * I've had this problem for awhile now and I figure it is something to do with the file permissions. When I tried to go to change the chmod to 777 on all the image files it gave me a 550 error: Operation not permitted.  I've looked everywhere to try and fix this problem but can't find it anywhere...  I get the mkdir error every time I try to upload or resize an image. Deggertsen 20:20, 03 June 2008 (UTC)


 * It seems that owner of image directory (and/or files) is different than your's. Apache is running under www-data or nobody user and wants to write to image folder. Probably files are uploaded under your username, so try to "chmod 777 images" directory. Do you have shell access to the server? Try to compare username and group settings of image folder and images and directories inside. Don't change chmod 777 on GlobalFunctions.php, it's only script which is calling mkdir command, you MUST change permissions on destination of that mkdir command (I suppose that images directory).

78.99.224.18 11:31, 21 November 2008 (UTC)


 * had the same problem, but solved it using chmod 777 on GlobalFunctions.php no I still have the same problem--86.213.108.251 22:39, 9 November 2008 (UTC)

(OUTDATED) 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)

(OUTDATED) 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)

(RESOLVED) 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)


 * Try this link. I had the same problem and it worked. --Baumanns 17:04, 9 April 2008 (UTC)

(RESOLVED) 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.

--EchilonUser:Echilon 20:29, 1 April 2008 (UTC)  mgrabovský  | talk  (DJ Jeri)   MW Support Team  12:10, 10 April 2008 (UTC)
 * The only way I can think of is adding all pages to your watchlist and choosing to receive an e-mail when a page on your watchlist is edited in your preferences. --Erwin 22:42, 9 April 2008 (UTC)
 * Look at $wgUsersNotifiedOnAllChanges</tt>. So you can use:


 * Thanks Jeri, exactly what I needed. :)
 * --Echilon 14:57, 13 April 2008 (UTC)

(OUTDATED) HTTP 404 Error

 * 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


 * Server giving HTTP 404 Error when trying to access Wiki 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)

(RESOLVED) 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)


 * 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)

(OUTDATED) '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)

(OUTDATED) Media Wiki requires IIS restart daily

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

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.

UPDATE: just happened again, nothing at all in the MS error logs. Could it be a problem in the SQL? Anyone have any idea?

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

(RESOLVED) How to make a categorytree

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

Hello, how do I make a categorytree ? Manu thanks..

—[User:Spiriwiki.com|Spiriwiki.com] 19:48, 6 April 2008 (UTC)
 * Look at the CategoryTree extension.  mgrabovský  | talk  (DJ Jeri)  [[Image:Tournesol.png|25px]] MW Support Team  12:13, 10 April 2008 (UTC)

(OUTDATED) Get localised time in signature datestamp?

 * MediaWiki: 1.10.1
 * PHP: 5.2.3 (cgi-fcgi)
 * MySQL: 5.0.24a-standard-log

The date/time preferences don't enable the time in signatures when you use four tildes to display in your local time. Is there a fix/being worked on? And is there a way to customise the display of the generated time e.g. by making it bold. Did look in system messages / google but did not find anything. Thanks

—Zacknuts 23:32, 18 April 2008 (UTC)

(OUTDATED) Policy on section title length?
I think succinct section titles are more appropriate than lengthy ones, so long as they accurately summarize the section, which is why I shortened a couple in the Expelled (film) article, but then someone reverted it, claiming "POV" edits. I looked all over the Namespace for a policy relating to section title lengths, but couldn't find out. Any ideas? 67.84.249.197 04:09, 20 April 2008 (UTC)


 * Is this question about MediaWiki (software) or Wikipedia (website)? If the latter, you should ask it on wikipedia.org itself, as you won't find answers here. <font color="#006500">Smaug  [[Image:Tournesol.png|20px]] 13:18, 22 April 2008 (UTC)

(RESOLVED) No Superuser password!

 * MediaWiki: 1.12 Alpha
 * PHP: LAMPP 1.6.6
 * MySQL: LAMPP 1.6.6
 * URL: company intranet

Hello,

i had to take over the administration of a mediawiki. my probem is, the first administrator has forgotten the WikiSysop password. is there any chance to change it?

Audioslave —Audioslave 12:11, 22 April 2008 (UTC)


 * Edit (23 April 2008):
 * Ok, i got it. Took me quite a while :)

(OUTDATED) $wgOut->redirect function dies
I have a mediawiki installation which has been working fine for several years. Suddenly, the system's internal redirects are no longer working. Thus,
 * MediaWiki: 1.5.3 and 1.6.10
 * PHP: 4.3.2
 * MySQL: 4.1.12-standard-log
 * URL: (site is not publically available)


 * browsing to http://my.url.com/wiki instead of http://my.url.com/wiki/index.php?title=Main_Page results in a blank page
 * edits made to pages go through, but the user only sees a blank page

Following along what happens in index.php, I've ascertained that the script gets to the following conditional: else if ( ( $action == 'view' ) &&	(!isset( $_GET['title'] ) || $wgTitle->getPrefixedDBKey != $_GET['title'] ) &&	!count( array_diff( array_keys( $_GET ), array( 'action', 'title' ) ) ) ) {	/* redirect to canonical url, make it a 301 to allow caching */ $wgOut->setSquidMaxage( 1200 ); $wgOut->redirect( $wgTitle->getFullURL, '301'); }

but nothing seems to happen. I've tested and $wgTitle->getFullURL is populated properly.

I am observing this behavior in both mediawiki versions 1.5.3 and 1.6.10. PHP is version 4.3.2, MySQL is version 4.1.12-standard-log. —Chris.braiotta 20:38, 23 April 2008 (UTC)

Problem with the search engine

 * MediaWiki version: 1.12.0
 * PHP version: 5.2.3 (cgi-fcgi)
 * MySQL version: 5.0.24-community-nt
 * URL: not published yet

Hi there,

I have a small problem with the wiki search engine and I hope you can give me a hint how to solve it: If I include a template into one of my pages and search for a word which occurs in the template, then the page isn't shown in the results of my query. I think, the reason for it is, that the wiki search engine only searches in the source code of the pages. Over there you can of course only find the name of the template, but not its content.

1st question: is that right? 2nd question: which possibilities are there to solve the problem? Will it be solved if I update to MediaWiki 1.14.0? Or do I have to include something like the Google Custom Search Engine Extension

Thank you very much & have a nice day —Scboehm 07:19, 6 May 2009 (UTC)


 * To 1) Have a look at Help:Searching – so your thoughts seem to be right. -- JörgM 84.156.189.40 19:35, 6 May 2009 (UTC)

Display problem in Firefox

 * MediaWiki version: 1.13.3
 * PHP version: 5.2.8
 * MySQL version: 5.1.30
 * URL:

I run a small offline-wiki and now I have a display problem.

The pages have no styling. I mean the logo is gone, the sidebar is gone and only text is shown plus the search field. Additionaly all text is shown one below the other. This only happens in Firefox, in IE everything is correct.

This is my first wiki and I don't know much of php and such. I hope someone can help me.

—91.33.252.131 06:52, 11 May 2009 (UTC)

(SOLVED) Creating namespaces with special characters - Not showed correctly
Wiki info Detailed problem
 * MediaWiki version: 1.14.0
 * PHP version: 5.2.8 (cgi)
 * MySQL version: 4.1.22-max
 * URL: http://wikimanga.net
 * Wiki language: Spanish
 * Direct link to Version

I'm trying to create new namespaces, but I'm having some problems, the main reason it is the use of special characters like "´" typical on spanish language. I have tried to create namespaces without the special characters and then it ran okay. When you check the special search page, the special characters are replaced for � (attached image). I have not found any info related, any suggestion would be very appreciated.

I'm using the following code into the Localsettings.php

—Neoshinji 07:22, 11 May 2009 (UTC)


 * Encoding problem. I tried a little bit with Notepad++. Worked, when after opening the file I first changed format to utf-8, wrote the character(s) which are not ASCII, then changed format back to ANSI (gives something like A3 for an ó), saved and uploaded. There were then those ó and the German umlauts äöü shown correctly in FF1.5 using UTF-8. Worth a trial, I think. -- JörgM 84.156.133.190 19:57, 11 May 2009 (UTC)


 * Thank you very much JörgM. Now works fine :)
 * A sample vowels in ASCII encoding into php files.

--Neoshinji 00:34, 12 May 2009 (UTC)

Transport a wiki from one server to another one

 * MediaWiki version: 1.11
 * PHP version: 5.2
 * MySQL version: 5.0.45
 * URL:

Hey,

i want to transport my wiki from one server to another one.

I tried it in the following way:

I have installed the MediaWiki Software (same version) on the new server. Than i copied the old image folder into the new wiki. After that i exported the the database from the old MySql and imported it into the new MySql. Last but not least i wrote the same user entries from the old LocalSetting.php into the new one. Of course i fitted the entries for the database.

After that the new wiki works almost fine! But i have some weird problems! Some images are not shown in the articles. But not all of them. In some articles there are the images and in other ones there are no images! The same problem is with some content and links!

Do anyone know what the fault is? I have no idea! And the weird thing is that only some artciles are incomplete!

Is there maybe a better way to transport the wiki from one hardware to another one??

Thanks a lot!!

—80.171.131.17 19:09, 12 May 2009 (UTC)


 * Haven't done this yet, but Manual:Moving a wiki tells another order: First recreate the database and import the database backup, then upload the MediaWiki backup (or install a new copy of MW and upload the media and extension folders). -- JörgM 84.156.192.196 21:07, 12 May 2009 (UTC)

Password fail after upgrading 1.6.10 > 1.14.0

 * MediaWiki version: 1.14.0 and 1.6.10
 * PHP version: Php 5
 * MySQL version: 5.0.77
 * URL:

I'm upgrading directly from the 1.6.10 to 1.14.0. I unpack the script from the site. Erase LocalSettings.php. Everything works after commenting some extensions. But, here is the problem. When trying to log in as SuperUser, the password don't match. Ryan_Lane tryed to help me with IRC. I tryed : $wgPasswordSalt = false; But doesn't work either.

I'm wondering if you know where i can change this. I think the password could be crypt differently during the upgrades.

Kind Regards

—DjAngo23 17:52, 15 May 2009 (UTC)

Possible to unhook "Project" namespace and then use as custom?

 * MediaWiki version: 1.13.2
 * PHP version: 5.2.9 (apache2handler)
 * MySQL version: 5.0.66a

Hello,

We're using MediaWiki internally at our company and have changed the $wgSitename to be the name of our company ("Foo") instead of the default "Project". Now we'd like to be able to use the "Project" namespace as a custom namespace (to designate projects that we're working on), but something like "Project:Bar" is currently redirecting to "Foo:bar".

Is there a way we can unhook the "Project" namespace from being linked to our site name?

—142.9.1.100 20:21, 15 May 2009 (UTC)

I believe this is hardcoded into the software; if you really want to dig it out, you might start by looking at Language::fixUpSettings. Otherwise, you could just use the namespace "Projects". :) —Emufarmers(T 08:15, 16 May 2009 (UTC)

Email Notification with added/changes Message of the watch list

 * MediaWiki version: 1.13
 * PHP version: PHP 5.2.0 (with apache W2K Server)
 * MySQL version: MySQL 4.1
 * URL: INTRANET

Dear Folks,

is there any way to get a email notification for the watch list with information about what is changed on a site? Example: I have something like a "New Ticker" and if someone add some note I would like to have the Information in my email. Maybe with a limitation of the 100 characters?

Is that possible?

Thank you very much In advance

Remo

Date 27.05.2009 17:35


 * You need to make sure that the $wgEnotifWatchlist config setting is set to true on your wiki, then check the "receive email notification when a page I'm watching is edited" preference (not sure exactly what it's called) in your preferences. Happy ‑ melon 16:07, 27 May 2009 (UTC)

The problem is NOT to get a email, the problem is to get a email with the information what has been changed.

Example: Dear XXXX, The News Wiki page News Ticker has been changed on 07:29, 28 May 2009 by anonymous user. He insert following Information: "to day we have 50° and sonny weather, tomorrow starts raining".

That what I'm looking for. Any idea?

Remo Date 28.05.2009 09:47
 * Ah, I see. No, that functionality is not available, as far as I know. And it would be quite difficult to summarise complicated changes in that fashion (just adding a line is one thing, but what about when someone fixes a bunch of typos over the whole page?).  You could file a bug over at bugzilla, but I'm not sure there would be much interest in it. Happy ‑ melon 08:49, 28 May 2009 (UTC)

OK, thank you very much for helping. Remo

How do I manage a wiki account when the original admin leaves a company?

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

The company I work for has a wiki account set up and the original admin has left the company. I now am managing this and do not know how to login as admin and modify some of the confiugurations. The first task I have is to change the e-mail response address from the former employee's e-mail address to the company e-mail address. Any assistance will be appreciated.—Sfowlerad2 16:12, 28 May 2009 (UTC)

—Sfowlerad2 16:12, 28 May 2009 (UTC)


 * Do you have shell access? That is, many of the wiki's configuration settings are set in LocalSettings.php, a file on the server that hosts the MediaWiki installation. In order to be able to change configuration settings on the wiki, you need to be able to channge and update this file. Happy ‑ melon 16:36, 28 May 2009 (UTC)

Search not working. Only takes you to advanced search page.

 * MediaWiki version: mediawiki-1.14.0
 * PHP version: PHP 5.0.5
 * MySQL version: 4.1.14
 * URL: (Private Intranet Website)

If you enter a page name or partial name and click on "GO" or "Search" it does not search. It just takes you to the "Advanced Search" page.

Can anyone give any ideas as to what the problem can be?

—66.211.2.151 22:32, 4 June 2009 (UTC)

Optimize wiki for saving server capacity

 * MediaWiki version: 1.14.0rc1
 * PHP version: 5.2.6 (cgi)
 * MySQL version: 5.0.32-Debian_7etch8-log
 * URL: password protected...

Is there a way to save 	integrity of the server by "optimizing" the system? F.e.: Disable some functions, wich are not realley necessary? Greez

—85.4.68.161 16:38, 5 June 2009 (UTC)


 * There are many features that are configurable, and disabling almost any of them will provide an improvement in performance. Which features you consider "not really necessary" is largely dependent on your own priorities and the nature of the wiki you are running. Happy ‑ melon 17:51, 5 June 2009 (UTC)


 * This page is great^^ Exactly what I was looking for. Thx. --85.4.68.161 18:56, 5 June 2009 (UTC)

Addition signs ("+") do not work in page titles

 * MediaWiki version: 114
 * PHP version: 5
 * MySQL version: 5
 * URL: http://wikademia.org/C++

Addition signs ("+") do not work in page titles! Help, please. Thank you. : )

Wikademia


 * They're being eaten by your Apache rewrite rules. See Manual:$wgLegalTitleChars. Happy ‑ melon 21:27, 6 June 2009 (UTC)

Combining users of MediaWiki with SMF Forum

 * MediaWiki version: 1.14.0
 * PHP version: 5.2.4
 * MySQL version: 4.1.21
 * URL: http://www.superstorm.net/wiki.php
 * Base-URL: http://wiki.superstorm.net/

Is it possible to use the same userdatabase of my SMF forum with the MediaWiki userdatabase? I'd like to set the SMF database as main, which uses SHA1 password encryption: sha1(strtolower($username) . $password) But then, in order to make my members able of just having to log in once to be logged in on both Forum and Wiki, I'd have to change the Wiki userdatabase and the password encryption used on the pages.

If you could tell me how and where to make those minor edits, I would be very pleased.

Thanks in advance, Tyilanmenyn

tyilanmenyn@superstorm.net

—77.163.53.241 08:39, 8 June 2009 (UTC)

Shortcuts definition such as WP => wikipedia. (not about interwiki)

 * MediaWiki version: 1.13.4

Hello. Where are mediawiki shortcuts define ?
 * 1) NOT in MediaWiki:Searchaliases. (this page is for MWsearch extension)
 * 2) NOT in interLinks, (this is for inter-wiki links ; not for internal shortcut.)

For example in en:wikipedia: where is it defined that [[WP:xxx ]] =>  [[Wikipedia:xxx ]] so that for example WP:About will not be a red link if Wikipedia:About exists. ? —almaghi 09:06, 4 June 2009 (UTC)
 * 1) REDIRECTxxx ? Greudin 09:57, 4 June 2009 (UTC)


 * They are set as namespace aliases. See Manual:$wgNamespaceAliases. Happy ‑ melon 15:09, 4 June 2009 (UTC)
 * Thx Happy-melon, didnt notice. Greudin 18:28, 4 June 2009 (UTC)
 * OK, thank you very much for helping. It was written on manual:Namespace but I needed to read it twice before viewing it... --almaghi 13:40, 9 June 2009 (UTC)

What is category id?

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

What is a category id? Is it an integer generated based on the category name?

—158.130.93.78 18:17, 16 June 2009 (UTC)


 * Every page, piece of text, user, event, revision, or other object is identified within the software not by its name, which can have many wierd-and-wonderful properties (and often doesn't make sense: what is the 'name' of a log event?), but by a number or 'id' which is assigned when the object is stored in the database. So every time a user saves an edit, a new revision is created (with an associated revision id), which links to the user themselves (identified by a user id), to the text of the revision (identified by a text id), which page the revision was made to (identified by a page id), and various other properties.
 * Categories are, as you note, identified by a category id. The category is the actual place where category links lead to, and the page on which the category listing is displayed.  That page may or may not exist: if it does, there will be an associated page with a separate page id that contains the introductory text, but nonexistent categories can still have a category id.  Thus any category that has a page categorised into it (or which has had members in the past) has an associated category id.  Hope this clarifies. Happy ‑ melon 12:44, 17 June 2009 (UTC)

Same article in all pages articles

 * MediaWiki version: 1.12
 * PHP version: PHP 5.2.6-1+lenny3 with Suhosin-Patch 0.9.6.2 (cli)
 * MySQL version: Ver 14.12 Distrib 5.0.51a, for debian-linux-gnu (i486) using readline 5.2
 * URL: (Local Intranet)

I have installed mediawiki on debian lenny for my local intranet from apt-get install mediawiki mediawiki-math mediawiki-extensions and configured it, and work fine, them downloaded eswiki20090609-pages-articles.tar.gz and from command line run java -jar mwdumper.jar --format=sql:1.5 eswiki20090609-pages-articles.tar.gz | mysql -u root -p wikidb and all article are on my wikidb, them run RebuildTextindex.php, My problem is when i go to see any article or random page, in all page article in the top of the page are the same article (Carlos Iglecias) under the article that i desire to see, and when i loggin as wikisysop i see another article in the same place of all pages. I have make this many times, another way was downloading mediatikiXX.tar.gz uncompressing on my website directory and follows the install procedure, but the problem continues, i will make this with enwiki to see whats happens because i believe the problem is on the eswiki20090609-pages-articles.tar.gz, have downloaded another's pages-articles but the problem continue


 * To clarify: you go to any page on the wiki, and you see the same title for all articles ("Carlos Iglecias"), but the correct article text? When logged in, you see a different title, but still the correct texts?  Happy ‑ melon 14:28, 17 June 2009 (UTC)


 * Yes when i go to any page i see not only the same title for all aticles, including login form, search, all, i see the title and the text of that article (Carlos Iglecias) and under the correct text of article or login form, special page.., and when i logged as wikisysop i see different title but still the correct text, somes times  happens when i clic in a link this go to a page that no correspond to the link, for example, link in Mexico and go to mexico article page but i see tow articles in one, under the title Mexico i see the table with data(population, area ect..) of this country thas  correct but more under i see an article named  Street Fighter and at the end i see the other part of mexico article. in the mediawiki-l email list i read this problem is fix after run rebuildall.php script, by now i'm dumpling eswiki-pages-articles to another database with mediawiki-1.15 the proces no has finished, the first problem not show by now, but somes times happens to me the second problem , i'm waiting finished to see whats happend.

How to assign group to mass number of users?

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

How to assign group to mass number of users? Is there a script? Is there another way of doing it one-user-after-one-user? —almaghi 10:27, 18 June 2009 (UTC)
 * Is this something you need to do on a regular basis, or as a one-off fix? Happy ‑ melon 10:40, 18 June 2009 (UTC)
 * It is a one-off fix. (but I wish to capitalize about it to share ability of doing it, I think it would be useful to other users). --almaghi 12:48, 18 June 2009 (UTC)
 * Then I guess you want a maintenance script (if it can be done by a sysadmin) or a bot script if it has to be done by the users. I don't think such a script exists ATM; perhaps you should try writing one! Happy ‑ melon 12:56, 18 June 2009 (UTC)

a link to Special:UserRights/{username} in tollbox for bureaucrat
Hello. I'd like to add on UserPage a link in toolbox for Bureaucrat so that they can easily check or change userRights; how should I do?
 * Use an existing Extension:CustomSidebar?
 * write a javascript?
 * write an extension?
 * ...other ideas?

—almaghi 10:37, 18 June 2009 (UTC)


 * The simplest is probably JavaScript; just wrap an addPortletLink</tt> call in a check against the wgUserGroups</tt> array. Happy ‑ melon 10:40, 18 June 2009 (UTC)
 * Ok I try this, with examples from w:WP:WikiProject User scripts/Scripts/Compact Navigationw:WP:WikiProject_User_scripts/Scripts/User_tabs. If I manage to do it, I will put it on Javascript mediawiki manual.--almaghi 13:00, 18 June 2009 (UTC)

Should this script work or is there any error?

a 7lines Javascript working on Wikipedia but not on my wiki
I've tested this script in my monobook.js on wikipedia, it is working. But on my wiki it doesn't work. It is strange because javascript work on my wiki, for example HotCat.js and SubPages.js are well working. What could be wrong?

My wiki:
 * MediaWiki : 1.13.4
 * PHP :	5.1.6 (apache2handler)
 * MySQL :	5.0.22 --almaghi 14:32, 18 June 2009 (UTC)
 * edit: I put the script as a gadget and it does work as expected. Previously I added it to Special:MyPage/monobook.js and then it doesn't work? Any idea of what's wrong?? I missed something...--almaghi 14:56, 18 June 2009 (UTC)
 * Personal CSS and JS have to be enabled on wikis: see Manual:$wgAllowUserJs. Happy ‑ melon 15:28, 18 June 2009 (UTC)
 * Yeah OK... Thanks for this.
 * There's a strange stuff on my wiki: when I set it to true my wiki gets broken and serve a blank page. Yet another good idea to help me? ;) --almaghi 15:50, 18 June 2009 (UTC)

configuring $wgForeignFileRepos

 * MediaWiki version: 1.15.0
 * PHP version: 5.2.6-1+lenny3 with Suhosin-Patch 0.9.6.2 (cli)
 * MySQL version: 14.12 Distrib 5.0.51a, for debian-linux-gnu (i486) using readline 5.2
 * URL: (local Intranet)

Hello all i'm trying set $wgForeignFileRepos to see remotes images on my local wikipedia adding the follows lines to my LocalSettings.php: To CURL request:

$wgHTTPTimeout = 3000; $wgHTTPProxy = "http://myProxyIp:Port";

$wgForeignFileRepos[] = array(  'class'                   => 'ForeignAPIRepo',   'name'                    => 'shared',   'apibase'                 => 'http://commons.wikimedia.org/w/api.php',   'fetchDescription'        => false,    'descriptionCacheExpiry'  => 43200,    'apiThumbCacheExpiry'     => 43200, );;

but i don't see images in articles only show me an empty box in the  place of image and the rigth description, in debug log i see:


 * Http::request: GET http://commons.wikimedia.org/w/api.php?titles=Image%3ACommons-logo.svg&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata%7Cmime&prop=imageinfo&format=json&action=query

FileCache MISS for Commons-logo.svg Http::request: GET http://commons.wikimedia.org/w/api.php?titles=Image%3ACommons-logo.svg&iiprop=url&iiurlwidth=15&iiurlheight=-1&prop=imageinfo&format=json&action=query ForeignAPIRepo::getThumbUrl got remote thumb http://upload.wikimedia.org/wikipedia/commons/thumb/4/4a/Commons-logo.svg/15px-Commons-logo.svg.png ForeignAPIRepo::getThumbUrlFromCache could not write to thumb path Http::request: GET http://commons.wikimedia.org/w/api.php?titles=Image%3AWikibooks-logo.svg&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata%7Cmime&prop=imageinfo&format=json&action=query FileCache MISS for Wikibooks-logo.svg Http::request: GET http://commons.wikimedia.org/w/api.php?titles=Image%3AWikibooks-logo.svg&iiprop=url&iiurlwidth=15&iiurlheight=-1&prop=imageinfo&format=json&action=query ForeignAPIRepo::getThumbUrl got remote thumb http://upload.wikimedia.org/wikipedia/commons/thumb/f/fa/Wikibooks-logo.svg/15px-Wikibooks-logo.svg.png ForeignAPIRepo::getThumbUrlFromCache could not write to thumb path)

I have enable uploads to my local wiki and the permissions over image directory are 777 by now my math formula are working fine. in images/tumb are many folders with image names but empty. whats more i need to complet this please?

--Enriluis 20:28, 19 June 2009 (UTC) —Enriluis 20:28, 19 June 2009 (UTC)

getThumbUrlFromCache could not write to thumb path
configuring $wgForeignFileRepos * MediaWiki version: 1.15.0 * PHP version: 5.2.6-1+lenny3 with Suhosin-Patch 0.9.6.2 (cli) * MySQL version: 14.12 Distrib 5.0.51a, for debian-linux-gnu (i486) using readline 5.2 * URL: (local Intranet)

Hello all i'm trying set $wgForeignFileRepos to see remotes images on my local wikipedia adding the follows lines to my LocalSettings.php: To CURL request:

$wgHTTPTimeout = 3000; $wgHTTPProxy = "http://myProxyIp:Port";

$wgForeignFileRepos[] = array(

'class'                  => 'ForeignAPIRepo', 'name'                   => 'shared', 'apibase'                => 'http://commons.wikimedia.org/w/api.php', 'fetchDescription'       => false, 'descriptionCacheExpiry' => 43200, 'apiThumbCacheExpiry'    => 43200,

);;

but i don't see images in articles only show me an empty box in the place of image and the rigth description, in debug log i see:

Http::request: GET http://commons.wikimedia.org/w/api.php?titles=Image% 3ACommons-logo.svg&iiprop=timestamp%7Cuser%7Ccomment%7Curl% 7Csize%7Csha1%7Cmetadata% 7Cmime&prop=imageinfo&format=json&action=query

FileCache MISS for Commons-logo.svg Http::request: GET http://commons.wikimedia.org/w/api.php?titles=Image% 3ACommons-logo.svg&iiprop=url&iiurlwidth=15&iiurlheight=-1&prop=imageinfo&format=json&action=query ForeignAPIRepo::getThumbUrl got remote thumb http://upload.wikimedia.org/wikipedia/commons/thumb/4/4a/Commons-logo.svg/15px-Commons-logo.svg.png ForeignAPIRepo::getThumbUrlFromCache could not write to thumb path Http::request: GET http://commons.wikimedia.org/w/api.php?titles=Image%3AWikibooks-logo.svg&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata%7Cmime&prop=imageinfo&format=json&action=query FileCache MISS for Wikibooks-logo.svg Http::request: GET http://commons.wikimedia.org/w/api.php?titles=Image%3AWikibooks-logo.svg&iiprop=url&iiurlwidth=15&iiurlheight=-1&prop=imageinfo&format=json&action=query ForeignAPIRepo::getThumbUrl got remote thumb http://upload.wikimedia.org/wikipedia/commons/thumb/f/fa/Wikibooks-logo.svg/15px-Wikibooks-logo.svg.png ForeignAPIRepo::getThumbUrlFromCache could not write to thumb path)

I have enable uploads to my local wiki and the permissions over image directory are 777 by now my math formula are working fine. in images/tumb are many folders with image names but empty. whats more i need to complet this please? --Enriluis 20:54, 19 June 2009 (UTC)

Troubleshooting

 * MW: 1.13.4

As I set this global parameter, my wiki gets broken, rendering a blank page. Any idea? --almaghi 14:13, 22 June 2009 (UTC)

Exporting a portal in mediawiki

 * MediaWiki version: 1.15.0
 * PHP version: 5.1.6
 * MySQL version: 5.0.45
 * URL: Not accessable

I have to take over the maintenance of a wiki powered by mediawiki. At the same time I have to move it to another server. The wiki contains two portals. At the new location it would be better to have two wikis instead of having two portals in one wiki. Is it possible to export the portals of the current wiki separately and to import them on the new server as two wikis?

—194.237.142.20 08:20, 24 June 2009 (UTC)

Google indexes page links with redirect=no

 * MediaWiki version: 1.12.0
 * PHP version: 5.1.6 (apache2handler)
 * MySQL version: 5.0.271.12.0
 * URL: http://www.cookipedia.co.uk/
 * The code for this wiki has been hacked around a bit but nothing (AFAIK) that would cause this behaviour.

Google indexes pages on this wiki that include "redirect=no" in the link so when the pages are followed from a search engine, the visitor sees a blank redirect page and is not redirected to the correct page.

As Google has already indexed 1000's of pages like this, ideally I would like to hack the core so "redirect=no" is ignored *unless* the referrer is from this wiki. A starting point for hackery would be gratefully recieved.

Example link —CookipediaChef 13:45, 7 July 2009 (UTC)


 * MediaWiki 	1.15.0
 * PHP 	5.1.6 (apache2handler)
 * MySQL 	5.0.45
 * URL: INTERNAL

When searching for a word MakeShare, I created a page, it looks great.

when I searched/go makeshare it wanted me to create another page. Is it possible to make case sensitive words not matter? So when I search makeshre, it directs me to the page with MakeShare?

Removing extra line on article save

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

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

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

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

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

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

LocalSettings.php by adding the following at the end:

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

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

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

AuthPlugin.php

change autocreate and UserExists to true

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

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

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

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

Thanks, -Erik erik.watts@ecitele.com

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

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

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

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

Automatic login script

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

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

Any help is greatly appriciated

Thanks, Kevin

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

How do I edit the body tag?

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

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

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


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


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

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

non-standard port redirection bug

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

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

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

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


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

Expression Engine

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

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

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

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

Duplicating links because second or later words not Capitalized

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

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

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


 * Standard way is to make the uncapitalised version a redirect to the capitalised version, or to which every one is the "standard" for the wiki. -- Dr DBW |  talk  04:03, 5 August 2009 (UTC)

Thanks for the reply. Yes, we have been doing this but it seems like wasted effort when it should be easy to generate the redirect in software rather than having people go through the hassle of manually creating a redirect. I was wondering if a hook was available that could do this. In practice, it would be equivalent to stripping the case from all wikiwords. -- James --130.113.172.122 18:28, 10 August 2009 (UTC)

Removing Main Page from "Special:Uncategorized" pages

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

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

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

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


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

But I have a query. Is this is the way Main Page is removed from Special:UncategorizedPages from all media wiki wikies? I am not able to locate any hidden category on the English Wikipedia Main page. Kindly advice--Shijualex 12:58, 1 August 2009 (UTC)


 * Currently en: has Hidden categories: Articles containing Japanese language text | Articles containing Chinese language text. --Nemo bis 09:05, 2 August 2009 (UTC)

Thank you for the support. --Shijualex 10:49, 2 August 2009 (UTC)