Project:Support desk/Sections/System

__NEWSECTIONLINK__

= MediaWiki System Support =

Resolved: 404 when using short url

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

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

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

Can you please help me in getting this working?

Thanks a lot, Vikas

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

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)

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)

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 call in a check against the wgUserGroups 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)