Project:Support desk

From MediaWiki.org

Jump to: navigation, search
vde   This page is for questions relating to the MediaWiki software.

Welcome to MediaWiki.org's Support desk, the central on-wiki place to ask questions about the MediaWiki software! The greater purpose of this page is to make our Manual and other available help so good that you do not have to come here to ask questions, or if we know where the page is you are looking for, making that easier to find.

Before posting a question here, please check out the recommended communication possibilities, and also check that your question is not already answered elsewhere on this site (see box on the right).

Well, just as it is the case on most forums, questions on this page are unlikely to be answered very quickly, and may not get answered at all. Usually you have to wait a few days for a reply. If there are call backs from other users trying to solve your problem, please reply as specific as you can. In case you found a solution yourself in the meantime, please leave a short note, so that the thread can be closed.


[edit] Before Posting

[edit] Check that your question is not already answered elsewhere on this site

  • The MediaWiki Handbook (on meta.wikimedia.org) holds detailed information about setting up and using MediaWiki.
  • Project:Forum is where you should discuss issues about this site.
  • Sandbox is where you can test wiki editing, or use testwiki: for more extensive issues.

[edit] Is this the best place to ask your question?

Questions on this page are unlikely to be answered very quickly, and may not get answered at all. Please check out the recommended communication possibilities (particularly the MediaWiki-l mailing list) before posting and read carefully. There is no "official" forum, but there are some private ones that might be better places to ask your question, e.g. mwusers.com.

[edit] To post a new question

1. To help us answer your question, please always indicate which versions you are using:

  • MediaWiki (reported by your wiki's Special:Version page)
  • PHP (likewise)
  • the database (likewise, e.g. MySQL 4.1)

2. To allow others to examine the issue, it's often neat to also state the URL of your wiki (if it's not locked down, intranet-only, or such).
3. Don't forget to sign your comments with --~~~~ at the end.
4. Now, please click the appropriate link below:

[edit] After Posting

[edit] Is your question answered?

If your question has been answered please place (RESOLVED) before the title of your thread, so our support staff will know to look over it. This also helps us when archiving.

[edit] Why are some topics marked as RESOLVED when they are not?

There are several reasons for marking a page as RESOLVED.
  1. If the user seeking support does not answer a member of the support team's questions seeking more information within a period of five days, the topic will be marked as RESOLVED as it cannot be solved.
  2. If the topic does not relate to MediaWiki software it will be automatically closed.
  3. If the user is seeking support for an unstable/unsupported version or MediaWiki or an unstable/unsupported extension, the topic may automatically be closed, as this Support Desk does not offer such support.
  4. If you do not submit your thread in the correct format (i.e., signing your thread, posting your report above your signature, reporting your version of MediaWiki/PHP/Database, telling us your URL, etc.) it can be deleted on the spot.
  5. If the users post seems resolved it may accidentally be marked as such, if this happens please move the page from the current archive back to the bottom of the support desk, but if your thread is in an archive older than the current, please just copy and repost it. Please note that as long as your topic follows these guidelines it will not be marked as RESOLVED.

[edit] Archiving topics

Topics are automatically archived when they have been inactive (ie no new posts) for three weeks. If a question you have asked is approaching this limit and still has not been answered, please post a 'bump' to prevent it being archived. Please do not 'bump' posts except to prevent archiving.

Contents



[edit] Installation/Legalities Support

[edit] Mediawiki Appliance Version 1.13.20 Problems

Downloaded rPath Mediawiki Appliance, Running it on VMwear PLayer but can't find the localsettings.php file to edit.

Can't find much documentation. Any help or documentation would be great!

[edit] HUGE Troubles in mediawiki 1.14.0

my bureau/admin account can not access Restricted special pages WHY?????????

MW 1.14.0 PHP Version 5.2.9 MySQL Version 5.0.67-community

What error message is given? Wikademia

[edit] Untitled

  • MediaWiki version: media wiki
  • PHP version:
  • MySQL version:
  • URL:

Hello! My name is Pilar and I'm an extranet oficer suporting now our extranet development project.One of the things we are thinking to add media wiki to our extranet as BT did. Now I couldn't find any information about whether media wiki can be implemented with a password regulated site as an extranet. Another question is can we get an media wiki expert some where to support with instalation and training us on how to manage the site? All this information here is quite heavy and difficult to understand for not developers minds.

[edit] Extension Licensing Guidelines

I was wondering if there were licensing guidelines for extensions. I am combined several extensions with MediaWiki and noticed that some of the extensions have licenses that are incompatible with other extensions (e.g. Affero v.3 with a majority of extensions under GPL v.2). There are also several extensions that have no license indicated--is there a default license if you are coding for combination with MediaWiki? I was wondering if there was already guidance or if there could be some written on these topics. Thanks.

[edit] Unable to view the php created

  • MediaWiki version: 1.11.0
  • PHP version: 5.2.5
  • MySQL version: -
  • URL:

I have installed PHP and also made the necessary changes to the IIS. Still I am unable to view the .php file I created in the C:\Inetpub\wwwroot folder. Everytime I try to view the file using the browse option I get an error saying I am unauthorised to view that page.

I do have administrative rights and installed it using the same.

Thanks in advance Maya

[edit] What have I do?

I had to start new MediaWiki 1.15.0rc1 Installation but received:

Don't forget security updates! Keep an eye on the low-traffic release announcements mailing list.
Checking environment...

Please include all of the lines below when reporting installation problems.

  • PHP 5.2.6 installed
  • Found database drivers for: MySQL SQLite
  • PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title)
  • Have XML / Latin1-UTF-8 conversion support.
  • Session save path (/var/lib/php/session) appears to be valid.
  • PHP's memory_limit is 32M.
  • Couldn't find Turck MMCache, eAccelerator, APC or XCache; cannot use these for object caching.
  • Found GNU diff3: /usr/bin/diff3.
  • Found GD graphics library built-in, image thumbnailing will be enabled if you enable uploads.
  • Installation directory: /usr/local/www/name_of_site.com/www
  • Script URI path: Installing MediaWiki with php file extensions
  • Environment checked. You can install MediaWiki.

Fatal error: Call to undefined function taint() in /usr/local/www/name_of_site.com/www/config/index.php on line 1905

[edit] Create an account: how to get the "By email" button ?

  • MediaWiki 1.16alpha
  • PHP 5.2.8 (apache2handler)
  • MySQL 5.1.30-community

Hello. I do not have the "By email" button in the create account form.

In LocalSettings.php the email config looks like:

$wgEnableEmail      = true;
$wgEnableUserEmail  = true; # UPO

$wgEmergencyContact = "admin@localhost";
$wgPasswordSender = "admin@localhost";

$wgEnotifUserTalk = true; # UPO
$wgEnotifWatchlist = true; # UPO
$wgEmailAuthentication = true;

almaghi 12:32, 16 June 2009 (UTC)

I think this feature might have been replaced by the ConfirmAccount extension. I can't remember off the top of my head. If you think it's a bug, you should report it at bugzilla. Happymelon 12:31, 17 June 2009 (UTC)
Sorry it was my mistake because the feature is there, I was probably not registered at that moment. --almaghi 12:57, 17 June 2009 (UTC)

[edit] Issues printing my wiki articles

Mediawiki, PHP, and MySQL are all latest.

When I try to print my wiki articles, the images are too big and are cut off. Is there an option somewhere to resize images when the "print this page" option is invoked? --165.86.81.20 03:43, 1 July 2009 (UTC)


[edit] Restore wiki

  • MediaWiki version: i don't know (but can check it if you tell me how)
  • PHP version: 
  • MySQL version: 
  • URL: www.abnaale.org/wiki

My wiki was hacked (at least index page). Is there a way to restore it, if all the DB is ok.

192.118.32.80 10:50, 6 July 2009 (UTC)

If the database is ok, just repair the php files (probably safest to overwrite them all with fresh versions from a release or SVN), change the database password for safety, and continue as normal. Happymelon 14:27, 6 July 2009 (UTC)

[edit] Help with wiki error Msollicito

  • MediaWiki version: 
  • PHP version: 
  • MySQL version: 
  • URL:

I have installed mediawiki on my brinkster.com hosted account, but every time I try to edit a page or protect a page I get the following error.. Fatal error: Call to a member function getNamespace() on a non-object in C:\Sites\Single43\msollicito\webroot\wiki\includes\UserMailer.php on line 321 Any idea what setting I need to change? I tried unsetting all email options and that doesnt seem to have had any effect Mediawiki version 1.9.3 PHP version - 5.2.9-2 mySQL version 5.0.51a URL http://www.ebarster.com/wiki To edit, you have to login as me - msollicito Mish3582 —74.232.176.52 17:32, 6 July 2009 (UTC)

Please fill in the MediaWiki/PHP/MySQL versions, so we know what software you're actually working with. I hope that's not your username and password there: letting anyone post things to a public site from an account that's nominally 'you' is a Bad Idea. Happymelon 17:37, 6 July 2009 (UTC)

[edit] Problem with wiki installation (the php module throws exception during the installatio)

  • MediaWiki version: 1.14.0 / 1.15.0
  • PHP version: 5.2.10.10 (Windows XP SP2 Pro)
  • MySQL version: 5.1

