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

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)

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)

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


 * Well, I talked to a Mediawiki developer and he answered this question, thanks Bozomal 05:50, 2 February 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)

[Resolved] Create page redirect not working properly

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

on my site if i try to make a new page using the url i get redirected to a page just showing the coding for what the page should look like....

can someone tell me whats wrong with it?

Cheers

—85.92.180.114 15:41, 1 February 2010 (UTC)

The article.php file has been corrupted at upload, reuploaded file and it works perfectly now!

Make all Files not readable for not registered users

 * MediaWiki version: 1.16alpha-wm
 * PHP version: 5.2.4-2ubuntu5.7wm1 (apache2handler)
 * MySQL version: 4.0.40-wikimedia-log
 * URL: n/a

Hello Team, is there any possibility to disallow not registert users to see any atteched file? So, i like to do somethink in my settings that way, that only registered users are able to see pages within the "file"-namespace. (in German the "Datei"-Namespace) I've just tried it with ExtraNameSpaces but it does not work. Please help me. Thanks in advance. Hendrik

—78.51.138.109 17:10, 1 February 2010 (UTC)

DISPLAYTITLE problems

 * MediaWiki version: 1.16alpha r61833
 * PHP version: 5.3.0
 * SQLite version: 3.6.12
 * URL: internal only

I am having trouble using DISPLAYTITLE to work correct and do not see any obvious reasons for the difficulty. I have a page, which is created as "EsBAF" but I would like for the title of this page to appear as "esBAF" instead. On this page, I use DISPLAYTITLE thusly:

I have also attempted various permutations, such as:

None of these seem to work. In LocalSettings.php, I have explicitly set "$wgAllowDisplayTitle = true;" and "$wgRestrictDisplayTitle = false;" and I have not touched "$wgCapitalLinks". The title always shows up as EsBAF (with first letter capitalized) no matter what I do. Am I doing something wrong, or is this an alpha bug? Thanks to anybody for your help, and apologies if this is answered somewhere (I tried searching but couldn't find a solution). — anon (no account), 2 February 2010.