Project:Support desk/Archives/Miscellaneous/006

(OUTDATED) variable?

 * MediaWiki version: 1.13
 * PHP version: 5
 * MySQL version:
 * URL:

How can I add a variable so when I type SCT on the editing page, it displays the text I have chosen. Is this a magicword or a variable? It will basically be like CSS, so if I edit the 'variable' it updates all pages with SCT on it to the new text. Hope this makes sense!

—82.22.190.226 18:26, 1 October 2008 (UTC)

(OUTDATED) Create hyperlinks

 * MediaWiki version: 1.13.1
 * PHP version: 5.2.6
 * MySQL version: 4.0.20ant
 * URL: localhost in Apache

Good Morning I need what some user cant create hiperlinks in pages, but they can edit pages. How configure this ? One user what can edit pages, but cant create hiperlinks.

I m brazilian, sorry my portuguese. Help please.

Thiago M.G UFOP —200.131.216.88 14:29, 2 October 2008 (UTC)

(OUTDATED) Wiki running slowly

 * MediaWiki version: 1.13.1
 * PHP version: 5.2.6 (cgi-fcgi)
 * MySQL version: 5.0.45-community-log
 * URL: http://www.driverwiki.com

Recently I've been experiencing the wiki running really slow, it sometimes takes almost a minute for pages to load. I have written up everything I know about the problem here http://mwusers.com/forums/showthread.php?t=8765 and I'm hoping someone knows of a fix or something which will help resolve the issue. Please read through that thread and see if you can work out what's going on?

Thanks for your time! —121.91.2.196 03:59, 3 October 2008 (UTC)

(RESOLVED) update.php "deleting old default message" possibly stuck entirely?

 * MediaWiki version: updating to 1.13.2
 * PHP version: 5.2.6
 * MySQL version: Ver 14.12 Distrib 5.0.41
 * URL: http://dreadnoughtproject.org/tfs (update.php is running again at this moment)

When I run update.php, the step where it says removing old default messages (this may take a while) seems as though it might, in fact, be taking forever. There's slow, and then there's darn slow, and finally one arrives at the possibility that it is not progressing at all.

Though my Wiki is on the blocks at the moment as I attempt to run this, it has only around 1000 articles (mostly stubs), and the several times I've started update.php running, this step has never completed. I have allowed it to run for several hours. This pass, I am timing it, and running it through a terminal on a machine that will not sleep (this is what caused the other runs to abort).