I tried to install MediaWiki 1.15 on IIS with no success: The installtion just stops after it write some lines (Like Warning: $wgSecretKey key is insecure, generated with mt_rand(). Consider changing it manually. etc...) (as described here: http://meta.wikimedia.org/wiki/MediaWiki_FAQ#The_install_stops_with_no_messages_or_I_get_a_blank_page.21), furthermore, after the installation stops, i needed to restart the iis otherwise the php isapi wasn't working (it returns blank pages).

After a few tries I've decided to install it on Apache 2.2 (windows xp), When i clicked install - the installtion was started (like with IIS), and when it gets to this line: "Warning: $wgSecretKey key is insecure, generated with mt_rand(). Consider changing it manually." it throws exception (windows opens the Visual Studio Just in time Debugger with the following message: An unhandeled win32 exception occured in httpd.exe.

After this tries, I've downloaded MediaWiki 1.14.0, and try to install it on Apache 2.2 - still the same problem. So i've started to "debug" the config/index.php file, and start to put "exit();" in the middle of the script, and i've noticed that the line that throws the exception is : "$wgDatabase = Database::newFromParams( $wgDBserver, $db_user, $db_pass, , 1 );" (if i put exit() before this line no exception is thrown).

What can be the problem? MySQL is running and the username / password is OK.


Thanks.

217.132.146.111 09:44, 11 July 2009 (UTC)


[edit] MediaWiki System Support

[edit] 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.

[edit] Shortcuts definition such as WP => wikipedia. (not about interwiki)

  • MediaWiki version: 1.13.4

Hello. Where are mediawiki shortcuts define ?

  1. NOT in MediaWiki:Searchaliases. (this page is for MWsearch extension)
  2. NOT in interLinks, (this is for inter-wiki links ; not for internal shortcut.)

For example in en:wikipedia: where is it defined that [[WP:xxx]] => [[Wikipedia:xxx]] so that for example WP:About will not be a red link if Wikipedia:About exists. ? —almaghi 09:06, 4 June 2009 (UTC)

#REDIRECT[[Wikipedia:xxx]] ? Greudin 09:57, 4 June 2009 (UTC)
They are set as namespace aliases. See Manual:$wgNamespaceAliases. Happymelon 15:09, 4 June 2009 (UTC)
Thx Happy-melon, didnt notice. Greudin 18:28, 4 June 2009 (UTC)
OK, thank you very much for helping. It was written on manual:Namespace but I needed to read it twice before viewing it... --almaghi 13:40, 9 June 2009 (UTC)

[edit] What is category id?

  • MediaWiki version: 
  • PHP version: 
  • MySQL version: 
  • URL:

What is a category id? Is it an integer generated based on the category name?


158.130.93.78 18:17, 16 June 2009 (UTC)

Every page, piece of text, user, event, revision, or other object is identified within the software not by its name, which can have many wierd-and-wonderful properties (and often doesn't make sense: what is the 'name' of a log event?), but by a number or 'id' which is assigned when the object is stored in the database. So every time a user saves an edit, a new revision is created (with an associated revision id), which links to the user themselves (identified by a user id), to the text of the revision (identified by a text id), which page the revision was made to (identified by a page id), and various other properties.
Categories are, as you note, identified by a category id. The category is the actual place where category links lead to, and the page on which the category listing is displayed. That page may or may not exist: if it does, there will be an associated page with a separate page id that contains the introductory text, but nonexistent categories can still have a category id. Thus any category that has a page categorised into it (or which has had members in the past) has an associated category id. Hope this clarifies. Happymelon 12:44, 17 June 2009 (UTC)


[edit] Same article in all pages articles

  • MediaWiki version: 1.12
  • PHP version: PHP 5.2.6-1+lenny3 with Suhosin-Patch 0.9.6.2 (cli)
  • MySQL version: Ver 14.12 Distrib 5.0.51a, for debian-linux-gnu (i486) using readline 5.2
  • URL: (Local Intranet)


I have installed mediawiki on debian lenny for my local intranet from apt-get install mediawiki mediawiki-math mediawiki-extensions and configured it, and work fine, them downloaded eswiki20090609-pages-articles.tar.gz and from command line run java -jar mwdumper.jar --format=sql:1.5 eswiki20090609-pages-articles.tar.gz | mysql -u root -p wikidb and all article are on my wikidb, them run RebuildTextindex.php, My problem is when i go to see any article or random page, in all page article in the top of the page are the same article (Carlos Iglecias) under the article that i desire to see , and when i loggin as wikisysop i see another article in the same place of all pages. I have make this many times, another way was downloading mediatikiXX.tar.gz uncompressing on my website directory and follows the install procedure, but the problem continues, i will make this with enwiki to see whats happens because i believe the problem is on the eswiki20090609-pages-articles.tar.gz , have downloaded another's pages-articles but the problem continue

To clarify: you go to any page on the wiki, and you see the same title for all articles ("Carlos Iglecias"), but the correct article text? When logged in, you see a different title, but still the correct texts? Happymelon 14:28, 17 June 2009 (UTC)


Yes when i go to any page i see not only the same title for all aticles, including login form, search, all, i see the title and the text of that article (Carlos Iglecias) and under the correct text of article or login form, special page.., and when i logged as wikisysop i see different title but still the correct text, somes times happens when i clic in a link this go to a page that no correspond to the link, for example, link in Mexico and go to mexico article page but i see tow articles in one, under the title Mexico i see the table with data(population, area ect..) of this country thas correct but more under i see an article named Street Fighter and at the end i see the other part of mexico article. in the mediawiki-l email list i read this problem is fix after run rebuildall.php script, by now i'm dumpling eswiki-pages-articles to another database with mediawiki-1.15 the proces no has finished, the first problem not show by now , but somes times happens to me the second problem , i'm waiting finished to see whats happend.

[edit] How to assign group to mass number of users?

  • MediaWiki version: 1.13.4
  • PHP version: 
  • MySQL version: 
  • URL:

How to assign group to mass number of users? Is there a script? Is there another way of doing it one-user-after-one-user? —almaghi 10:27, 18 June 2009 (UTC)

Is this something you need to do on a regular basis, or as a one-off fix? Happymelon 10:40, 18 June 2009 (UTC)
It is a one-off fix. (but I wish to capitalize about it to share ability of doing it, I think it would be useful to other users). --almaghi 12:48, 18 June 2009 (UTC)
Then I guess you want a maintenance script (if it can be done by a sysadmin) or a bot script if it has to be done by the users. I don't think such a script exists ATM; perhaps you should try writing one! Happymelon 12:56, 18 June 2009 (UTC)

[edit] a link to Special:UserRights/{username} in tollbox for bureaucrat

Hello. I'd like to add on UserPage a link in toolbox for Bureaucrat so that they can easily check or change userRights; how should I do?

almaghi 10:37, 18 June 2009 (UTC)

The simplest is probably JavaScript; just wrap an addPortletLink() call in a check against the wgUserGroups array. Happymelon 10:40, 18 June 2009 (UTC)
Ok I try this, with examples from w:WP:WikiProject User scripts/Scripts/Compact Navigationw:WP:WikiProject_User_scripts/Scripts/User_tabs. If I manage to do it, I will put it on Javascript mediawiki manual.--almaghi 13:00, 18 June 2009 (UTC)

Should this script work or is there any error?

addOnloadHook(function () {
  if (wgNamespaceNumber == 2)
    {
    var linkUserRights = wgServer + wgScript + '?title=Special:UserRights&user=' + uname;
    addPortletLink('p-tb', linkUserRights, 'user rights', 't-userrights', 'Rights of this user');
    }
});

[edit] a 7lines Javascript working on Wikipedia but not on my wiki

I've tested this script in my monobook.js on wikipedia, it is working. But on my wiki it doesn't work. It is strange because javascript work on my wiki, for example HotCat.js and SubPages.js are well working. What could be wrong?

addOnloadHook(function () {
    if (wgNamespaceNumber != 2 && wgNamespaceNumber != 3)  // User or User talk
        return;
    var user = wgTitle.split("/")[0];
    var url = wgScript + "?title=Special:UserRights&user=" + encodeURIComponent(user);
    addPortletLink("p-tb", url, "User rights", "t-userrights", "List of user groups for "+user);
});

My wiki:

  • MediaWiki : 1.13.4
  • PHP : 5.1.6 (apache2handler)
  • MySQL : 5.0.22 --almaghi 14:32, 18 June 2009 (UTC)
edit: I put the script as a gadget and it does work as expected. Previously I added it to Special:MyPage/monobook.js and then it doesn't work? Any idea of what's wrong?? I missed something...--almaghi 14:56, 18 June 2009 (UTC)
Personal CSS and JS have to be enabled on wikis: see Manual:$wgAllowUserJs. Happymelon 15:28, 18 June 2009 (UTC)
Yeah OK... Thanks for this.
There's a strange stuff on my wiki: when I set it to true my wiki gets broken and serve a blank page. Yet another good idea to help me? ;) --almaghi 15:50, 18 June 2009 (UTC)

[edit] configuring $wgForeignFileRepos

  • MediaWiki version: 1.15.0
  • PHP version: 5.2.6-1+lenny3 with Suhosin-Patch 0.9.6.2 (cli)
  • MySQL version: 14.12 Distrib 5.0.51a, for debian-linux-gnu (i486) using readline 5.2
  • URL: (local Intranet)

Hello all i'm trying set $wgForeignFileRepos to see remotes images on my local wikipedia adding the follows lines to my LocalSettings.php: To CURL request:

$wgHTTPTimeout = 3000; $wgHTTPProxy = "http://myProxyIp:Port";

$wgForeignFileRepos[] = array(

  'class'                   => 'ForeignAPIRepo',
  'name'                    => 'shared',
  'apibase'                 => 'http://commons.wikimedia.org/w/api.php',
  'fetchDescription'        => false, 
  'descriptionCacheExpiry'  => 43200, 
  'apiThumbCacheExpiry'     => 43200, 

);;

but i don't see images in articles only show me an empty box in the place of image and the rigth description , in debug log i see:

Http::request: GET http://commons.wikimedia.org/w/api.php?titles=Image%3ACommons-logo.svg&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata%7Cmime&prop=imageinfo&format=json&action=query

FileCache MISS for Commons-logo.svg Http::request: GET http://commons.wikimedia.org/w/api.php?titles=Image%3ACommons-logo.svg&iiprop=url&iiurlwidth=15&iiurlheight=-1&prop=imageinfo&format=json&action=query ForeignAPIRepo::getThumbUrl got remote thumb http://upload.wikimedia.org/wikipedia/commons/thumb/4/4a/Commons-logo.svg/15px-Commons-logo.svg.png ForeignAPIRepo::getThumbUrlFromCache could not write to thumb path Http::request: GET http://commons.wikimedia.org/w/api.php?titles=Image%3AWikibooks-logo.svg&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata%7Cmime&prop=imageinfo&format=json&action=query FileCache MISS for Wikibooks-logo.svg Http::request: GET http://commons.wikimedia.org/w/api.php?titles=Image%3AWikibooks-logo.svg&iiprop=url&iiurlwidth=15&iiurlheight=-1&prop=imageinfo&format=json&action=query ForeignAPIRepo::getThumbUrl got remote thumb http://upload.wikimedia.org/wikipedia/commons/thumb/f/fa/Wikibooks-logo.svg/15px-Wikibooks-logo.svg.png ForeignAPIRepo::getThumbUrlFromCache could not write to thumb path)

I have enable uploads to my local wiki and the permissions over image directory are 777 by now my math formula are working fine. in images/tumb are many folders with image names but empty. whats more i need to complet this please?


--Enriluis 20:28, 19 June 2009 (UTC) —Enriluis 20:28, 19 June 2009 (UTC)

[edit] getThumbUrlFromCache could not write to thumb path

configuring $wgForeignFileRepos

     * MediaWiki version: 1.15.0
     * PHP version: 5.2.6-1+lenny3 with Suhosin-Patch 0.9.6.2 (cli)
     * MySQL version: 14.12 Distrib 5.0.51a, for debian-linux-gnu
       (i486) using readline 5.2
     * URL: (local Intranet)

Hello all i'm trying set $wgForeignFileRepos to see remotes images on my local wikipedia adding the follows lines to my LocalSettings.php: To CURL request:

$wgHTTPTimeout = 3000; $wgHTTPProxy = "http://myProxyIp:Port";

$wgForeignFileRepos[] = array(

'class' => 'ForeignAPIRepo',

 'name'                    => 'shared',
 'apibase'                 => 'http://commons.wikimedia.org/w/api.php',
 'fetchDescription'        => false, 
 'descriptionCacheExpiry'  => 43200, 
 'apiThumbCacheExpiry'     => 43200, 

);;

but i don't see images in articles only show me an empty box in the place of image and the rigth description , in debug log i see:


       Http::request: GET
       http://commons.wikimedia.org/w/api.php?titles=Image%
       3ACommons-logo.svg&iiprop=timestamp%7Cuser%7Ccomment%7Curl%
       7Csize%7Csha1%7Cmetadata%
       7Cmime&prop=imageinfo&format=json&action=query

FileCache MISS for Commons-logo.svg Http::request: GET http://commons.wikimedia.org/w/api.php?titles=Image% 3ACommons-logo.svg&iiprop=url&iiurlwidth=15&iiurlheight=-1&prop=imageinfo&format=json&action=query ForeignAPIRepo::getThumbUrl got remote thumb http://upload.wikimedia.org/wikipedia/commons/thumb/4/4a/Commons-logo.svg/15px-Commons-logo.svg.png ForeignAPIRepo::getThumbUrlFromCache could not write to thumb path Http::request: GET http://commons.wikimedia.org/w/api.php?titles=Image%3AWikibooks-logo.svg&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata%7Cmime&prop=imageinfo&format=json&action=query FileCache MISS for Wikibooks-logo.svg Http::request: GET http://commons.wikimedia.org/w/api.php?titles=Image%3AWikibooks-logo.svg&iiprop=url&iiurlwidth=15&iiurlheight=-1&prop=imageinfo&format=json&action=query ForeignAPIRepo::getThumbUrl got remote thumb http://upload.wikimedia.org/wikipedia/commons/thumb/f/fa/Wikibooks-logo.svg/15px-Wikibooks-logo.svg.png ForeignAPIRepo::getThumbUrlFromCache could not write to thumb path)

I have enable uploads to my local wiki and the permissions over image directory are 777 by now my math formula are working fine. in images/tumb are many folders with image names but empty. whats more i need to complet this please? --Enriluis 20:54, 19 June 2009 (UTC)

[edit] Troubleshooting $wgAllowUserJs

  • MW: 1.13.4

As I set this global parameter $wgAllowUserJs, my wiki gets broken, rendering a blank page. Any idea? --almaghi 14:13, 22 June 2009 (UTC)

[edit] Exporting a portal in mediawiki

  • MediaWiki version: 1.15.0 
  • PHP version: 5.1.6
  • MySQL version: 5.0.45
  • URL: Not accessable

I have to take over the maintenance of a wiki powered by mediawiki. At the same time I have to move it to another server. The wiki contains two portals. At the new location it would be better to have two wikis instead of having two portals in one wiki. Is it possible to export the portals of the current wiki separately and to import them on the new server as two wikis?


194.237.142.20 08:20, 24 June 2009 (UTC)

[edit] Google indexes page links with redirect=no

  • MediaWiki version: 1.12.0
  • PHP version: 5.1.6 (apache2handler) 
  • MySQL version: 5.0.271.12.0
  • URL: http://www.cookipedia.co.uk/
  • The code for this wiki has been hacked around a bit but nothing (AFAIK) that would cause this behaviour.

Google indexes pages on this wiki that include "redirect=no" in the link so when the pages are followed from a search engine, the visitor sees a blank redirect page and is not redirected to the correct page.

As Google has already indexed 1000's of pages like this, ideally I would like to hack the core so "redirect=no" is ignored *unless* the referrer is from this wiki. A starting point for hackery would be gratefully recieved.

Example linkCookipediaChef 13:45, 7 July 2009 (UTC)

  • MediaWiki 1.15.0
  • PHP 5.1.6 (apache2handler)
  • MySQL 5.0.45
  • URL: INTERNAL


When searching for a word MakeShare, I created a page, it looks great.

when I searched/go makeshare it wanted me to create another page. Is it possible to make case sensitive words not matter? So when I search makeshre, it directs me to the page with MakeShare?

[edit] Removing extra line on article save

  • MediaWiki version: 1.16.0
  • PHP version: 
  • MySQL version: 
  • URL:

Does anyone know if there is a way to avoid MediaWiki automatically inserting an extra line at the end of an article upon saving? Specifically, I am trying to figure out a way to remove the "<p>  </p>" that is being spawned onto a page which includes a template which contains no actual text, only a category. —Bsmithme 03:32, 11 July 2009 (UTC)


[edit] MediaWiki Database Support

[edit] (Resolved) Wired Data after upgrading of Debian

After upgrading of debian 5.0 the whole wiki is getting wired. The databases tables itselfes look alright, and instaling a backupdatabase didn't help. What can i do ... ? Richard 212.51.25.1 Update: Upgrading from 1.11 to 1.14 didn't solve the problem.... Update2: Upgrading vom 1.11 to 1.14 with Database Update solved the problem. Everything up and running again :-). See "Upgrading Medawiki" for more information

[edit] [Solved] Database error when registered user or Admin try to modify Main page contents

Hello, I have a quite strange problem.

When a logged registered user or logged Admin try to modify the Main page contents he receive an error message: Sorry! This site is experiencing technical difficulties. Try waiting a few minutes and reloading. (Can't contact the database server: Unknown error (sql.4copter.com))

Any non logged user can modify the main page ! Registered users and Admin when logged can access to their pages.

It is a bug !

If I click on the edit link on the left side of the Main page , the hyperlink is something like http://www.mysite.com/mediawiki/index.php?title=main_page&action=edit&section=1

But if I click on the "modify" tab on the top menu of the same page hyperlink is something like http://www.mysite.com/mediawiki/index.php?title=main_page&action=edit

Without the final part of link "&section=1" the page can be modified also by registred user and Admin.

Why solved ? where ? I experienced the very same problem.

I will hide editsection until a solution will be found.

[edit] ipblocks table corrupt?

  • MediaWiki version: 1.12
  • PHP version: 5.2.4
  • MySQL version: N/A
  • Postgresql version: 8.3.1
  • URL: N/A (intranet)

I receive the following message when trying to describe table ipblocks "ERROR: expected "[" to start datum, but got "4 [ 1 0 0 0 ]})}"; length = 0".

