Project:Support desk/Sections/System

__NEWSECTIONLINK__

= MediaWiki System Support =

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.

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.

Permissions not working correctly

 * MediaWiki version: 1.15.1
 * PHP version: 5.2.9-1 (cgi-fcgi)
 * MySQL version: 5.0.24-community-nt
 * URL: Behind Firewall

I am having issues with users (including sysops) not beign able to edit, upload files, etc, when the $wgGroupPermissions['*'][value] = false. For instance, I want anonymous users to NOT be able to edit pages, but when I change the ['edit'] to FALSE, no one can edit pages. I have looked in the admin guides and forums and have not been able to find an answer as to why this is happening. Below is what I have for permissions set in my LocalSettings.php

$wgAddGroups['sysop'] = array( 'bot' ); $wgRemoveGroups['sysop'] = array( 'bot'); $wgGroupPermissions['sysop']['userrights'] = true; $wgGroupPermissions = array( 'sysop' ); $wgGroupPermissions['sysop']['passwordresetself'] = true; $wgGroupPermissions['sysop']['passwordreset'] = true; $wgGroupPermissions['sysop']['move'] = true; $wgGroupPermissions['sysop']['read'] = true; $wgGroupPermissions['sysop']['edit'] = true; $wgGroupPermissions['sysop']['viewedittab'] = true; $wgGroupPermissions['sysop']['createpage'] = true; $wgGroupPermissions['sysop']['createtalk'] = true; $wgGroupPermissions['sysop']['userrights'] = true; $wgGroupPermissions['sysop']['noratelimit'] = true; $wgGroupPermissions['sysop']['block'] = true; $wgGroupPermissions['sysop']['createaccount'] = true; $wgGroupPermissions['sysop']['delete'] = true; $wgGroupPermissions['sysop']['bigdelete'] = true; $wgGroupPermissions['sysop']['deletedhistory'] = true; $wgGroupPermissions['sysop']['undelete'] = true; $wgGroupPermissions['sysop']['editinterface'] = true; $wgGroupPermissions['sysop']['editusercssjs'] = true; $wgGroupPermissions['sysop']['import'] = true; $wgGroupPermissions['sysop']['importupload'] = true; $wgGroupPermissions['sysop']['move'] = true; $wgGroupPermissions['sysop']['patrol'] = true; $wgGroupPermissions['sysop']['autopatrol'] = true; $wgGroupPermissions['sysop']['protect'] = true; $wgGroupPermissions['sysop']['proxyunbannable'] = true; $wgGroupPermissions['sysop']['rollback'] = true; $wgGroupPermissions['sysop']['trackback'] = true; $wgGroupPermissions['sysop']['upload'] = true; $wgGroupPermissions['sysop']['reupload'] = true; $wgGroupPermissions['sysop']['reupload-shared'] = true; $wgGroupPermissions['sysop']['unwatchedpages'] = true; $wgGroupPermissions['sysop']['autoconfirmed'] = true; $wgGroupPermissions['sysop']['upload_by_url'] = true; $wgGroupPermissions['sysop']['ipblock-exempt'] = true; $wgGroupPermissions['sysop']['blockemail'] = true; $wgGroupPermissions['sysop']['markbotedits'] = true; $wgGroupPermissions['sysop']['suppressredirect'] = true; $wgGroupPermissions['sysop']['apihighlimits'] = true; $wgGroupPermissions['sysop']['browsearchive'] = true; $wgGroupPermissions['sysop']['deleterevision'] = true; $wgGroupPermissions = array( 'user' ); $wgGroupPermissions['user']['read'] = true; $wgGroupPermissions['user']['createpage'] = true; $wgGroupPermissions['user']['createtalk'] = true; $wgGroupPermissions['user']['edit'] = false; $wgGroupPermissions['user']['viewedittab'] = true; $wgGroupPermissions['user']['upload'] = true; $wgGroupPermissions = array( '*' ); $wgGroupPermissions['*']['createaccount'] = true; $wgGroupPermissions['*']['read'] = true; $wgGroupPermissions['*']['edit'] = true; $wgGroupPermissions['*']['createpage'] = true; $wgGroupPermissions['*']['createtalk'] = true; $wgGroupPermissions['*']['upload'] = true; $wgGroupPermissions['*']['viewedittab'] = true;

—Rob Presley

a page doesn't exist

 * MediaWiki version: 1.15.1
 * PHP version: 5.3
 * MySQL version: 5.1
 * URL: intranet

I'm working for a EDF, and we will install a wiki. Our server is a ZendServer, and php was exectuted in CGI mode. We just install it, and when I click on Help so this URL : http://my-adresse.fr/wiki/index.php/Help:Accueil I have and error message because the page doesn't exist.

But with this URL : http://my-adresse.fr/wiki/index.php/Category:Toto It works...

So I don't know why. Do you have a answer??

—Olivier.riche 15:17, 28 September 2009 (UTC)

