Project:Support desk/Sections/System

__NEWSECTIONLINK__

= MediaWiki System Support =

IIS7 Installation and International characters in URL bug

 * When diacritics is used in url after installation on IIS7 (tested 1.13.2 and 1.15.1, PHP 5.2.9) WIN28K, and semicolon is used, server throws an error and in URL is xn-- (yes and server throws HTTP Error 404.0 - Not Found), example:
 * original: http://localhost/index.php?title=á:á
 * when entered: http://localhost/index.xn--php?title=-14a:%C3%A1 This is fundamental problem especially when custom namespaces with accent characters are used.
 * This critical bug is not present on Apache.

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.


 * You can just create "external links", if that's what you mean. Like this:  that will make: Name of the external link. --213.17.13.41 12:45, 23 February 2010 (UTC)

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

Search problem

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

Hi,

I have one problem with the search function. The search doesn't find anything that is in the text. I only get hits from the headline.

thx Bertram

—93.199.200.155 23:33, 10 February 2010 (UTC)

add custom parameter to transclude RecentChanges
I saw how to add parameters when you want to transclude RecentPages and it's works. I want to know if it is possible to add custom parameters that could be access by hooks like SpecialRecentChangesQuery. I tried to put the same parameter name as I use in the form defined in the SpecialRecentChangesPanel hook but it doesn't work. It is possible ?
 * MediaWiki version: 1.15
 * PHP version: 5.2
 * MySQL version: 5

Thanks in advance

—Melliol 09:52, 12 February 2010 (UTC)

Custom Edit Buttons

 * MediaWiki version: 1.15.1

Hi. I tried to customize my Edit Buttons using this manual: Manual:Custom_edit_buttons As this didn't work, I assumed it was outdated and found Customizing_edit_toolbar.

The method stated there (it's the same as in the FAQ) works, but only with common.js. (I tried using it in User:Username/skin.js - but it didn't work.)

Is there a way, for a single user to change his Edit Buttons? Is there a way, for a single user to remove one of the standard buttons?

—Sidcom 11:05, 23 February 2010 (UTC)

Remove "This category has the following..."-text and changing "subcategories"-header

 * MediaWiki version: 1.15.1

Hi. I'd like to remove the text "This category has the following..." and instead let the header be: subcategories (12/28)

Is there a way to do this, without changing the php-files? If not, where should i start? Thx — Sidcom 11:17, 23 February 2010 (UTC)
 * Yes, go to the page "Special:AllMessages" on your wiki, and then search for the messages you want to change. In your case, I think you want "category-article-count", "category-file-count" and "category-subcat-count". i Alex  20:33, 27 February 2010 (UTC)

Session data lost error

 * MediaWiki version: 1.15.1
 * PHP version: 5.2.12
 * MySQL version: 5.1.42
 * URL: fotoholix.nl

When editing a page on my Mediawiki every user gets the "Sorry! We could not process your edit due to a loss of session data. Please try again. If it still does not work, try logging out and logging back in." error when trying to save changes. I searched for possible clues and implemented a session_save_path command into a mediawiki subdir i created. At first, nothing happened there. After some hours session-files filled the subdir. But the errors remain and they occur on a 100% level.

Now for the strange bit: I have 4 computers at home, and only my own Mac has not been giving these errors. The other 3 have constantly, with different users and different browsers. Cleaning cookies and cache doesn't help. Since this morning, my Mac has been giving the same errors. So now i cannot change anything to the Wiki. My host does not allow access tot php.ini, and has not been very responsive in solving this issue. I don't understand why my own Mac hasn't been affected, and has now. Please advice to cure this problem, as a static Wiki is no Wiki!

Thanx for your support, Kind regards, Cas (admin of fotoholix.nl) The Netherlands

—77.250.107.241 12:10, 23 February 2010 (UTC)

SSO integration with our own database/table/user/password

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

I am currently developing a software and with Media Wiki 1.15.1 and PHP 5. I need to enable SSO in Media Wiki.

We have our own MySQL database and table for users (table name : mw_users). We would like to do authentication based on this user name and password.

I login to my application using the above said user authentication. This application integrates with many tools (like MediaWiki, Forums, Doc Managament etc). I want MediaWiki also to make use of this user and implicitly login through SSO (without asking user to enter username/pwd). Please help us in doing so.

—203.101.103.2 03:53, 25 February 2010 (UTC) Am2010
 * You can use the UserLoadFromSession to login users that are already logged in (with cookies or something else) by another system. If you want MediaWiki to look on your own user table when the user enters a username/password, you can use AuthPlugin. i Alex  08:27, 25 February 2010 (UTC)

Alphabethically listing by letter headings

 * MediaWiki version: 1.15.1
 * PHP version: 5.2.11
 * MySQL version: 5.0.32
 * URL: http://osteroy-sogelag.org/mediawiki

I have been searching all around the mediawiki pages, no luck so far. I'd like to have an alphabethically listing with letter headings on my main page, something like this page on mediawiki: [] How is it possible to have such a listing, where it's easy to find all the pages under a certain letter? Ormhaugen

—Ormhaugen 22:06, 25 February 2010 (UTC)
 * It was made manually. Max Semenik 22:11, 25 February 2010 (UTC)

Ok, thanks, but is it possible to get some clues on how to do it? Ormhaugen

The "Log in" link leads to an empty page so it is impossible to log in

 * MediaWiki version: 1.11.0
 * PHP version: 5.2.4-2ubuntu5.10
 * MySQL version: 5.0.51a-3ubuntu5.5
 * URL: http://www.aquafadas.eu/wiki/Welcome

Hi,

