The Wayback Machine - https://web.archive.org/web/20110430185653/http://www.mediawiki.org/wiki/Project:Support_desk

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

[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

Thread titleRepliesLast modified
#switch isn't working?213:16, 30 April 2011
Is there a way to place one image on top of another?111:47, 30 April 2011
Template automaticly at top of every page018:08, 29 April 2011
Specials Templates118:02, 29 April 2011
Logical problems with: $wgLogo & DefaultSettings.php113:43, 29 April 2011
Adding at mw-usertoollinks012:53, 29 April 2011
IP, Spam. Editing for users only!401:02, 29 April 2011
Mediaplayer stopped working319:50, 28 April 2011
Database error after updating MediaWiki from 1.5.2 to 1.6301:54, 28 April 2011
Background Colour of Tables in the main.css or where ?122:39, 27 April 2011
contacts320:19, 27 April 2011
latex parsing error on RHEL 6 - PNG conversion failed017:33, 27 April 2011
LDAP Authentication problem010:42, 27 April 2011
Per-page Auto-number headings010:13, 27 April 2011
Template Parameter in Extension (url)008:41, 27 April 2011
Wildcard Query using URL106:04, 27 April 2011
How do I redirect a search query?122:13, 26 April 2011
Uploading pptx files008:27, 26 April 2011
What version of MediaWiki?212:41, 26 April 2011
Search Auto Complete not working418:05, 25 April 2011
First page
First page
Previous page
Previous page
Last page
Last page

#switch isn't working?

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.

 
Gossamer01:09, 29 April 2011
 

Try replacing {{{status}}} by {{{status|}}}.

 
Hamilton Abreu22:01, 29 April 2011
 

That worked, thanks!

 
Gossamer13:16, 30 April 2011
 
 

Is there a way to place one image on top of another?

I've been racking my brain trying to figure out a way to do it. Is it even possible?

 
118.210.194.24008:08, 30 April 2011
 

Lookup "CSS z-index".

 
Hamilton Abreu11:47, 30 April 2011
 

Template automaticly at top of every page

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
 
87.183.30.23618:08, 29 April 2011

Specials Templates

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.

 
213.30.149.5214:29, 29 April 2011
 

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.

 
Krinkle18:02, 29 April 2011
 

Logical problems with: $wgLogo & DefaultSettings.php

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! 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

 
120.19.237.21509:35, 29 April 2011
 

Never does this FAQ entry mention DefaultSettings. You must never edit this file, nor should you ever need to edit it. Change it in LocalSettings.php.

 
Max Semenik13:43, 29 April 2011
 

Adding at mw-usertoollinks

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!

 
Roye777777712:53, 29 April 2011

IP, Spam. Editing for users only!

Hello sir/madam,

We want that only users can edit pages. Where can I change that?

Thanks!

Regards, Jorrit

 
188.204.104.16608:38, 14 April 2011
 

Try this in your LocalSettings.php:

$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['user']['edit'] = true;

More in Manual:User rights.

 
46.0.28.17119:05, 14 April 2011
 

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;
 
188.204.104.16609:17, 18 April 2011
 

anybody who can help us?

 
188.204.104.16611:35, 28 April 2011
 

What isn't working?

 
Emufarmers(T|C)01:02, 29 April 2011
 
 
 
 

Mediaplayer stopped working

Edited by author.
Last edit: 16:48, 23 April 2011

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

 
Ron Barker12:37, 23 April 2011
 

What mediaplayer, can you provide a link to that page?

 
Max Semenik13:06, 23 April 2011
 

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

 
Ron Barker14:07, 23 April 2011
 

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");

 
Ron Barker19:42, 28 April 2011
 
 
 

Database error after updating MediaWiki from 1.5.2 to 1.6

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.

 
75.159.252.10504:17, 14 December 2010
 

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!

 
75.159.252.10504:26, 14 December 2010
 

I added a note on Manual:Upgrading#Run_the_update_script that the update script needs CREATE TABLE and ALTER TABLE permissions.

 
-- Bryan (talk|commons)21:40, 15 December 2010
 

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.

 
Eckirchn01:54, 28 April 2011
 
 
 

Background Colour of Tables in the main.css or where ?

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!?

 
87.183.39.21421:36, 27 April 2011
 

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
 
Krinkle22:39, 27 April 2011
 

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

 
213.24.198.19211:25, 22 April 2011
 

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?

 
Max Semenik06:50, 23 April 2011
 

Максим, добрый день! Спасибо за Ваш ответ. Мы хотим узнать как можно получать уведомления о появлении новой версии приложения или формата APS пакета и получить ссылку на новую версию, чтобы обновить ее на нашей платфрме. И так же ссылку на инструкцию к новой версии.

 
213.24.198.14307:46, 27 April 2011
 

Для этого есть рассылка mediawiki-announce.

 
Max Semenik20:19, 27 April 2011
 
 
 

latex parsing error on RHEL 6 - PNG conversion failed

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

 
209.145.84.22217:33, 27 April 2011

LDAP Authentication problem

A thread, Thread:Project:Support desk/LDAP Authentication problem, was moved from here to Extension talk:LDAP Authentication. This move was made by MaxSem (Talk | contribs) on 27 April 2011 at 10:42.

Per-page Auto-number headings

Is there a magic word that does something like the preference "Auto-number headings", but only on one page?

 
Amir E. Aharoni10:13, 27 April 2011

Template Parameter in Extension (url)

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

 
StrongBaf08:41, 27 April 2011

Wildcard Query using URL

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

 
184.3.201.12305:48, 27 April 2011
 

action=query&prop=search

 
Max Semenik06:04, 27 April 2011
 

How do I redirect a search query?

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.

 
69.137.94.22223:25, 25 April 2011
 

I don't know, you'll just have to create that redirect.

 
SEPTActaMTA823522:13, 26 April 2011
 

Uploading pptx files

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.

 
Melliol08:27, 26 April 2011

What version of MediaWiki?

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.

 
75.134.188.11503:34, 25 April 2011
 

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

 
Ron Barker16:15, 25 April 2011
 

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.

 
Patheticcockroach12:41, 26 April 2011
 

Search Auto Complete not working

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;

    1. $wgUseAjax = true;

$wgEnableMWSuggest = true; $wgOpenSearchTemplate = true;

Any ideas?

 
66.17.138.319:54, 21 April 2011
 

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.

 
Max Semenik11:54, 22 April 2011
 

Thanks for pointing me to that tool.

Unfortunately I am not sure where you are seeing that error (I am just unused to this tool). What should I be looking at to see that error?

Thanks again for the help!

 
66.17.138.315:30, 25 April 2011
 

Check logs for PHP or webserver errors. Once more, see How to debug.

 
Max Semenik15:36, 25 April 2011
 

Actually, found where the error reports.

Thanks again!

 
66.17.138.318:05, 25 April 2011
 
 
 
First page
First page
Previous page
Previous page
Last page
Last page
Personal tools
Variants
Actions
Site
Support
Download
Development
Communication
Toolbox