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

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)

[Resolved] BagOStuff.php Error

 * MediaWiki version: 1.15.1
 * PHP version: 5.2.9 (apache2handler)
 * MySQL version: 5.0.81-community
 * URL: Private

After uninstalling the SMW extension, every so often my wiki presents this error at the top of any page: Warning: unserialize [function.unserialize]: defined (__autoload) but not found in /home/strainje/public_html/team/wiki/includes/BagOStuff.php on line 425

It presents this error twice and I cannot find any correlation to fix it. It only happens some of the time, but when it does it is a annoyance and messes up the formatting of the pages.

Any ideas? Thanks

—199.119.29.65 13:06, 5 February 2010 (UTC)
 * I got that error too (I don't know why it happens only sometimes). If you want to remove the error, you can edit includes/AutoLoader.php and comment out the line  (line 5). This problem has been fixed in 1.16 though. i Alex  13:17, 5 February 2010 (UTC)

[Resolved] class="wikitable" not working

 * MediaWiki version: 1.15.1
 * PHP version: 5.2.9 (apache2handler)
 * MySQL version: 5.0.81-community
 * URL: Private

I'm trying to make some tables on my wiki look "good", though some of the examples from the Table documentation aren't working; mainly the class wikitable. I've looked and it appears to be in the CSS required for the monobook skin, but I might be missing something.

Any ideas?
 * These CSS classes aren't standard, you have to copy them manually from w:MediaWiki:Common.css. Max Semenik 07:47, 6 February 2010 (UTC)


 * Where is the location of common.css? And where would I need to put it? --68.209.251.67 01:12, 9 February 2010 (UTC)
 * Nevermind. --68.209.251.67 01:52, 9 February 2010 (UTC)

[Resolved] Mediawiki partially working after fresh install

 * MediaWiki version: 1.15.0 (Ubuntu 9.10 package)
 * PHP version: 5.2.10 (also Ubuntu package)
 * MySQL version: 5.1.37 (Ubuntu package)
 * URL: (sorry, behind a firewall)

This is a fresh install of mediawiki using Ubuntu pre-compiled packages. I ran the "config" and it created the database. I moved LocalSettings into the correct directory.

Now, when I browse to the top mediawiki URL, I do get the Main_Page, but if I try to view the Special Pages or edit any page, what is sent to the browser is 0 characters in length. View Source says that there's nothing in the page.

Can you give me some suggestions of what I've done wrong or where to look to fix this issue?

Thank you, in advance.
 * See blank page. Max Semenik 06:12, 7 February 2010 (UTC)

Thanks for the quick response, Max. I believe it was the memory_limit. Once I changed it to 32M in the php.ini file(s) and the LocalSettings file, I'm now able to view Special Pages and the Edit page comes up. THANK YOU!

—68.111.202.208 04:46, 7 February 2010 (UTC)

INCATEGORY search method - not works.

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

Hi, I have Mediawiki in my INTRANET version 1.11 I am trying to search with INCATEGORY method but I do not get any results.. Do I need to do something to enable this search method!?

Thank you, Gabi.

—212.25.124.145 10:43, 9 February 2010 (UTC)


 * IIRC, the incategory: search function was added recently to MW. Try upgrading your installation to the latest version (1.15). Happy ‑ melon 15:25, 9 February 2010 (UTC)