After a server migration, the “Log in“ link leads to an empty page with the following error message : “index.php There is currently no text in this page, you can search for this page title in other pages or edit this page.” The URL of the page is : http://www.aquafadas.eu/wiki/index.php?title=Special:Userlogin&returnto=Welcome Which does not corresponds with the “Log in“ link : Log in It seems that the MediaWiki system is looking for the title "index.php" instead of looking for the special page Userlogin.

I managed to get to the log in page with this URL : http://www.aquafadas.eu/wiki/Special:Userlogin But after entering my username, my password and clicking on the "Log in" button I get this error message : “No such action The action specified by the URL is not recognized by the wiki” The URL of the error : http://www.aquafadas.eu/wiki/index.php?title=Special:Userlogin&action=submitlogin&type=login

I do not know the MediaWiki system very well so i cannot find the source of this problem. Best regards

—62.147.149.185 16:37, 26 February 2010 (UTC)
 * That's a problem with your rewrite rules, since you use the same path (/wiki) for the wiki base and the short urls. So when you call "/wiki/index.php?title=Special:Userlogin", your server thinks you want to access the "Index.php" article. The best thing to do is to use two different paths (e.g. /w for the wiki and /wiki for the short urls, like here). i Alex  20:22, 26 February 2010 (UTC)

Varnish workaround
MediaWiki: 1.15.1 PHP:      5.2.6 (apache2handler) MySQL:    5.0.77-log URL:      http://judgepedia.org

I use Rackspace Cloud hosting. They use Varnish to cache the images even though I have caching turned off. The problem is mediawiki is picking up the cache IP instead of the user IP so it thinks the user is logged off. I have done the settings as described on the Varnish page where I turn squid on and put in some IPs in into the NoPurge array (127.0.0.1 and 172.2.x.x range - yes I typed out each IP). The problem is they use the entire 172 range and that is not feasible to put into the array. How can I get around this issue?

—67.184.222.111 22:16, 26 February 2010 (UTC)

Fehler beim speichern

 * MediaWiki version: 1.15.1
 * PHP version: 5.0.51a-3ubuntu5.5-log
 * MySQL version:
 * URL: http://www.das-grosse-tierforum.de/wiki/index.php/Hauptseite

Wenn ich eine Seite Speichern moechte oder erstellen moechte und dann speichern moechte, bekomme ich diesen Fehler:

Deine Bearbeitung wurde zurückgewiesen, da dein Browser Zeichen im Bearbeiten-Token verstümmelt hat. Eine Speicherung kann den Seiteninhalt zerstören. Dies geschieht bisweilen durch die Benutzung eines anonymen Proxy-Dienstes, der fehlerhaft arbeitet.

Mein Englisch ist nicht so gut und ich weiss nicht was ich jetzt machen soll.

—76.23.61.61 01:34, 2 March 2010 (UTC)

Blank pages and 404s when accessing freshly installed mediawiki

 * MediaWiki version: 1.15.0
 * PHP version: 5.2.10-2ubuntu6.4 (apache2handler)
 * MySQL version: 5.1.37-1ubuntu5.1

I have a problem where certain pages show up as blank. I can't edit my main page, can't search, because pages show up blank. In addition Privacy policy, About ... and Disclaimers all give me 404 errors.

This is a fresh install. I have edited the php.ini file to include the 32mb of memory.

Thanks.

—129.42.208.184 19:55, 2 March 2010 (UTC)

Upload page

 * MediaWiki version: 1.15.1
 * PHP version: 5.2.12 (cgi)
 * MySQL version: 5.1.43-community-log
 * URL:

I've edited LocalSettings.php of my wiki and I've added the function $wgMaxUploadSize = 4194304;, but in Upload's Page there is a 'sentence' that it's says the limit is 64 MB. How do I do to make it works properly? — GNU  Marcoo  20:47, 2 March 2010 (UTC)

My site has been cracked

 * MediaWiki 1.15.1
 * PHP 5.2.8 (cgi)
 * MySQL 5.0.89-community
 * URL: http://interwiki.info/index.php?title=%D0%A1%D0%BB%D1%83%D0%B6%D0%B5%D0%B1%D0%BD%D0%B0%D1%8F:Version

screenshot: http://interwiki.info/HckedBySarBoT511.jpg

php-info: http://interwiki.info/php-info.php

My site has been cracked.

Files have been changed: index.php and index.php5

New loadings of files in a script this day was not.

New users were not.

The rights to all folders are installed in 755

The rights to all files are installed in 644

Only this Monday has refreshed the version of a script with 112 on 1151

Where there is a hole?

—77.121.0.13 19:03, 3 March 2010 (UTC)

Cracked index.php

 ~

 Greatz [2] :

 #  Lezr.com  #  Black Zero

<font color="#FFFF00"> #

<font color="#FF0000"> L!nuX Dr0x

<font color="#FFFF00">

# <font color="#FF0000">

Third Devil

<font color="#FFFF00"> # <font color="#FF0000"> aB0

m0h4mM3d <font color="#FFFF00"> # </b>

<p dir="ltr" align="center"><b><font color="#FFFF00"> \.. <font color="#FF0000">

His0ka <font color="#FFFF00"> #

<font color="#FF0000"> hAx0r^sA

<font color="#FFFF00"> #

<font color="#FF0000"> Dev!L-Fuck3r

<font color="#FFFF00"> ../ </b><p dir="ltr" align="center">

<p align="center" class="style7"><span style="background-color: rgb(0, 0, 0);">

<font color="#ffff00"> [ Copyright : 2 0 0 0 - 2 0 10

<font color="#ffff00">© ]