Project:Support desk/Sections/System

__NEWSECTIONLINK__

= MediaWiki System Support =

edit links for Protected page are not showing with api

 * MediaWiki version: 1.15.1
 * PHP version: 5.2.9
 * MySQL version: 5.0.77
 * URL (Local Server)

Hi, All I'm trying to parse a page which need login condition to edit. I successfully logged in the mediawiki via api. An d try to open a protected page with following link, $h=@fopen("http://path/to/mediawiki/api.php?action=parse&page=".$pagename."&format=xml", "r"); But the output have not any edit link.

404 for non-logged in users

 * MediaWiki	1.15.1 (r59167)
 * PHP	5.2.10 (cgi-fcgi)
 * MySQL	5.0.51a-community-nt
 * URL: (private network)
 * Win2k/IIS5 (using php5isapi.dll)

Many links result in a 404 error, if the user tries to navigate as a non-logged in user. As soon as they log in, everything is then fine...

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.

(Resolved) Error 404 Page Not Found - MediaWiki Install on IIS 6.0, PHP, Windows 2003, FastCGI
I had some trouble resolving the error 404 Page Not Found Resolution IIS virtual directory configuration: On Home Directory tab, click on Configuration and add Application Extension Mapping for php. The entry must be ".php" and "C:\WINDOWS\system32\inetsrv\fcgiext.dll" for FastCGI, otherwise use c:\php\php5isapi.dll. My version of fcgiext.ini had incorrect [Types] section... Should be (verify php path on your install) [Types] php=PHP

[PHP] ExePath=C:\PHP\php-cgi.exe InstanceMaxRequests=10000 ActivityTimeout=600 RequestTimeout=600 EnvironmentVars=PHP_FCGI_MAX_REQUESTS:10000,PHPRC:C:\PHP\

Also, http://blog.tjitjing.com/index.php/2006/05/php5-with-iis6-on-windows-server-2003.html was very helpful.

Can I link files directly off my server to our wiki page, or must they be uploaded?

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

Is it possible for me to link files from my server to MediaWiki without uploading them. We have an extensive database of projects we would like to incorporate into the our wiki site but do not want to duplicate all those files by uploading them.

Signatures don't work properly on 1.15.1
Also asked here: http://en.wikipedia.org/wiki/Wikipedia_talk:Signatures#Invalid_links_in_signatures_-_MediaWiki_1.15.1.

I just realized that ~ is creating links to SomeUserName and not User:SomeUserName. Is this a known MediaWiki bug? Is there a fix and/or workaround?


 * HELP! Anyone?

Something similar to early WikiWords?
Hey, I'm setting up a wiki right now and i need to know if it is possible to create variables/functions for strings in wiki articles and pages?
 * MediaWiki: 1.14.0

e.g. wikipage Some text on the page And even more text. So now i know for sure that ppl at my company filling the wiki will miss to add links to other pages from time to time. I just want to make sure that the links to other pages that exist will be created. So i need to know if it's possible (maybe using MagicWords) if i set the string text as a variable for the function text. I have no idea how to do that and if it is even possible :).

TOC/Numbered List Formatting Bug

 * MediaWiki version: 1.12.0 and 1.15.1
 * PHP version: 5.1.6 (apache2handler)
 * MySQL version: 5.0.27
 * URL: http://wiki.electronicvisions.com/index.php/Formatbug

There is a formatting bug when a left aligned TOC has a numbered list to its right. The indentations don't appear to occur and the numbers themselves are located within the TOC box.

