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

[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)

email notification (enotif) when a new page created

 * MediaWiki version: 1.15.1
 * PHP version: 5.2.12 (cgi-fcgi)
 * MySQL version: 5.0.90-community-n
 * URL: N/A (as it's internal wiki)

Hi,

Some of my wiki users want to receive email when a new page is created. I checked all enotif options in http://www.mediawiki.org/wiki/Manual:Configuration_settings#Email_notification_.28Enotif.29_settings but none of them helps me as none of them are mentioning "a new page created".

I also checked an old Extension in http://www.mediawiki.org/wiki/Extension:Email_notification#Features. I see that this is retired as the MediaWiki already contains this stuff. But I don't see an option like "Send me an email when a new page is created" in my mediawiki's "My Preferences/User Profile" page under "Email".

Am I missing something ?

thanks, faruk

—85.159.65.150 20:58, 9 February 2010 (UTC)

Simple NON-dynamic listing of ALL articles

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

Hello.

I know we have a search form to search pages (Special:Allpages), and also the Dynamic Article Listing that create special listings, but I don't need any of these shiny stuff, all I need is a simple, non-dynamic alphabetical listing of ALL articles in my wiki. Something like the listing of articles I get when visiting a Category page. My site will not have that much articles that not all could fit on one page.

I find it a great flaw, and disturbingly strange that while there are possibilities to create shiny special listings, there seems to be no any known way to create a very simple full listing. (I was searching both this wiki, the Meta wiki and Google for a long time with various keywords, with no relevant result...) This should be a core function in MediaWiki (Maybe with the added option of pagination if there are a lot of articles.).

I hope you can help, and add this vital and fundamental function to the next version of MediaWiki.

-- Storm 09:31, 10 February 2010 (UTC)

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)