Project:Support desk
Welcome to MediaWiki.org's Support desk, the central on-wiki place to ask MediaWiki questions!
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 making them easier to find.
There are other ways for of communication as well (IRC, Mailing lists etc.), read more here.
[edit] Before you post
- Please read through our technical manual and end-user help.
- Project:Current issues is where you should discuss issues about mediawiki.org wiki itself.
- Sandbox: Test wiki editing.
[edit] Post a new question
1. To help us answer your questions, please always indicate which versions you are using:
-
- MediaWiki (reported by your wiki's Special:Version page)
- PHP (likewise)
- Database (likewise, e.g. MySQL 4.1)
2. Please include the URL of your wiki unless you absolutely can't. It's often a lot easier for us to identify the source of the problem if we can look for ourselves.
3. To start a new thread, click "Start a new discussion".
Archiving topics
Topics are automatically archived when they have been inactive for three weeks. If a question you have asked is approaching this limit and still has not been answered, please 'bump' it to prevent it being archived. However do not 'bump' for other reasons.
Contents
![]() First page |
![]() Previous page |
![]() Next page |
![]() Last page |
MediaWiki 1.16.0 PHP 5.2.15 (cgi-fcgi) MySQL 5.1.53-log
I've been trying to do an update to one of my infoboxes today. Basically, I'm trying to add in a switch parser that takes one of the inputs (active vs inactive) and uses that to change the class of the template, so that I can switch its colors. Unfortunately, I'm only ever getting the default value that I enter and I'm not quite sure what I'm doing wrong.
This is a portion of my infobox code:
{| class="infobox {{#switch: {{{status}}}
| Active = infobox_active
| active = infobox_active
| inactive = infobox_inactive
| Inactive = infobox_inactive
| infobox_active}}" style="font-size: 89%; width: 300px;"
|-
! class="infobox_header" colspan="2" style="font-size: 120%; padding: 1em;" | {{{Character Name|{{PAGENAME}}}}}
|- style="text-align: center;"
| colspan="2" style="padding: 0.5em;" | {{#if: {{{external profile image|}}} | {{{external profile image|}}} | [[{{{uploaded profile image|image:Placeholder_person.png }}}|{{{uploaded profile image width|200}}}px]] }}<br>''{{{image caption| }}}''
|-
! colspan="2" class="infobox_header" | [[race::Marked]]
|-
| style="width: 30%;" | '''Created By'''
| style="width: 70%;" | [[author::{{{created by|}}}]]
|-
| style="width: 30%;" | '''Group'''
| style="width: 70%;" | [[membergroup::{{{membergroup|}}}]]
|-
| style="width: 30%;" | '''Status'''
| style="width: 70%;" | [[status::{{{status|}}}]]
I've tried entering in default values for that 'status' parameter, but nothing has made a difference and the switch always goes to its default setting. I am also using semantic mediawiki if that makes a different.
I'd love any input.
Hello there, i got a template and i want to edit main.css or something to add this template to the top of every site on the wiki. its a menu bar. Where shall i do that and what variables parameters do i need?
| Content | Category Index | Page Index | Colonization | Buildings | Commoditys | Resources | Design Studio |Galaxy Viewer | Science | Empires | Politics | Support | Index |
|---|
Hello,
You know that there are some predefined templates like {{PAGENAME}} ...
I would like to know if exist any template which display the name of the user who created the article ?
And any template which like {{REVISIONMONTH}} but which display not the number of the month but the name of the month like {{CURRENTMONTHNAME}} for Revision.
Hi, just a short answer here:
- They are not predefined templates, they are Help:Magic words
- The first revision of an article is variable due to systems like:
- Importing revisions
- Deleting revisions
- Hiding revisions
- Deleting / Restoring / Undeleting pages.
Therefor the definition of the 'first revision' and thus the 'article creator' is hard to determine. (is the creation the first edit to that title counted by revision number, or by revision time (if 2 days after creation an old revision is imported, this revision will have a fresh revision id, yet an old timestamp). Untill things like this are figured, it will not be possible. Aside from that there's also effeciency/performance issues.
See also ticket 23427 in Wikimedia's bug tracker for the MediaWiki software.
I have currently installed mediawiki, I did not find any administration panel and wanted to update the logo. I have found an article explaining how this is done: http://www.mediawiki.org/wiki/Manual:FAQ (Topic: How do I change the logo?) as pasted in below (Bottom).
The article says not to simply change the logo.png as it will be overwritten when the upgrade is committed, and to do the upgrade through the DefaultSettings.php file. Which is known now as LocalSettings.php as I have asumed due to the search keeps going to this article: http://www.mediawiki.org/wiki/DefaultSettings.php.
First thing you notice is a big warning on that page that says Warning: Don't edit this file with Notepad or other text editor that adds byte order marks to files, or you will break your wiki. Well, further to this I have found this page: http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/DefaultSettings.php?view=markup which has a warning of below:
5 * NEVER EDIT THIS FILE
6 *
7 *
8 * To customize your installation, edit "LocalSettings.php". If you make
9 * changes here, they will be lost on next upgrade of MediaWiki!
So what is one to do? Just to update the logo...
Below was copied from: http://www.mediawiki.org/wiki/Manual:FAQ (Topic: How do I change the logo?)
[edit] How do I change the logo?
The logo that appears in the top left of each page is determined by the $wgLogo configuration line in the LocalSettings.php file.
There are two ways to change the logo:
Upload a picture to your wiki using the normal file uploading interface. This allows the logo to be replaced easily, so you may want to protect the page if you use this method.
Then add the $wgLogo line to LocalSettings.php, for example:
$wgLogo = 'http://www.example.com/wiki/images/6/62/photoname.jpg';
Or upload an image to your server by other means (such as FTP). Add the $wgLogo line to LocalSettings.php, for example:
$wgLogo = "{$wgScriptPath}/photoname.jpg";
In this example, the photo is in the same folder as the LocalSettings.php file.
Caution: Do not simply overwrite the default logo installed with MediaWiki (/skins/common/images/wiki.png); this file will be overwritten when you upgrade.
Tip: The logo image should be 135 x 135 pixels.
and I wanted to update the logo to my personal one, though in the documentation to configure the logo I have to update the DefaultSettings.php though it also
I want to add a link at the Recent Changes page in the "mw-usertoollinks" section. So, I want something like this: (Talk | contribs | block | check), where "check" is the part that should be added between those hooks. How can I do that? Should there be some kind of javascript code into my personal monobook.js page? I have been looked around, but I only found a code to remove it.
Thank you for helping!
Hello sir/madam,
We want that only users can edit pages. Where can I change that?
Thanks!
Regards, Jorrit
Try this in your LocalSettings.php:
$wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['user']['edit'] = true;
More in Manual:User rights.
Thanks, I tried it in the Localsettings.php, but it doenst work? I try the below code. Can you help me further? Thanks!
This example will disable editing of all pages, then re-enable for users with confirmed e-mail addresses only:
# Disable for everyone. $wgGroupPermissions['*']['edit'] = false; # Disable for users, too: by default 'user' is allowed to edit, even if '*' is not. $wgGroupPermissions['user']['edit'] = false; # Make it so users with confirmed e-mail addresses are in the group. $wgAutopromote['emailconfirmed'] = APCOND_EMAILCONFIRMED; # Hide group from user list. $wgImplicitGroups[] = 'emailconfirmed'; # Finally, set it to true for the desired group. $wgGroupPermissions['emailconfirmed']['edit'] = true;
Hi I am using:
Mediawiki 1.15.4 PHP/5.3.0 MySQL5.1.36
I would be grateful for any help with this problem. For some reason that I cannot work out my mediaplayer has stopped working. I don't know exactly when it stopped as I only recently revisited the a page where the player was/should have been working. There is a large space where the player should be and the player appears to be attempting to communicate because the little thing at the top of the page keeps spinning as though it is in the process of downloading.
Thank you
Max
Thank you for responding. My wiki is on my pc so I am unable to post a link. This is what I downloaded:
http://www.mediawiki.org/wiki/Extension:MediawikiPlayer version 3
Cheers
I would be grateful if anyone could assist:
If I right click where the mediaplayer should be playing I get the message:
Movie not loaded… About adobe Flash Player
I uninstalled Adobe Flash Player. I still get the same message.
In PlayerPointer.php at Line 47 I get:
return '[no valid media pointer]';
LocalSettings.php
require_once("$IP/extensions/Cite/Cite.php");
require_once("$IP/extensions/MediawikiPlayer/MediawikiPlayer.php");
I was in the process of updating MediaWiki when my database crashed.
I downloaded the tar of the latest release, copied the files into /var/www over the existing ones there, and ran /var/www/maintenance/update.php from the command line. The update script crashed with the error:
Database returned error "1142: CREATE command denied to user 'wikiuser'@'localhost' for table 'user_properties' (localhost)"
Opening the wiki in my browser gives the following error:
Database error
A database error has occurred Query: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'deps' LIMIT 1 Function: LCStore_DB::get Error: 1146 Table 'wikidb.l10n_cache' doesn't exist (localhost)
Any idea how I can fix this? My wiki is currently completely unusable.
Fixed my own issue. I'll post the fix in case anyone else is having similar problems. I'm on Ubuntu, BTW.
I entered admin mode on the console with "sudo su", which logged me in as the user "root". In LocalSettings.php, $wgDBuser and $wgDBadminuser were set to "wikiuser". By changing them to "root" and running "sudo php5 update.php" I was able to complete the update and fix the database error.
The update manual should really include this!
I added a note on Manual:Upgrading#Run_the_update_script that the update script needs CREATE TABLE and ALTER TABLE permissions.
Thanks to hexmode @ #mediawiki@freenode.net i learned that the error:
Database returned error "1142: CREATE command denied to user 'wikiuser'@'localhost' for table 'user_properties' (localhost)"
Could be resolved by editing LocalSettings.php to change the wikiuser to the sql administrator, then change it back after update.
I want to change the background colours of this table, all tables in general. I was able to edit e everything via monobook main.css but i cant change the background colours of the table. What file do ive to edit!?
Don't edit files like mail.css in /skins.
Instead navigate to "MediaWiki:Common.css" on your wiki from the browser and add or overwrite any styles you wish. For example MediaWiki:Common.css:
table { background: #E8F2F8; } table.wikitable th { background: #A7D7F9; font-weight: normal; }
Will make the following:
{|
| Foo || Bar
|}
{| class="wikitable"
! Head
! Top
|-
| Cont
| ent
|}
look like:
| Foo | Bar |
| Head | Top |
|---|---|
| Cont | ent |
Hello! We are Russian telecom company, starting new project of IAAS and SAAS services. We wantto distribute your application MediaWiki for our clients and so we need to get the regular information about your system upgrades and etc. Can you please provide the contact person to discuss it. thanks a lot
All support on this site is public. What kind of information do you need? Instructions how to run MediaWiki or information about Wikimedia server infrastructure?
When putting the following formula into a wiki page y = x + 12, I get the following error
Failed to parse (PNG conversion failed; check for correct installation of latex and dvipng (or dvips + gs + convert)): y=x+12
I read the FAQ, and the root user has all needed programs on its path Running texvc from the command line works. I am running RHEL 6. The apache user is not chrooted.
Are there any other suggestions on how to solve this issue?
Thank you
Is there a magic word that does something like the preference "Auto-number headings", but only on one page?
Hi,
I am trying to get the value of a Template Parameter {{{xyz}}} to be used in an Extension. The Parameter holds a url which is being set by a Semantic Form. When I use the recursiveTagParse function, I get something like a html formatted link, but what I actually need is the plain url, without any html around it.
Is there a way to get the 'actual' value of the template parameter?
Thank you for any hints! :)
Product Version MediaWiki 1.15.4 PHP 5.2.12 (apache2handler) MySQL 5.0.89-community
http://www.allianceofavalon.freeiz.com/wiki/index.php
I'm trying to write a script that can search for and delete multiple pages for garbage collection type duties. The problem is that I can't seem to get a wildcard search to return any results, even when I know they are present. An example query is as follows:
http://www.allianceofavalon.freeiz.com/wiki/api.php?action=query&prop=info&format=xml&titles=*(Sy*
The response I get is as follows:
<?xml version="1.0"?><api><query><pages><page ns="0" title="*(Sy*" missing="" /></pages></query></api>
Any help would be greatly appreciated. I've looked around for hours but can find the answer. :(
I'm trying to help this site out by making the search for "role" to redirect to the page for "roles" for example. Right now a search for "role" leaves me very confused and frustrated. That seems silly. Help me help you.
PHP 5.2 MW 1.15.4 / 1.16
I am trying to upload pptx files. I read how to configure my wiki to do so ($wgFileExtensions, etc ..) but I still have this message : "the file is corrupt or has an incorrect extension". I saw in MimeMagic.php and in the debug log file how it works and it seems that the regular expression is not able to find which kind of mime type my pptx file is. So the function detectZipType always returns 'application/zip'. I tried with a 1.16 version and it is the same (not same message but same reason). What can I do knowing that I don't want to disable the mime type detection for security reasons ?
Thank you in advance and have a nice day.
I am looking to start my own wiki and I have found the version that psupedia.info uses quite easy to use. I looked all around to see what version it is, yet I haven't had much luck. Could anyone please tell me which version it is and where I can get the files for it? Any help is much appreciated.
Hi It's Version MediaWiki 1.16.2
If you go to the main page of the wiki and in the sidebar click on 'special pages' under 'Tools' and then click on 'version' under 'Wiki data and tools' It will give you the version and php etc.
http://www.mediawiki.org/wiki/MediaWiki
http://www.mediawiki.org/wiki/How_does_MediaWiki_work%3F
Consult the User's Guide for information on using the wiki software at http://meta.wikimedia.org/wiki/Help:Contents
Hi, Also, note that generally you should use the latest version. So even though they use 1.16.2 you should rather get 1.16.4, which is basically just the same but with some security fixes.
I upgraded my wiki install from 1.15.5 to 1.16.4.
For some reason the Auto Complete is not working in the Search box. You can enter a word there and search just fine but it is not giving suggestions based on what is typed.
You can see the site here: http://www.marketswiki.com
MediaWiki 1.16.4 PHP 5.2.6 (apache2handler) MySQL 5.0.45
Local Settings I have (I have tried Ajax being active and commented out...neither makes a difference): $wgEnableAPI = true;
-
- $wgUseAjax = true;
$wgEnableMWSuggest = true; $wgOpenSearchTemplate = true;
Any ideas?
Firebug is a great tool to investivate front-end problens with websites. In your paticular case it reports: GET http://www.marketswiki.com/wiki/api.php?action=opensearch&search=Special%3A&namespace=0&suggest
500 Internal Server Error. Check server logs to find out what's wrong.
![]() First page |
![]() Previous page |
![]() Next page |
![]() Last page |