I tried upgrading to 1.15.1 to see if it had been fixed but it looked the same. (I then went back to 1.12.0 because I was having trouble convincing 1.15.1 to allow page edits, but that's likely my issue)

Here's the simple code that my example page uses to test it:

Special notice text

Sample Section Heading

 * First item in an indented, numbered list
 * Second item in an indented, numbered list
 * Third item in an indented, numbered list

Another Sample Heading
Blah, blah, blah

Includes without { {Templates:*}}

 * MediaWiki version: 1.15.1
 * PHP version: 5.2.10 (apache2handler)
 * MySQL version: 5.0.81-community
 * URL: Sorry it's password protected: http://dorf4.max-greive.de

I want to ask you how it is possible to include a normal page (!not a template) in any site like done in http://www.mediawiki.org/w/index.php?title=Project:Support_desk&action=edit. In my wiki if I'm using  the Interpreter makes  out of it. (Vorlage == Template  It's a german wiki)

If the heading is bad (as i think) please change it.

Sorry for my bad english but it's really difficult for me to describe such problem in english. :(

PS.: I've recognized that this wiki does the same with my question. If I wrote it shows

--87.245.29.51 12:02, 2 January 2010 (UTC)


 * I think basically you just add a : before the page name, like this: . -kotra 08:58, 3 January 2010 (UTC)


 * As Kotra pointed out, simply prefix the page you want to include with it's namespace. If you wanted to transclude Beans from mainspace you'd use -> . The help page goes over this. OverlordQ 12:44, 3 January 2010 (UTC)

Adding page title illegal characters
How does one add additional illegal characters for page titles to the default ones? I wish to make "&" and "+" illegal due to the "Ampersand problem" (the non-.htaccess fix [I can't access .htaccess] at Manual:Short URL/Ampersand solution didn't work for me).
 * MediaWiki version: 1.15.1
 * PHP version: 5.2.6 (cgi-fcgi)
 * MySQL version: 5.0.67-log
 * URL: http://portlandwiki.org

I've fiddled around with Manual:$wgLegalTitleChars, but it appears only capable of adding legal characters, not illegal characters.

Thanks for any help! -kotra 08:53, 3 January 2010 (UTC)
 * Just copy $wgLegalTitleChars into LocalSettings and remove the ones you want to make illegal. Mr.Z-man 04:14, 11 January 2010 (UTC)


 * Sorry about the slow response, and thanks for your help. I did actually try this, and it didn't work, as alluded to above. I think the problem with $wgLegalTitleChars is that it only allows you to legalize chars that are in the default "illegal" list. The "default value" in the documentation page appears to be misleading, since removing characters from the list doesn't make them illegal (at least, not in my test). -kotra 03:22, 18 January 2010 (UTC)

(RESOLVED) Text editor for admins and guests are different...(admin one is worse)

 * MediaWiki version: 1.15.1 (latest at this time)
 * PHP version: 5.2.11
 * MySQL version: 5.0.85-community
 * URL: http://www.grindsquad.co.cc/fablesolace/wiki/

Hi, for some strange reason, when I'm logged in as the administrator, the article editor is not like the one when you don't log in (the one with the bar on top with B, I, etc. Also, the box for the textediting is very small, maybe 4 rows I think.

Is there some option I need to turn on?

Thanks -Tony, pro.4.life@live.com

—71.141.99.93 03:31, 11 January 2010 (UTC)

I fixed it, i just went to preferences -> edit

Disable right-click

 * MediaWiki version: 1.15.1
 * PHP version: 5.2.9
 * MySQL version: 5.0.77
 * URL (Local Server)

Hello, I want to disable the right-click in my mediawiki, but I don´t find a way to disable it. Because the wiki is in our Intranet my boss ask me to disable it. Can yomebody tell me how I can make it?

—91.52.137.227 13:43, 12 January 2010 (UTC)
 * Scripts to disable right clicks can be found all over the web, which you could place in MediaWiki:Common.js. I can't think of any situation where that would be a good idea though. What is the purpose of this? Preventing people from viewing the page source? People can easily get around those limitations, and the MediaWiki software provides a page where they can view the wikitext as well. Meanwhile, it will annoy people who may have legitimate reasons to right-click the page. Not worth the hassle. If someone's using the source of your organization's web pages for nefarious purposes, that should be dealt with by the appropriate people in your organization. Reach Out to the Truth 16:03, 12 January 2010 (UTC)


 * You can try it with the following code in the MediaWiki:Common.js
 * function click
 * if (event.button==2)
 * alert('Pustekuchen!')
 * }
 * }
 * document.onmousedown=click
 * When somebody use the right mouse button, then he will get an alert with the text "Pustekuchen".
 * document.onmousedown=click
 * When somebody use the right mouse button, then he will get an alert with the text "Pustekuchen".

-- RacoonyRE 09:15, 13 January 2010 (UTC)

Article in other language or more languages

 * MediaWiki version:
 * PHP version: 1.15.1
 * MySQL version: 5.0
 * URL: www.playerwiki.com

Greetings.

I would like to create an article in Danish, but i would also like it to be in English. How do i make a link in the left menu like on www.wikipedia.com?

—90.185.17.127 20:07, 16 January 2010 (UTC) Janza
 * Those are interlanguage links to other wikis that are part of the same wiki family. Read Manual: Wiki family and Manual:Interwiki for help setting that up. If you prefer having all the languages hosted on a single wiki like the way this site is set up you could create subpages for each language. If you do that you could then use Extension:Polyglot, which provides automatic redirects based on a user's language settings and also adds the other language versions of a page to the Languages sidebar. Reach Out to the Truth 00:00, 17 January 2010 (UTC)


 * MediaWiki version: 1.12
 * PHP version: 5.3
 * MySQL version: 5.0
 * URL:

I have to develop a script to get recentchanges in a pdf file. The problem is not here. I want it independant from the mediawiki system as I will use it from a cron job.

So I want to know which mediawiki files I have to include in the head of my php script (via require or include) in order to be able to use mediawiki core functions as User::newFromName or to do queries on the database via mediawiki db functions.

I think just include LocalSettings.php is not enough because it's just settings stuffs.

Thank you in advance.

—158.169.9.14 13:12, 19 January 2010 (UTC)

I cannot search for the word "sar" in any pages.

 * MediaWiki version: 1.13.x
 * PHP version: 5.2.6
 * MySQL version: 5.1.26
 * URL: Internal

For some reason I cannot search on the word sar. I have a page that has the word sar in it. A page was created on how to enable sar on a solaris box. I can find the page if I put "enable sar" It shows sar in red showing that it sees it. But if you only put "sar" it cannot find the word. Any ideas? —158.147.20.51 17:23, 21 January 2010 (UTC)
 * Your MySQL is configured to avoid searching for short words. Upgrade to MediaWiki 1.15.1, which has a workaround for that, and run maintenance/rebuildtextindex.php. 1.13 is out of support anyway. Max Semenik 17:58, 21 January 2010 (UTC)

Recent changes options

 * Special:Version from Wikipedia - pt

I search a lot but didn't find the answer, so here I'm. I want to know how to make changes in the Recent changes options, so we could add a new button to improve the vandal tracking. My idea is to put a Show/Hide autoconfirmed users button to show anonymous and new-registered users in the same list. Thanks, Bozomal (Talk) 06:45, 29 January 2010 (UTC)

Question about Special:PopularPages

 * MediaWiki version: 1.14
 * PHP version: na
 * MySQL version: na
 * URL: http://www.sascommunity.org/wiki/Special:PopularPages

Hello, can you please advise what is included in the Popular pages list? I'm under the impression it is a list of all wiki pages, excluding files and User namespace pages. Can you give the specifics of what is included please? Thank you very much..

Lainie

—LainieH 17:16, 31 January 2010 (UTC)
 * It uses $wgContentNamespaces to determine what pages to include. Max Semenik 17:45, 31 January 2010 (UTC)