Is there any way this step can be bypassed? Is it essential?


 * UPDATED INFO:
 * I modified the script to provide better feedback as it deletes each entry, and I noticed that it IS making headway, but taking about 20-25 seconds per entry it is deleting. On the plus side, I can see that the articles to be deleted are alphabetically sorted by title, and each run of this script is ratcheting me toward eventual completion (I'm up to the ones beginning with letter F).  I expect the overall time to completion is about 9 hours.  The issue might be that my DB server is remote from my web server.
 * —65.96.165.83 16:02, 5 October 2008 (UTC)

(RESOLVED) rendering depends on content

 * MediaWiki 	1.13.1
 * PHP 	       5.2.5 (cgi)
 * MySQL 	       5.0.67
 * On page URL: http://en.wikipedia.org/wiki/AdaBoost

Why is epsilon different in $$\epsilon$$ and in $$\epsilon \sum$$? I write section for both. I think this is incorrect behavior.

—77.234.64.199 11:50, 8 October 2008 (UTC)


 * Perhaps set in your user Preferences->Math "Always render PNG"
 * --62.128.18.198 09:48, 16 October 2008 (UTC)

(OUTDATED) MediaWiki and SSL-Proxy
I'd like to use a mediawiki with an ssl-proxy

example: https://ssl.domain.com/mymediawiki.com/ instead of http://mymediawiki.com but I get a lot of linking problems!

Is there a general support for ssl-proxy within the mediawiki?

Thanks a lot!

Cheers, Dennis —92.203.103.71 23:11, 8 October 2008 (UTC)

(RESOLVED) Imports semi-randomly rejected with "All revisions were previously imported", even though article does not exist

 * MediaWiki 	1.13.2
 * PHP 	5.2.3-1ubuntu6.4 (apache2handler)
 * MySQL 	5.0.45-Debian_1ubuntu3.3-log
 * URL: http://ec2-75-101-225-5.compute-1.amazonaws.com

My fresh new MediaWiki installed like a charm and works perfectly. However, when I attempt to Special:Import exports from Wikitravel, most -- but not all -- of my attempts are rejected with "All revisions were previously imported", even though there is no article by that name. Wikitravel uses MediaWiki 1.11.2, with the export-0.3 format, and I see nothing strange in the headers, or obvious differences between those imports that work (eg. Palau) and those that don't (eg. Singapore).

 Wikitravel http://wikitravel.org/en/Main_Page MediaWiki 1.11.2

Is there any way to see/debug where that "All revisions were previously imported" error is coming from and what is causing it? From the SQL debug log, I can see that successfully imported articles are queried and then inserted into the DB:

9 Query      SELECT /* LinkCache::addLinkObj Jpatokal */  page_id,page_len,page_is_redirect  FROM `page`  WHERE page_namespace = '0' AND page_title = 'Tuvalu'  LIMIT 1 9 Query      INSERT /* Article::insertOn Jpatokal */  INTO `page` (page_id,page_namespace,page_title,page_counter,page_restrictions,page_is_redirect,page_is_new,page_random,page_touched,page_latest,page_len) VALUES (NULL,'0','Tuvalu',

While the failed ones do not even try to query (no SELECT, no IMPORT, in fact no article-related activity at all). Similarly, if I run "php importDump.php", I'm greeted with a cheery "Done!" for any XML I try to import, even though absolutely nothing actually happens; mySQL's debug log shows no activity. —Jpatokal 13:44, 8 October 2008 (UTC)


 * Turned out to be a bug in the MediaWiki import XML parser, it barfs if it encounters a " " tag inside the contributor block. Worked around by removing the tag, but this is now filed as a bug filed at https://bugzilla.wikimedia.org/show_bug.cgi?id=15913. Jpatokal 09:52, 9 October 2008 (UTC)

(OUTDATED) Adding something above or below the copyrights.
My MediaWiki Information: My Question: I have a question... I want to add chat box above or below the copyrights, but I don't know how. Can you help me? —TheSeaKing 21:59, 9 October 2008 (UTC)
 * MediaWiki version: 1.6.10
 * PHP version: 4.4.9 (cgi)
 * MySQL version: 4.0.27-max-log
 * URL: http://tokwiki.thelostwaters.com

(RESOLVED) Changing Skin Colors
* MediaWiki: 1.13.0 * PHP: 5.2.5 (apache) * MySQL: 4.1.22-standard * URL: Zelda Wiki.org We are having trouble changing the default colors for some of the new elements added in MediaWiki version 1.13.0. Here are the areas we are having trouble with: Page diffs have a white background, selected items on page histories are highlighted in white, the system messages has a white background. Every attempt to change these colors has failed. It is really starting to annoy our users. Our guy who has root access said he uses CSSEdit, and that it works in concert with his FTP program. —Matt 20:33, 15 October 2008 (UTC)


 * Well, no thanks to anyone here, another person came along and helped us.—Matt 19:03, 2 November 2008 (UTC)

(OUTDATED) Imported MySQL not showing articles.
My MediaWiki Information: My Question: There was a problem on my host's server which corrupted my wiki MySQL database.
 * MediaWiki version: 1.6.8
 * PHP version: 5.2.6
 * MySQL version: 5.0.45-community-log
 * URL: http://www.globalguide.org/wiki/index.php?title=Main_Page

We restored wikidb from my MySQL backup and I have weird wiki now where all the articles are there but none of the text.

Looking in the MySQL export/import file I can see some of the text but running the wiki itself - nothing.

You can see articles should be there by clicking on History - there they all are but clicking an entry gives you:


 * The database did not find the text of a page that it should have found, named "Main Page,oldid=9193".
 * This is usually caused by following an outdated diff or history link to a page that has been deleted.
 * If this is not the case, you may have found a bug in the software. Please report this to an administrator, making note of the URL.

Any ideas how to restore my database? There's four years work right now in danger... --Scotthatton 10:17, 10 October 2008 (UTC)

(OUTDATED) weird stuff gets inserted
Greetings
 * MediaWiki version: 1.13.2
 * PHP version: 5.2.6
 * MySQL version: 5.0.51b
 * URL: http://wiki (Internal)

I've installed this wiki for general sharing of company info and help. The problem comes in when I try to edit. I get that the content changes, and tables gets inserted and all kinds of weird stuff gets inserted. The text changes, and some gets removed and others inserted. I thought that it might be me, and so installed FCK editor, since I'm familiar with it. But then the exact same thing happened there. I read up on this, and can not find the problem, so I came ot this page, and when I queried my MediaWiki for the version, I noticed that the same type of text changes seems to have happened here ?

I'll give you a simple example. In the "Special:Version" page, I get the following "tr> < [< Installed extensions  <[  " Any Ideas ?

(RESOLVED) Changing Timeout For User Logins
Hello,
 * MediaWiki version: 1.10.0
 * PHP version: 5.2.4-2ubuntu5.1 (apache2handler)
 * MySQL version: 5.0.51a-3ubuntu5.1
 * URL: internal

How can I increase the length of time before a login expires, and I have to re-enter my password. I've found various timeout related configuration variables, but they appear to be related to other things.

—159.178.53.151 Erik


 * If you select Remember my login on this computer, then you can remain logged in for the number of seconds set in $wgCookieExpiration. Otherwise, you're relying on the session.gc_maxlifetime setting in php.ini. —Emufarmers(T 01:23, 17 October 2008 (UTC)

(OUTDATED) Syntax highlighter extension no longer creating a dotted box

 * MediaWiki version: 1.13.2
 * PHP version: 5.2.1 (apache2handler)
 * MySQL version: 5.0.38-Ubuntu_0ubuntu1.4-log
 * URL:

I updated to the latest stable version of mediawiki and updated the code syntax highlighter extension (version info below): SyntaxHighlight (Version r41349) Provides syntax highlighting is fine. —Emufarmers(T 03:08, 17 November 2008 (UTC)

(OUTDATED) Transcluding subpages
I'm trying to use subpages to store individual chapters in a book named Baz, and sub-sub pages to store individual sections of each chapter. The chapters transclude the sections using relative includes like rather than the full path  and the top level page transcludes all of the chapters as. If I view the chapter page Baz/Chapter Bar, then the transclusions of the sections look fine, but if I look at the top level page Baz, it tells me that Baz/Section Foo does not exist, which of course it doesn't.
 * MediaWiki version: 1.13.2
 * PHP version: 5.0.4
 * MySQL version: 4.1.20
 * URL: http://www.osresearch.net/wiki/index.php/LaTeX_and_MediaWiki

Is it possible to have the second transclusion take into account the path to the page that generated the transclusion (Baz/Chapter Bar</tt>), rather than using the relative path of the page being viewed (Baz</tt>)?

—24.126.107.168 04:01, 17 November 2008 (UTC)


 * Following up my own question, Help:Template says that

A page A can transclude a subpage A/B using or, with more control over the name of the page to be transcluded, this name can be constructed from.
 * So if page A transcludes subpage A/B, how would page A/B then transclude A/B/C without using the full path? Or, when transcluded from A,  is there a variable like  that page A/B can use to refer to itself rather than A?  -24.126.107.168 15:40, 17 November 2008 (UTC)

(RESOLVED) Please change my username
Sorry to disturb someone here, but I'm unable to find the right place to apply: Can please someone change user:WeHaWoe => user:W. ASAP? I left a reason on my talk page. Thank you.

—Wolfgang 08:14, 17 November 2008 (UTC)


 * See Project:Requests -- :bdk: 20:55, 14 December 2008 (UTC)

(RESOLVED) How to run parser tests

 * MediaWiki version: 1.14-alpha (HEAD)
 * PHP version: n.a.
 * MySQL version: n.a.
 * URL: n.a.

I have been trying to find a "How to run parser tests", but I haven't been able to. Can someone please give me a quick run through? I'll create a manual page out of it. Running parser tests on Betawiki, I get the errors below. Maybe they shouldn't even be run on a live wiki, but only in a non-production test/dev environment. Thanks. Siebrand 22:06, 16 November 2008 (UTC) /var/www/w/maintenance$ php parserTests.php This is MediaWiki version 1.14alpha (r43583).

Reading tests from "maintenance/parserTests.txt"... parserTests.php: DB error: A database error has occurred Query: SELECT value,exptime FROM `parsertest_objectcache` WHERE keyname='mediawiki-parsertest_:messages:en' Function: MediaWikiBagOStuff::_doquery Error: 1146 Table 'mediawiki.parsertest_objectcache' doesn't exist (localhost)

A database query syntax error has occurred. The last attempted database query was: "SELECT value,exptime FROM `parsertest_objectcache` WHERE keyname='mediawiki-parsertest_:messages:en'" from within function "MediaWikiBagOStuff::_doquery". MySQL returned error "1146: Table 'mediawiki.parsertest_objectcache' doesn't exist (localhost)"
 * I hacked my way around it. The parser test test suite assumes that the database prefix is 'parsertest_' in line 540. This is not configurable from the commandline, which makes it a bit inflexible. I suggested in 16374 to make a commandline parameter for it, with the special value 'none' for an empty prefix. Siebrand 21:40, 17 November 2008 (UTC)

(RESOLVED) help with taxoboxes, does mediawiki 1.6 support?

 * MediaWiki: 1.6.10
 * PHP: 4.4.9 (cgi)
 * MySQL: 5.0.67-community
 * URL: skunkBgone.com

Does MediaWiki support Taxoboxes? I've RTFM and cant get anything to work? I need a hand held step by step process.


 * http://commons.wikimedia.org/wiki/Commons:Taxobox#Detailed_structure
 * http://commons.wikimedia.org/wiki/Commons:Taxobox
 * http://commons.wikimedia.org/wiki/Commons_talk:WikiProject_Tree_of_Life#Taxoboxes
 * http://en.wikipedia.org/wiki/Wikipedia:Taxobox_usage

If i cut and paste examples I get odd UI display. example:

Plant species
generates the following no actual taxobox on my wiki only an internal link to Template:taxobox.

and the content within the   tags is echoed onto page.

???

—Cordingley 17:44, 17 November 2008 (UTC)


 * Copy over the taxobox template. —Emufarmers(T 01:17, 18 November 2008 (UTC)
 * … and you may need to copy some infobox styles from en:MediaWiki:Common.css. -- :bdk: 07:50, 14 December 2008 (UTC)

(RESOLVED) Questions regarding Monobook skin/printable page
I am migrating our internal wiki from 1.8.2 to 1.13.0 and the former used a severely modified version of the Monobook skin - main.css was severely stripped and the columns were formatted using a table rather than Big John's neet (sic) fun and games, which I've just recently discovered. One of the side-effects of using a table is (so I believe) that the Printable page feature no longer does what it does for Monobook - in fact, the person who set up the skin (and has since left the company) removed that option.
 * MediaWiki version: 1.13.0
 * PHP version: 5.2.6 (apache2handler)
 * MySQL version: 5.0.67
 * URL: (internal)

I wish to reinstate that feature and appear to have two options - either fit the skin into Big John's method (once I've really got my head around that!) or see if I can fix what the printable-page code does so that it finds the content in the table.

I think I can find my way around the former option (albeit slowly, as a novice at this stuff!), but I've not been able to find what I need about "printable=yes", so I'd appreciate it if you could tell me where to find the code for this.

BTW, this page only has one text box("Subject/headline"), not two as the "Three steps to a good request" suggest. Hopefully I've formatted this request properly! ;-)

Many thanks,

—Andthepharaohs 11:40, 18 November 2008 (UTC)


 * I have now discovered how the printable page is managed - so for the benefit of any other novices out there, it's done by skins/common/wikiprintable.css.
 * Andthepharaohs 10:39, 26 November 2008 (UTC)

(OUTDATED) $wgWhitelistRead RequestAccount with EMAILTOKEN

 * MediaWiki version: 1.13.2
 * PHP version: 4
 * MySQL version: 4.1.22
 * URL: http://sbiesterfeldt.de/MF/mediawiki/index.php

Hi,

my DefaultSettings.php looks like: $wgWhitelistRead = false; $wgWhitelistRead = array("Benutzerkonto beantragen", "Spezial:Benutzerkonto_beantragen"); $wgWhitelistRead = array("Request Account", "Spezial:RequestAccount"); $wgWhitelistRead = array("Confirm Account", "Spezial:RequestAccount&action=confirmemail&wpEmailToken="); A new User created a account. The Confimation-E-Mail see a LINK to confirm the Account:

http://sbiesterfeldt.de/MF/mediawiki/index.php?title=Spezial:RequestAccount&action=confirmemail&wpEmailToken=882c633fd99d77ba6f629dce3c6ba0a2

The NEW User click on the Link and see this error Message:

"You must sign-in, to see this page"

Regards

Sascha —62.143.217.163 21:46, 18 November 2008 (UTC)

(OUTDATED) Error when embedding two special pages

 * MediaWiki version: 1.11.0
 * PHP version: 5.2.6 (cgi-fcgi)
 * MySQL version: 5.0.67-log
 * URL: http://recycleabike.org/wiki/index.php?title=Main_Page&oldid=1608

I am having a problem when trying to embed two special pages into my main page. I want to embed both "Special:Categories" and "Special:Uncategorizedpages". I edited LocalSettings.php to allow these two pages to be embedded. If I embed one or the other on its own, it comes out fine. However, when I embed both into the same page, I get an error - uintelligible text where the "Special:Categories" page should be embedded.

Please help. Thanks. —Mrengy 22:21, 22 November 2008 (UTC)

(RESOLVED) Media Wiki version questions
Where can I get MediaWiki 1.14 Alpha

—202.137.66.72 04:29, 23 November 2008 (UTC)


 * Download from SVN. --Ilmari Karonen 18:17, 2 December 2008 (UTC)

(RESOLVED) Smaller edit buttons
How can I get those "edit" buttons smaller? The standard buttons are lots bigger than, for example, the buttons on Wikipedia.
 * MediaWiki version: 1.11
 * PHP version:
 * MySQL version:
 * URL:

—86.88.44.213 20:52, 25 November 2008 (UTC)


 * Which edit buttons? (there are different links/positions that are commonly called "edit buttons" … page editing, section editing, other?). Generally you can adapt such things by editing your CSS. -- :bdk: 20:55, 14 December 2008 (UTC)

(RESOLVED) Swedish available?
Is there any swedish language available for Mediawiki?

—217.211.113.108 09:06, 30 November 2008 (UTC)


 * Yes: You will have the option to set your wiki's language when you create it, and you can change it afterward with $wgLanguageCode. —Emufarmers(T 19:53, 30 November 2008 (UTC)

(RESOLVED) Defining class/styles

 * MediaWiki: 1.11.0
 * PHP: 5.2.5 (cgi-fcgi)
 * MySQL: 5.0.67-log
 * Url: www.jainkosh.org

I have question about defining class or styles in one place and using those in various wiki pages. I don't want to define it on each wiki page, so should be defined in some single place. Is there a way to do this?

Thanks, Vikas

—71.139.31.202 05:00, 7 December 2008 (UTC)


 * I found the place where to save the class definitions. It's in the skin directory and common.css file.

(RESOLVED) Non-alphanumeric characters display as their escape sequence in browser's address bar

 * MediaWiki version: 1.12.0 (r29)
 * PHP version: 5.2.6-3 (cgi-fcgi)
 * MySQL version: 5.0.51a-6
 * URL: http://ambitiouspagoda.com/wiki/Liam_Tesanqua_(4E)

If I add a link that goes to the page http://ambitiouspagoda.com/wiki/Dungeons_and_Dragons#Antiquated_Shade_-_4th_Edition_Reboot with a title like Liam Tesanqua (4E) that has parentheses, and then click on that link, the address appears as an escape sequence in the address bar of my browser: http://ambitiouspagoda.com/wiki/Liam_Tesanqua_%284E%29

I noticed that in wikipedia, I never see escape characters even when parentheses are present, such as here: http://en.wikipedia.org/wiki/Imagine_(album). The only way that the escaped version of the url does not appear is if I manually type the non-escaped version into the address bar and hit enter as in http://ambitiouspagoda.com/wiki/Liam_Tesanqua_(4E). I think the escape characters look nasty and would like the non-escaped version to always appear so that someone linking to the page does not copy and use the escape version (although I realize it will work just as well).

Thanks in advance

—129.21.254.140 18:05, 8 December 2008 (UTC)


 * I did a little testing, and it seems that the escape characters appear on wikis using rewrite rule-based short URLs, but not on wikis using the recommended alias method. I don't know of any solution to this other than using an alias method (which your hosting may not allow). —Emufarmers(T 04:36, 9 December 2008 (UTC)
 * I'm not sure how that could affect it, since the browser shouldn't see any difference between the two methods. Are you sure you didn't accidentally set up your rewrite rules to do a client-side redirect?  (Ps. I can't replicate the original problem here on Firefox 3.0.4: both of the links appear with unescaped parentheses in the address bar.)  --Ilmari Karonen 00:08, 10 December 2008 (UTC)
 * Try it with IE. It seems that FF unescapes the URL automatically. (It could instead be that IE is escaping the URL, but if that were the case, I would expect the same thing to happen on a wiki using aliases.) —Emufarmers(T 00:53, 10 December 2008 (UTC)

(RESOLVED) Inserting a search field

 * MediaWiki version: 1.13.0
 * PHP version: 5.2.5 (apache2handler)
 * MySQL version: 5.0.26
 * URL:

Hi. I'm trying to insert a search field that will search the database of uploaded files. I'm sure you guys have posted the answer somewhere on your comprehensive site, but can't find it sorry.

Can you help.

Cheers. keith.

keith.fitzpatrick@lotterywest.wa.gov.au 1711 West Aus DST, 15th Dec 2008 —167.30.38.252 08:12, 15 December 2008 (UTC)


 * An easy way to do so is to install Extension:InputBox and then to use something like:


 * That will produce:


 * Keep in mind that you have to use "Image" instead of "File" for the respective namespace on MediaWiki 1.13 and earlier. -- :bdk: 14:36, 15 December 2008 (UTC)

(RESOLVED) How to allow MediaWiki access only to registered users?
Hello,
 * MediaWiki version: 1.9.2
 * PHP version: 5.2.6 (apache2handler)
 * MySQL version: 4.1.22-max-log
 * URL: private

I installed MediaWiki as organisation platform for some friends of mine. I want only registered users to view and edit pages. Unregistered users should first create an account. Is there a way to avoid that unregistered users can view and edit my MediaWiki?

Thanks a lot —192.251.226.205 13:24, 17 December 2008 (UTC)


 * Manual:User rights —Emufarmers(T 02:55, 18 December 2008 (UTC)

-*-*-*-*

You do this by inserting following codes at bottom of your LocalSettings.php file;

$wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['read'] = false;
 * 1) Stop anonymous user from editing any page
 * 1) Stop anonymous user from reading any page