The reason I noticed this is because database dumps are now failing.

[edit] Sorry! This site is experiencing technical difficulties.

I get this error when editing any page. But saving a new page is functional. *******(sitename) has a problem Sorry! This site is experiencing technical difficulties. Try waiting a few minutes and reloading. (Can't contact the database server: Unknown error (mysql6.000webhost.com)) '''Can any one please help?'''

Answer: there is a file in the main folder called 'LocalSettings.php'. This file contains your database username and password information. Check to make sure the credentials are correct - this solved my problem. I had a bad password.

[edit] Illegal mix of collations for operation after Upgrade

  • MediaWiki: 1.14.0 (upgrade from: 1.3.9)
  • PHP: 5.2.4 (apache2handler)
  • MySQL: 5.1.33-community
  • Url: test-machine @ home (Windows)

Live-Wiki (1.3.9) has charset=iso-8859-1 // (German)

I've got the following error on some pages: ... aus der Funktion „LinkBatch::doQuery“. MySQL meldete den Fehler „1271: Illegal mix of collations for operation ' IN ' (localhost)“.

I've upgraded via Web-Setup. Shell don't work. wgDBmysql5 is true ... false = no error, but i get problem with umlauts like äöü! The complete database has collation binary (manuelly set) and innodb (manuelly). After upgrade is sometimes innodb, myisam mixed or binary, latin1 mixed. I've tested some "install"-methodes (other settings) to upgrade - nothing work :(

What can i do?

[edit] Updating to 1.14

HI,

I upgraded to 1.14 today using ../maintenance/update.php and I have now an error when I want to view a page (in french) :

Erreur de syntaxe de la requête dans la base de données est intervenue. Ceci peut indiquer un bogue dans le logiciel. La dernière requête traitée par la base de données était :

   (Requête SQL cachée)

depuis la fonction « OutputPage::addCategoryLinks ». MySQL a renvoyé l’erreur « 1146 : Table 'wwmbxfdgchaton.wiki_page_props' doesn't exist (mysql5-7) »


Here my environment variables.

Please include all of the lines below when reporting installation problems.

   * PHP 5.2.9 installed
   * Found database drivers for: MySQL PostgreSQL
   * PHP server API is cgi; using ugly URLs (index.php?title=Page_Title)
   * Have XML / Latin1-UTF-8 conversion support.
   * Session save path (/tmp) appears to be valid.
   * PHP's memory_limit is 32M.
   * Couldn't find Turck MMCache, eAccelerator, APC or XCache; cannot use these for object caching.
   * Found GNU diff3: /usr/bin/diff3.
   * Found ImageMagick: /usr/bin/convert; image thumbnailing will be enabled if you enable uploads.
   * Found GD graphics library built-in.
   * Installation directory: /homez.150/wwmbxfdg/www/wiki
   * Script URI path: /wiki
   * Installing MediaWiki with php file extensions
   * Environment checked. You can install MediaWiki.
   *
     Generating configuration file...
   * Database type: MySQL
   * Loading class: DatabaseMysql
   * Attempting to connect to database server as wwmbxfdgchaton...success.
   * Connected to mysql 5.0.68-log; enabling MySQL 4.1/5.0 charset mode
   * Database wwmbxfdgchaton exists
   * Creating tables... done.
   * Initializing statistics...
   * Created sysop account JP.
   *
     Creating LocalSettings.php...
     Installation successful! Move the config/LocalSettings.php file to the parent directory, then follow this link to your wiki.
     You should change file permissions for LocalSettings.php as required to prevent other users on the server reading passwords and altering configuration data.


Thanks for your help.

[edit] Problem with MSSQL connection

  • MediaWiki version: 1.14.0 
  • PHP version: 5.2.9
  • MySQL version: 
  • MSSQL version: SQL Server 2005 Express edition
  • URL:

I have a setup where on one system I have MSSQL server 2005 express edition and on another system I have the wiki in IIS 5.1 on Windows XP Pro SP2 system. I have run the mediawiki setup on that system and also got the LocalSettings.php file also. Now when I try to open the mediawiki site I get only a blank page.

I did some debugging and found out where the problem is coming. The problem is in WebStart.php file in the line of code where we load the LocalSettings.php file. "require_once("$IP/LocalSettings.php");" Till this line every debug statements are printed but anything after this line is not getting printed. Can you please let me know what could be the problem and is there any solution or workaround?

  • Sounds like you're hitting a non-resolvable error; check the error log for details and post them back here if that doesn't clear up the problem for you?

59.163.223.130 10:37, 20 May 2009 (UTC)

[edit] Answer to Problem with MSSQL connection =

SQL Name: MYSQL Username: WHAT EVERY YOU USE TO LOGIN TO MYSQL Password:WHAT EVERY YOU USE TO LOGIN TO MYSQL DB Name: Somthing like "Wike" Make shour it is the name when you install.

[edit] Articles are not shown in the right Namespace

  • MediaWiki version: 1.13.3
  • PHP version: 5.2.8
  • MySQL version: 5.1.30
  • URL: intranet

Some weeks ago, I defined some customized namespaces and everything worked fine. But now I have a problem: Let's say one namespace I recently defined is called "NewNamespace". Now I want to create a new article within this namespace, let's say "NewNamespace:HelloWorld". Then what happens is, that the new article is stored in the (Main) namespace with title "NewNamespace:HelloWorld", but not in the "NewNamespace". The strange thing about it is, that the articles which are already in the "NewNamespace" still work fine, so I don't think that it's a problem with the namespace definition. Can you help me? Do you have an explanation for this?

PS: I checked about a hundred times that I don't have any typing errors within the article's name, so this easiest explanation drops out as well PSS: A friend of mine just told me that he has the same problem (he uses MW 1.14)

62.157.208.213 12:41, 3 July 2009 (UTC)

How did you go about "defin[ing] some customized namespaces"? What config variables have you set? Happymelon 13:39, 3 July 2009 (UTC)


[edit] PHP Error Support

[edit] Move wiki to new server with current MW, Fatal PHP error

  • MediaWiki version: 1.13.3
  • PHP version: 5.1.6-20
  • MySQL version: 5.0.45-7
  • URL: Classified (very literally, not a joke! ;-) )
  • OS: RHEL5

I need to move a wiki (1.10.0) from one machine to another, and at the same time upgrade MW to 1.13.3 After untarring MediaWiki, copying the contants of /images and restoring the database, attempting to access the wiki results in an error:

[Tue Jan 20 19:48:14 2009] [error] [client 192.168.1.2] PHP Fatal error: require_once() [<a
href='function.require'>function.require</a>]: Failed opening required '/var/www/html2/wiki/
LocalSettings.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html2/wiki/
includes/WebStart.php on line 97

[edit] [RESOLVED] Problem parsing EXIF data with foreign file repository

I have enabled $wgForeignFileRepos to use images from Wikimedia Commons, and while this functionality works generally, many images produce the following error: Warning: preg_match() expects parameter 2 to be string, array given in /home/jnsforum/public_html/jnswiki/includes/Exif.php on line 1086 several times; additionally, none of the EXIF data will display. —CaptOblivious 20:56, 10 June 2009 (UTC)

Upgrading to 1.15.0 fixed the issue entirely. --CaptOblivious 20:39, 24 June 2009 (UTC)

[edit] Parse error after changing logo

  • MediaWiki version: 1.15.0
  • PHP version: 5.2.6
  • MySQL version: 4.1.22-standard
  • URL: dbdawiki.xtremeaghosting.com/wiki.php5

I am trying to change the logo on my wiki page and I have done what it has said on the help pages but I am still getting a Parse error: syntax error, unexpected $end in /home2/dbdaw/public_html/wiki/LocalSettings.php on line 125. I am not sure what I am doing wrong but I would like to get this figured out.

71.158.223.96 00:33, 14 June 2009 (UTC)

Please remember to set an informative section title when posting threads here. That's an interesting problem. How many lines is your LocalSettings file? Does the problem go away when you remove or comment out the logo declaration? Happymelon 08:45, 14 June 2009 (UTC)
A common error is to forget the ";" at the end of the statement. You need to use $wgLogo = "/path/to/the/Logo.png"; instead of $wgLogo = "/path/to/the/Logo.png". iAlex 11:22, 14 June 2009 (UTC)

[edit] says I need to move config/LocalSettings.php to parent directory

  • MediaWiki version: 
  • PHP version: 
  • MySQL version: 
  • URL:

How do I locate this parent directory and how do I "move" config/LocalSettings.php to parent directory? I have Vista —75.84.213.176 08:21, 26 June 2009 (UTC)

Your MediaWiki installation is in a folder somewhere, call it path/to/mw. Within that folder, MediaWiki is organised into a number of folders, like /includes, /api, etc. One of these folders is called /config, and contains your newly-created LocalSettings.php. You need to move this file from path/to/mw/config/LocalSettings.php to path/to/mw/LocalSettings.php to complete the installation. This is a security check to ensure that the person installing the wiki has shell access to the web server. Hope this clarifies. Happymelon 17:41, 28 June 2009 (UTC)

[edit] [RESOLVED] Using MediaWiki 1.15.0 with PHP 5.3.0

I'm using MediaWiki 1.15.0. The server, on which my MediaWiki is installed, has been updated to PHP 5.3.0 and now I have some trouble with it. Before the PHP update all URLs had the usual structure like http://www.50er-forum.de/wiki/index.php/Hauptseite. But now all URLs have this structure: http://www.50er-forum.de/wiki/index.php?title=Hauptseite.

If one manually enters the URL of a subpage like http://www.50er-forum.de/wiki/index.php/Subpage, he's automatically redirected to the Main Page (http://www.50er-forum.de/wiki/index.php?title=Hauptseite).

So, the former structure of the URLs before the PHP update doesn't work anymore as it did before.

Is this a general problem of MediaWiki 1.15.0 with PHP 5.3.0 or do only I in my wiki have that problem?

Thanks in advance. --Plati123 16:04, 7 July 2009 (UTC)

This can be the case if PHP's SAPI changed (which is now "cgi-fcgi" and disables short urls), but you can force by setting $wgUsePathInfo = true; in LocalSettings.php. iAlex 16:38, 7 July 2009 (UTC)
Thank you very much, it works fine. ;) --Plati123 17:16, 7 July 2009 (UTC)


[edit] Uploading Support

.TMP File issue?


Mediawiki Version: latest, PHP version Latest mySQL latest --- When Users try to upload images onto the wiki, they get a error that states "Cannot find C:\WINDOWS\TEMP\PHP"X" Whereas X indicates a letter (currently PHPc.tmp) I've disabled Imagemagic(sp?) and I am still getting an error. Can I remote host the images and what tag would I use to embed it?

[edit] (Resolved)Zip Files can't be uploaded

  • MediaWiki version: MediaWiki 1.14.0
  • PHP version: PHP 5.2.6 (apache2handler)
  • MySQL version: MySQL 5.0.67
  • URL:

Italic text

Since 1.14 it isn't possible to load any zip files in the system. Do have a solution to load zip files to mediawiki?

See aslo my Localsettings.php and the orginal error message

A part of my Localsettings.php

$wgEnableUploads = true; $wgCheckFileExtensions = true; $wgFileExtensions = array('png', 'zip', 'jpg', 'jpeg', 'ppt', 'doc', 'xls', 'pdf', 'gif', 'tiff');


Error Message from IE:

Upload warning Files of the MIME type "application/zip" are not allowed to be uploaded.


194.7.161.147 09:34, 24 April 2009 (UTC)

Adjust $wgMimeTypeBlacklist. —Emufarmers(T|C) 00:30, 25 April 2009 (UTC)
  • MediaWiki version:
  • PHP version:
  • MySQL version:
  • URL:

nature of zonouz


A study on Zonouz nature


What should i change in the Localsettings.php? Can you please help?

[edit] Very slow uploads and non-starting uploads

  • MediaWiki version: 1.14.0
  • PHP version: 5.2.6
  • MySQL version: 5.0.67
  • URL: localhost, release soon
  • OS: Mac OS 10.5.6

Sometimes, far too often, upload slows to the point of just not working. It seems that the page gets stuck updating, nothing is uploaded. This happens via localhost as well as when logged in from an external. I have rather a lot of data to upload so this is something of an issue for me.

130.237.175.237 15:00, 7 May 2009 (UTC)

  • MediaWiki version: 
  • PHP version: 
  • MySQL version: 
  • URL:

I setup mediawiki on my server not too long ago. I enabled the image upload feature, however, when I upload am image and try to use it in a page I get thi error: The requested URL /images/9/97/Jade-head.jpg was not found on this server.

Can someone provide help here?


76.29.127.133 04:14, 11 May 2009 (UTC)

[edit] Problem with Picture Upload / Picture Preview

Moved from Project:Forum Happymelon 21:48, 19 May 2009 (UTC)

Hi,

i have following Problem on my wiki-Project: [1]

I get following message: Fehler beim Erstellen des Vorschaubildes: <br /> <b>Warning</b>: passthru() has been disabled for security reasons in <b>/www/htdocs/v089483/sticker/sammelbildwiki/includes/GlobalFunctions.php</b> on line <b>2131</b><br />

This is the Line 2131 of globalfunctions.php: passthru( $cmd, $retval );

I´m not very good in PHP, so i don´t know what to do. Someone can help me?

Kind Regards,

--SVWRamius 11:15, 9 April 2009 (UTC)

PS: Wenns jemand auf deutsche erklären könnte wäre das wirklich nice. :-)

  • MediaWiki version: 1.14
  • PHP version: 5.2.8
  • MySQL version: 4.1.22
  • URL:

My site has safe_mode set to On so I followed the instructions from http://www.mediawiki.org/wiki/Safe_mode#Image_upload_and_deletion_workaround and I'm still getting the classical upload error: The upload directory (public) is not writable by the webserver.

Images folder has 755 and images/archive, images/temp, images/deleted, and images/thumb directories have 777.

Somehow I got it to work (reuploading all files) but now thumbnails aren't working (they are not shown even source image exists on the server.

How can I fix it? Thanks


69.116.169.102 13:12, 20 May 2009 (UTC) Bogdan bog_tom@yahoo.com

[edit] (RESOLVED) Upload page doesn't upload anything... same with export page.

  • MediaWiki version: 1.15.0
  • PHP version: 5.2.9
  • MySQL version: 5.0.77


Absolutely no clue what the problem is. I try to upload a file, image, doesn't matter what, and the Upload page just comes back like a blank form, as if nothing had been done. I checked everything possible... error logs, PHP errors (not sure I did that correctly however), folder permissions for 'images', nothing works. Some one else had the exact same problem, but you never answered. Does anyone have some sort of solution?

Oh yeah, and unlike everybody else, I have no folder under 'images', if that helps.

And please, at least try to give an answer. Don't skip over it like you seem to do to every other problem... 99.252.59.196 02:24, 18 June 2009 (UTC)

Everyone here is a volunteer, we donate our time and bandwidth to creating and supporting free software and free content. Everyone will work on what they choose to work on; no one can require us to work in one particular area. If there is no response to this issue, it is because no one who knows what the solution is has chosen to review the support desk threads. Accusing people of "skipping over it like you seem to do to every other problem" is offensive and actively discourages such volunteers from wanting to help you. Happymelon 08:34, 18 June 2009 (UTC)
Alright, sorry, I've been trying to figure this out for three days now and was up all night in forums and the IRC chat trying to get help but everyone seems to ignore me. Kind of lost it here, seeing that many problems were overlooked, including a guy with an exact problem to mine in the archives. 99.252.59.196 12:55, 18 June 2009 (UTC)
Ok, at least you took the time to read the archives, which is more than many people manage. You say you've looked at the error logs, presumably without finding anything useful. Have you enabled extended debugging? There are a lot of switches you can flip to get more information about what's going on inside the clockwork; have a read of Manual:How to debug if you haven't already, and see if there's any more information you can squeeze out of it. Happymelon 13:06, 18 June 2009 (UTC)
I looked around a little, not sure how to do extended debugging, however I flipped on $wgShowDebug, and when trying to upload, nothing shows. The other guy in the archive couldn't debug anything out either, it was as if nothing was wrong. Although again, would it have to do with the fact that I have no subfolders under my 'Images' folder? Wasn't it supposed to be created during the installation, or was it supposed to be done when my first images upload?
I could try creating them myself, maybe that's what the form is looking for... don't know the folder names though. And thanks for the help. 99.252.59.196 15:31, 18 June 2009 (UTC)
$wgShowDebug will just add stuff in an HTML comment at the end of the page, assuming that the thread gets far enough through the process to actually start rendering the page, which it sounds like it isn't. Try enabling PHP errors if they're not already, and the debug log (How to debug#Logging) to get data that's not dependent on the process actually finishing. Happymelon 15:36, 18 June 2009 (UTC)
Enabled PHP errors, nothing, tried to create a log, didn't seem to be working (have a feeling I didn't do that right though...) 99.252.59.196 15:56, 18 June 2009 (UTC)
If it worked, it will get tons of stuff poured into it on every page view, successful or not. So if the log stays empty when you view or do things to the wiki, it's not set up right. Happymelon 16:07, 18 June 2009 (UTC)

Well the instructions are rather vague. "after the invocation of DefaultSettings.php" means what exactly? Is there a specific place in Localsettings I have to add $wgDebugLogFile? Because right now, there is no log file. 99.252.59.196 19:36, 18 June 2009 (UTC)

Ahh, whatever. I'm sick of this problem, so I'll reconfigure my whole wiki... I'll see if it solves the problem.

EDIT: Found the solution: People with this problem shortened the URL link with the wrong codes. They have to follow the instructions here. 99.252.59.196 20:54, 18 June 2009 (UTC)

  • MediaWiki version: 
  • PHP version: 
  • MySQL version: 
  • URL:

How can I upload excel, word, pdf etc. without using the conversion function via html?

[edit] Potential bug in FSRepo.php causes image uploads to fail on Windows server: Internal error - Could not create directory

  • MediaWiki version: 1.15.0
  • PHP version: 5.1.6 (apache2handler)
  • MySQL version: 5.0.45-community-nt
  • URL: index.php?title=Special:Upload (on a private wiki)

I've been trying to debug file uploads on my Windows server. After going to Special:Upload and uploading a jpg (an allowed format) it would die with something like this:

Internal error

Could not create directory "public/a/a5".

It would also generate a PHP error:

Warning: mkdir() [function.mkdir]: No such file or directory in <my server path>\includes\GlobalFunctions.php on line 2012

I did some debugging and mkdir is called by wfMkdirParents() which in this case is called by publishBatch() in FSRepo.php line 298:

                        if ( !is_dir( $dstDir ) && !wfMkdirParents( $dstDir ) ) {

I think the $dstDir path is not a valid one on the Windows server because the path is constructed manually in publishBatch() using forward slashes ("/"), so what gets eventually passed to mkdir is something that looks like this:

C:\my\path\htdocs\mediawiki/images/a/a5

I added this statement to GlobalFunctions.php at line 2011 to fix the path:

        $dir = str_replace('/', '\\', $dir);

So $dir was changed to something like this:

C:\my\path\htdocs\mediawiki\images\a\a5

This solved my problem and I was able to upload files. Perhaps FSRepo.php needs to be more sensitive to servers that require a backslash as a path separator? Or is there a better way to fix this problem?

I am not running PHP in safe_mode and I have left $wgHashedUploadDirectory defaulted to true.

cheers, Dave
--Dmarwick 05:42, 1 July 2009 (UTC)

[edit] Change File Upload Destination to different partition on server

  • MediaWiki version: 1.14.0
  • PHP version: 5.2.9-1
  • MySQL version: 5.1.32
  • URL: private

I have a server that I set up MediaWiki on. Unfortunately it was installed in the C: partition that doesn't have much extra space. So, I'd like to point the file upload path to another partition (D:) on the server. I would appreciate any help you can provide. Thank you.


Arsajm 17:27, 9 July 2009 (UTC)


[edit] Image Support

[edit] Error creating thumbnail

After upgrading from Mediawiki 1.13 to 1.14, I have an "Error creating thumbnail:" without any further information. I use ImageMagick 6.2.4. My local settings are: $wgUseImageMagick = true; $wgUseImageResize = true; $wgImageMagickConvertCommand ='/usr/bin/convert';


130.92.9.58 12:24, 12 May 2009 (UTC)

[edit] How to change the default 180px thumbnail size for non-logged in users?

  • MediaWiki version: 1.14.0
  • PHP version: 5.2.9
  • MySQL version: 5.0.67
  • URL: n/a

I was wondering whether it is possible to change the default 180 pixels thumbnail size for non-logged in users. Registered users can do this through their preferences and the admin can change the available settings through $wgThumbLimits. But what about users without account? I know I could add a specific size parameter to each thumbnail image, but the 180 pixels must be set somewhere in the MediaWiki code.

My wiki is not yet "live", but the test users find the 180 pixels thumbnails just a tad too small. Since most readers will be lurkers without account, I'd like to increase the size a bit to make the thumbs a bit more useful to these users. Any tips/advice? —81.82.72.97 21:53, 28 May 2009 (UTC)

Set $wgDefaultUserOptions['thumbsize'] = 2; where the value "2" is the index of the relevant setting in $wgThumbLimits. By default the ThumbLimits is:
$wgThumbLimits = array(
	120,
	150,
	180,
	200,
	250,
	300
);
So setting to "3" would make the default option 200px; of course if none of the options there are suitable, you can simply add in your own value at the appropriate place, and link to that. Hope this helps, it's a bit complicated I know, but that's how the cookie crumbles... Happymelon 22:14, 28 May 2009 (UTC)
That's it! Thank you! Once you know how it works, it makes sense but I could have searched for that for years without your help... —81.82.72.97 06:05, 29 May 2009 (UTC)

[edit] Cannot allocate memory error while displaying thumbnails of larger images.

When including images which need to be resized on the fly I am getting this error instead of the resized image.

"Error creating thumbnail: libgomp: Thread creation failed: Cannot allocate memory"

However, smaller images render just fine. I have tried putting a php.ini file in the home directory and increasing the memory_limit to as large as 8gigs and it still did not correct the problem.


69.250.233.187 23:17, 13 June 2009 (UTC)

I love it when I answer my own questions only seconds after posting for support and hours after trying everything. All I had to do was use GD which was done by setting $wgUseImageMagick = false; in my LocalSettings.php file.

[edit] Updating new versions of existing files

Moved from Project:Forum Happymelon 08:28, 19 June 2009 (UTC)

I don't know if this is the right place to post but my company has a wiki we use internally that is a MediaWiki and I am having trouble getting it to recognize and link to a new version of an existing file. So say it is a report that I add to with more data every few weeks but has the same name, I upload the new version and even retype the link and it still goes back to the old report. any advice on how to make it work so I don't have a million versions of what is essentially the same document? thanks —The preceding unsigned comment was added by 206.159.134.3 (talkcontribs) . Please sign your posts with ~~~~! (6/18/2009)

When you view the file description page, does it show the curent version of the file? Have you tried null-editing (editing and saving with the same content or a trivial change) the file description page? Happymelon 08:31, 19 June 2009 (UTC)

Is the File History page the same as the File Description page? If so, then it does. I am not really sure what null-editing is or how it relates to this but these files are word or excel documents that we link to where I make very small updates and changes to every few weeks as more data comes in, they're reports that build on itself. Sorry, I'm really new to this so I am don't even know the right language or anything, this was just sort of dropped in my lap. Andrea 6/19/2009

Yes, the file description page is the page you reach when you follow a link like File:Example.png. Essentially what a null-edit does it to force the page to be rebuilt from scratch (and makes a note for all descendent pages, such as pages that include the file, to be rebuilt in the same way.
Hang on a minute, though. How are you making these links? You can't 'thumbnail' Excel documents into pages, you'll only get a link. Are you linking to the file description page using wikimarkup (like [[File:MyExcelReport.xls]])?? Or are you linking to the file directly (using an external link like [http://my.url.com/wiki/various/directories/and/random/numbers/MyExcelReport.xls])?? If the latter, then this is the expected behaviour: every version of a file that you upload is stored separately - that's the wiki way - and the software automatically keeps track of which one is the 'current' version and displays that on the file description page. Which method are you using? Happymelon 12:45, 19 June 2009 (UTC)

Our links are as Media:Name_of_Report.doc and when you click it opens the word/excel file. I just upload the file and I create that link and it works. Is that a wikimarkup? When I reupload a file of the same name the File History page shows all the uploads of it and displays the date and time of the last upload and says current, but when I click on the link on the page, the old version pops up, even if I re-enter the link to it. Should I be linking to it in a different way? We're wiki-novices here that were given a quick run-down but are trying to figure this all out on our own now. Thanks for your patience with this. Andrea 6/19/2009 8:55 EST

Ah, I see, and yes, that is wikimarkup and should work corectly. And you say that the links don't update, even if you edit the page containing the link and resave it? That is a bit bizzarre. If you add another link to the same document on the same page, does the new link point correctly? Does adding the new link make the first link also work? Happymelon 13:16, 19 June 2009 (UTC)

That is correct, it's not updating them, even if I add another link to the same page, all links will go to the older version of the document. Does that mean this is somehow a glitch and its not operation correctly? Andrea 6/19/2009 10:21 EST

Well that ain't right :D... What caching settings are enabled on your wiki? There are a whole host of different components - see Manual:Cache - variables like $wgUseParserCache, etc. Which do you have enabled? Also, can you give the MediaWiki/SQL/OS/Server versions, like other threads on this page? Happymelon 07:39, 20 June 2009 (UTC)

Sorry, I've been outta the office for a bit. Bear with me as I am not technical at all, the cache settings are a long list but that Parser Cache settings are: $wgEnableParserCache, $wgRenderHashAppend, $wgParserCacheExpireTime, and $wgParserCacheType -- is this in any way helpful to you? where do I find the MediaWiki/SQL/OS/Server versions? The OS is Windows XP... sorry that I know so little. Can updating a file really have to do with cache settings? Andrea 6/25/2009 8:47 EST

Either your browser or the server might be caching the file; purging the article where you link to the file (and possibly also the file "article") should fix this. You may also need to try bypassing your browser cache. —Emufarmers(T|C) 19:39, 27 June 2009 (UTC)

[edit] ImageMap not working, neither RandomImage

  • MediaWiki version: 1.13.4
  • PHP version: 5.1.6 (apache2handler)
  • MySQL version:  5.0.22
  • Extensions:
  • LocalSettings for images:
$wgEnableUploads = true;
$wgStrictFileExtensions = false;
$wgFileExtensions = array( 'svg', 'doc', 'gif', 'xls', 'avi', 'mpg', 'mpp', 'pdf', 'zip', 'mm', 'gz', 'tar', 'xml', '7z' );
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
$wgUploadSizeWarning = false;
$wgMaxUploadSize = 1024*1024*1000; // 1Go upload permission
$wgCheckFileExtensions = false;
$wgVerifyMimeType = false;         // Disable mime type detection

The use of <imagemap> tags causes the page to be blank, without any error message on screen.

The <randomimage/> tag is not printed on screen neither an image is displayed, but the page is served.

What should I do to be able to debug it? —almaghi 12:14, 1 July 2009 (UTC)

[edit] Corrupt files after uploading error

A week ago I attempted to upload a new copy of two images (image 1, image 2). At the time some error came up about the temp directory and I thought that I would come back to it later and work out what was going on. Well, I have come back to it and forgot to record what the error was. So I have been trying to recreate it, but can't. That is fine, however, those two files that failed do not display when you go to their page and on the page they are displayed on, it fails to load as well. Any suggestions on what I should be looking at to find out what is going on? Or even better, do you have an idea on what is going on? —Dr DBW | talk 01:50, 8 July 2009 (UTC)

[edit] Image Security for Dummies?

I'm really confused by all of the info on image security... I don't know much about directory permissions (read: essentially nothing), don't use any of the text-based operating systems that seem to be assumed, and am just generally confused by the info. Is the default configuration (that is, the file types being strictly restricted to jpg, jpeg, png, and gif) enough, if I don't enable other formats? What could happen? In essence: How do I go about securing uploads on Windows Vista, or are the secure as-is? (my wiki is currently just locally-hosted, not live on the web, using MW 1.15.0). Thanks! --Drilnoth 01:35, 9 July 2009 (UTC)


[edit] Formatting Support

[edit] Existing pages with table code doesn't work in mediawiki 1.13.2

  • MediaWiki version: 1.13.2
  • PHP version: 5.2.6
  • MySQL version: 5.0.51a
  • URL: localhost

I have upgraded mediawiki version 1.10.0 with 1.13.2. I have executed update.php and refreshLinks.php. But the pages which have table code has broken. The data is in text table. All the pages are working good with 1.10.0 version. But doesn't work with 1.13.2.

So, I have edited the page which was not working on 1.13.2 and copied the data from other system where it is working with 1.10.0 and saved the changes. but the page is not saving properly and it is removing the '|' and also placing some extra characters to the data.

Even the table format is good also the page is not getting displayed in tabular form.

It works good when i create a new page with table format.

Please help me that what's wrong with version 1.13.2 that doesn't support existing page table code? —The preceding unsigned comment was added by 208.88.84.10 (talkcontribs) 20:49, 31 December 2008. Please sign your posts with ~~~~!

I really need your help in finding this problem. Actually, it looks like there is some encoding problem some where with mediawiki version 1.13.2. This is corrupting the page display. If you are already aware of the problem then please let me know what could be the solution? —The preceding unsigned comment was added by 208.88.85.100 (talkcontribs) 18:21, 13 January 2009. Please sign your posts with ~~~~!

[edit] nowiki tags appear

  • MediaWiki version: 1.13.3
  • PHP version: 5.5
  • MySQL version: 5
  • URL:

Hi all,

I have a certain issue which makes < nowiki ></ nowiki > appear on the results of an mssql query below are the source

{{{1}}}

[edit] Fixed Issues

The table below lists all issues fixed since the last release. {{#mssql: 10.5.1.5 | WikiUser | Redmap | TrackPlus360 | Select [Issue Number], Subsystem, Build, Synopsis FROM ReleaseNotes WHERE (Project LIKE '{{{1}}}') AND ([Release Scheduled] LIKE '{{{2}}}') AND ([Release Scheduled] NOT LIKE [Release Noticed]) ORDER BY [Issue Number]}}

[edit] include a path and transfer a excel table

  • MediaWiki version: 1.13.2
  • PHP version: 5.2.0-8+etch13 (cgi-fcgi)
  • MySQL version: 5.0.32-Debian_7etch8-log
  • URL:

Hello I'm trying to include the path on the top of a site (example wiki>help>diskussions>). Are there a command?
I'm looking for a tool to transfer excel tabel in a wiki table?
Thanks for help —The preceding unsigned comment was added by 212.101.18.161 (talkcontribs) 08:23, 22 January 2009. Please sign your posts with ~~~~!

[edit] RecentChanges Filtering

  • MediaWiki version: 1.13.2
  • PHP version: 5.2.8
  • MySQL version: 5.0.45
  • URL:

Hi, we're using MediaWiki for organisation of our campus group. I added "{{Special:Recentchanges/10}}" to our mainpage so that every user is advised of new topics. My problem is that that articles of a certain category are changed much more frequently than others. It doesn't make sense to get informed about changes in this categories' articles. How can I filter this category? On the RecentChanges Page itself it is possible with "$wgAllowCategorizedRecentChanges" but I don't know how to use it on our mainpage.

Thank you!


Trop 18:39, 11 June 2009 (UTC)

[edit] (resolved) Problem with a template, I want empty/unused variables to leave blank spaces not {{{foo}}}

I'm trying to write a simple template which will create a table. Each variable is to contain only the URL to a link which is to go into the table. All the other formatting is to be done by the template (putting the link in square brackets and giving it a name). I can get all that to work so long as all the variables are filled in at on the wiki using the template. What I haven't been able to do, and I've been trying to use parser functions to do it, is to have empty cells in the table (instead of {{{wikipedia}}} or whatever) when a variable is empty. I tried using the #if function and I think I used it correctly, but it doesn't seem to work with variables.

The reason I'm doing this instead of just doing it manually is that there will potentially be many links per page when this wiki I started gets going (*crosses fingers*) and I want to start organizing the common, big sites now, keeping them in the same order.

There's probably a simple answer to this but I haven't found it in the help pages I've read...

Thanks for your time

Khono 00:33, 22 June 2009 (UTC)

Still looking for an answer. Khono 03:17, 8 July 2009 (UTC)
You can specify a default value for when a parameter is not defined: {{{param|foo}}} displays "foo" when the parameter is not defined in the template. So you probably need {{{param|}}}, to give an empty default. Is this what you're looking for? Happymelon 10:46, 8 July 2009 (UTC)
While that gets rid of the {{{foo}}} it's not appropriate for what I'm trying to do. I'm trying to make the template accept only the URL, since everything else is style and we may (and likely will 'cause it looks horrible now) change what we do with that URL. I currently put square brackets around it to make it a link, so leaving it blank results in: "[ Wikipedia]" instead of the goal of just: "Wikipedia". So I'd want to be able to leave out all the supporting code around that parameter if the parameter's empty. Thanks anyway, though :) Khono 13:34, 9 July 2009 (UTC)

You could also use this and make your templates a living nightmare :) | #ifeq usage
something to look at as far as usage, i have about 20 templates that have required fields which are shown in the black box below but the optional fields are invisible but are still in the template format when someone uses them, i even went so far as to nest conditional fields for the template even if someone uses the field, it wont show unless there is another field that is used first. This is to show you how complex you can build a template and this is a light complexity compared to what i have seen on other wikis.
You can go here and view the source to get a better understanding of this templates customizable attributes
If you have any questions, just send me a email through my account Goldbishop 12:54, 8 July 2009 (UTC)
[[Image:{{{name}}}.jpg]] [[Items/{{{type}}}/{{{name}}}|{{{name}}}]]
Tier: {{{tier}}} Points Earned: {{{pts}}}
Tool Required: {{{tool}}}
Facility Required: None
Ingredients:
[[Image:{{{ingred1}}}.jpg]] {{{num1}}} [[Items/Craft/Component/{{{ingred1}}}|{{{ingred1}}}]]
Hah, thank you very much, Goldbishop! It's now working as I intended and without too much pain! I'm fine with using these parser functions. I didn't have much luck using them before and I didn't find any useful examples of the #if functions until you showed me yours. I looked at the code for the only other template I could think of that showed different content based on what was entered and it's RIDICULOUSLY!! complex.
I do have some questions, though. The link you gave to the documentation of #ifeq shows different.. umm, code structure than you used in your example. In your example you wrote:
| {{#ifeq:{{{ingred2|}}}| | | [[Image:{{{ingred2}}}.jpg]] {{{num2}}} [[Items/Craft/Component/{{{ingred2}}}|{{{ingred2}}}]]}}
Which, if I understand correctly, can be described as:
| {{#ifeq: value 1 | value 2 | then do this | else do this}}
The documentation you linked to doesn't mention an else function and it uses a | before the first value instead of a :. While it seems I understand since I got my template to work (see the links I posted in the original question if you care to see), I am curious as to why the discrepancy. Again, thanks so much, you made my day :) Khono 14:19, 9 July 2009 (UTC)
The #ifeq: parser function is from the ParserFunctions extension. Happymelon 14:31, 9 July 2009 (UTC)
Cool, thanks again, Happy-melon. Khono 15:27, 9 July 2009 (UTC)

[edit] Displaying the true (raw) content of a parameter inside a template

  • MediaWiki version: 1.14.0
  • PHP version: 5.2.9-1 (apache2handler)
  • MySQL version: 4.1.22-community-nt
  • URL:

I want to pass wiki code in a parameter to a template.

The template has to display the parameter's wiki code in two ways:

  1. As code (raw text as it is given by the parameter)
  2. As normal wiki output (the normal output that comes from the code in the parameter)

Normal wiki output is easy: I simply write {{{1}}} inside the template: The code inside this parameter is automatically converted to wiki output.

But I don't know how to display the parameter's "raw" value.

For example, I call the following template:

{{example_template
|
* line 1
* line 2
}}

If I use

{{{1}}}

in the template, the following output is done:

  • line 1
  • line 2

Now, how to I get the template to show the "raw value" of the parameter:

* line 1
* line 2

If I use this:

<pre>
{{{1}}}

I only get:

{{{1}}}

If i use:

<code>
{{{1}}}
</code>

I only get:

  • line 1
  • line 2

with Courier New font.


Thanks

Frank

213.221.89.78 14:20, 22 June 2009 (UTC)

[edit] Response

Hey Frank, Have you made a Template page of what your trying to do? The way to do what you are doing is to first create a page Template:Something.

On this page type in your format as such

{| border=1
|-
|{{{1}}}
|-
|{{{2}}}
|}

Then when you are trying to use it this is your wiki format:

{{Something
|1=There
|2=Elswhere
}}

Then it will spit out this:

There
Elsewhere

Let me know if this works for you, i did this on the fly and havent done templates for my wiki in a while (got them done first and then left them alone). Goldbishop 15:35, 3 July 2009 (UTC)

[edit] (Resolved) Custom skin does not work after upgrade

Hi,

I have upgraded our wiki from version 1.13 to 1.15.0 and, then, our custom skin stopped working (the pages were displayed with no css at all). The skin was made of files wiki/skins/Plee.php, wiki/skins/Plee.deps.php and the directory wiki/skins/plee. Everything was copied from the monobook skin and the colors were modified. I finally made things working by copying the file wiki/skins/plee/main.css in the MediaWiki:Plee.css page. Nevertheless, I still can't make external links working properly. The picture external.png never shows with the links (but there is an empty place for it).

Second point, the source code displayed with the SyntaxHighlight_Geshi extension has different margins if I use line numbering (see [2]).

Regards,

Julien Jorge 16:58, 26 June 2009 (UTC)

Resolved by copying the new code of the MonoBook skin. —Julien Jorge 12:27, 30 June 2009 (UTC)

[edit] Template's CSS styles not rendering all of a sudden?

  • MediaWiki: 1.15.0
  • PHP: 5.2.9
  • MySQL: 5.0.81


Everything was working fine, I was editing some article categories and uploading some images, and when I went to randomly test out the $wgReadOnly variable ($wgReadOnly = 'Maintenance, be back soon...';), it didn't seem to work, and instead all of my templates' CSS styling codes stopped rendering. The site skin worked, the images were good, just simple stuff like table background color showing as style="background:#0066CC; color:Black;" width=750 align="center" instead of modifying the text / background. Why is this? I turned the $wgReadOnly off and still nothing, reconfigured my LocalSettings.php back to default, nothing, cleared my cache, nothing. Although the table borders are fine...

In a normal wiki, it would show this:

This page is currently under Level 1 protection.
Anyone can edit this page / category.

But instead it shows this:

style="background:#00CC00; color:Black; font-size: 2.5" width=750 align="center" | This page is currently under Level 1 protection.
Anyone can edit this page / category.

Can anyone help? 99.252.59.196 02:31, 28 June 2009 (UTC)

Alright, I found that if you removed the second pipe from the "rowspan" line, it rendered. However, it used to render with or without it. Is that going to be a problem for future templates of that kind? 99.252.59.196 02:47, 28 June 2009 (UTC)

[edit] Help with templates and basically everything

  • MediaWiki version: 1.15.0
  • PHP version: 2.11.9.5
  • MySQL version: 4.1.22
  • URL: www.mysite.com


Can anyone lay out a simple explanation of how I put info boxes and things on my wiki? The tutorials on here really make no sense and there is no good one out there.

Basically, I want to make it have everything wikipedia has on their website.

RTFM. I'm afraid no one is going to help you with a 'problem' like this, because you haven't demonstrated any effort to help yourself. There are hundreds of pages of tutorials, help guides, Q&As, FAQs, template documentation notes, and other useful information, available on this website, enwiki, and (just a Google search away) on dozens of other sites. "everything wikipedia has" has been built up over eight years by a team of thousands of editors. Learning how it all works is a gradual process, not one that you can expect to master instantly. If you have specific queries about particular features or markup, we're always here to help. But your question is essentially "how do I write a wiki", the answer for which comprises this entire site. Happymelon 15:30, 3 July 2009 (UTC)

Tab01 04:45, 3 July 2009 (UTC)

Sorry, I should have clarified my question. Obviously I can't make mine look exactly like Wikpedia. I simply wanted the infoboxes that way I can create my own. I've went through and edited the LocalSettings.php to include the parser function and added it to the extension folder. There is no good template out there on what to actually edit or include into your site to allow it to read infoboxes. At least I have found a single good tutorial on how to do it.
Here are a bunch of examples of templates. I looked at a few and they seem pretty simple yet there are various types with different appearances. Perhaps these will help you out. If you use these examples along with the tutorials for writing Templates, I believe you will learn how to make your own. Khono 09:09, 10 July 2009 (UTC)

[edit] Sidebar and JS

  • MediaWiki version: 1.15
  • PHP version: 5
  • MySQL version: 5
  • URL: sl3d.woodassoc.us

I am trying to develop my sidebar through the Common.js page. I have added 2 sections programmatically through the javascript page and was wondering, if it was possible to make the sidebar sections conditional. By this i want to have something like this.

* SEARCH
 
* navigation
** mainpage|mainpage-description
** Design|Design
** Concepts|Conceptual
** Layout|Layout
** Production|Production
 
if $userrights='sysop' or $userrights='bureaucrat' then
* project
if $userrights='sysop' or $userrights='bureaucrat' or $userrights='coder' then
* Source
 
* Information
** portal-url|portal
** currentevents-url|currentevents
** recentchanges-url|recentchanges
** randompage-url|randompage
** helppage|help
 
* TOOLBOX
 
* LANGUAGES

If thats not possible in the MediaWiki:Sidebar page then can i do that in the Common.js page. Here is my current code segment that deals with the sidebar.

function ModifySidebar(action, section, name, link) {
    try {
        switch (section) {
          case "languages":
            var target = "p-lang";
            break;
          case "toolbox":
            var target = "p-tb";
            break;
          case "navigation":
            var target = "p-navigation";
            break;
          default:
            var target = "p-" + section;
            break;
        }
 
        if (action == "add") {
            var node = document.getElementById(target)
                               .getElementsByTagName('div')[0]
                               .getElementsByTagName('ul')[0];
 
            var aNode = document.createElement('a');
            var liNode = document.createElement('li');
 
            aNode.appendChild(document.createTextNode(name));
            aNode.setAttribute('href', link);
            liNode.appendChild(aNode);
            liNode.className='plainlinks';
            node.appendChild(liNode);
        }
 
        if (action == "remove") {
            var list = document.getElementById(target)
                               .getElementsByTagName('div')[0]
                               .getElementsByTagName('ul')[0];
 
            var listelements = list.getElementsByTagName('li');
 
            for (var i = 0; i < listelements.length; i++) {
                if (listelements[i].getElementsByTagName('a')[0].innerHTML == name ||
                    listelements[i].getElementsByTagName('a')[0].href == link) {
 
                    list.removeChild(listelements[i]);
                }
            }
        }
 
    } catch(e) {
      // lets just ignore what's happened
      return;
    }
}
 
function CustomizeModificationsOfSidebar() {
    ModifySidebar("add", "source", "Design", "http://sl3d.woodassoc.us/wiki/Source:Design");
    ModifySidebar("add", "source", "Conceptual", "http://sl3d.woodassoc.us/wiki/Source:Conceptual");
    ModifySidebar("add", "source", "Layout", "http://sl3d.woodassoc.us/wiki/Source:Layout");
    ModifySidebar("add", "project", "Design", "http://sl3d.woodassoc.us/wiki/Silverlight_3D:Design");
    ModifySidebar("add", "project", "Conceptual", "http://sl3d.woodassoc.us/wiki/Silverlight_3D:Conceptual");
    ModifySidebar("add", "project", "Layout", "http://sl3d.woodassoc.us/wiki/Silverlight_3D:Layout");
}
 
addOnloadHook(CustomizeModificationsOfSidebar);

As i am not sure how the wiki stores the authentication and the security group the user is contained in, if it is a session state variable, where would i go to find out what the session variable is? So i can put the javascript conditional statement in the function CustomizeModificationsOfSidebar()? I am relatively confortable with javascript but again not sure of the source of the wiki engine so just need someone to point me in the direction as all the searches i have done have ended up at Extensions or Explaining user rights and not necessarily how to pull the user rights during a page refresh(whether a hard refresh or click through refresh)

Goldbishop 15:18, 3 July 2009 (UTC)

Each page loaded includes a number of useful JS variables, one of which is wgUserGroups, an array of strings of the groups the user is in. The MediaWiki software parses the user's login credentials (which are stored in a cookie) and sets appropriate values for this variable; all you have to do is use code like
if( 'sysop' in wgUserGroups ) { ... }
Is that what you're looking for?
Also, there is the predefined function:
addPortletLink( String IdOfBoxToAddTo,
                String URL,
                String Title,
                String Id,
                String Tooltip,
                String IdOfObjectToInsertAfter )
Which can be used to make adding links to the sidebar much easier. Hope this helps. Happymelon 15:34, 3 July 2009 (UTC)
So i can just put the if statement in the Common.js area of code to evaluate what usergroup the login user is in as you stated above and if that usergroup is present then it will parse out the section of code i put in the conditional section?

Goldbishop 15:46, 3 July 2009 (UTC)

Well ended up pasting this in the Common.js after doing some testing and im not quite sure why it is working but should be interesting to try and figure out why.
if( !('sysop' in wgUserGroups) || !('bureaucrat' in wgUserGroups))
Not quite sure why puting NOT in front of the comparison works cause it would seem to me to be anti what i am trying to do.
Goldbishop 18:28, 3 July 2009 (UTC)


[edit] Extension Support

[edit] (RESOLVED) EmbedImg Extension, Advice rather than tech help needed on Images

  • Product Version MediaWiki 1.14alpha (r45489)
  • PHP 5.2.4-2ubuntu5wm1 (apache2handler)
  • MySQL 4.0.40-wikimedia-log
  • www.trialworks.com/wiki

Hello, This is more of an "advice needed" post. I wanted to use the Upload/Image functions in MediaWiki but I believe I cannot... my webhost does not give me easy access to php.ini and I really don't want to go through the headaches of making them enable uploads in PHP, so I've kind of given up.

I did, however, download EmbedImg Extension and absolutely love it. It lets me take a address to an JPG or PNG file and paste it into the wiki, and in turn it displays the image (Rather than the path). The problem is that it's parameters only let me change size, but not location. I need to be able to align those images "right" with text, so that it all looks good. Aside from the extension, I got around the upload system by writing, in ColdFusion, an upload agent. It lets any of my users - in a super simple fashion - upload an image to the site and obtain the link, which then goes into the Wiki Article. It's really simple but very effective for my needs.

So now, I am just dealing with a formatting issue. It needs to be uber easy for my users. How would you guys/girls handle the alignment or would you really work on getting the Wiki upload stuff to work (btw, I feel my ColdFusion app is easier to use for my users than the Wiki stuff).

Karl @ www.trialworks.com/wiki Thanks!!

UPDATE: sorry to waste space, I think I've solved my little crisis with <div style="float: right;">

[edit] MediaWiki oes not find texvc - but texvc exist in the math folder !!!

  • MediaWiki version: 1.13.3
  • PHP version: 5.2.4
  • MySQL version: 5.0.51a
  • URL: not public ... local network

Hi there,

I need help, cause I tried serveral times to setup texvc for our MediaWiki. I downloaded and installed the latest version of OCaml and run the 3 steps:

  1. Change to the "math" sub-directory of your MediaWiki install
  2. Run 'make' (or 'gmake' if GNU make is not your default make). This should produce the texvc executable.
  3. Enable $wgUseTeX and $wgEnableUploads in your LocalSettings.php and everything should work.

I've seen no errors during the make but the MediaWiki does still not find the texvc !!! I checked the math folder and there is an texvc...

how can I resolve the problem ???

thank you !!!

Alex

I have some problem with mediawiki-1.13.3-42.fc10.x86_64 on fedora 10 x86_64 and resolved it from http://zaphod.lite.msu.edu/bugzilla/show_bug.cgi?id=5757.
The solution was to run texinfo rehash, and run fmtutil-sys --missing.

Ivan

[edit] How-to restrict access to a Special Page? (Resolved)

  • MediaWiki version: 1.13
  • PHP version:  5.0

Hi,

I'm using the extension http://www.mediawiki.org/wiki/Extension:UploadCSV where I can update pages with an CSV file. As this extension can easily cause vandalism, I want to restrict the access for just "administrators". Like when trying to access this page as a normal user: http://meta.wikimedia.org/wiki/Special:Block

I added:

$wgGroupPermissions['*']['uploadcsv'] = false; $wgGroupPermissions['sysop']['uploadcsv'] = true;

to LoaclSettings.php - but everyone can still access the page. Any ideas what I'm doing wrong?

Thanks, Chris


add to uploadCSV.php

// New user right - required to access Special:Maintenance $wgAvailableRights[] = 'uploadcsv';


function wfUploadCSVStart() {

       global $wgMessageCache, $ExtensionTitles, $wgOut, $wgUser;


# If the user doesn't have the required 'maintenance' permission, display an error if( !$wgUser->isAllowed( 'uploadcsv' ) ) { $wgOut->permissionRequired( 'uploadcsv' ); return; }


add to LocalSettings.php

$wgGroupPermissions['sysop']['uploadcsv'] = true;

[edit] Extension Licensing Guidelines

I was wondering if there were licensing guidelines for extensions. I am combined several extensions with MediaWiki and noticed that some of the extensions have licenses that are incompatible with other extensions (e.g. Affero v.3 with a majority of extensions under GPL v.2). There are also several extensions that have no license indicated--is there a default license if you are coding for combination with MediaWiki? I was wondering if there was already guidance or if there could be some written on these topics. Thanks.

[edit] Using $wgParser->parse($string, $wgTitle, new ParserOptions(), true, true); causes error...

Using $wgParser->parse($string, $wgTitle, new ParserOptions(), true, true); causes all headers prior to the object that used the extension that called this turn into <a name=".7FUNIQ7a2f500f6cab414d-h-0--QINU.7F_Hello" id=".7FUNIQ7a2f500f6cab414d-h-0--QINU.7F_Hello"></a><h2> <span class="mw-headline">UNIQ7a2f500f6cab414d-h-0--QINU Hello </span></h2> (its is mean't to be just Hello as a Header 2nd level.) why does this happen and how can I fix it? --202.14.216.129 01:17, 8 June 2009 (UTC)

The symptom is that the parser is exposing strip markers (placeholders that mark where content such as links will later be reinserted). The problem is that by calling the parser in that fashion, you are 'resetting' the parser, losing its memory of which strip markers it has already inserted. I cannot remember off the top of my head what the solution is; but try having a look at other extensions and see how they handle parsing content in similar situations. Happymelon 22:35, 11 June 2009 (UTC)

[edit] what is the difference between include and require_once ?

Thanks for your answer, —almaghi 12:24, 12 June 2009 (UTC)

Google is your friend. Happymelon 13:38, 12 June 2009 (UTC)
Thanks for this. I'll better try Googling before questioning... --almaghi 13:45, 12 June 2009 (UTC)


Can't you see that the spelling is different? LOL. Anyway, I also don't know and I googled it. It says:

The require() statement includes and evaluates the specific file.
The include() statement includes and evaluates the specified file
include() produces a Warning while require() results in a Fatal Error.

What does it mean? Does it mean that include() is better than require() since I presume it will continue to execute? — PM Poon 16:58, 21 June 2009 (UTC)


I don't think that you can say that any one of them is "better", just different in what they do. By the way, Require() is diferent from require_once(). If you call require() twice on the same file, it will include the file twice, but when you use require_once(), it won't. There's also an include_once(); 149.173.6.50 20:37, 29 June 2009 (UTC)

[edit] PdfBook Extension "Download Not Found/No such Extension"

  • MediaWiki version: 1.5
  • PHP version: 5.2.6
  • MySQL version: 5.0.67 SUSE MySQL RPM
  • URL:

Hi, When I click on the "Download Snapshot" link at the top right of the "PdfBook" Extension page @ http://www.mediawiki.org/wiki/Extension:Pdf_Book I get sent to the following page @ http://www.mediawiki.org/wiki/Special:ExtensionDistributor/PdfBook which tells me No such extension "PdfBook"

Any assitance that could be offered to assist me in converting a mediawiki which is currently hosted as a book would be greatly appreciate.

97.100.141.225 18:47, 22 June 2009 (UTC)aaudu

[edit] Extension:PDF_Writer, ConfirmAccount and Extension:WikEd

  • MediaWiki version: ??
  • PHP version:  ??
  • MySQL version:  ??
  • URL:

Hello, I'm a software developer but without any experience in MediaWiki. My client needs adds the Extesions :PDF_Writer, ConfirmAccount and WikEd.

Before accept the job, I need to assess the project and konw if it takes me a lot of time or is easy.

My question : Is necessary to make some develop after the instalation of extensions ???

best regards

David

83.43.35.21 20:53, 25 June 2009 (UTC)

[edit] SocialProfile Returns a HTTP500 Internal Server Error

  • MediaWiki version: Most current
  • PHP version: Most current
  • MySQL version: Most current
  • URL: Not available - private intranet site

We installed MediaWiki on a virtual machine. Everything was working fine, until we installed the SocialProfile extension. We configured SocialProfile with the directions, exactly, but now none of the profiles work. The wiki is still working, but when we go to http://<ipaddress>/wiki/index.php/User:NewUser, all we get is a HTTP 500 error. No data, nothing, just a HTTP 500 Internal Server Error. Any help would be useful.

149.173.6.25 16:34, 29 June 2009 (UTC)

[edit] Uploading/Downloading Perl scripts

  • MediaWiki version: 1.15.0
  • PHP version: 5.2.6 (cgi-fcgi)
  • MySQL version: 5.0.67-log
  • URL: intranet


My plan for mediawiki was to use it as somewhat of a CMS (content management system) for different scripts (perl, shell, php, javascript, etc), and configuration files (xml), etc. Possibly C++/Java binary files as well.

I've configured MediaWiki to allow all extensions/uploads. My problem is with Perl scripts (and I imagine I'd have problems with other types of scripts, as well).

I can upload a perl script just fine - viewing/downloading it after upload is a different story. If I click on a perl script in MediaWiki, I get taken to a "500" type internal server error page. If I try to download it (right-click/download), it claims the file is not found.

I just want mediawiki to allow the user to download the file to local disk, or possibly show the contents of the script on a new page, as it would with a text file.

Any ideas?

99.37.115.49 04:05, 9 July 2009 (UTC)


[edit] Miscellaneous (unsorted) Issues

[edit] Fatal Error...

I got this on a free webserver (so I don't have an access to it), after trying to save the page or to log in:

Fatal error: session_start() [<a href='function.session-start'>function.session-start</a>]:
Failed to initialize storage module: files (path: ) in /mnt/md1/public/d/o/dob/includes/GlobalFunctions.php on line 2453

What should I do now? :-D

Drkazmer

[edit] character before DOCTYPE "<<!DOCTYPE html PUBLIC .."

  • MediaWiki version: 1.13.2
  • PHP version: 5.1.6 (apache2handler)
  • MySQL version: 5.0.45
  • URL: local

I got a character above the logo "<" and I don't know what is generating it
and it is always there when I use the rich editor "disabling the rich editor doesn't help"
also with every preview it appends one more character as follow
<
<
one more thing
viewing page source I find that character before <!DOCTYPE..
<<!DOCTYPE html PUBLIC .....

looks like something is appending that character "<" to the (output stream) How to debug such behavior?


FireFox error console shows


</* generated javascript */

what could be generating that character "<"?

sounds like HTML vs XHTML but how it could be fixed?

[edit] Including of path

Header created by EivindJ.
  • MediaWiki version: 1.13.2
  • PHP version: 5.2.0-8+etch13(cgi-fcgi)
  • MySQL version: 5.0.32-Debian-7etch8-log
  • URL:

Hello
I'm trying to include the path on the top on each page (example wiki>help>questions). What is the code that the path infix in the page?

thanks for help —The preceding unsigned comment was added by 212.101.18.161 (talkcontribs) 07:57, 22 January 2009. Please sign your posts with ~~~~!

Do you mean using subpages? What sort of path do you mean? Wikademia

[edit] embed copies of authoritative versions of pages from other mediawiki instances, sharing one page history between mediawikis

  • MediaWiki version: 1.13.3
  • PHP version: 
  • MySQL version: 
  • URL:

There appear to be many ways of including content from one page to another, including templates and the "embed page" capability (which seems restricted to Special pages). The terms "transwiki", "inclusion" and "interwiki" are used in a confusing way making it difficult or impossible to answer some simple questions:

  1. How, exactly and with examples, does one specify that the master or authoritative version of a page is at some other mediawiki, providing both a link to the editable version of that page and a visible & protected copy of it as if it were a page within one's own wiki (identical to the features of wikinfo?
  2. How, exactly and with examples, does one simply include an entire non-Special non-template page from the same wiki? Is it possible to include from another wiki that is hosted on the same MySQL installation?
  3. How, exactly and with examples, would one implement two-way transclusion so that the page could be edited in either one of two wikis, and the edits would be made reliably on the other to unify the page histories?
  4. Are there any good examples of public mediawikis sharing content in any of these ways with private ones?
  5. What other approaches, such as "auto-import of Wiki articles via XML using PHP's Expat Library" are used in Mediawiki extensions, and what are the advantages/disadvantages of doing this inclusion using XML rather than mediawiki's internal facilities?


[edit] Concurrent users and Add ons to Wiki

Do you know if there are any Microsoft word add ons that can be used with Wiki? Is there a way to lock a document so that no 2 users are updating the same file?

[edit] Completely Anonymous Editting (No IP)

  • MediaWiki 1.13.3
  • PHP 5.2.8 (cgi)
  • MySQL 5.0.67-community

Is there a way to allow complete anonymity? Or how about a system whereby an ID is shown instead of showing IPs?

[edit] Untitled

  • MediaWiki version: 1.14.0
  • PHP version: 5.2.8
  • MySQL version: 5.0

Remarque : Les versions de PHP et MySql sont celles fournies par Xampp 1.1.1.2

  • URL:

Comment puis-je afficher la valeur d'une variable contenue dans LocalSettings.php ?

How may I post(show) the value of a variable like $wgStylePath?

Many thanks

[edit] How to combine regular expression so that you get the number of contributors per article ? (Extension:contributors)

I would like to use a reg ex to get from: User1,user2,user3,user4,user5 ----> the number of users (here is 5).

So that i could use : {{contributors/Article}} in a Reg Ex to get the number of contributors in Article.

Then, how to get an average on every articles or articles from a special cat ? Thx!

[edit] Cannot Create Pages

I'm using Mediawiki 1.6 and whenever I or any of my users click "save page" it leads us to a blank screen and our browser reads "done".

As far as I can see, all the permissions are in place, so I'm really not sure what to do.


---

[edit] What have I do?

I had to start new MediaWiki 1.15.0rc1 Installation but received:

Don't forget security updates! Keep an eye on the low-traffic release announcements mailing list.
Checking environment...

Please include all of the lines below when reporting installation problems.

  • PHP 5.2.6 installed
  • Found database drivers for: MySQL SQLite
  • PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title)
  • Have XML / Latin1-UTF-8 conversion support.
  • Session save path (/var/lib/php/session) appears to be valid.
  • PHP's memory_limit is 32M.
  • Couldn't find Turck MMCache, eAccelerator, APC or XCache; cannot use these for object caching.
  • Found GNU diff3: /usr/bin/diff3.
  • Found GD graphics library built-in, image thumbnailing will be enabled if you enable uploads.
  • Installation directory: /usr/local/www/name_of_site.com/www
  • Script URI path: Installing MediaWiki with php file extensions
  • Environment checked. You can install MediaWiki.

Fatal error: Call to undefined function taint() in /usr/local/www/name_of_site.com/www/config/index.php on line 1905

[edit] Different default skins for different browsers

I designed a new skin based on Monobook.php but it doesn't work the way I want it in Internet Explorer, although it does look good to me in Firefox. Apparently, two-thirds of my visitors uses Firefox. How can I use an if-else statement in LocalSettings.php where if a user uses Firefox, the default skin is my new skin, whereas if they use other browsers, then the default is Monobook.php? —PM Poon 19:44, 13 June 2009 (UTC)

[edit] (RESOLVED) delete and rename users

  • MediaWiki version: 1.15.0
  • PHP version:  5.2.8
  • MySQL version: 5.0.77-community-log
  • URL: wiki.dozor.biz

How can I delete or rename registered users of my Wiki-website? For example, I want to rename admin's account (ID=1) to "administrator" and I need to delete few temporary accounts.

wiki@dozor.biz —91.122.217.12 05:40, 16 June 2009 (UTC)

=> Extension:Renameuser.
To delete usernames have a look to a search engine web mediawiki.org Although it is not recommended, I believe. --almaghi 09:50, 19 June 2009 (UTC)

[edit] MediaWike Search Mashine Optimization Company

  • MediaWiki version: 
  • PHP version: 
  • MySQL version: 
  • URL:

MediaWiki We search for a company which is specialist in optimizing Google search mashine. As we can see MediaWike is most the time on the top of Google.

Can you kindly provide us MediaWiki Sofware company name which can help us? Your support is estimated most. Thank you and best regards info@spirit-of-luxury.ch


217.162.57.206 14:04, 20 June 2009 (UTC) MediaWiki

[edit] Allocation of articles to namespaces fails

  • MediaWiki version: 1.13.3
  • PHP version: 5.2.8
  • MySQL version: 5.1.30
  • URL: (local intranet)

Hello @ all,

some weeks ago, I defined some customized namespaces and everything worked fine. But now I have a problem: Let's say one namespace I recently defined is called "NewNamespace". Now I want to create a new article within this namespace, let's say "NewNamespace:HelloWorld". Then what happens is, that the new article is stored in the (Main) namespace with title "NewNamespace:HelloWorld", but not in the "NewNamespace". The strange thing about it is, that the articles which are already in the "NewNamespace" still work fine, so I don't think that it's a problem with the namespace definition. Can anyone help me? Does anyone have an explanation for this?

PS: I checked about a hundred times that I don't have any typing errors within the article's name, so this easiest explanation drops out as well. —62.157.208.213 10:40, 23 June 2009 (UTC)


[edit] How to add link sidebar toolbox ( Upload file-->Wikipedia:Upload)

How to add link sidebar toolbox ( Upload file-->Wikipedia:Upload)

Dear All I am from Bengali Wikipedia ans I am admin there. I want to create same approach to our wiki as English wiki sidebar Toolbox section Upload file link to Wikipedia:Upload. How do you create that? Please explain. If any kind of change to be done in any MediaWiki page, please secify me. I want to create for only registar user can see the Upload file. Thanks in advance.- Jayantanth 18:51, 26 June 2009 (UTC)

[edit] tuning MediaWiki:Aboutsite

  • MediaWiki version: 1.16alpha (r52088)
  • PHP version: 5.2.4-2ubuntu5wm1 (apache2handler)
  • MySQL version: 4.0.40-wikimedia-log
  • URL: http://en.wikipedia.org

In regards to Manual:Interface/Aboutsite, on English Wikipedia this page has been filled with the literal value "Wikipedia" instead of using "{{SITENAME}}" apparently at the request of the devs, back in early 2006.[3]

On de.wikipedia it is also a literal value. On fr.wikipedia, the page was deleted.

If this is still an important way to tune a MediaWiki installation, I think this be documented somewhere. —John Vandenberg 11:33, 2 July 2009 (UTC)

enwiki and dewiki are absolute monsters in terms of size and activity; it's not surprising that 'extraordinary' measures need to be taken for performance reasons on those sites. That message is loaded and parsed on every cache miss, so giving it a literal value probably does have a noticeable impact on performance on a wiki as active as enwiki. Happymelon 13:27, 3 July 2009 (UTC)

[edit] Help with making wiki my main page

MediaWiki version: 1.15.0 PHP Version: 2.11.9.5 MySql Version: 4.1.22 URL: www.wvupedia.com

How do I get the wiki to become my main page? For instance, if I browse to www.mysite.com it brings up the directory rather than the wiki. How can I get it to immediately load the wiki instead of making people browsing to www.mysite.com/mywiki?

I did a redirection through my webhost, but it is extremely slow so I figured there was a better way to do it.

Try using an Apache rewrite rule, assuming you use Apache. The same method as you'd use to get short URLs. Happymelon 13:23, 3 July 2009 (UTC)
Thanks, that worked. I used [4] short url rewrite rule and it automatically redirected my main page to the wiki.

[edit] Can't Get Short URLs To Work Properly

  • MediaWiki version: 1.15.0
  • PHP version: 5.2.8
  • MySQL version: 5.0.81 Community
  • URL: [5] (where the URLs should be) or [6] (where the MW installation is)

Hi- I use Joomla on my main public_html directory as a CMS and then installed my wiki to /wiki. I wanted to let people access the site through /staff but have MediaWiki installed to /wiki. I put the following into my .htaccess file on my public_html directory under all of the Joomla required-things:

RewriteEngine On
RewriteRule ^staff/(.*)$ /wiki/index.php?title=$1 [PT,L,QSA]
RewriteRule ^staff/*$ /wiki/index.php [L,QSA]

and I also added the following lines to the almost very bottom of my LocalSettings.php file:

$wgScriptPath = "/wiki";
$wgArticlePath = "/staff/$1";
$wgUsePathInfo = true;

I am doing something wrong at all or is there another setting I need to change somewhere to let it work? I've already cleared the cache on my browser if they is the problem. Also, the URL redirection is working, but for some reason, there is no content where I am redirected to. For example, if I go to my install, I get redirected to the proper directory and the short URL there but when I get there, I get a 404 error. Please help!

Thanks. —Gmd8 15:21, 4 July 2009 (UTC)

Personal tools