Do you have apache on zendserver or is it proprietary? If its proprietary I suggest you load Windows Server 2008 R2, or 2008 Standard...I could probably get you a key too if you need one...if you get my hint. If you really like an old windows server version or linux, well than, you could get dumb iis 6 or stupid linux, and run apache on that. But anyways, we need to see the redirection rule. --Pwgus 14:31, 14 October 2009 (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?

Issue with searching (1.14)

 * MediaWiki version: 1.14.0
 * PHP version: 5.2.9 (isapi)
 * MySQL version: 5.1.32-community-nt
 * OS: Windows 2003 Server
 * URL: Intranet

When searching for articles that have a "." in them, they do not show in the title search.

For example, we search for the words "UNIX EXECUTE". We have an article titled "UNIX.EXECUTE", but it does not show up in the search results (it is a short page, and the words UNIX EXECUTE aren't on the actual page).

Now, I have a copy of our wiki running MediaWiki 1.13.0, PHP 5.2.9, MySQL 5.0.67-community-nt and this search works fine (it brings up, in the title search, UNIX.EXECUTE).

Digging in a bit more, I've determined that the SearchIndex tables look a little bit differently in their data (though their structure is identical).

In 1.14: si_title = "unixu82eexecute"

In 1.13: si_title = "unix execute"

I was able to track down that it appears that changes to the languages.php add the u82e, but I can't figure out how it would work for others and not for us.

--Clayton Boucher 18:27, 9 October 2009 (UTC)

Antivirus Setup Issue (1.16alpha usually latest revision)

 * MediaWiki version: 1.16alpha (r57681)
 * PHP version: 5.2.11 (cgi-fcgi)
 * MySQL version: 5.1.39-community
 * URL: festiva.bntbtc.com

I'm trying to setup ClamAVWin with Windows Server 2008 R2, I can get it to successfully scan on the command line like so:

C:\Users\Administrator>"C:\Program Files (x86)\ClamWin\bin\clamscan.exe" --database=c:\avdb --no-summary c:\forefrontinstall.log c:\forefrontinstall.log: OK C:\Users\Administrator>

and heres my setup in localsettings.php, based on the default one for clamav:

$wgAntivirus = "ClamAV"; $wgAntivirusRequired = true; $wgAntivirusSetup = array(    #setup for clamav     'ClamAV' => array ( 'command' => "C:/Program Files (x86)/ClamWin/bin/clamscan.exe --database=C:\avdb --no-summary ", 'codemap'=> array (            "0"=>  AV_NO_VIRUS, #no virus             "1"=>  AV_VIRUS_FOUND, #virus found             "52"=> AV_SCAN_ABORTED, #unsupported file format (probably immune)             "*"=>  AV_SCAN_FAILED, #else scan failed         ), 'messagepattern'=> '/.*?:(.*)/sim', ),     #setup for f-prot     'f-prot' => array ( 'command' => "f-prot ", 'codemap'=> array (            "0"=> AV_NO_VIRUS, #no virus             "3"=> AV_VIRUS_FOUND, #virus found             "6"=> AV_VIRUS_FOUND, #virus found             "*"=> AV_SCAN_FAILED, #else scan failed         ), 'messagepattern'=> '/.*?Infection:(.*)$/m', ), );
 * 1) Setup clam antivirus

yet I contiunue to get errors!! it still says my files are infected after I submit the file to be uploaded, with a return code of 1:

Upload warning The file contains a virus! Details: 1

Ideas?? Help?? Please!! I'm thinking maybe I need to add a variable on the end of the command string to specify the file, but I can't seem to figure it out. And yes I realize MediaWiki is not officialy supported by Windows, but Windows is by far my strong point, and I hate Linux, as I have just never had good luck with it. Also, if you need further PHP config background information, try http://php.bntbtc.com, which should display a PHP test page

—Pwgus 21:34, 13 October 2009 (UTC)

hiding an added sidebar portlet from logged out

 * MediaWiki 1.15.1
 * PHP 5.2.6-3ubuntu4.2 (apache2handler)
 * MySQL 5.0.75-0ubuntu10.2
 * URL:

I have a "For Editors" portlet added to MediaWiki:Sidebar

For Editors
 * Recent Changes
 * To be Fixed...

I would like to hide this to logged out but not the  portlet above it.

In monobook.php I'm already hiding two divs from logged out thus:

data['loggedin']) { ?> .editsection { display: none; } .editornote { display: none; } 

I have tried to do what I want by adding the line


 * 1) p-editors .portlet {display: none;}

but it does not do the trick.

Have I got the wrong syntax or should I try and add the for editors box some other way as a custom box to make it easier to hide? Thanks

—Zacknuts 05:37, 15 October 2009 (UTC)

Hide / Show content for specific users or anonymous users (via permissions)

 * MediaWiki version: newest
 * PHP version: newest
 * MySQL version: newest
 * URL: -

Is it possible to hide specific content for some people? Only who have high privileges can read specific content?

—86.81.6.117 16:15, 15 October 2009 (UTC)


 * Have you tried the Blacklist-Extension? It allows to create a namespace and make it visible to users of a certain group only. -- Achimbode 15:15, 19 October 2009 (UTC)

Simultaneous edit handling

 * MediaWiki version: 1.15.1
 * PHP version: 5.3.0
 * MySQL version: 5.1.36
 * URL: Intranet

How are multiple concurrent edits to the same page handled?

Suppose I have a page dedicated to reports that many users may be simultaneously editing. Will the wiki handle their edits without loss of any information?

—Ilnolen 19:46, 16 October 2009 (UTC)

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 :).

Manual:$wgDefaultLanguageVariant - variant or full code?
Solved by trial and error, Manual:$wgDefaultLanguageVariant improved.

—G.Hagedorn 21:52, 22 October 2009 (UTC)