Project:Support desk/Archives/Miscellaneous/001

=2006=

(RESOLVED) How do I use the same user-table for different wikis?
How do I use the same users table for differents wikis that use the same datebase? (Asked by Eloy 19:45, 5 May 2006 (UTC))
 * Could this be answered please? --Zervon 18:36, 13 May 2006 (UTC)
 * Maybe you can create a view with MySQL 5.x:
 * create view schema1.user as select * from schema2.user --Maletin 14:11, 31 May 2006 (UTC)

(RESOLVED) Special Symbols for Editing Screen
A colleague from my university's computer center helped me download mediawiki to our provider because I'd like to use it for linguistic projects. However, in the editing mode the table of special characters and symbols that you find in Wikipedia is not available. How can we get that? Can anybody help us? Thanks. --Joachim 132.180.7.27 15:42, 15 May 2006 (UTC)


 * You need the Charinsert extension. Look at w:MediaWiki_talk:Edittools/Archive_02. Bradleyb 23:53, 18 May 2006 (UTC)

(RESOLVED) Executing external code
How can a link be used to execute other code (PHP, java etc)? I would like to allow the user to click something on the page (button, link, whatever) which would then cause an external program to run.


 * There are various methods of executing external code. You may want to investigate writing an extension (see Manual:MediaWiki hooks for some further information, or try Google).  A more specific question detailing what you are actually trying to achieve would be helpful. --HappyDog 14:44, 26 May 2006 (UTC)

(RESOLVED) Changing the interface text / updating to 1.6.6
Changing the interface text as described in the FAQ (via editing system messages listed in Special:Allmessages) works well. However, while updating from MW 1.6.5 to 1.6.6 today, I realised that the MediaWiki namespaces was re-initialised, thus blowing away all changes I had carefully made! Note that this did not happen while upgrading from 1.6.3 to 1.6.5 only weeks ago!

There was nothing I could do but to go back to my (luckily) backed-up 1.6.5 installation.

Is there any way to make the update script leave the MW namespace untouched?
 * Already answered you here. Greetings -- :Bdk: 00:15, 24 May 2006 (UTC)

(RESOLVED) Smiley
How can I add smiley functionality so that if I write :P or :lol: it will be replaced automatically with the appropriate image? Thx Semut 18:35, 27 May 2006 (UTC)


 * No such functionality exists. -- Sysy / (talk) 16:01, 31 May 2006 (UTC)


 * This functionality is not available in MediaWiki, and will not be added. However, an extension may be available to do this.  If not, you could try writing your own. --HappyDog 12:48, 12 June 2006 (UTC)

Hook the pre-save transform, rip out  sections etc. then do a regular expression replacement. robchurch | talk 13:13, 13 July 2006 (UTC)

(RESOLVED) Running maintenance scripts from command line
Why are maintenance scripts restricted to running from comand line? Could not it be left up to the administrator (with a suggestion that it should better be done from the command line)?

I, for example, don't have a command line access to my site on a shared host, so I cannot do all those maintenances! For example - how to change a language? You write in the FAQ: change the language variable and run "rebuildMessages.php". So, how do I run it?... --Knakts 17:10, 30 May 2006 (UTC)


 * Have you looked at phpShell? The scripts have to be run from the command line for a mixture of security and because certain scripts will take a longer time to run than PHP is allowed when running over the web. robchurch | talk 13:11, 13 July 2006 (UTC)

(RESOLVED) How do I rename my wiki?
I would like to change the name of my wiki. Is it possible to do this without re-installing everything?

The essential thing is:

1) Edit LocalSettings.php and change the $wgSitename setting.

You may also wish to:

2) run maintenance/rebuildMessages.php --update to re-source localized messages. Shouldn't be strictly required with current versions of MediaWiki, but some older versions hardcoded information into the wiki at install time.

3) Run maintenance/namespaceDupes.php --fix in case your new name produced any namespace conflicts which could make existing pages inaccessible.

4) Run maintenance/refreshLinks.php to update link tables.

5) Check Special:Allmessages and Special:Allpages for pages which might need to be moved and links that need to be fixed

Thanks to Brion Vibber on the mailing list. This info is presumed to be accurate as of MediaWiki 1.6. I have not tested it. -- Sy / (talk) 15:57, 31 May 2006 (UTC)

(RESOLVED) Importing large amounts of existing material?
I'm new to wiki in general and mediawiki in particular. I'm skilled in SQL but unskilled in PHP. My company has a large amount of existing information in online help files, customer support databases, etc. Are there any guides to converting that information to wiki format? I've looked at amazon and bookpool for books that cover these topics, but it looks like the best book is outdated (Perl-based) and the others don't address conversion very much. --2006


 * Try http://meta.wikimedia.org/wiki/Help:WordToWiki or Import, Export function http://meta.wikimedia.org/wiki/Special:Export http://meta.wikimedia.org/wiki/Special:Import - Lesiu

(RESOLVED) Error when clicking "Please setup the wiki first."
I get this error when trying to install: Parse error: syntax error, unexpected T_NEW in /includes/MagicWord.php on line 203

Please give response or email fvercuiel@gmail.com


 * You're using an older version of PHP that MediaWiki 1.7 does not support. MediaWiki 1.7.0 and later require PHP 5 (5.1.x is recommended). robchurch | talk 12:55, 13 July 2006 (UTC)
 * I get the same error with PHP 5.0.5 (specifically, 5.0.5-2ubuntu1.4, built 7 Sep 2006 08:02:47).

(RESOLVED) Change the mulitple-links-to-one-host-style
How can I keep the wiki from translating multiple links to the same host to [1], [2], ...? I try to use the Mediawiki as an Intranet and therefore Documentations often reside on the same host but I still want to provide a visible Link-Title. --VVA 08:53, 11 July 2006 (UTC)


 * Either use the labelled external link syntax, e.g.  or investigate the use of interwiki links which allow linking such as  . robchurch | talk 13:10, 13 July 2006 (UTC)

(RESOLVED) How do I change a user's password?
Assuming that $wgPasswordSalt is set to true (the default), you can use the following SQL query:

UPDATE user SET user_password = MD5(CONCAT(user_id, '-', MD5('somepass'))) WHERE user_name = 'someuser'; Where obviously "somepass" is changed to the password you want to set and "someuser" is changed to the user name as it is listed in the table "user".

Note: the user_id in the CONCAT string is a column name and is not meant to be replaced with 'someuser'

Note: For error of table 'dbname.user' does not exist, please check the LocalSettings.php for $wgDBPrefix, the user table might be named to ($wgDBPreix)user.

--2006

(OUTDATED) 1.7.1 and $wgDBtransactions
After a fresh Mediawiki 1.7.1 install and albeit many tables use the 'InnoDB' storage engine, the default '$wgDBtransactions' remains at its historical 'false' value. It is used in 'includes/Article.php' clauses.

May I set "$wgDBtransactions = true" in LocalSettings.php? Is this variable obsolete?

Thank you Natmaka 16:53, 17 July 2006 (UTC)

(RESOLVED) Underscore in title
I want to use MediaWiki for a manual and reference. As several of my functions have '_' within their name, it would be nice if the name of the function would be displayed with _ instead of blank especially in the title of the page. Is there any possibility to tell MediaWiki that the lemma must have a _ instead of a blank? --87.78.154.2 15:29, 14 July 2006 (UTC)


 * No. 164.11.204.56 01:02, 7 December 2006 (UTC)

(RESOLVED) Content Migration from different existing wikis to one
We do have some wikis in our organization (all mediawiki but different server, different versions, mostly v. 1.3.x)) and now plan to insatll one (media)wiki (v 1.7.1) instead. Of course there's lots of content we dont't want to loose, but also old stuff that does not need to be transferred to the new wiki. Is there a user friendly way of selecting specific pages and transfer those to the new wiki (instead of copy&paste or some work in MySQL (which cannot be done by the users))?

I know of the Special:Export page. Only that Import is not working for older versions and I Don't know whether Export from 1.3.wiki works for import in wiki 1.7.

18 July 2006


 * The XML format from earlier versions should be 100% compatible with the current development, release and the most recent legacy (1.6) branches. 86.134.116.228 04:22, 12 August 2006 (UTC)

(RESOLVED) Delete a file
We just installed a wiki at work and I need to know how to delete a file as the steps aren't in the article yet. Thanks. Rlevse 13:50, 19 July 2006 (UTC)
 * Also, how to delete a user and reset a password.140.32.75.204 18:56, 19 July 2006 (UTC)

From the mysql prompt:

mysql> DELETE FROM user WHERE user_name = 'Jcarr'; Query OK, 1 row affected (0.00 sec)

Note that mediawiki seems to like to capitalize the first letter of your login name. If you don't have the username correct, mysql will return "Query OK, 0 rows affected" Jeff Carr 20:10, 26 July 2006 (UTC)


 * Note that deleting users in that manner does not remove the copious references to them from the rest of the database, and could cause odd problems later. A safer method is to run reassignEdits.php on the account, assign the edits to a name that does not exist, and then delete the account. As an alternative, consider blocking the user or scrambling their password.


 * To delete a page, log in as an administrator, and select the Delete option from the context menu which appears, in the Monobook (default) skin, at the top of each page.


 * To reset a user's password, the simpler option is to ensure there's an email address associated with the account, and ask the user to click "lost password" when logging in. If this is not an option, then look at the maintenance/changePassword.php script or search the web for mediawiki password md5. 86.134.116.228 04:18, 12 August 2006 (UTC)

(RESOLVED) Sessions errors
I've been trying to fix our install of MediaWiki, and have found that some pages (main page, in particular) do not show up correctly unless logged in. I attempted to edit the page to see if that would fix it, and I got this error:

Sorry! We could not process your edit due to a loss of session data. Please try again. If it still doesn't work, try logging out and logging back in.

and the edits never go through. In getting the wiki to work again, I had copied data from a new objectcache to and older one, could this be related? Thanks very much! --128.113.63.60 13:44, 24 July 2006 (UTC)


 * The first problem sounds like caching. Set $wgCacheEpoch in LocalSettings.php as follows to force MediaWiki to clear old caches:




 * The second problem, if the edits aren't being saved, could be due to PHP not saving session data in the right location. Check the value of session.save_path in the php.ini configuration file and check it points to a valid, writable path. 86.134.116.228 04:21, 12 August 2006 (UTC)

(RESOLVED) Semi-protection and time limit
I've searched for it quite extensively, but I cannot find it anywhere. How to implement a 4 day waiting period for registered users to be able to edit semi-protected pages, like it is the case in en.w? If someone could point me to the place (which I am almost sure exists) on how to implement that, I'd appreciate it.


 * Set $wgAutoConfirmAge, e.g.




 * in LocalSettings.php. 86.134.116.228 04:12, 12 August 2006 (UTC)

(OUTDATED) Passing a space as argument to an extension
Don't know if this is the right space to discuss this. If not, please point me ...

I am trying to pass a space as an argument to an extension.

Example: text

The extension code registering the extension is as follows: function extension { global $wgParser; $wgParser->setHook( 'extension', 'doit' ); } function doit( $input, $args, &$parser ) {

...

}

The $args in the function 'doit' are already space free. It seems that the arguments get trimmed, because something like  goes through but   results in just a single   without leading and trailing space.

Is there a way to avoid this? --83.171.153.127 22:57, 13 August 2006 (UTC)

(RESOLVED) Remove Edit tab for non logged in users
Ok, I've read the FAQ, but I can't seem to understand it. Can someone show me how the final code should look when its done? I use the MonoBook skin.--70.33.138.121 23:24, 18 August 2006 (UTC)
 * Oops, this is me, didnt realize I wasnt logged in.--Trek84 23:26, 18 August 2006 (UTC)
 * Does this item make sense anymore anyway? "How can I prevent editing by anonymous users?" looks more like one actually wants and the "Remove Edit tab" tip does only remove the edit tab but not the in page section edit links anyway Hholzgra 21:19, 4 January 2007 (UTC)
 * Well, you can hide it in your global CSS by modifying the skin files, or you could just disable page editing by anonymous users, and they would get the "View source" tab instead of the "edit" tab. Tito<font color="#008000">xd (?!?) 08:01, 7 January 2007 (UTC)

(RESOLVED) differences between 1.5x, 1.6x, 1.7x
Where can I find a list of the main differences between the version 1.5x, 1.6x, 1.7x ?


 * Compare the release notes in each version. The release notes shipped with 1.6.0 detail changes since the 1.5 branch, for instance. robchurch | talk 02:58, 30 August 2006 (UTC)

(RESOLVED) Sign Up as an Administrator
How do I sign up as an administrator? How can I create an sysop account?
 * If you are the system administrator of the wiki, when you has create your wiki the installation script should ask you the pseudo and the password for a sysop-and-bucreaucrat account. You can use this account for give sysop rights to other users.
 * If you aren't system admin, you must ask a bureaucrat the sysop rights or perhaps be eleted. ~ Seb35 18:07, 31 August 2006 (UTC)
 * The 1.8 MediaWiki installation script does not ask for this information, it sets up the first user as the administrator. To make an account a sysop you may want to look into the Makesysop extension used here on Mediawiki (which surprising has no page at all describing it nor including the code).  Also a good resource is here at Managing User Rights, however as that currently redirects you to Meta you can go directly here: Meta: Help:User Levels --Grymwulf 04:53, 12 January 2007 (UTC)

(RESOLVED) Transclusion
Is there a way of Transcluding a template only if that temaplte exists? I don't want to get the red link if it doesn't exist.

The reason I want to do this is as follows:

I want to use templates on my wiki's main page and  which will display any special information for that day. If nothing is happening on that day then I don't want anything to show up.

[Zabdiel] 15:24, 31 August 2006 (UTC)
 * I don't know if it's possible, but you can hack with the ParserFunctions (you must install this on your wiki) :
 * Create an intermediate template Template:DisplayTemplate</tt> (or other name) with
 * You use  and will display only if Template:today&#123;{CURRENTDAY}}</tt>
 * ~ Seb35 18:28, 31 August 2006 (UTC)
 * ~ Seb35 18:28, 31 August 2006 (UTC)

(OUTDATED) How to change the date format ?
I want to change the date format on the footer

this page was last modifed 16:24, etc I want to remove the timestamp and leave just the date

how would I do this ? --2006

(RESOLVED) Linking to .mov files (Quick Time) won't work
After: allowing uploading of .mov files to my wiki, successfully uploading a certain .mov file and watching it from the page I've been directed to, I found my wiki won't link to it. If I type, for instance, [[Media:Example.mov]] (assuming my .mov file's named Example), I'd get a red link, leading to "Upload file" page. What am I doing wrong? --87.69.58.71 17:59, 4 November 2006 (UTC)
 * Check your apache error logs. Most likely you're running into PHP's 8MB upload limit.  I came across this discussion because I was searching for a way around it, which I still haven't found. --Anonymous User, 16 November 2006

(OUTDATED) Search in different wikis
Hello, I would like to know if there is a way to, from one wiki, search words also in a different wiki and have all the results shown in the first Wiki? Many thanks in advance. Proth 16:20, 8 November 2006 (UTC)
 * ex: Type words to search in Wiki A, wiki A search in itself and also in Wiki B and show all the results in Wiki A.

(RESOLVED) Search spécial characters
Many thanks in advance. Proth 16:20, 8 November 2006 (UTC)
 * Hello, We still have a recurent problem in searching for special caracters, like accents, in Wiki.
 * ex: Search for word "eglise" doesn't give articles containing word "église".
 * We can't find any information/solution for this problem. If anybody have a idea...


 * I'm currently working on an extension, DidYouMean that finds titles which differ only by capitalisation, hyphenation, and use of accents and ligatures. It's primarily for the English Wiktionary but once it exists people will be able to massage it into something more general for other wikis. &mdash; Hippietrail 12:29, 12 January 2007 (UTC)

=2007=

(RESOLVED) Does Webscapia's Coconut CMS work with MediaWiki?
Yes, to run mediawiki side-by-side with Coconut CMS you must have version 1.2+ installed! After you have ensured that version 1.2+ is installed, do the following: --2007
 * 1) Login as administrator in the admin panel.
 * 2) Click on modules, and click on the software install tab.
 * 3) Select mediawiki.
 * 4) DO NOT CLICK ON DOWNLOAD. Under the mediawiki click on integration and wait for the installer to configure Coconut CMS.
 * 5) And your done. A new tab should appear in the main menu called Wiki. If this does not happen make sure in /Coconut/admin_cp/functions/func_menucreate.php has a chmod of 777. And then run the integration installer once again.

(RESOLVED) setup not working
* PHP 5.2.0 installed * Found database drivers for: MySQL * PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title) * Have XML / Latin1-UTF-8 conversion support. * PHP is configured with no memory_limit. * Have zlib support; enabling output compression. * Couldn't find Turck MMCache, eAccelerator or APC. Object caching functions cannot be used. * GNU diff3 not found. * Found GD graphics library built-in, image thumbnailing will be enabled if you enable uploads. * Installation directory: C:\Apache\htdocs\w * Script URI path: /w * Environment checked. You can install MediaWiki. * Warning: $wgSecretKey key is insecure, generated with mt_rand. Consider changing it manually.

Generating configuration file... * Database type: MySQL * Loading class: DatabaseMysql * Attempting to connect to database server as wikiuser...success. * Connected to 5.0.27-community-nt * Database wikidb exists * Creating tables... using MySQL 4 table defs...Query "CREATE TABLE `user` ( user_id int(5) unsigned NOT NULL auto_increment, user_name varchar(255) binary NOT NULL default , user_real_name varchar(255) binary NOT NULL default , user_password tinyblob NOT NULL default , user_newpassword tinyblob NOT NULL default , user_email tinytext NOT NULL default , user_options blob NOT NULL default , user_touched char(14) binary NOT NULL default , user_token char(32) binary NOT NULL default , user_email_authenticated char(14) binary, user_email_token char(32) binary, user_email_token_expires char(14) binary, user_registration char(14) binary, PRIMARY KEY user_id (user_id), UNIQUE INDEX user_name (user_name), INDEX (user_email_token) ) TYPE=InnoDB " failed with error code "BLOB/TEXT column 'user_password' can't have a default value (localhost)".


 * i fixed it by turning off strict mode


 * Please submit this to the Bug Tracker --Grymwulf 05:08, 12 January 2007 (UTC)

(RESOLVED) Edit sidebar, part 2
I understand how to edit the sidebar above the search box, by editing MediaWiki:Sidebar, But how do I edit the sidebar below it. Some wiki's have an additional box below the toolbox section, for seperate links, such as "Site in a different langusge" or containing Google Adsense.

--Steve Gallagher 22:13, 28 January 2007 (UTC)


 * To do this edit MediaWiki:Sidebar-lower. I dont know if this works in all versions.--George Drummond 22:41, 28 January 2007 (UTC)

(RESOLVED) Upgrades 1.9
I just upgraded MW v1.9 to 1.9.2.

Background: My server has php5 installed but it runs php4 as a default. So, I had to do a little trick to install the MW v.1.9 originall by adding .access file and  and place it at the root directory of my server to tell it to use php5 instead of php4. I hope this helps others save their time and alleviate pain.--Kohyin 09:24, 17 February 2007 (UTC)
 * The update instruction tells you to go to command line and type
 * So, as simpleminded as I was, I typed  but it didn't work
 * It's because I should have ignored $ symbol at the command line
 * So, I typed, but I got the message that this MW version requires php5 but my server is running on php4.
 * I found out that I had to type  in my case.
 * So, I typed  but now it told me I had to have a LocalConfig.php -- well I am a total beginner, so I just followed the instruction and there was no mention of creating a LocalSettings.php before the update command, but it make sense that I had to have the file...to come to think of it. My bad.
 * So, I moved my LocalSettings.php file along with all the customized files into the new wiki files.
 * This time it told me that it couldn't connect to the database and told me to check the database name, user name, and password.
 * This, I couldn't figure out why it didn't work as all the information on my LocalSettings.php were correct.
 * I gave up on update and went for install -- good news is that this worked and I didn't loose anything other than the time I spent on trying to update -- I had the database backed up just in case.

(OUTDATED) Blank Pages despite successful installation
Am trying to use MediaWiki on WIMP. Win2k Prof, IIS 6, MySQL 4.1.22, PHP 5.2.1. Downloaded MediaWiki 1.9.3. Installation is successful and main page has come up. But clicking on any link on the Main page is displaying a blank page in IE. What could be the problem. Pls help. Am trying to figure it out for the last 3 days and haven't found a solution. - Radha


 * what do the error logs of IIS and PHP say? -- Duesentrieb ? 12:45, 7 March 2007 (UTC)

I don't know how to interpret the log. sorry. But these are the last 2 entries: 12:03:17 127.0.0.1 GET /enlighten/index.php 301 12:03:17 127.0.0.1 GET /enlighten/index.php 200 Today, I reinstalled PHP, recreated the vdir in IIS and put in $wgCachePages = false; in localsetttings.php. And guess what? The main page is itself blank. :( Don't know what to do. - Radha

(OUTDATED) making mediawiki faster?
I remember during install it asked me if I had certain things on my server to make the software faster. In the future, if I do get these things, how do I implement them into my wiki later on? Also, I can't recall the names of them? Sorry for my ignorance, any help is appreciated. 66.192.186.99 19:13, 29 March 2007 (UTC)

(OUTDATED) Bug in hide section editing? (3.16)
works fine for deactivating the section editing links. But if the "raw" action is disabled, the section editing links show up again.

Why is that? --2007

(RESOLVED) Editing template sections
Hey all, I help maintain a WIKI dealing with game archive formats (XeNTaXWIKI), and I recently started implementing a new layout that makes extensive use of templates. However, I've run into a bit of trouble - when trying to edit a section, it takes you to the template edit screen instead of that for the page. I have looked at the documentation here, but haven't found a solution to this. Is there any way around it, apart from either using a seperate template for each section, or hitting the main 'Edit' link every time?


 * -Dinoguy1000


 * Anytime a template uses a section header, clicking the edit link for that section will take you to the template. The easiest workaround is to not include the section headers in the templates--only show the content of the section--and then put the headers in the page itself.  Alternatively, you can include the magicword  (double underscores on each side) anywhere in the page (even on the templates being included) and you will not have the edit section links appear anywhere in the page.  --76.215.127.150 15:01, 17 May 2007 (UTC)

(OUTDATED) Removing Edit Tab Doesn't Work
i'm trying to remove the edit tab so that users who do not have an account cannot edit information on my wiki. i've tried exactly what the FAQ answer says to do. My wiki is a default wiki at the moment. i'm wondering if anyone who comes to the site is logged in by default with their IP address being their username. The IP Address shows up next to the login/signup link at the top right with a "my talk" page link next to it. Does this have anything to do with it my "edit tab" problem? Thanks, Lefedy 14:35, 16 May 2007 (UTC)

(RESOLVED) How can I force users to preview before they save in version 1.10?
Does anyone know how to fix this issue (How can I force users to preview before they save) for MediaWiki 1.10? Thanks in advance. /Minken


 * I do it this way on my wiki: (in diff format) --203.217.47.76, aka en:User:Jeremy.Visser 22:45, 24 May 2007 (UTC)

Index: includes/EditPage.php =================================================================== --- includes/EditPage.php      (revision 22056) +++ includes/EditPage.php      (working copy) @@ -1152,6 +1152,10 @@                $checkboxhtml = implode( $checkboxes, "\n" ); $buttons = $this->getEditButtons( $tabindex ); + +              if ( $this->formtype !== 'preview' ) +                      unset($buttons['save']); +                $buttonshtml = implode( $buttons, "\n" ); $safemodehtml = $this->checkUnicodeCompliantBrowser


 * Thank you very much, Jeremy Visser. It works fine! /Minken

(OUTDATED) Title Extension
What is the name of the Extension that allows you to change the titles of pages? Plumber 23:33, 10 June 2007 (UTC)

(OUTDATED) How to start over
As a first-time creator of a wiki, I am unsure about some choices on the MediaWiki site config form. Will I be able to go back and do any of them over again, without having to drop all tables in the database and starting from a fresh copy of the MediaWiki software? Are those two steps enough to ensure a fresh start? --June 2007

(OUTDATED) How do I remove the "Talk for this IP" link at the top right when $wgDisableAnonTalk is true
When I add this in 1.10, after I log in I get an error on getText. any ideas? 68.4.226.3 05:55, 27 June 2007 (UTC)

(OUTDATED) Changing tabs?
How do I change the tabs on the header above, like "manual" "discussion" "edit" "history". I´d like to use my own labels for these expressions... --2007

(OUTDATED) mail features
Howto set up mail features?

The easy way (need to be able to install stuff on the server)


 * 1. install the package php-pear : apt-get install php-pear
 * 2. then as root : pear install --alldeps mail
 * 3. then edit LocalSettings.php and add

$wgSMTP = array( 'host'    => "smtp.yourprovider.com", 'IDHost'   => "domain for MessageID", 'port'     => 25, 'auth'     => false, 'username' => "my_user_name", 'password' => "my_password" );
 * 4. then you will be able to send email confirmation or else

the hard way (need to have a MTA installed) --2007
 * don't know how to do that

(OUTDATED) Category "Access Denied"
I doubt I'll get a response here, given the lack of responses to many previous questions, but here goes. I can't add categories (or even links to categories) on my MediaWiki site. I get an "Access Denied" error. Eep² 11:23, 20 July 2007 (UTC)
 * Consider moving this question to Project:Support desk. Does that only happen with categories or with all articles? --Flominator 11:55, 20 July 2007 (UTC)


 * Well, I don't have any existing categories and was/am trying to create new ones. Oddly, the "Access Denied" only happens if I enter summary text but if I leave the summary blank, the category links show up fine. I don't get it... Eep² 12:13, 20 July 2007 (UTC)

(OUTDATED) Basil White is Too Stupid to Load MediaWiki
I give up. I have no administrative control over a shared S:/ drive. I want to load a "blank Wikipedia" on S:/ with all the enabling software at S:/wiki so people who can get to S:/ can build wiki topics under S:/ and link to files in "parallel" directories, like s:/abc, s:/schedule, etc. I loaded WAMP5 and followed the instructions as best I could and looked at what I loaded at http://basilwhite.com/WAMP5/www/ to figure out how to actually create pages of content. I'd use pbwiki but I don't want any content to exist anywhere than on the S:/drive. I've read all the directions in mediawiki.org, and to this Liberal Arts major, they read like quotes from THX-1138. Won't you help a Liberal Arts major? --> basilwhite @7 basilwhite d0Oo7 c0Oom Basilwhite 08:18, 12 August 2007 (UTC)


 * http://community.livejournal.com/wikipedians/117121.html sent me to http://lifehacker.com/software/wikipedia/geek-to-live-set-up-your-personal-wikipedia-163707.php


 * ...which I'll try, but it's not the same as Wikipedia. Sigh... Basilwhite 00:33, 14 August 2007 (UTC)

(OUTDATED) Please make this page editable
there is no explanation in the hide the main title section where you should add this code. I was going to add this:


 * Paste the following code into your user:username/monobook.js page

I also wanted to add this link:


 * Wikipedia:Main Page alternatives

Can someone do this? Odessaukrain 00:28, 8 October 2007 (UTC)

(RESOLVED) What is this Wiki?
What type of Wiki is this? (76.247.222.101 08:38, 22 November 2007 (UTC))
 * See About this site--Brian 22:33, 22 November 2007 (UTC)

=2008=

(RESOLVED) Broken redirect

 * MediaWiki: 1.11.0
 * PHP: 5.1.4 (cgi-fcgi)
 * MySQL: 5.0.45-log
 * Database: Unknown, if you know how to figure it out please tell me.
 * URL: Red Orchestra Wiki

So if you look at my Special:Listredirects page then you will see that this text it displayed:

1. :Lyes Krovy (edit) (delete) → Talk:Lyes Krovy

I think this happened when I changed my Extranamespaces from:

$wgExtraNamespaces = array(110 => "Portal", 120 => "Portal_talk", 130 => "Technical", 140 => "Technical_talk", 150 => "WikiProject", 160 => "WikiProject_talk", 170 => "History", 180 => "History_talk", 190 => "Manual", 200 => "Manual_talk", 210 => "Extension", 220 => "Extension_talk", 230 => "Map", 240 => "Map_talk", 250 => "Server", 260 => "Server_talk", 270 => "Modification", 280 => "Modification_talk", 290 => "Mutator", 300 => "Mutator_talk", 310 => "Unit", 320 => "Unit_talk", 330 => "Clan", 340 => "Clan_talk", 350 => "Term", 360 => "Term_talk", 370 => "Tactic", 380 => "Tactic_talk", 390 => "Weapon", 400 => "Weapon_talk", 410 => "Tank", 420 => "Tank_talk", 430 => "Role", 440 => "Role_talk", 450 => "Player", 460 => "Player_talk");

to

$wgExtraNamespaces = array(100 => "Portal", 101 => "Portal_talk", 102 => "WikiProject", 103 => "WikiProject_talk", 104 => "Technical", 105 => "Technical_talk", 106 => "History", 107 => "History_talk", 108 => "Manual", 109 => "Manual_talk", 110 => "Extension", 111 => "Extension_talk", 112 => "Map", 113 => "Map_talk", 114 => "Server", 115 => "Server_talk", 116 => "Modification", 117 => "Modification_talk", 118 => "Mutator", 119 => "Mutator_talk", 120 => "Unit", 121 => "Unit_talk", 122 => "Clan", 123 => "Clan_talk", 124 => "Term", 125 => "Term_talk", 126 => "Tactic", 127 => "Tactic_talk", 128 => "Weapon", 129 => "Weapon_talk", 130 => "Tank", 131 => "Tank_talk", 132 => "Role", 133 => "Role_talk", 134 => "Player", 135 => "Player_talk");

and moved Lyes Krovy from one namespace to another. Help appreciated.

—-PatPeter, MediaWiki Support Team  23:22, 2 January 2008 (UTC)


 * Hmm... If possible, you might have to run the  command line script on your server. I'm not sure if this will work, though. Otherwise, you may have to hack into the MySQL server (for example, using phpMyAdmin) and delete everything about ":Lyes_Krovy", although you should check that very carefully. — color probe  (talk | contribs) 13:59, 4 January 2008 (UTC)


 * What programs can I use to run the command line? -PatPeter, MediaWiki Support Team  15:53, 4 January 2008 (UTC)


 * You could try phpShell. — color probe (talk | contribs) 18:01, 5 January 2008 (UTC)


 * Also how do I start phpMyAdmin? -PatPeter, MediaWiki Support Team  03:29, 6 January 2008 (UTC)
 * To start phpMyAdmin and phpShell do I need to have access to the entire server computer? -PatPeter, [[Image:Tournesol.png|20px]] MediaWiki Support Team  02:30, 21 January 2008 (UTC)


 * to start phpMyAdmin you'll need extract it into an sub-folder of your web-space (phpMyAdmin needs php activated of cause) and edit the config.inc.php to according to your needs (example file config.sample.inc.php, just rename it to config.inc.php and edit it ) .. then access the index.php though your browser, thats all ItsMeIGuess 18:30, 4 March 2008 (UTC)


 * How do I access config.inc.php? Do I have to have access to the server? -PatPeter, [[Image:Tournesol.png|20px]] MediaWiki Support Team  16:38, 9 March 2008 (UTC)

(RESOLVED) How to show NEW Pages on main page
Is there a quick way I can list, say the last 5 or 10 New Pages with just titles created and have this list show on the Main Page. Also, same for most recent Revised pages.

—81.156.192.201 14:29, 3 February 2008 (UTC)


 * For newest page, you can include  (replace 5 by the number of pages you want to show), for most recent Revised pages, if you think about Special:Recentchanges, you can do the same (but it's not possible with all special pages). <font color="#66A7CC">i <font color="#9966CC">Alex  18:10, 3 February 2008 (UTC)


 * Thanks for that. Is there a way I can display just the title of the page. So:
 * 12:33, 4 February 2008 ‎Scratchpad (hist) ‎[22 bytes] ‎127.0.0.1 (Talk)
 * becomes
 * Scratchpad
 * --unsigned


 * Not w/o writing a script. <font face="Verdana,Arial,Helvetica"> Mønobi 03:25, 16 February 2008 (UTC)

Any suggestions? --unsigned


 * Arg, there is a way to do this, I was on a wiki without any date stamps and all usernames, I thought it was this one, but that is the opposite, datestamps and no usernames.
 * The solution exists somewhere and it is going to drive me crazy until I find it, stay posted. -PatPeter, [[Image:Tournesol.png|20px]] MediaWiki Support Team  20:50, 27 February 2008 (UTC)


 * MediaWiki: 1.11.1
 * PHP: 5.2.3 (apache2handler)
 * MySQL: 5.0.51a
 * URL: DishiWiki.com
 * Here's how I do it: I use an RSS read of my wiki's own New Pages RSS feed:
 * <rss desc=off title=off number=10>http://dishiwiki.com/index.php?title=Special:Newpages&feed=rss
 * See "Newest Recipes" on Main Page of DishiWiki. The RSS reader is extension "RSS Reader" (version 0.2.4). Does this work for you? -Brian7632416 00:17, 16 May 2008 (UTC)
 * Subsequent Edit: I removed Extension RSS Reader, noted above, from my Main Page because I suspect it of causing Main Page to load slowly.... (I put RSS Reader back on my Main Page. Slow-load was probably due to something else.) Brian7632416 02:30, 23 May 2008 (UTC)

(RESOLVED) Password protected?
Hey, guys, is there any way to create a password protected page? I only want my group members to edit it Pingsong 17:10, 4 February 2008 (UTC) pandean
 * no one knows?


 * "Page" means the whole wiki or just a single page within a wiki? However, have a look at Manual:Preventing access. Regards -- 89.55.176.121 08:01, 14 June 2008 (UTC)

(RESOLVED) Statistic of search requests
Hello. Is there a way to get a statistic of search requests? I'd like to know, what users are looking for in my wiki. Something like Special:Wantedpages, but based on "not found" users queries? —213.148.8.233 22:19, 5 February 2008 (UTC)


 * Special:Statistics has most pages visited, which is similar, if you wanted what is searched the most then it would probably be a plug-in to this page. -PatPeter, [[Image:Tournesol.png|20px]] MediaWiki Support Team  23:38, 5 February 2008 (UTC)


 * Then again MediaWiki (the site not the code) has this option turned off, so look here. -PatPeter, [[Image:Tournesol.png|20px]] MediaWiki Support Team  23:39, 5 February 2008 (UTC)


 * You might want to check out Extension:SearchLog, this gives a tabular summary of search requests. You could also check the server logs of search requests by filtering on specific query string requests, although searches will be urlencoded --Zven 01:49, 6 February 2008 (UTC)


 * The SearchLog - is very close to what I need, Special:Statistics shows popularity of existing pages, but I need "What pages I have to add, that readers looking for". The only problem: SearchLog incorrectly shows UTF-8 chars. --89.175.73.253 12:12, 6 February 2008 (UTC)


 * I have modified Extension:SearchLog to display raw Unicode/UTF-8 characters by escaping the ampersands. A special page example is running on OrganicDesign:Special:SearchLog, see if that is what you want. --Zven 23:30, 7 February 2008 (UTC)


 * Still not working, the same black diamonds :-( --Konstbel 18:06, 8 February 2008 (UTC)


 * Is your wiki site publically accessible? Can you tell me what the characters are in the source generating the diamonds? The UTF-8 character &#38;#xFFFD; is a diamond with a question mark inside ''. Try putting each of these searches in to the new version -See Extension talk:SearchLog --Zven 20:29, 8 February 2008 (UTC)

No, site is inside intranet. The HTML code of the generated page is looking like If I open the log file in editor with UTF-8 support, I can read the search phrases, they are really in UTF-8. --Konstbel 15:29, 12 February 2008 (UTC)


 * Wait, what do you mean with the table? -PatPeter, [[Image:Tournesol.png|20px]] MediaWiki Support Team  20:53, 27 February 2008 (UTC)
 * This is the example of incorrect characters, as I see in generated HTML page. I have found the solution for me (see http://www.organicdesign.co.nz/Extension_talk:SearchLog.php), but it may not be applicable for all others: I've changed the line

$i = strtolower(trim($phrase));
 * to

$i = mb_strtolower(trim($phrase),"UTF-8");
 * So, the problem was in incorrect lowercase conversion, as in many other cases :-( --Konstbel 08:20, 4 March 2008 (UTC)

(RESOLVED) How Can I Change the Text on the Create Account Page?
Specifically, I want to change the "Already got an account? Log in." text.
 * Mark some text from a row, copy it, search/find it on Special:Allmessages --Subfader 02:54, 13 February 2008 (UTC)

(RESOLVED) How can I change User Links on top?
I'd like to add a new User Link on the very right top of the page and remove some. Where can I change it? --Subfader 00:13, 13 February 2008 (UTC)
 * Try editing monobook.php and if necessary alter main.css on monobook. --'<font face="freestyle script"> Truetech   <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 04:02, 12 August 2008 (UTC)

(OUTDATED) How do I add more buttons on the edit page? - Does not work
Hello,

i added in two different wikis the same for additional buttons in MediaWiki:Common.js, but in one the buttons do not appear. is there any variable that needs to be added to local setting to support additional buttons or what else might be the reason? thanks in advance kind regards --TurboKanne 11:22, 19 February 2008 (UTC)

(OUTDATED) disabled access for spezial pages (with german umlaut) for not logged in users causes error

 * MediaWiki: 1.11.1
 * PHP: 5.2.0
 * MySQL: 5.0.26
 * URL: local testing

disabled access for most pages : $wgGroupPermissions['*']['read'] = false; $wgGroupPermissions['*']['edit'] = false; $wgWhitelistRead = array("Hauptseite", "Special:Userlogin"); $wgGroupPermissions['*']['createaccount'] = false;

Error Message appears trying to access e.q "Spezial:Letzte_Änderungen" without login : Interner Fehler

Invalid special page name ""

Backtrace:


 * 1) 0 /.../test/includes/Title.php(1305): SpecialPage::getTitleFor(false)
 * 2) 1 /.../test/includes/Wiki.php(132): Title->userCanRead
 * 3) 2 /.../test/includes/Wiki.php(43): MediaWiki->preliminaryChecks(Object(Title), Object(StubObject), Object(WebRequest))
 * 4) 3 /.../test/index.php(89): MediaWiki->initialize(Object(Title), Object(StubObject), Object(User), Object(WebRequest))
 * 5) 4 /.../test/index.php5(1): require('/srv/www/...')
 * 6) 5 {main}

I'm not a developer, but I compared the functions and found a solution : Is this a way, or can I get other problems without these lines ?

Function in Title.php : userCanRead

I disabled all the folling lines, so it works again, like in MediaWiki 1.10 /** * If it's a special page, ditch the subpage bit * and check again */ if( $this->getNamespace == NS_SPECIAL ) { $name = $this->getText; list( $name, /* $subpage */) = SpecialPage::resolveAliasWithSubpage( $name ); $pure = SpecialPage::getTitleFor( $name )->getPrefixedText; if( in_array( $pure, $wgWhitelistRead, true ) ) return true; }

—79.199.9.25 09:40, 24 February 2008 (UTC)

(RESOLVED) content bar
How can remove the content bar on the top of each page from the startpage or any page i dont need it?

—84.57.49.247 06:10, 27 February 2008 (UTC)


 * What do you mean "content bar"? -PatPeter, [[Image:Tournesol.png|20px]] MediaWiki Support Team  21:38, 1 March 2008 (UTC)


 * I guess, you mean the ? So maybe you like to add   to your MediaWiki:Common.css. *confused* --WIKImaniac 22:45, 1 March 2008 (UTC)

(RESOLVED) Terminology - Call
Would it be correct to say that index.php "calls" the Logo image, calls the menus, etc? <font color="#006500">Smaug 22:32, 2 March 2008 (UTC)


 * I would say "define", and please, Smaug, use the template to post your topic. -PatPeter, [[Image:Tournesol.png|20px]] MediaWiki Support Team  19:33, 3 March 2008 (UTC)
 * The logo image path is defined in LocalSettings.php which is included by index.php --Nad 21:40, 9 March 2008 (UTC)
 * Thank you. <font color="#006500">Smaug 18:25, 18 March 2008 (UTC)

(OUTDATED) Customising the Search

 * MediaWiki: 1.11.0
 * PHP: 5.2.5-0.dotdeb.2 (apache2handler)
 * MySQL: 5.0.51-2-log
 * URL: sorry, not allowed to

Hello,

this is less an error report than a configuration matter which I didn't find in the "knowledge base", so to speak; I would like to know if you can customise the search in a way that it excludes all pages with a certain name in it (in this case it would be "Dienstberichte*"; having them searched, too, is an annoyance so I would like to generally exclude it somehow from the queries. Where do I have to add which line to be able to do so?

—141.20.120.198 13:29, 3 March 2008 (UTC)


 * I take it that it isn't possible?....
 * Cheers,
 * kris

(OUTDATED) Special:Allmessages won't display

 * MediaWiki: 1.11.0
 * PHP: 5.2.5
 * MySQL: 5.0.51
 * URL:

Some days ago my Special:Allmessages worked perfectly, but now i receive just an empty page. The sourcecode of the page looks ok, but between both body tags there is no data. My apache error log reports no problems. I can still change system messages when I know their names through the url...I haven't found any other pages with this problem yet. I'm logged in as WikiSysop and have all rights so this shouldn't be the problem... Has anyone an idea how it came or how to solve this issue?

—212.184.19.70 07:47, 5 March 2008 (UTC)

(RESOLVED) Special:Version does not work after upgrading from 1.6.9 to 1.11.2

 * MediaWiki: (Reported by your Wiki's Special:Version page) - which does not work: 1.11.2
 * PHP: 5.2.0-8+etch10
 * MySQL: 5.0.32-Debian_7etch5
 * URL: TechWiki

I upgraded my MediaWiki from 1.6.9 to 1.11.2 and everything seems to be working just fine except for my Special:Version page. It shows just nothing. It also did not work for the 1.6.9 to 1.11.1 upgrade which I performed with a copy of my wiki earlier due to some testing. I looked for a new option that maybe disables this page, but i found nothing alike. Since everything else seems to be working fine it is not a very big problem, but I would like to have it working.

—87.234.104.203 13:47, 6 March 2008 (UTC)
 * Maybe you installed an extension that does not work with 1.11.2 anymore. --MF-Warburg 14:59, 9 March 2008 (UTC)


 * Yes, an new version of the cite extension solved this issue for me. --87.234.104.203 11:17, 16 March 2008 (UTC)

(RESOLVED) How to integrate media wiki log in with website?
How to integrate media wiki log in with website.? Please help ....


 * You mean how do you sync the MW login with non-MW login elsewhere on your site? It depends on how the rest of your website logs users in. <font color="#006500">Smaug  18:28, 18 March 2008 (UTC)

(RESOLVED) How can a SysOp edit a user profile/account?

 * MediaWiki: 1.6.8
 * PHP: 4.4.0-pl1-gentoo (apache2handler)
 * MySQL: 4.1.15-log
 * URL: mozillaZine

How can a SysOp modify an existing users profile such as registering a email address or changing the password? I know how to block a user or a range of IP users, and find a users contributions but can't find a special page that will let me do that. Do I have any options other than creating a new account for that user?

I've looked in Help:System admin and browsed our special pages. The only solutions I've found assume I have abilities that a SysOp doesn't have such as making a SQL query. i.e. all of the solutions seem to assume you're the person who installed the software.

The site admin is in the midst of moving the forum (phpBB) and wiki (MediaWiki) software to new servers and updating the forum software. Afterwards he will update the wiki software. Can you recommend any plugins that will provide some of the traditional user management capabilities that forum moderators are used to, for the wiki? We plan on eventually having all forum moderators also be knowledge base (wiki) SysOps. I'm obviously not expecting a integrated or a compatible solution, I'm just trying to find any way to do that type of account maintenance.

tanstaafl —66.245.255.249 00:27, 9 March 2008 (UTC)


 * Extension:EditUser & Extension:PasswordReset. -- Sayuri 11:28, 9 March 2008 (UTC)

(RESOLVED) HTML inclusion
Is it possible to include the HTML code below in a wiki page without installing Google Maps extension ?

<iframe width="300" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps/ms?ie=UTF8&amp;hl=en&amp;msa=0&amp;msid=111661609153203707973.0004483c89c42b99a25b1&amp;s=AARTsJps3Johc7PJJ8zbVh-pexd4N2zOPg&amp;ll=-25.45118,-49.236774&amp;spn=0.046501,0.051498&amp;z=13&amp;output=embed"> <a href="http://maps.google.com/maps/ms?ie=UTF8&amp;hl=en&amp;msa=0&amp;msid=111661609153203707973.0004483c89c42b99a25b1&amp;ll=-25.45118,-49.236774&amp;spn=0.046501,0.051498&amp;z=13&amp;source=embed" style="color:#0000FF;text-align:left">View Larger Map</a>

—201.21.160.180 15:14, 13 March 2008 (UTC)
 * No, you will need the extension. --'<font face="freestyle script"> Truetech  <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 17:58, 10 August 2008 (UTC)

(OUTDATED) Removing retrievedfrom

 * MediaWiki: 1.12
 * PHP: 5
 * MySQL: ?
 * URL: RockCiclopedia

How can I remove the retrievedfrom message? Because Google crawls that text and I don't want...

—Lorenzone92 18:36, 14 March 2008 (UTC)

(RESOLVED) Fatal Error on 'Recent Changes'

 * MediaWiki: 1.12.0
 * PHP: 5.?
 * MySQL: 4.?
 * URL: Wyfopedia

My wiki has just stopped working. I can get ftp to it. Help! -Wyfopedia 21:23, 14 March 2008 (UTC)

Hi I have created an MediaWiki account now. IF you want to know what versions I'm on then please instruct me on how to find out. I'm worried that I have lost my database. I can see my wiki images. If I can download the database and images, I don't mind re-installing again from scratch. -Wyfopedia 21:31, 14 March 2008 (UTC)
 * You appear to have some problems with your rewrites. As a first measure you can set $wgUsePathInfo</tt> to false in your LocalSettings.php. Bryan Tong Minh 20:54, 15 March 2008 (UTC)


 * Thank you for your help Bryan Tong Minh. Wyfopedia 20:01, 21 March 2008 (UTC)

I have backed up the database and image files, and upgraded to v. 1.12.0. The site now seems to be working again. However, I have the following error on 'Recent Changes':

Fatal error: Class 'ChangesList' not found in /home/fhlinux182/w/wyfopedia.org.uk/user/htdocs/includes/SpecialRecentchanges.php on line 221

-Wyfopedia 20:01, 21 March 2008 (UTC)
 * Try reinstalling just the specialrecentchanges file or go onto line 221 and tell me the code that there is an error on. --'<font face="freestyle script"> Truetech  <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 18:01, 10 August 2008 (UTC)

(RESOLVED) What is the variable name (Magicword?) for the current user's username?

 * MediaWiki: 1.11.1
 * PHP: 5.2.3 (apache2handler)
 * MySQL: 5.5.51a
 * URL: DishiWiki

I wish to personalize the special:newarticletext (and possibly others) to return/display the current user's username, e.g., "Greetings, Brian7632416."

What is the name of the variable for the current user's username, and how is it set forth in the newarticletext text?

Brian7632416 20:42, 15 March 2008 (UTC)


 * One option is Extension:Variables, but that's not the only way (and it may not be cache-friendly).
 * Various Uncyclopedias already do this using JavaScript. They have a template which inserts a code into the page; a routine in the sitewide client-side JavaScript then searches for this code and substitutes the username. Very prone to use and overuse for nonsense like «*27 -  vandaliza este artigo e acaba sendo banido da Desciclopédia por Infinite»  --Carlb 16:14, 18 March 2008 (UTC)
 * I must have overlooked Extension:Variables, so I'll go take a look. I've had really good luck with my only four extensions: RSS Reader, SGMT Mass Mailer, Breadcrumb by Category, and Google NewsBar. Thanks, Carlb. Brian7632416 05:25, 21 March 2008 (UTC)

(RESOLVED) Changing sidebar according to article-language

 * MediaWiki: 1.10.1
 * PHP: 5.2.4 (cgi-fcgi)
 * MySQL: 5.0.27
 * URL: www.GS-500.info

Hi,

I'm currently translating my wiki from German to both English and Spanish. I'm happy with the solution to swap between the three languages, but as I modified the sidebar: Is there any possibility to indicate the article-language and change the sidebar accordingly? I already looked at Extension:LanguageSelector, Extension:Multilang and Extension: MultiLanguageManager but they all don't seem to tackle my problem as they assume the usage of an unchanged sidebar.

Kind regards, Timo —82.11.169.246 11:09, 16 March 2008 (UTC)

Nobody any idea? Timo --82.11.169.246 12:33, 29 March 2008 (UTC)


 * Hm. The example of http://www.art122-5.net/ given at Extension:MultiLanguageManager works with different languages in the sidebar (though I don't know if this is still MediaWiki). Elegant solution would be three wikis :-). What about additional sidebars added to Mediawiki:Sidebar? IMHO the most simple solution – there's just one "disadvantage": they will always show up together. --89.55.156.49 19:20, 10 May 2008 (UTC)

Currently in contact with the developer of the Extension:MultiLanguageManager. There might be a solution, I keep you posted. Timo --82.11.169.246 06:04, 27 June 2008 (UTC)

(OUTDATED) Site visits

 * MediaWiki: latest RC
 * PHP: 5.1.4
 * MySQL: 5.x
 * URL: RockCiclopedia

Hi! I'd like to show the number of (total) page views of the site.. This number is visible in the Special:Statistics page but I'd like to display it in my home page, the code would be similar to this: --Lorenzone92 15:16, 16 March 2008 (UTC)

(RESOLVED) Variable/Magicword for number of articles in category?
What is the variable/magicword and syntax for returning/displaying the number of articles in a certain category?

My wiki is a recipe wiki. I would like to display on the main page the number of users (got it!) and the number of articles that are in the recipes category.

I tried experimented with

and such, [ but (^look^) ] it comes back as a template, and I'm trying to figure out why

Edit: Okay, I now know about the nowiki tag. Baby steps, but

- –

denotes both a template and system variables (I think). But that's not my question, sorry to drift. —Brian7632416 01:11, 17 March 2008 (UTC)


 * You may want to create "recipes:" as a namespace and not a simple category; if you do so, (subsituting whichever namespace number you choose to use) would display the number of recipes. --Carlb 16:25, 18 March 2008 (UTC)
 * That's fantastic, Carlb. Then I THINK that, for pages in the Recipe namespace, I could change the tab to read "recipe" instead of "article," which would "un-confuse" my users. Thanks for the advice!Brian7632416 05:18, 21 March 2008 (UTC)
 * You can definately change what the tab says; I've done it on my wiki. It's one of the MediaWiki system messages (Special:Allmessages), though I forget which one exactly.  But that would change the main namespace tab, which you may not even have to do.  When you create a new namespace and visit a page in that namespace, where the article tab would be is a tab with the name of the newly created namespace.  So you are probably covered in that regard. <font color="#006500">Smaug  22:32, 21 March 2008 (UTC)
 * Thanks Smaug, too. I'm trying to figure out how to make my new namespace "Recipes" searchable by default for all users, since that's what they'll come to DishiWiki for, mostly. Not finding anything, so I haven't created a new namespace "Recipes" yet. Any thoughts, anybody? -Brian7632416 00:24, 24 March 2008 (UTC)
 * Use $wgNamespacesToBeSearchedDefault. <font color="#006500">Smaug 02:14, 24 March 2008 (UTC)
 * Got it, just found it. Thanks, Smaug. Brian7632416 16:58, 25 March 2008 (UTC)

(RESOLVED) questions / mass actions
I have many questions :


 * How can I create many pages automatically ? If I can't, is there another solution ? IS there a programm for injecting pages ( created by scripting shell)
 * How can I know all the pages depending on a page ?
 * How can I delete all the page created the same day ?

Thanks —192.54.193.51 09:36, 19 March 2008 (UTC)


 * http://www.mediawiki.org/wiki/Manual:FAQ#Importing_from_other_types_of_files
 * if you look through this site or use google you will find many helpful articles like that one JohnShep 20:42, 19 March 2008 (UTC)

(RESOLVED) Subcategories with the same name

 * MediaWiki: 1.11.2
 * PHP: 5.2.5
 * MySQL: 5.0.45
 * URL: not ready

For example,I want create 3 categories: I want,that each category must have the subcategory called "Script". But the slackware's script,must be different from ubuntu's script and suse's script. It is possible?How?
 * Slackware
 * Ubuntu
 * openSuse

—79.3.253.38 19:27, 20 March 2008 (UTC)


 * Maybe you could just call the ubuntu subcategory "Ubuntu script" and the suse subcategory "suse script". I don't know if doing what you want to do is possible.  Is this a suitable workaround? <font color="#006500">Smaug  19:39, 22 March 2008 (UTC)

Yes is a fine solution. But if I want only one category called Script foreach category(Slackware,suse,ubuntu...)it is possible?There are methods or extension that make this? thanks
 * The categories are identified by their names. How should it work with more categories using one and the same name? --Flominator 11:47, 8 April 2008 (UTC)

(RESOLVED) Ajax Search doesn't work since 1.12.0 upgrade

 * MediaWiki: 1.12.0
 * PHP: 5.2.5 (apache2handler)
 * MySQL: 5.0.51
 * URL: I don't have URL because it is internal

Hi all,

I've upgrade MediaWiki 1.11.2 to 1.12.0 and everything went fine until I tested the AjaxSearch. It is not working anymore. In my LocalSettings.php I have $wgAjaxSearch = true; and to be sure I added $wgUseAjax = true;. I thought the problem may have been because of the upgrade, so I did a fresh install, but this did not helped at all.

Is there something new we need to do, so that the AjaxSearch actually works? Or is there a bug. I know AjaxSearch received some bugfix since the patch 1.12.0.

Thank you for your help.

Maxime. —199.243.65.6 14:09, 21 March 2008 (UTC)


 * It seems like we now need to activate the AjaxSearch in the preferences of the user in the Search tab...
 * Also, the new version of this Ajax search is bugged... I'll need to use the one from 1.11 + 1.12 to have a functional Search.
 * --199.243.65.6 14:57, 21 March 2008 (UTC)

(RESOLVED) Getting Rid of "Special Pages" link in Toolbox

 * MediaWiki: 1.13.0
 * PHP: 5.2.4-2ubuntu5.3
 * MySQL: 5.0.51a-3ubuntu5.1

I know that you can use MediaWiki:Sidebar to edit the portion of the sidebar above the search bar on the left hand navigation panels (assuming monobook), but what edits what appears in the "toolbox" below it?

No one system message seemed to do it, though I have seen individual messages for "toolbox" and "whatlinkshere". I looked through some of the code to try to find where the code might be calling these messages and am certain it is MonoBook.php. I don't know what to edit to acheive what I want, however.

Specifically, I wish to get rid of the "Special Pages" link in the toolbox box. How can I do this?

Thank you. <font color="#006500">Smaug 22:28, 21 March 2008 (UTC)


 * In /skins/MonoBook.php, find
 * foreach( array('contributions', 'log', 'blockip', 'emailuser', 'upload', 'specialpages') as $special ) {
 * and replace it with
 * foreach( array('contributions', 'log', 'blockip', 'emailuser', 'upload') as $special ) {
 * —Emufarmers(T 01:07, 22 March 2008 (UTC)
 * It works. Thank you! <font color="#006500">Smaug  22:34, 22 March 2008 (UTC)

(OUTDATED) Blocking users issue

 * MediaWiki: 1.6.10
 * PHP: 4.4.4 (cgi)
 * MySQL: 4.1.22-standard
 * URL: http://siren-fleet.com/wiki

A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: (SQL query hidden) from within function "Block::insert". MySQL returned error "1062: Duplicate entry 'JSolomon-14-0-0' for key 2 (localhost)".

I get this error when I try to block any user in the special pages. —KDLevenham 13:17, 23 March 2008 (UTC)

(RESOLVED) MediaWiki optimization

 * MediaWiki: 1.10.0
 * PHP: 5.2.5 (apache)
 * MySQL: 4.1.22-standard-log
 * URL: http://www.fan history.com/ Fan History Wiki

My wiki had problems with pages loading where we ended up with a few thousand articles in a category. This caused these pages either not to load or to load slowly. I queried my host about this. They said, among other things:

We tested the above mentioned URLs and managed to re-create the issue on our end. It is most likely caused by the timeout settings of our shared hosting servers, especially if the problematic pages contain lots of links with reference to your application's database.

Upon further investigation, we found out that the home page of your wiki is also loading a little bit slowly, due to the 274 links on this page. It loads for more than 2 seconds locally on the server, which it should not load for more than 1 second.

We will recommend you to contact a developer which is familiar with the source code of your application and possesses the required knowledge for optimizing it. The optimization usually involves reducing the number of links on the pages, reducing the overall size of the application's database, creating indexes for each table in the database, etc.

I switched to a VPS which makes some pages which previously wouldn't load now load. I also optimized the database on phpMyAdmin. I removed a few of the http://www.fan history.com/index.php/Category:People extensions which were not being used actively. But if some pages link to certain categories, like http://www.fan history.com/index.php/Category:People Category:People, new pages won't create and will time out. What more can be done to optimize things, fix the overly large category problem or just generally make the wiki load faster? I really want to continue to grow Fan History but this has thrown me for a loop. Is this something I can fix myself?

—PurplePopple 02:29, 24 March 2008 (UTC)


 * Your site doesn't load for me, so I can't take a look at your categories, but we just had a similar query on the MWusers forums, and the simple answer was "caching." —Emufarmers(T 05:49, 24 March 2008 (UTC)


 * The whole site doesn't load or just those pages? I've added the caching elements by adding     $wgUseFileCache = true; and   $wgFileCacheDirectory = "$IP/cache"; to the local settings but it doesn't seem to make the load any faster.  I've removed a few more extensions.  I've removed Google Analytics. It is still taking about 15 seconds for me to get http://www.fan history.com/index.php/Category:People Category:People to load and about 3 to get http://www.fan history.com/index.php/Main_Page the main page to load.  If I remove

$wgMainCacheType = CACHE_NONE; $wgMemCachedServers = array; $wgUseFileCache = true; $wgFileCacheDirectory = "$IP/cache";
 * 1) Shared memory settings


 * It actually seems to load a bit faster but not much. :/ (On a completely unrelated note, my host seems to have disabled image uploads...  *sighs*) --PurplePopple 12:09, 24 March 2008 (UTC)

(RESOLVED) enforcing user login

 * MediaWiki: 1.11
 * PHP: 5.1.2 (apache2handler)
 * MySQL: 5.0.18

Hello to all helpers,

I want to ask you, if there is a chance to enforce an userlogin on mediawiki.

This wiki is planned to be used only from signed users.

We want to prevent anonymous users even from reading posts in the wiki.

What can I do to enforce an userlogin before entering any post?

Thanks for your help and best regards

Marco Rudzuck —77.178.58.147 15:27, 26 March 2008 (UTC)
 * Manual:preventing access should help. --Flominator 11:50, 8 April 2008 (UTC)

(RESOLVED) Help/Error
This is what i get on my website.



Can somebody help me?

I will copy the text in the background for you. <div style="height:300px; overflow:auto; padding:3px; text-align:left; border:solid 1px;" title="Scroller;" > , 2006 Rob Church # http://www.mediawiki.org/ # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # http://www.gnu.org/copyleft/gpl.html error_reporting( E_ALL ); header( "Content-type: text/html; charset=utf-8" ); @ini_set( "display_errors", true ); # In case of errors, let output be clean. $wgRequestTime = microtime( true ); # Attempt to set up the include path, to fix problems with relative includes $IP = dirname( dirname( __FILE__ ) ); define( 'MW_INSTALL_PATH', $IP ); # Define an entry point and include some files define( "MEDIAWIKI", true ); define( "MEDIAWIKI_INSTALL", true ); // Run version checks before including other files // so people don't see a scary parse error. require_once( "$IP/install-utils.inc" ); install_version_checks; require_once( "$IP/includes/Defines.php" ); require_once( "$IP/includes/DefaultSettings.php" ); require_once( "$IP/includes/AutoLoader.php" ); require_once( "$IP/includes/MagicWord.php" ); require_once( "$IP/includes/Namespace.php" ); require_once( "$IP/includes/ProfilerStub.php" ); require_once( "$IP/includes/GlobalFunctions.php" ); require_once( "$IP/includes/Hooks.php" ); # If we get an exception, the user needs to know # all the details $wgShowExceptionDetails = true; ## Databases we support: $ourdb = array; $ourdb['mysql']['fullname'] = 'MySQL'; $ourdb['mysql']['havedriver'] = 0; $ourdb['mysql']['compile'] = 'mysql'; $ourdb['mysql']['bgcolor'] = '#ffe5a7'; $ourdb['mysql']['rootuser'] = 'root'; $ourdb['postgres']['fullname'] = 'PostgreSQL'; $ourdb['postgres']['havedriver'] = 0; $ourdb['postgres']['compile'] = 'pgsql'; $ourdb['postgres']['bgcolor'] = '#aaccff'; $ourdb['postgres']['rootuser'] = 'postgres'; ?> MediaWiki Installation Setup has completed, your wiki is configured.

Please delete the /config directory for extra security. " ); } if( file_exists( "./LocalSettings.php" ) ) { writeSuccessMessage; dieout( '' ); } if( !is_writable( "." ) ) { dieout( " Can't write config file, aborting

In order to configure the wiki you have to make the config subdirectory writable by the web server. Once configuration is done you'll move the created LocalSettings.php to the parent directory, and for added safety you can then remove the config subdirectory entirely.

To make the directory writable on a Unix/Linux system:

cd /path/to/wiki chmod a+w config Afterwards retry to start the setup. " ); } require_once( "$IP/install-utils.inc" ); require_once( "$IP/maintenance/updaters.inc" ); class ConfigData { function getEncoded( $data ) { # removing latin1 support, no need... return $data; } function getSitename { return $this->getEncoded( $this->Sitename ); } function getSysopName { return $this->getEncoded( $this->SysopName ); } function getSysopPass { return $this->getEncoded( $this->SysopPass ); } function setSchema( $schema, $engine ) { $this->DBschema = $schema; if ( !preg_match( '/^\w*$/', $engine ) ){ $engine = 'InnoDB'; } switch ( $this->DBschema ) { case 'mysql5': $this->DBTableOptions = "ENGINE=$engine, DEFAULT CHARSET=utf8"; $this->DBmysql5 = 'true'; break; case 'mysql5-binary': $this->DBTableOptions = "ENGINE=$engine, DEFAULT CHARSET=binary"; $this->DBmysql5 = 'true'; break; default: $this->DBTableOptions = "TYPE=$engine"; $this->DBmysql5 = 'false'; } $this->DBengine = $engine; # Set the global for use during install global $wgDBTableOptions; $wgDBTableOptions = $this->DBTableOptions; } } ?>

* 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 " . phpversion . " installed\n"; error_reporting( 0 ); $phpdatabases = array; foreach (array_keys($ourdb) as $db) { $compname = $ourdb[$db]['compile']; if( extension_loaded( $compname ) || ( mw_have_dl && dl( "{$compname}." . PHP_SHLIB_SUFFIX ) ) ) { array_push($phpdatabases, $db); $ourdb[$db]['havedriver'] = 1; } } error_reporting( E_ALL ); if (!$phpdatabases) { print "Could not find a suitable database driver! o "; foreach (array_keys($ourdb) AS $db) { $comp = $ourdb[$db]['compile']; $full = $ourdb[$db]['fullname']; print "For $full, compile PHP using --with-$comp, " ."or install the $comp.so module \n"; } dieout( "

Warning: PHP's register_globals option is enabled. Disable it if you can. MediaWiki will work, but your server is more exposed to PHP-based security vulnerabilities.
 * 1) " ); } print "Found database drivers for:"; $DefaultDBtype = ; foreach (array_keys($ourdb) AS $db) { if ($ourdb[$db]['havedriver']) { if ( $DefaultDBtype ==  ) { $DefaultDBtype = $db; } print " ".$ourdb[$db]['fullname']; } } print "
 * 2) \n"; if( wfIniGetBool( "register_globals" ) ) { ?>
 * 1) Fatal: magic_quotes_runtime is active! This option corrupts data input unpredictably; you cannot install or use MediaWiki unless this option is disabled.
 * 2) Fatal: magic_quotes_sybase is active! This option corrupts data input unpredictably; you cannot install or use MediaWiki unless this option is disabled.
 * 3) Fatal: mbstring.func_overload is active! This option causes errors and may corrupt data unpredictably; you cannot install or use MediaWiki unless this option is disabled.
 * 4) Fatal: zend.ze1_compatibility_mode is active! This option causes horrible bugs with MediaWiki; you cannot install or use MediaWiki unless this option is disabled.

Cannot install MediaWiki. " ); } if( wfIniGetBool( "safe_mode" ) ) { $conf->safeMode = true; ?> " . htmlspecialchars( $memlimit ) . " seems too low, installation may fail!"; } else { $conf->raiseMemory = true; print "ok."; } } print "
 * 1) Warning: PHP's safe mode is active. You may have problems caused by this, particularly if using image uploads.
 * 2) safeMode = false; } $sapi = php_sapi_name; print "PHP server API is $sapi; "; $script = defined('MW_INSTALL_PHP5_EXT') ? 'index.php5' : 'index.php'; if( $wgUsePathInfo ) { print "ok, using pretty URLs ($script/Page_Title)"; } else { print "using ugly URLs ($script?title=Page_Title)"; } print "
 * 3) \n"; $conf->xml = function_exists( "utf8_encode" ); if( $conf->xml ) { print "Have XML / Latin1-UTF-8 conversion support.
 * 4) \n"; } else { dieout( "PHP's XML module is missing; the wiki requires functions in this module and won't work in this configuration. If you're running Mandrake, install the php-xml package." ); } # Check for session support if( !function_exists( 'session_name' ) ) dieout( "PHP's session module is missing. MediaWiki requires session support in order to function." ); # session.save_path doesn't *have* to be set, but if it is, and it's # not valid/writable/etc. then it can cause problems $sessionSavePath = mw_get_session_save_path; $ssp = htmlspecialchars( $sessionSavePath ); # Warn the user if it's not set, but let them proceed if( !$sessionSavePath ) { print "Warning: A value for session.save_path has not been set in PHP.ini. If the default value causes problems with saving session data, set it to a valid path which is read/write/execute for the user your web server is running under.
 * 5) "; } elseif ( is_dir( $sessionSavePath ) && is_writable( $sessionSavePath ) ) { # All good? Let the user know print "Session save path ({$ssp}) appears to be valid.
 * 6) "; } else { # Something not right? Warn the user, but let them proceed print "Warning: Your session.save_path value ({$ssp}) appears to be invalid or is not writable. PHP needs to be able to save data to this location for correct session operation.
 * 7) "; } # Check for PCRE support if( !function_exists( 'preg_match' ) ) dieout( "The PCRE support module appears to be missing. MediaWiki requires the Perl-compatible regular expression functions." ); $memlimit = ini_get( "memory_limit" ); $conf->raiseMemory = false; if( empty( $memlimit ) || $memlimit == -1 ) { print "PHP is configured with no memory_limit.
 * 8) \n"; } else { print "PHP's memory_limit is " . htmlspecialchars( $memlimit ) . ". "; $n = intval( $memlimit ); if( preg_match( '/^([0-9]+)[Mm]$/', trim( $memlimit ), $m ) ) { $n = intval( $m[1] * (1024*1024) ); } if( $n < 20*1024*1024 ) { print "Attempting to raise limit to 20M... "; if( false === ini_set( "memory_limit", "20M" ) ) { print "failed.
 * 1) \n"; } $conf->turck = function_exists( 'mmcache_get' ); if ( $conf->turck ) { print "Turck MMCache installed
 * 2) \n"; } $conf->xcache = function_exists( 'xcache_get' ); if( $conf->xcache ) print "XCache installed
 * 3) "; $conf->apc = function_exists('apc_fetch'); if ($conf->apc ) { print "APC installed
 * 4) "; } $conf->eaccel = function_exists( 'eaccelerator_get' ); if ( $conf->eaccel ) { $conf->turck = 'eaccelerator'; print "eAccelerator installed
 * 5) \n"; } $conf->dba = function_exists( 'dba_open' ); if( !( $conf->turck || $conf->eaccel || $conf->apc || $conf->xcache ) ) { echo( 'Couldn\'t find Turck MMCache, eAccelerator, APC or XCache; cannot use these for object caching.
 * 6) ' ); } $conf->diff3 = false; $diff3locations = array_merge( array( "/usr/bin", "/usr/local/bin", "/opt/csw/bin", "/usr/gnu/bin", "/usr/sfw/bin" ), explode( PATH_SEPARATOR, getenv( "PATH" ) ) ); $diff3names = array( "gdiff3", "diff3", "diff3.exe" ); $diff3versioninfo = array( '$1 --version 2>&1', 'diff3 (GNU diffutils)' ); foreach ($diff3locations as $loc) { $exe = locate_executable($loc, $diff3names, $diff3versioninfo); if ($exe !== false) { $conf->diff3 = $exe; break; } } if ($conf->diff3) print "Found GNU diff3: $conf->diff3.
 * 7) "; else print "GNU diff3 not found.
 * 8) "; $conf->ImageMagick = false; $imcheck = array( "/usr/bin", "/opt/csw/bin", "/usr/local/bin", "/sw/bin", "/opt/local/bin" ); foreach( $imcheck as $dir ) { $im = "$dir/convert"; if( @file_exists( $im ) ) { print "Found ImageMagick: $im; image thumbnailing will be enabled if you enable uploads.
 * 9) \n"; $conf->ImageMagick = $im; break; } } $conf->HaveGD = function_exists( "imagejpeg" ); if( $conf->HaveGD ) { print "Found GD graphics library built-in"; if( !$conf->ImageMagick ) { print ", image thumbnailing will be enabled if you enable uploads"; } print ".
 * 10) \n"; } else { if( !$conf->ImageMagick ) { print "Couldn't find GD library or ImageMagick; image thumbnailing disabled.
 * 11) \n"; } } $conf->IP = dirname( dirname( __FILE__ ) ); print "Installation directory: " . htmlspecialchars( $conf->IP ) . "
 * 12) \n"; // PHP_SELF isn't available sometimes, such as when PHP is CGI but // cgi.fix_pathinfo is disabled. In that case, fall back to SCRIPT_NAME // to get the path to the current script... hopefully it's reliable. SIGH $path = ($_SERVER["PHP_SELF"] === '') ? $_SERVER["SCRIPT_NAME"] : $_SERVER["PHP_SELF"]; $conf->ScriptPath = preg_replace( '{^(.*)/config.*$}', '$1', $path ); print "Script URI path: " . htmlspecialchars( $conf->ScriptPath ) . "
 * 13) \n"; // We may be installing from *.php5 extension file, if so, print message $conf->ScriptExtension = '.php'; if (defined('MW_INSTALL_PHP5_EXT')) { $conf->ScriptExtension = '.php5'; print "Installing MediaWiki with php5 file extensions
 * 14) \n"; } else { print "Installing MediaWiki with php file extensions
 * 15) \n"; } print "Environment checked. You can install MediaWiki.
 * 16) \n"; $conf->posted = ($_SERVER["REQUEST_METHOD"] == "POST"); $conf->Sitename = ucfirst( importPost( "Sitename", "" ) ); $defaultEmail = empty( $_SERVER["SERVER_ADMIN"] ) ? 'root@localhost' : $_SERVER["SERVER_ADMIN"]; $conf->EmergencyContact = importPost( "EmergencyContact", $defaultEmail ); $conf->DBtype = importPost( "DBtype", $DefaultDBtype ); ?> DBserver = importPost( "DBserver", "localhost" ); $conf->DBname = importPost( "DBname", "wikidb" ); $conf->DBuser = importPost( "DBuser", "wikiuser" ); $conf->DBpassword = importPost( "DBpassword" ); $conf->DBpassword2 = importPost( "DBpassword2" ); $conf->SysopName = importPost( "SysopName", "WikiSysop" ); $conf->SysopPass = importPost( "SysopPass" ); $conf->SysopPass2 = importPost( "SysopPass2" ); $conf->RootUser = importPost( "RootUser", "root" ); $conf->RootPW = importPost( "RootPW", "" ); $useRoot = importCheck( 'useroot', false ); $conf->LanguageCode = importPost( "LanguageCode", "en" ); ## MySQL specific: $conf->DBprefix = importPost( "DBprefix" ); $conf->setSchema( importPost( "DBschema", "mysql4" ), importPost( "DBengine", "InnoDB" ) ); ## Postgres specific: $conf->DBport = importPost( "DBport", "5432" ); $conf->DBmwschema = importPost( "DBmwschema", "mediawiki" ); $conf->DBts2schema = importPost( "DBts2schema", "public" ); /* Check for validity */ $errs = array; if( preg_match( '/^$|^mediawiki$|#/i', $conf->Sitename ) ) { $errs["Sitename"] = "Must not be blank or \"MediaWiki\" and may not contain \"#\""; } if( $conf->DBuser == "" ) { $errs["DBuser"] = "Must not be blank"; } if( ($conf->DBtype == 'mysql') && (strlen($conf->DBuser) > 16) ) { $errs["DBuser"] = "Username too long"; } if( $conf->DBpassword == "" && $conf->DBtype != "postgres" ) { $errs["DBpassword"] = "Must not be blank"; } if( $conf->DBpassword != $conf->DBpassword2 ) { $errs["DBpassword2"] = "Passwords don't match!"; } if( !preg_match( '/^[A-Za-z_0-9]*$/', $conf->DBprefix ) ) { $errs["DBprefix"] = "Invalid table prefix"; } error_reporting( E_ALL ); /** * Initialise $wgLang and $wgContLang to something so we can * call case-folding methods. Per Brion, this is English for * now, although we could be clever and initialise to the * user-selected language. */ $wgContLang = Language::factory( 'en' ); $wgLang = $wgContLang; /** * We're messing about with users, so we need a stub * authentication plugin... */ $wgAuth = new AuthPlugin; /** * Validate the initial administrator account; username, * password checks, etc. */ if( $conf->SysopName ) { # Check that the user can be created $u = User::newFromName( $conf->SysopName ); if( is_a($u, 'User') ) { // please do not use instanceof, it breaks PHP4 # Various password checks if( $conf->SysopPass != '' ) { if( $conf->SysopPass == $conf->SysopPass2 ) { if( !$u->isValidPassword( $conf->SysopPass ) ) { $errs['SysopPass'] = "Bad password"; } } else { $errs['SysopPass2'] = "Passwords don't match"; } } else { $errs['SysopPass'] = "Cannot be blank"; } unset( $u ); } else { $errs['SysopName'] = "Bad username"; } } $conf->License = importRequest( "License", "none" ); if( $conf->License == "gfdl" ) { $conf->RightsUrl = "http://www.gnu.org/copyleft/fdl.html"; $conf->RightsText = "GNU Free Documentation License 1.2"; $conf->RightsCode = "gfdl"; $conf->RightsIcon = '${wgScriptPath}/skins/common/images/gnu-fdl.png'; } elseif( $conf->License == "none" ) { $conf->RightsUrl = $conf->RightsText = $conf->RightsCode = $conf->RightsIcon = ""; } else { $conf->RightsUrl = importRequest( "RightsUrl", "" ); $conf->RightsText = importRequest( "RightsText", "" ); $conf->RightsCode = importRequest( "RightsCode", "" ); $conf->RightsIcon = importRequest( "RightsIcon", "" ); } $conf->Shm = importRequest( "Shm", "none" ); $conf->MCServers = importRequest( "MCServers" ); /* Test memcached servers */ if ( $conf->Shm == 'memcached' && $conf->MCServers ) { $conf->MCServerArray = array_map( 'trim', explode( ',', $conf->MCServers ) ); foreach ( $conf->MCServerArray as $server ) { $error = testMemcachedServer( $server ); if ( $error ) { $errs["MCServers"] = $error; break; } } } else if ( $conf->Shm == 'memcached' ) { $errs["MCServers"] = "Please specify at least one server if you wish to use memcached"; } /* default values for installation */ $conf->Email = importRequest("Email", "email_enabled"); $conf->Emailuser = importRequest("Emailuser", "emailuser_enabled"); $conf->Enotif = importRequest("Enotif", "enotif_allpages"); $conf->Eauthent = importRequest("Eauthent", "eauthent_enabled"); if( $conf->posted && ( 0 == count( $errs ) ) ) { do { /* So we can 'continue' to end prematurely */ $conf->Root = ($conf->RootPW != ""); /* Load up the settings and get installin' */ $local = writeLocalSettings( $conf ); echo "\n"; echo "

Generating configuration file... \n"; echo " \n"; $wgCommandLineMode = false; chdir( ".." ); $ok = eval( $local ); if( $ok === false ) { dieout( "Errors in generated configuration; " . "most likely due to a bug in the installer... " . "Config file was: " . "

" .				htmlspecialchars( $local ) .				"

\n"; } else { $err = mysql_errno; $databaseSafe = htmlspecialchars( $wgDBname ); if( $err == 1102 /* Invalid database name */ ) { print "
 * 1) " . "" ); } $conf->DBtypename = ''; foreach (array_keys($ourdb) as $db) { if ($conf->DBtype === $db) $conf->DBtypename = $ourdb[$db]['fullname']; } if ( ! strlen($conf->DBtype)) { $errs["DBpicktype"] = "Please choose a database type"; continue; } if (! $conf->DBtypename) { $errs["DBtype"] = "Unknown database type '$conf->DBtype'"; continue; } print "Database type: {$conf->DBtypename}
 * 2) \n"; $dbclass = 'Database'.ucfirst($conf->DBtype); $wgDBtype = $conf->DBtype; $wgDBadminuser = "root"; $wgDBadminpassword = $conf->RootPW; ## Mysql specific: $wgDBprefix = $conf->DBprefix; ## Postgres specific: $wgDBport = $conf->DBport; $wgDBmwschema = $conf->DBmwschema; $wgDBts2schema = $conf->DBts2schema; $wgCommandLineMode = true; if (! defined ( 'STDERR' ) ) define( 'STDERR', fopen("php://stderr", "wb")); $wgUseDatabaseMessages = false; /* FIXME: For database failure */ require_once( "$IP/includes/Setup.php" ); chdir( "config" ); $wgTitle = Title::newFromText( "Installation script" ); error_reporting( E_ALL ); print "Loading class: $dbclass"; $dbc = new $dbclass; if( $conf->DBtype == 'mysql' ) { $mysqlOldClient = version_compare( mysql_get_client_info, "4.1.0", "lt" ); if( $mysqlOldClient ) { print "
 * 3) PHP is linked with old MySQL client libraries. If you are using a MySQL 4.1 server and have problems connecting to the database, see http://dev.mysql.com/doc/mysql/en/old-client.html for help.
 * 4) \n"; } $ok = true; # Let's be optimistic # Decide if we're going to use the superuser or the regular database user $conf->Root = $useRoot; if( $conf->Root ) { $db_user = $conf->RootUser; $db_pass = $conf->RootPW; } else { $db_user = $wgDBuser; $db_pass = $wgDBpassword; } # Attempt to connect echo( "Attempting to connect to database server as $db_user..." ); $wgDatabase = Database::newFromParams( $wgDBserver, $db_user, $db_pass, '', 1 ); # Check the connection and respond to errors if( $wgDatabase->isOpen ) { # Seems OK $ok = true; $wgDBadminuser = $db_user; $wgDBadminpassword = $db_pass; echo( "success.
 * 5) \n" ); $wgDatabase->ignoreErrors( true ); $myver = $wgDatabase->getServerVersion; } else { # There were errors, report them and back out $ok = false; $errno = mysql_errno; $errtx = htmlspecialchars( mysql_error ); switch( $errno ) { case 1045: case 2000: echo( "failed due to authentication errors. Check passwords." ); if( $conf->Root ) { # The superuser details are wrong $errs["RootUser"] = "Check username"; $errs["RootPW"] = "and password"; } else { # The regular user details are wrong $errs["DBuser"] = "Check username"; $errs["DBpassword"] = "and password"; } break; case 2002: case 2003: default: # General connection problem echo( "failed with error [$errno] $errtx.\n" ); $errs["DBserver"] = "Connection failed"; break; } # switch } #conn. att. if( !$ok ) { continue; } } else /* not mysql */ { error_reporting( E_ALL ); $wgSuperUser = ''; ## Possible connect as a superuser if( $useRoot ) { $wgDBsuperuser = $conf->RootUser; echo( "Attempting to connect to database \"postgres\" as superuser \"$wgDBsuperuser\"..." ); $wgDatabase = $dbc->newFromParams($wgDBserver, $wgDBsuperuser, $conf->RootPW, "postgres", 1); if (!$wgDatabase->isOpen) { print " error: " . $wgDatabase->lastError . "
 * 6) \n"; $errs["DBserver"] = "Could not connect to database as superuser"; $errs["RootUser"] = "Check username"; $errs["RootPW"] = "and password"; continue; } $wgDatabase->initial_setup($conf->RootPW, 'postgres'); } echo( "Attempting to connect to database \"$wgDBname\" as \"$wgDBuser\"..." ); $wgDatabase = $dbc->newFromParams($wgDBserver, $wgDBuser, $wgDBpassword, $wgDBname, 1); if (!$wgDatabase->isOpen) { print " error: " . $wgDatabase->lastError . "
 * 7) \n"; } else { $myver = $wgDatabase->getServerVersion; } $wgDatabase->initial_setup('', $wgDBname); } if ( !$wgDatabase->isOpen ) { $errs["DBserver"] = "Couldn't connect to database"; continue; } print "Connected to $myver"; if ($conf->DBtype == 'mysql') { if( version_compare( $myver, "4.0.14" ) < 0 ) { dieout( " -- mysql 4.0.14 or later required. Aborting." ); } $mysqlNewAuth = version_compare( $myver, "4.1.0", "ge" ); if( $mysqlNewAuth && $mysqlOldClient ) { print "; You are using MySQL 4.1 server, but PHP is linked to old client libraries; if you have trouble with authentication, see http://dev.mysql.com/doc/mysql/en/old-client.html for help."; } if( $wgDBmysql5 ) { if( $mysqlNewAuth ) { print "; enabling MySQL 4.1/5.0 charset mode"; } else { print "; MySQL 4.1/5.0 charset mode enabled, but older version detected; will likely fail."; } } print "
 * 8) \n"; @$sel = $wgDatabase->selectDB( $wgDBname ); if( $sel ) { print "Database " . htmlspecialchars( $wgDBname ) . " exists

* {$databaseSafe} is not a valid database name.

"; continue; } elseif( $err != 1049 /* Database doesn't exist */ ) { print "

* Error selecting database {$databaseSafe}: {$err} "; print htmlspecialchars( mysql_error ) . "

\n"; dbsource( "../maintenance/users.sql", $wgDatabase ); } } } print "
 * 1) "; continue; } print "Attempting to create database...
 * 2) "; $res = $wgDatabase->query( "CREATE DATABASE `$wgDBname`" ); if( !$res ) { print "Couldn't create database " . htmlspecialchars( $wgDBname ) . "; try with root access or check your username/pass.
 * 3) \n"; $errs["RootPW"] = "<- Enter"; continue; } print "Created database " . htmlspecialchars( $wgDBname ) . "
 * 4) \n"; } $wgDatabase->selectDB( $wgDBname ); } else if ($conf->DBtype == 'postgres') { if( version_compare( $myver, "PostgreSQL 8.0" ) < 0 ) { dieout( " Postgres 8.0 or later is required. Aborting." ); } } if( $wgDatabase->tableExists( "cur" ) || $wgDatabase->tableExists( "revision" ) ) { print "There are already MediaWiki tables in this database. Checking if updates are needed...
 * 5) \n"; if ( $conf->DBtype == 'mysql') { # Determine existing default character set if ( $wgDatabase->tableExists( "revision" ) ) { $revision = $wgDatabase->escapeLike( $conf->DBprefix . 'revision' ); $res = $wgDatabase->query( "SHOW TABLE STATUS LIKE '$revision'" ); $row = $wgDatabase->fetchObject( $res ); if ( !$row ) { echo "SHOW TABLE STATUS query failed!
 * 6) \n"; $existingSchema = false; $existingEngine = false; } else { if ( preg_match( '/^latin1/', $row->Collation ) ) { $existingSchema = 'mysql4'; } elseif ( preg_match( '/^utf8/', $row->Collation ) ) { $existingSchema = 'mysql5'; } elseif ( preg_match( '/^binary/', $row->Collation ) ) { $existingSchema = 'mysql5-binary'; } else { $existingSchema = false; echo "Warning: Unrecognised existing collation
 * 7) \n"; } if ( isset( $row->Engine ) ) { $existingEngine = $row->Engine; } else { $existingEngine = $row->Type; } } if ( $existingSchema && $existingSchema != $conf->DBschema ) { print "Warning: you requested the {$conf->DBschema} schema, " . "but the existing database has the $existingSchema schema. This upgrade script ". "can't convert it, so it will remain $existingSchema.
 * 8) \n"; $conf->setSchema( $existingSchema, $conf->DBengine ); } if ( $existingEngine && $existingEngine != $conf->DBengine ) { print "Warning: you requested the {$conf->DBengine} storage " . "engine, but the existing database uses the $existingEngine engine. This upgrade " . "script can't convert it, so it will remain $existingEngine.
 * 9) \n"; $conf->setSchema( $conf->DBschema, $existingEngine ); } } # Create user if required if ( $conf->Root ) { $conn = $dbc->newFromParams( $wgDBserver, $wgDBuser, $wgDBpassword, $wgDBname, 1 ); if ( $conn->isOpen ) { print "DB user account ok
 * 10) \n"; $conn->close; } else { print "Granting user permissions..."; if( $mysqlOldClient && $mysqlNewAuth ) { print " If the next step fails, see http://dev.mysql.com/doc/mysql/en/old-client.html for help."; } print "

\n";			chdir( ".." );			flush;			do_all_updates;			chdir( "config" );			print "

\n"; print "

* Finished update checks. * \n"; } else { # Determine available storage engines if possible if ( $conf->DBtype == 'mysql' && version_compare( $myver, "4.1.2", "ge" ) ) { $res = $wgDatabase->query( 'SHOW ENGINES' ); $found = false; while ( $row = $wgDatabase->fetchObject( $res ) ) { if ( $row->Engine == $conf->DBengine ) { $found = true; break; } } $wgDatabase->freeResult( $res ); if ( !$found && $conf->DBengine != 'MyISAM' ) { echo "Warning: {$conf->DBengine} storage engine not available, " . "using MyISAM instead * \n"; $conf->setSchema( $conf->DBschema, 'MyISAM' ); } } # FIXME: Check for errors print "Creating tables..."; if ($conf->DBtype == 'mysql') { dbsource( "../maintenance/tables.sql", $wgDatabase ); dbsource( "../maintenance/interwiki.sql", $wgDatabase ); } else if ($conf->DBtype == 'postgres') { $wgDatabase->setup_database; } else { $errs["DBtype"] = "Do not know how to handle database type '$conf->DBtype'"; continue; } print " done. * \n"; print "Initializing statistics...   * \n"; $wgDatabase->insert( 'site_stats', array ( 'ss_row_id' => 1, 'ss_total_views' => 0, 'ss_total_edits' => 1, # Main page first edit 'ss_good_articles' => 0, # Main page is not a good article - no internal link 'ss_total_pages' => 1, # Main page 'ss_users' => $conf->SysopName ? 1 : 0, # Sysop account, if created 'ss_admins' => $conf->SysopName ? 1 : 0, # Sysop account, if created 'ss_images' => 0 ) ); # Set up the "regular user" account *if we can, and if we need to* if( $conf->Root and $conf->DBtype == 'mysql') { # See if we need to $wgDatabase2 = $dbc->newFromParams( $wgDBserver, $wgDBuser, $wgDBpassword, $wgDBname, 1 ); if( $wgDatabase2->isOpen ) { # Nope, just close the test connection and continue $wgDatabase2->close; echo( "User $wgDBuser exists. Skipping grants.    * \n" ); } else { # Yes, so run the grants echo( "Granting user permissions to $wgDBuser on $wgDBname..." ); dbsource( "../maintenance/users.sql", $wgDatabase ); echo( "success.   * \n" ); } } if( $conf->SysopName ) { $u = User::newFromName( $conf->getSysopName ); if ( !$u ) { print "Warning: Skipped sysop account creation - invalid username!    * \n"; } else if ( 0 == $u->idForName ) { $u->addToDatabase; $u->setPassword( $conf->getSysopPass ); $u->saveSettings; $u->addGroup( "sysop" ); $u->addGroup( "bureaucrat" ); print "Created sysop account " . htmlspecialchars( $conf->SysopName ) . ".    * \n"; } else { print "Could not create user - already exists!    * \n"; } } else { print "Skipped sysop account creation, no name given.    * \n"; } $titleobj = Title::newFromText( wfMsgNoDB( "mainpage" ) ); $article = new Article( $titleobj ); $newid = $article->insertOn( $wgDatabase ); $revision = new Revision( array( 'page' => $newid, 'text' => wfMsg( 'mainpagetext' ) . "\n\n" . wfMsgNoTrans( 'mainpagedocfooter' ), 'comment' => '', 'user' => 0, 'user_text' => 'MediaWiki default', ) ); $revid = $revision->insertOn( $wgDatabase ); $article->updateRevisionOn( $wgDatabase, $revision ); } /* Write out the config file now that all is well */ print "\n"; print "

Creating LocalSettings.php...     \n\n"; $localSettings = "<" . "?php$endl$local"; // Fix up a common line-ending problem (due to CVS on Windows) $localSettings = str_replace( "\r\n", "\n", $localSettings ); $f = fopen( "LocalSettings.php", 'xt' ); if( $f == false ) { dieout( "

Couldn't write out LocalSettings.php. Check that the directory permissions are correct and that there isn't already a file of that name here...     \n" . "

Here's the file that would have been written, try to paste it into place manually: \n" . "

\n" . htmlspecialchars( $localSettings ) . "

\n" ); } if(fwrite( $f, $localSettings ) ) { fclose( $f ); print "

\n"; writeSuccessMessage; } else { fclose( $f ); die("

An error occured while writing the config/LocalSettings.php file. Check user rights and disk space then try again. \n"); print "\n"; } } while( false ); } ?> posted ) { echo "

Something's not quite right yet; make sure everything below is filled out correctly. \n"; } ?> Site config

Preferably a short word without punctuation, i.e. "Wikipedia". Will appear as the namespace name for "meta" pages, and throughout the interface.

Displayed to users in some error messages, used as the return address for password reminders, and used as the default sender address of e-mail notifications. Language:

Select the language for your wiki's interface. Some localizations aren't fully complete. Unicode (UTF-8) is used for all localizations. Copyright/license:

*   *    * ScriptPath}/config/$script?License=cc&RightsUrl=[license_url]&RightsText=[license_name]&RightsCode=[license_code]&RightsIcon=[license_button]" ); $icon = urlencode( "$wgServer$wgUploadPath/wiki.png" ); $ccApp = htmlspecialchars( "http://creativecommons.org/license/?partner=$partner&exit_url=$exit&partner_icon_url=$icon" ); print "choose"; ?> License == "cc" ) { ?>          o RightsIcon ) . "\" alt='(Creative Commons icon)' />", "hidden" ); ?> o RightsText ), "hidden" ); ?> o RightsCode ), "hidden" ); ?> o RightsUrl ) . "\">" . htmlspecialchars( $conf->RightsUrl ) . "", "hidden" ); ?>

A notice, icon, and machine-readable copyright metadata will be displayed for the license you pick.

An admin can lock/delete pages, block users from editing, and do other maintenance tasks. A new account will be added only when creating a new wiki database.

The password cannot be the same as the username. Object caching:

*   * turck ) { echo ""; aField( $conf, "Shm", "Turck MMCache", "radio", "turck" ); echo "    * "; } if( $conf->xcache ) { echo( '' ); aField( $conf, 'Shm', 'XCache', 'radio', 'xcache' ); echo( ' * ' ); } if ( $conf->apc ) { echo ""; aField( $conf, "Shm", "APC", "radio", "apc" ); echo "   * "; } if ( $conf->eaccel ) { echo ""; aField( $conf, "Shm", "eAccelerator", "radio", "eaccel" ); echo "    * "; } if ( $conf->dba ) { echo ""; aField( $conf, "Shm", "DBA (not recommended)", "radio", "dba" ); echo "    * "; } ?>

An object caching system such as memcached will provide a significant performance boost, but needs to be installed. Provide the server addresses and ports in a comma-separated list.

MediaWiki can also detect and support eAccelerator, Turck MMCache, APC, and XCache, but these should not be used if the wiki will be running on multiple application servers.

DBA (Berkeley-style DB) is generally slower than using no cache at all, and is only recommended for testing. E-mail, e-mail notification and authentication setup E-mail features (global):

*   *

Use this to disable all e-mail functions (password reminders, user-to-user e-mail, and e-mail notifications) if sending mail doesn't work on your server. User-to-user e-mail:

*   *

The user-to-user e-mail feature (Special:Emailuser) lets the wiki act as a relay to allow users to exchange e-mail without publicly advertising their e-mail address. E-mail notification about changes:

*   *    *

For this feature to work, an e-mail address must be present for the user account, and the notification options in the user's preferences must be enabled. Also note the authentication option below. When testing the feature, keep in mind that your own changes will never trigger notifications to be sent to yourself.

There are additional options for fine tuning in /includes/DefaultSettings.php; copy these to your LocalSettings.php and edit them there to change them. E-mail address authentication:

*   *

If this option is enabled, users have to confirm their e-mail address using a magic link sent to them whenever they set or change it, and only authenticated e-mail addresses can receive mails from other users and/or change notification mails. Setting this option is recommended for public wikis because of potential abuse of the e-mail features above. Database config Database type: $errs[DBpicktype]\n"; ?>

If your database server isn't on your web server, enter the name or IP address here.

If you only have a single user account and database available, enter those here. If you have database root access (see below) you can specify new accounts/databases to be created. This account will not be created if it pre-exists. If this is the case, ensure that it has SELECT, INSERT, UPDATE, and DELETE permissions on the MediaWiki database. Superuser account: checked="checked" /> Use superuser account

If the database user specified above does not exist, or does not have access to create the database (if needed) or tables within it, please check the box and provide details of a superuser account, such as root, which does.

If you need to share one database between multiple wikis, or between MediaWiki and another web application, you may choose to add a prefix to all the table names to avoid conflicts.

Avoid exotic characters; something like mw_ is good. Storage Engine Select one:

*   *

InnoDB is best for public web installations, since it has good concurrency support. MyISAM may be faster in single-user installations. MyISAM databases tend to get corrupted more often than InnoDB databases. Database character set Select one:

*   *    *

EXPERIMENTAL: You can enable explicit Unicode charset support for MySQL 4.1 and 5.0 servers. This is not well tested and may cause things to break. If upgrading an older installation, leave in backwards-compatible mode.

The username specified above (at "DB username") will have its search path set to the above schemas, so it is recommended that you create a new user. The above schemas are generally correct: only change them if you are sure you need to.

Installation successful!

To complete the installation, please do the following:

1. Download config/LocalSettings.php with your FTP client or file manager 2. Upload it to the parent directory 3. Delete config/LocalSettings.php 4. Start using your wiki!

If you are in a shared hosting environment, do not just move LocalSettings.php remotely. LocalSettings.php is currently owned by the user your webserver is running under, which means that anyone on the same server can read your database password! Downloading it and uploading it again will hopefully change the ownership to a user ID specific to you. EOT; } else { echo <<

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. \n"; } } print "\n"; } function database_switcher($db) { global $ourdb; $color = $ourdb[$db]['bgcolor']; $full = $ourdb[$db]['fullname']; print " "; } ?>
 * 1) EOT; } } function escapePhpString( $string ) { if ( is_array( $string ) || is_object( $string ) ) { return false; } return strtr( $string, array( "\n" => "\\n", "\r" => "\\r", "\t" => "\\t", "\\" => "\\\\", "\$" => "\\\$", "\"" => "\\\"" )); } function writeLocalSettings( $conf ) { $conf->PasswordSender = $conf->EmergencyContact; $magic = ($conf->ImageMagick ? "" : "# "); $convert = ($conf->ImageMagick ? $conf->ImageMagick : "/usr/bin/convert" ); $rights = ($conf->RightsUrl) ? "" : "# "; $hashedUploads = $conf->safeMode ? '' : '# '; switch ( $conf->Shm ) { case 'memcached': $cacheType = 'CACHE_MEMCACHED'; $mcservers = var_export( $conf->MCServerArray, true ); break; case 'turck': case 'xcache': case 'apc': case 'eaccel': $cacheType = 'CACHE_ACCEL'; $mcservers = 'array'; break; case 'dba': $cacheType = 'CACHE_DBA'; $mcservers = 'array'; break; default: $cacheType = 'CACHE_NONE'; $mcservers = 'array'; } if ( $conf->Email == 'email_enabled' ) { $enableemail = 'true'; $enableuseremail = ( $conf->Emailuser == 'emailuser_enabled' ) ? 'true' : 'false' ; $eauthent = ( $conf->Eauthent == 'eauthent_enabled' ) ? 'true' : 'false' ; switch ( $conf->Enotif ) { case 'enotif_usertalk': $enotifusertalk = 'true'; $enotifwatchlist = 'false'; break; case 'enotif_allpages': $enotifusertalk = 'true'; $enotifwatchlist = 'true'; break; default: $enotifusertalk = 'false'; $enotifwatchlist = 'false'; } } else { $enableuseremail = 'false'; $enableemail = 'false'; $eauthent = 'false'; $enotifusertalk = 'false'; $enotifwatchlist = 'false'; } $file = @fopen( "/dev/urandom", "r" ); if ( $file ) { $secretKey = bin2hex( fread( $file, 32 ) ); fclose( $file ); } else { $secretKey = ""; for ( $i=0; $i<8; $i++ ) { $secretKey .= dechex(mt_rand(0, 0x7fffffff)); } print "Warning: \$wgSecretKey key is insecure, generated with mt_rand. Consider changing it manually.
 * 2) \n"; } # Add slashes to strings for double quoting $slconf = array_map( "escapePhpString", get_object_vars( $conf ) ); if( $conf->License == 'gfdl' ) { # Needs literal string interpolation for the current style path $slconf['RightsIcon'] = $conf->RightsIcon; } $localsettings = " # This file was automatically generated by the MediaWiki installer. # If you make manual changes, please keep track in case you need to # recreate them later. # # See includes/DefaultSettings.php for all configurable settings # and their default values, but don't forget to make changes in _this_ # file, not there. # If you customize your file layout, set \$IP to the directory that contains # the other MediaWiki files. It will be used as a base to locate files. if( defined( 'MW_INSTALL_PATH' ) ) { \$IP = MW_INSTALL_PATH; } else { \$IP = dirname( __FILE__ ); } \$path = array( \$IP, \"\$IP/includes\", \"\$IP/languages\" ); set_include_path( implode( PATH_SEPARATOR, \$path ) . PATH_SEPARATOR . get_include_path ); require_once( \"\$IP/includes/DefaultSettings.php\" ); # If PHP's memory limit is very low, some operations may fail. " . ($conf->raiseMemory ? '' : '# ' ) . "ini_set( 'memory_limit', '20M' );" . " if ( \$wgCommandLineMode ) { if ( isset( \$_SERVER ) && array_key_exists( 'REQUEST_METHOD', \$_SERVER ) ) { die( \"This script must be run from the command line\\n\" ); } } ## Uncomment this to disable output compression # \$wgDisableOutputCompression = true; \$wgSitename = \"{$slconf['Sitename']}\"; ## The URL base path to the directory containing the wiki; ## defaults for all runtime URL paths are based off of this. \$wgScriptPath = \"{$slconf['ScriptPath']}\"; \$wgScriptExtension = \"{$slconf['ScriptExtension']}\"; ## For more information on customizing the URLs please see: ## http://www.mediawiki.org/wiki/Manual:Short_URL \$wgEnableEmail = $enableemail; \$wgEnableUserEmail = $enableuseremail; \$wgEmergencyContact = \"{$slconf['EmergencyContact']}\"; \$wgPasswordSender = \"{$slconf['PasswordSender']}\"; ## For a detailed description of the following switches see ## http://www.mediawiki.org/wiki/Extension:Email_notification ## and http://www.mediawiki.org/wiki/Extension:Email_notification ## There are many more options for fine tuning available see ## /includes/DefaultSettings.php ## UPO means: this is also a user preference option \$wgEnotifUserTalk = $enotifusertalk; # UPO \$wgEnotifWatchlist = $enotifwatchlist; # UPO \$wgEmailAuthentication = $eauthent; \$wgDBtype = \"{$slconf['DBtype']}\"; \$wgDBserver = \"{$slconf['DBserver']}\"; \$wgDBname = \"{$slconf['DBname']}\"; \$wgDBuser = \"{$slconf['DBuser']}\"; \$wgDBpassword = \"{$slconf['DBpassword']}\"; # MySQL specific settings \$wgDBprefix = \"{$slconf['DBprefix']}\"; # MySQL table options to use during installation or update \$wgDBTableOptions = \"{$slconf['DBTableOptions']}\"; # Experimental charset support for MySQL 4.1/5.0. \$wgDBmysql5 = {$conf->DBmysql5}; # Postgres specific settings \$wgDBport = \"{$slconf['DBport']}\"; \$wgDBmwschema = \"{$slconf['DBmwschema']}\"; \$wgDBts2schema = \"{$slconf['DBts2schema']}\"; ## Shared memory settings \$wgMainCacheType = $cacheType; \$wgMemCachedServers = $mcservers; ## To enable image uploads, make sure the 'images' directory ## is writable, then set this to true: \$wgEnableUploads = false; {$magic}\$wgUseImageMagick = true; {$magic}\$wgImageMagickConvertCommand = \"{$convert}\"; ## If you want to use image uploads under safe mode, ## create the directories images/archive, images/thumb and ## images/temp, and make them all writable. Then uncomment ## this, if it's not already uncommented: {$hashedUploads}\$wgHashedUploadDirectory = false; ## If you have the appropriate support software installed ## you can enable inline LaTeX equations: \$wgUseTeX = false; \$wgLocalInterwiki = \$wgSitename; \$wgLanguageCode = \"{$slconf['LanguageCode']}\"; \$wgProxyKey = \"$secretKey\"; ## Default skin: you can change the default skin. Use the internal symbolic ## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook': \$wgDefaultSkin = 'monobook'; ## For attaching licensing metadata to pages, and displaying an ## appropriate copyright notice / icon. GNU Free Documentation ## License and Creative Commons licenses are supported so far. {$rights}\$wgEnableCreativeCommonsRdf = true; \$wgRightsPage = \"\"; # Set to the title of a wiki page that describes your license/copyright \$wgRightsUrl = \"{$slconf['RightsUrl']}\"; \$wgRightsText = \"{$slconf['RightsText']}\"; \$wgRightsIcon = \"{$slconf['RightsIcon']}\"; # \$wgRightsCode = \"{$slconf['RightsCode']}\"; # Not yet used \$wgDiff3 = \"{$slconf['diff3']}\"; # When you make changes to this configuration file, this will make # sure that cached pages are cleared. \$wgCacheEpoch = max( \$wgCacheEpoch, gmdate( 'YmdHis', @filemtime( __FILE__ ) ) ); "; ## End of setting the $localsettings string // Keep things in Unix line endings internally; // the system will write out as local text type. return str_replace( "\r\n", "\n", $localsettings ); } function dieout( $text ) { die( $text . "\n\n\n" ); } function importVar( &$var, $name, $default = "" ) { if( isset( $var[$name] ) ) { $retval = $var[$name]; if ( get_magic_quotes_gpc ) { $retval = stripslashes( $retval ); } } else { $retval = $default; } return $retval; } function importPost( $name, $default = "" ) { return importVar( $_POST, $name, $default ); } function importCheck( $name ) { return isset( $_POST[$name] ); } function importRequest( $name, $default = "" ) { return importVar( $_REQUEST, $name, $default ); } $radioCount = 0; function aField( &$conf, $field, $text, $type = "text", $value = "", $onclick =  ) { global $radioCount; if( $type != "" ) { $xtype = "type=\"$type\""; } else { $xtype = ""; } $id = $field; $nolabel = ($type == "radio") || ($type == "hidden"); if ($type == 'radio') $id .= $radioCount++; if( $nolabel ) { echo "\t\t"; } else { echo "\t\t$text\n"; } if( $type == "radio" && $value == $conf->$field ) { $checked = "checked='checked'"; } else { $checked = ""; } echo "\t\t$field ); } echo "\" />\n"; if( $nolabel ) { echo " $text\n"; } global $errs; if(isset($errs[$field])) echo "" . $errs[$field] . "\n"; } function getLanguageList { global $wgLanguageNames, $IP; if( !isset( $wgLanguageNames ) ) { require_once( "$IP/languages/Names.php" ); } $codes = array; $d = opendir( "../languages/messages" ); /* In case we are called from the root directory */ if (!$d) $d = opendir( "languages/messages"); while( false !== ($f = readdir( $d ) ) ) { $m = array; if( preg_match( '/Messages([A-Z][a-z_]+)\.php$/', $f, $m ) ) { $code = str_replace( '_', '-', strtolower( $m[1] ) ); if( isset( $wgLanguageNames[$code] ) ) { $name = $code . ' - ' . $wgLanguageNames[$code]; } else { $name = $code; } $codes[$code] = $name; } } closedir( $d ); ksort( $codes ); return $codes; } #Check for location of an executable # @param string $loc single location to check # @param array $names filenames to check for. # @param mixed $versioninfo array of details to use when checking version, use false for no version checking function locate_executable($loc, $names, $versioninfo = false) { if (!is_array($names)) $names = array($names); foreach ($names as $name) { $command = "$loc".DIRECTORY_SEPARATOR."$name"; if (@file_exists($command)) { if (!$versioninfo) return $command; $file = str_replace('$1', $command, $versioninfo[0]); if (strstr(`$file`, $versioninfo[1]) !== false) return $command; } } return false; } # Test a memcached server function testMemcachedServer( $server ) { $hostport = explode(":", $server); $errstr = false; $fp = false; if ( !function_exists( 'fsockopen' ) ) { $errstr = "Can't connect to memcached, fsockopen not present"; } if ( !$errstr && count( $hostport ) != 2 ) { $errstr = 'Please specify host and port'; } if ( !$errstr ) { list( $host, $port ) = $hostport; $errno = 0; $fsockerr = ; $fp = @fsockopen( $host, $port, $errno, $fsockerr, 1.0 ); if ( $fp === false ) { $errstr = "Cannot connect to memcached on $host:$port : $fsockerr"; } } if ( !$errstr ) { $command = "version\r\n"; $bytes = fwrite( $fp, $command ); if ( $bytes != strlen( $command ) ) { $errstr = "Cannot write to memcached socket on $host:$port"; } } if ( !$errstr ) { $expected = "VERSION "; $response = fread( $fp, strlen( $expected ) ); if ( $response != $expected ) { $errstr = "Didn't get correct memcached response from $host:$port"; } } if ( $fp ) { fclose( $fp ); } if ( !$errstr ) { echo "Connected to memcached on $host:$port successfully"; } return $errstr; } function database_picker($conf) { global $ourdb; print "\n"; foreach(array_keys($ourdb) as $db) { if ($ourdb[$db]['havedriver']) { print "
 * 3) "; aField( $conf, "DBtype", $ourdb[$db]['fullname'], 'radio', $db, 'onclick'); print "
 * 1) $full specific options\n"; } function printListItem( $item ) { print "$item

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. or read it online

* MediaWiki home * Readme * Release notes * Documentation * User's Guide * FAQ

MediaWiki is Copyright © 2001-2008 by Magnus Manske, Brion Vibber, Lee Daniel Crocker, Tim Starling, Erik Möller, Gabriel Wicke and others.

Thank you! – i123Pie biocontribs 20:01, 24 March 2008 (UTC) --172.189.160.70 20:24, 24 March 2008 (UTC)
 * Either you copied something really strange or your server doesn't execute .php files. --Flominator 17:12, 14 April 2008 (UTC)

(RESOLVED) Help deleting pages
I took a wiki class a while ago and we created some test pages in class. I found them when I did a circuit search on validation. How can I delete these?

user: jchackba —134.134.136.5 19:29, 25 March 2008 (UTC)


 * Log in as a user with the 'delete' privilege (such as administrator) and press the delete tab (up on the level of the edit tab). <font color="#006500">Smaug 20:54, 25 March 2008 (UTC)

(RESOLVED) Mediawiki Programmierer gesucht / Mediawiki programmersearch

 * MediaWiki: newest
 * PHP: 5.X
 * MySQL: 5.X
 * URL: local

English: We look for a German-language Mediawikiprogrammer how makes the Plugin working on our Mediawiki installation http://www.mediawiki.org/wiki/User:Barrylb/Custom_article_editing_form_with_fields

German: Wir suchen einen deutschsprachigen Mediawikiprogrammierer der uns das Plugin http://www.mediawiki.org/wiki/User:Barrylb/Custom_article_editing_form_with_fields zum Laufen bringt.

Kontakt: info@gerald-mann.com

—91.17.80.214 07:16, 26 March 2008 (UTC)


 * Tested with this one and it worked. --Flominator 17:05, 14 April 2008 (UTC)

(RESOLVED) "This page has been accessed X times"
Hi,

Can anyone tell me exactly what the counters at the bottom of the page measure? And also on the statistics page, where it lists "total pageviews", what exactly does that include? For instance, would it include PDFs stored in external file folders? All namespace pageviews? Other pages on a part of the server that hosts the wiki, but not the wiki itself? What about cache and repeated pageviews? If someone accessed a page 10 times a day, it only counts 1? If they keep accessing, when does it reset to count again, once a day? I ask these questions (a) because I want to know, and (b) because I track visitor stats using other tools such as Google Analytics and others, and occasionally I see some very strange behavior with the Mediawiki counters which are not always or usually reflected by the other tools, so should I take the Mediawiki counters to be the most accurate? One discrepancy e.g. occurred when there was a temporary jump about 10- to 20-fold in total pageviews and pageviews of most specific pages, for a period of about 24-36 hours, but this wasn't picked up by Google Analytics or the others. I have been assuming it was some kind of slashdot effect from a link on some external site, but I don't have software set up that tells me the referring URLs (yet), so I can't know that. Thanks! 69.45.178.143 19:04, 28 March 2008 (UTC)


 * I would recommend you disable the counter and rely on other tools (Google Analytics, AWStats, whatever), if only for performance reasons. (That's not really a direct answer, I know, but it's the best I've got.) —Emufarmers(T 18:27, 29 March 2008 (UTC)


 * On a side note, which of the alternative tools do you reccomend/use, Emufarmers? <font color="#006500">Smaug 01:40, 2 April 2008 (UTC)


 * I use Analytics, although statistics from server logs are going to be more accurate, strictly speaking, since they include users or robots with JavaScript turned off. Stats have mostly been more like interesting diversions than useful metrics for the relatively small sites I've run; with such sites the SearchLog extension could help me make sure people find what they search for (if I consulted it more often). —Emufarmers(T 01:59, 3 April 2008 (UTC)


 * Thanks for the input, Emufarmers. The reason I ask also is that the "counters" from the MediaWiki software give me numbers that are an order of magnitude different from what I get from both Google Analytics and StatCounter, the 2 tools I use. For example, both Google Analytics and StatCounter show me getting roughly 200-250 unique visitors and about 400-500 pageviews per day. Yet the MediaWiki "counter" is showing I'm getting 5,000-10,000 total pageviews per day?? Besides the anomalous "jump" I described above, the MediaWiki counter tends to have risen (relative to itself) more consistently over time then the Analytics or StatCounter (although those have risen as well). The only conclusion I can come to to resolve the discrepancy is that they're using drastically different definitions of what a "pageview" is. I have been able to find out what definition Analytics and StatCounter use, but not MediaWiki, so that's why I ask. If the MediaWiki counter stats trends over time are reliable, then I'd like to keep tracking it for a while, even if it disagrees with the other 2. Thanks. 66.233.225.115 21:15, 5 April 2008 (UTC)


 * Views from search engine bots might explain the discrepancy: Bots don't usually have JavaScript, so Analytics will miss them (and it might do some automatic filtering of known bots anyway). MediaWiki's built-in counter probably can't discriminate much.  If you install software that analyzes your server's logs, you should be able to see what's really going on. —Emufarmers(T 21:36, 5 April 2008 (UTC)

(RESOLVED) Internal error

 * MediaWiki: 1.12.0rc1
 * PHP: 5.0.5 (cgi)
 * MySQL: 4.1.11-Debian_4sarge7-log
 * URL:

it can be edited with this urls:
 * when the page has just one section

http://cli.ir/index.php?title=Test&action=edit

or

http://cli.ir/index.php?title=Test&action=edit&section=0

if i try any invalid section number, i get message.

this url work correctly:
 * when the page has more than one section,

http://cli.ir/index.php?title=Test&action=edit

but when i use this url i take a internal error:

http://cli.ir/index.php?title=Test&action=edit&section=0

i also take this error when i use any other valid or invalid section number, such as 1, 5, 137 etc...

The error:

internal error:

Invalid h node passed to PPNode_DOM::splitHeading

Backtrace:

0 /home/www/cli-ir/includes/Parser.php(4605): PPNode_DOM->splitHeading

1 /home/www/cli-ir/includes/Parser.php(4675): Parser->extractSections('<div style="dir...', '55', 'get', false)

2 /home/www/cli-ir/includes/EditPage.php(193): Parser->getSection('<div style="dir...', '55', false)

3 /home/www/cli-ir/includes/EditPage.php(982): EditPage->getContent(false)

4 /home/www/cli-ir/includes/EditPage.php(473): EditPage->initialiseForm

5 /home/www/cli-ir/includes/EditPage.php(323): EditPage->edit

6 /home/www/cli-ir/includes/Wiki.php(444): EditPage->submit

7 /home/www/cli-ir/includes/Wiki.php(48): MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest))

8 /home/www/cli-ir/index.php(90): MediaWiki->initialize(Object(Title), Object(OutputPage), Object(User), Object(WebRequest))

9 {main}

—sepehrnoush 19:02, 29 March 2008 (UTC)


 * Try this link. I had the same problem and it worked. --Baumanns 17:04, 9 April 2008 (UTC)


 * Thanks. It worked for me too. :) —sepehrnoush 13:09, 11 April 2008 (UTC)

(RESOLVED) Need help migrating an existing Wiki to a new network domain

 * MediaWiki: 1.9.0
 * PHP: 5.2.0 (apache2handler)
 * MySQL: 5.0.27-community-nt
 * URL: http://systemtest.test.azteknetworks.net/wikipedia/index.php/Main_Page (this is an internal network and is not reachable from outside our company's network)

Our company recently revamped our internal network, changing IP addressing scheme as well as initializing a new internal network specifically meant to be used by our System Test team. The Wiki itself is hosted on a Windows XP machine running XAMPP (machine hostname "systemtest"). Anyway, I'd like to migrate the System Test Wiki from the old domain (hosted at systemtest.azteknetworks.net) to the new domain (systemtest.test.azteknetworks.net). Currently, the main Wiki page is viewable (http://systemtest.test.azteknetworks.net/wikipedia/index.php/Main_Page), but clicking any of the other page links in there results in a 404 Not Found error. This is because the hyperlinks are apparently hard coded to point to the old domain instead of the new one. Unfortunately, it doesn't just seem to be a matter of changing a bunch of html files; I searched in C:\Program Files\xampp for all instances of "systemtest.azteknetworks.net" and it seems as if the web pages are stored in a database or some binary format (the search hits were on files ending in extension .MYD and .MYI).

Can you please help me to migrate our Wiki?

Thanks in advance,

- Jeffrey Wright - System Test Engineering Manager - Aztek Networks, Inc. - jwright@azteknetworks.net —72.25.144.182 17:21, 31 March 2008 (UTC)
 * Tried changing the path at LocalSettings.php? --Flominator 11:52, 8 April 2008 (UTC)

(RESOLVED) How to limit permissions of guests in DefaultSetting.php?

 * MediaWiki: 1.11.1
 * PHP: 5.2.5
 * MySQL: 5.0.45

I know how to that I can set limit permission of guest in DefaultSetting.php. But if i give their consent to the reading, they can watch all pages. I don't want it. for example, if the guest click the 'Special Pages', they have to see the same page that they click the 'Upload file'. How can I set limit permission of guest in detail.

—Probitas 09:22, 1 April 2008 (UTC)


 * Does Manual:User_rights help you? Also, edit LocalSettings.php, not DefaultSettings.php. <font color="#006500">Smaug  20:46, 1 April 2008 (UTC)

(RESOLVED) Desperately need help on AE wiki!

 * MediaWiki: 1.9.3
 * PHP: 5.1.6 (apache2handler)
 * MySQL: 5.0.28-enterprise-gpl-log
 * URL: http://theories.activatingevolution.org/swiki/wiki/index.php/Main_Page

I am a user on the Activating Evolution site. We desperately need some help.

There appears to be NO administrator or sysops. We are being over run with spammers. So far, I myself have cleaned well over 1500 pages that were spammed. It is a daily (if not hourly) problem, with no way to either block these yahoos or ban them.

All of the main pages are changed daily, and there are several of us that are trying to keep on top of all the cleanup, but as soon as we clean up a page, it gets spammed again. We have set up a Catagory for spammers, and don't know how to stop them with no admin or sysop on board.

Here is a link to the main page: http://theories.activatingevolution.org/swiki/wiki/index.php/Main_Page

You can check out the special page for Recent Changes and see what we are going thru. Please fee free to check out my user page (Sheba98) and see how many "contributions" I've made since February. Another good one to check is Psych-Gen. And Wireless.

Is there ANY way you all can help? We have emailed NBC with absolutely no response. We are at wit's end, and hate to see the site go to trash.

Any assistance you could provide would be greatly appreciated!

Sheba98 98.194.216.187 00:08, 2 April 2008 (UTC)


 * Well....the bottom line is that you cannot do things admins or sysops can do without being an admin or sysop yourself. <font color="#006500">Smaug 01:38, 2 April 2008 (UTC)


 * I am very much aware of that. The supposed Admin of the site does not even have a valid email address.  We have no admin or sysop or bureaucrat.  Nada. Zilch. Nothing.  I just hate to see the site go down hill, and am asking for help to point me in the right direction as to who to contact to get help.   Sheba98  98.194.216.187 01:43, 2 April 2008 (UTC)


 * Nothing can be done then. Unless you can telepathiclly tell the owner of the site to get some wiki admins.--71.217.200.78 03:46, 2 April 2008 (UTC)
 * I threw an AVB on your site - (User:Avb) for the time being. Should take care of that spam while you guys are tracking down the real admins.  Tim Laqua talk 18:10, 6 April 2008 (UTC)


 * You could try doing a WHOIS query on the site, and contact the registered owner (since it's an "official" link from the NBC site, you may get a response there). Dansiman (talk) 06:45, 22 April 2008 (UTC)

(RESOLVED) Offensive signature and SQL help

 * MediaWiki: 1.13alpha
 * PHP: latest version
 * MySQL:
 * URL:

How do I edit the signatures in old revisions?? A user had particularly offensive signatures, and we need to keep his old edits, per GFDL. I renamed the user via the database, since Renameuser wasn't installed at the time, but all his old edits show with the offensive old signature. I went to the text table in phpmyAdmin but couldn't find it... anyone know how to fix this so I can edit the old revision?? any MySQL commands? —G Bowker 09:09, 2 April 2008 (UTC)


 * I also need to be able to edit the old revisions as well, via the database. Any advice appreciated, thanks! --G Bowker 09:12, 2 April 2008 (UTC)


 * For now, edit the page normally to get rid of it. Then there is either an extension or built-in function that allows for the deletion of revisions.  If you search around for it you'll find it, Wikipedia makes use of it for similar purposes as yours. <font color="#006500">Smaug  21:59, 2 April 2008 (UTC)


 * Thanks. Tried the oversight extension.... but it doesn't remove block logs or isn't able to edit offensive old signatures. --G Bowker 12:06, 7 April 2008 (UTC)


 * Why do you need to remove block logs? Signatures aren't displayed in the logs, are they?  And what do you mean isn't able to edit old signatures?  (I've also never used the extension.) <font color="#006500">Smaug  [[Image:Tournesol.png|20px]] 20:27, 7 April 2008 (UTC)

(OUTDATED) Watchlist->Not logged in->Logon
Hey. Suppose I have my Watchlist page opened and leave the computer for about an hour. The browser cookie gets expired and I now need to logon again. So if I click onto Watchlist link or hit Refresh I get to the page saying that I need to logon to see my watchlist. But to actually logon I have to click on the link and this gets me to the logon page. That's one extra click. If MediaWiki wants me to logon once again it should show me the page with the text above and already containing controls for entering and submitting my username/password.

Will you please modify this behaviour? Alkonaft 11:19, 3 April 2008 (UTC)

(RESOLVED) Viewing a list of entries?
Is it possible to see a list of all pages, maybe in alphabetical order? —128.113.54.152 13:27, 4 April 2008 (UTC) David Doria


 * Special:Allpages. <font color="#006500">Smaug 19:55, 4 April 2008 (UTC)

(RESOLVED) user login error

 * MediaWiki 	1.12.0
 * PHP 	5.2.5 (cgi-fcgi)
 * MySQL 	5.0.24-community-nt
 * URL: Datesweiser
 * OS: Windows server 2003, standard
 * webserver : IIS
 * Using broswer: IE7
 * note: link only works externaly of our network with a VPN connection.

Trying to login, after placing user namer and password into http://10.0.0.4/index.php?title=Special:Userlogin&returnto=Main_Page I am taken to page: http://10.0.0.4/index.php?title=Special:Userlogin&wpCookieCheck=login With the error: Login error:Datesweiser uses cookies to log in users. You have cookies disabled. Please enable them and try again.

However, the cookies are enabled in IE7 and have tried on multiple computers. Login works fine in firefox. This wiki is installed on a local server, not sure if that would affect cookies. I need IE to work because of links to local files. If I comment out in the defaultsettings.php it alows me in, only to ask me to login again if any link is clicked on.

—Matt 18:14, 7 April 2008 (UTC)


 * Solved
 * see link for answer Manual_talk:%24wgCookiePath

(RESOLVED) Call "members": ammount of pages in category
Special:Mostlinkedcategories calls the number of members in a category. Can that number be called on each category as well? Cos you don't see how many members it are when it's more than 200 and the navigation (previous 200) (next 200) pops up. It's pretty annoying imo. I'm on MW 1.12.0 --Subfader 06:38, 4 April 2008 (UTC)
 * Heard it will be in MW 1.13 --Subfader 10:00, 8 April 2008 (UTC)

(RESOLVED) wgTitle
There's not much information about it. I use encodeURIComponent(wgTitle) in a javascript in Common.js to create a link to google the article name. Now my articles all have a date in front, e.g. "2008-03-21 - Text". Is there a way to only include the text but not the date? Maybe exclude numbers and special characters from wgTitle? Thanks! --Subfader 20:33, 5 April 2008 (UTC)
 * Used javascript replace --Subfader 10:01, 8 April 2008 (UTC)

(RESOLVED) Licensing Per Page

 * MediaWiki: 1.12.0
 * PHP: 5.2.2 (apache2handler)
 * MySQL: 5.0.45-community
 * URL: en.codevwiki.org

Is their an extension or modification that is made that can allow licensing to be done on a page by page basis. ie When a new page is started the author can choose the license or licenses he/she wants to use. They can change the licenses from any new revision if 1) they are the only author or 2) all the authors agree to change the licensing effective from a new revision. The license(s) for the revision you are viewing would be shown by icons off to the right of the page. Subpages would be licensed the same automatically as the root page.--168.156.174.63 23:08, 1 April 2008 (UTC)
 * So does a modification like this exist? If not could someone make one...name your price.--71.217.200.78 16:45, 8 April 2008 (UTC)


 * I don't think so. But you can create license templates and show the users how to insert them. --Flominator 09:36, 9 April 2008 (UTC)


 * Good idea. I reccomend using a single template where a parameter determines what license is shown. I think there would be less chance of a singele page being double-licensed that way.
 * Then again, the fault in using a template is that any user can come along and change it. I know some MW members have made extensions that give extra rights to the creator of a page, so although it might be difficult to do it seems like it would be possible. But for now you may want to use a work around, like having a site-wide or namespace-wide license.
 * That gives me an idea. Would it work for the license of a page to be determined by namespace?  You could have "PublicDomain:yowassup" and "CopyLeft:apage". <font color="#006500">Smaug  [[Image:Tournesol.png|20px]] 19:37, 9 April 2008 (UTC)
 * Namespace based licensing isn't exactly what I was hoping for but seems like a good workaround.--71.217.200.78 00:39, 27 April 2008 (UTC)

(RESOLVED) The logs look wrong
I preferred it when the logs were in the old format of: 10 Jan 2008 22:54 Admin blocked User1 with an expiry time of infinite (test) rather than the current design seen here: http://www.mediawiki.org/w/index.php?title=Special%3ALog&type=rights&user=&page=

Where do I report this bug?? Thanks, AP aka —Kelsington 17:59, 8 April 2008 (UTC)


 * That's pretty much the format logs are in now (though I could be missing something obvious). Could you be specific about exactly what you're referring to? —Emufarmers(T 01:12, 9 April 2008 (UTC)


 * It was being discussed on Wikipedia (the English one) but someone on SVN has reverted them back, which was probably a good move. The new-look logs in that revision probably weren't good. Thanks, AP aka --Kelsington 16:07, 9 April 2008 (UTC)

(RESOLVED) Mailto Links

 * MediaWiki: 1.11.1
 * PHP: 5.2.5 (apache2handler)
 * MySQL: 5.0.45-community-nt

Mailto links do not parse - inputting the wikitext

[mailto:me@myserver.com]

spits out this in plain text on the wiki page

[mailto:me@myserver.com]

same with

[mailto:me@myserver.com EMAILME]

also just spits out plain text.

This happens even if I disable all extensions. I did have the FCKeditor installed and running, and i'm not sure if it would have borked something. That's about all I can think of.

—Killinggameshow 21:46, 9 April 2008 (UTC)


 * Do normal external links work? <font color="#006500">Smaug [[Image:Tournesol.png|20px]] 22:09, 9 April 2008 (UTC)

(RESOLVED) Edited Sidebar not displaying in 1.9.3

 * MediaWiki: 1.9.3
 * PHP: 5.2.4 (apache)
 * MySQL: 5.0.51a

Hello,

I edited the sidebar page to:


 * navigation
 * Blackboard
 * CourseCompass
 * Hard Media
 * Pegasus

saved changes, emptied cache and refreshed but sidebar doesn't update Other changes (Icon, permissions etc) have worked for me.

Added to LocalSettings.php: $configdate = gmdate( 'YmdHis', @filemtime( __FILE__ ) ); $wgCacheEpoch = max( $wgCacheEpoch, $configdate ); $wgStyleVersion  = '42x'; I'm at a loss at this stage
 * 1) When you make changes to this configuration file, this will make
 * 2) sure that cached pages are cleared.
 * Did you change MediaWiki:Sidebar or something else? --Flominator 17:07, 14 April 2008 (UTC)


 * Solved. Discovered I wasn't using pipes and wasn't editing MediaWiki:Sidebar just Sidebar.

(RESOLVED) SVN download
I downloaded the latest version from SVN, (which is r33047) - how would I go back to the previous revision in SVN using the SVN client I have - TortoiseSVN?? Thanks, AP aka -Kelsington 13:34, 13 April 2008 (UTC)
 * MediaWiki: as used on Wikimedia sites
 * PHP:
 * MySQL:
 * URL:
 * In the contextual menu of TortoiseSVN (right click and then TortoiseSVN) you have a option called "Update to revision...". When you click there, select "Revision" radio button (i.e. not "HEAD"), put the revision you want to have and click OK. <font color="#66A7CC">i <font color="#9966CC">Alex  13:45, 13 April 2008 (UTC)


 * Anyone know where a list of all the revisions of MediaWiki are in SVN?? That way I can revert back-and-forward if I need to... I'm currently testing it on a XAMPP server at the moment. Thanks, AP aka --Kelsington 19:52, 13 April 2008 (UTC)

(OUTDATED) Error message

 * MediaWiki: (Reported by your Wiki's Special:Version page)
 * PHP: PHP 4.1.0
 * MySQL: Database Version:4.1
 * URL: http://www.psychokillaentertainment.com/mediawiki/index.php/Main_Page

What does this error message mean? I cant find the meaning anywhere? Fatal error: Class 'DOMDocument' not found in /home/psycho/public_html/mediawiki/includes/Preprocessor_DOM.php on line 566 —12.152.70.169 05:05, 17 April 2008 (UTC)

(RESOLVED) Preventing access to blocked users
Any ideas how to disable blocked users from logging in or reading? Please reply at Manual_talk:Preventing_access. Thanks. —Flominator 06:24, 15 April 2008 (UTC)
 * MediaWiki: 1.6-1.12
 * Resolved by changing address and password --Flominator 09:09, 18 May 2008 (UTC)

(RESOLVED) Adding Custom Tags

 * MediaWiki: 1.12.0
 * PHP: 5.2.5 (apache2handler)
 * MySQL: 5.0.45-community-log
 * URL: Wiki of Iyeru

I want to know how to make a custom tag like or like on the hrwiki.org wiki. I also would rather have answers sent in e-mail, because I will never check back here. Please e-mail me with answers at iyeru42 [/a/t/] gmail.com, I'm serious too.

Right now, instead of HRwiki's userbox samples, I'm using this right now, which is broken and very bulky.

I repeat again: I WILL NOT check back here. IT IS recommended you e-mail via the address above. —198.150.12.32 18:25, 15 April 2008 (UTC)

(RESOLVED) Snippet or piece of code, that show the content of each article

 * MediaWiki: 1.11.0
 * PHP: 5.0
 * MySQL: 4.1.10

my questions are

which is the snippet or piece of code, that show the content of each article?

and which is the snippet or piece of code, that save this content in the database?

thanks

--200.77.227.68 21:30, 17 April 2008 (UTC)


 * might help you. <font color="#006500">Smaug [[Image:Tournesol.png|20px]] 20:16, 18 April 2008 (UTC)

(RESOLVED) Change skin in installation that has skins tab disabled?

 * MediaWiki: 1.12.0
 * PHP: 5.1.6 (apache2handler)
 * MySQL: 5.0.27
 * URL: AbiliWiki

The creators of AbiliWiki have configured their MediaWiki installation to hide the Skins tab in Special:Preferences. I know you can manually apply a skin to an individual page with the URL, as in http://abiliwiki.com/index.php?title=Home&useskin=monobook, but is there any way to permanently apply a skin to my preferences when they are hidden this way, either through URL syntax as above, or through a form submission? I'd be willing to create an HTML document on my hard drive with a simple form that will send the appropriate data to AbiliWiki's server when I click submit. I know this is kind of an advanced technical question but I sure hope there's someone who can answer it.

P.S. Please notify me at Wikipedia:User:Dansiman when this question is answered or if you need additional information. Thanks,

—71.113.146.96 06:31, 22 April 2008 (UTC)

Well, I received an email from a fellow AbiliWikian that helped me workaround the problem. I am sharing it here in case anyone else has this issue with their own wiki in the future.
 * Go to the Preferences page, and save the source code, editing to add this near the top:


 * <base href="http://abiliwiki.com/">


 * and then this in the form:


 * <input type='text' name='wpSkin' value="monobook" />


 * then submit.

—71.113.146.96 01:04, 25 April 2008 (UTC)

(OUTDATED) Embedding an Excel File as OLE into a Wiki page

 * MediaWiki 1.12.0
 * PHP 5.2.5 (apache2handler)
 * MySQL 5.0.41

I would like to embed an Excel File which is sitting on our File Server directly into a Wiki page as an OLE object. Is this possible? —217.5.177.110 12:53, 23 April 2008 (UTC)

(OUTDATED) [file:// does not work

 * MediaWiki: 1.12.0
 * PHP: 5.2.5
 * MySQL: 5.0.51a

Hello,

I just successfully migrated my Wiki to a new server. Everything works, except the external links. I have several places where I use to open directly a PDF file. It still works fine on my old server, but not on the new one. It is just getting displayed as text. Is there a special setting i have to activate?

—217.5.177.110 13:03, 25 April 2008 (UTC)

(RESOLVED) users can change permissions and have access to special pages

 * MediaWiki: 1.6.10
 * PHP: 4.3
 * MySQL: 4
 * URL: Seedcamp-Wiki

It's a very odd problem I have here. I already solved it but what I did should not be necessary.

The problem:

Registered users can access the special pages and furthermore can change their own permissions up to bureaucrats by default. That's a big security issue. I used a fresh DefaultSettings.php and there was no effect.

However. I solved the problem by giving the users no rights by adding following line to the group permissions: $wgGroupPermissions['user' ]['userrights'] = false;

In this case no typical user can access to the special pages.

—84.112.104.49 22:46, 29 April 2008 (UTC)


 * Either you changed something in LocalSettings.php by accident, or you're getting your copy of DefaultSettings.php from some other place, or the users in question already have bureaucrat rights. The default configuration does not allow access to Special:Userrights (which I assume is what you mean by "special pages"). —Emufarmers(T 01:11, 30 April 2008 (UTC)


 * Thanks for your reply! I first thought. my solution would do the thing I considered it for, but in the end nobody could edit anything. I had to delete all users .. anyway this obviously helped.

(RESOLVED) Create an admin
—72.8.67.211 22:48, 1 May 2008 (UTC)


 * You need to log in with a bureaucrat account (that's usually the first account installed when installing MediaWiki, default is WikiSysop as far as I know) and then use special page Special:Userrights to assign another user admin's rights (simply with check boxes). But you have to create this user account first by special page Special:UserLogin if it does not exist. --89.55.188.43 08:10, 10 May 2008 (UTC)

(RESOLVED) How do I require an email address when creating an account?

 * MediaWiki: 1.12
 * PHP: 2.5.2
 * MySQL: 4.11
 * URL: http://www.kokosing.com

How do I require an email address for the 'create an account' page? I noticed in the code there is a variable called 'emailrequired' that, if set, does not display the 'e-mail address is optional' message but rather something else.

I need this because I have set the wiki to be only readable to people with authenticated email addresses.

Thanks for your help!

Dave —Dk253 01:01, 3 May 2008 (UTC)


 * I know that you can change that setting when setting up your wiki. So upgrade to 1.13. --'<font face="freestyle script"> Truetech  <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 02:27, 15 August 2008 (UTC)

(OUTDATED) Special:Allmessages is blank.

 * MediaWiki: 1.12.0
 * PHP: 5.2.5
 * MySQL: 5.0.45
 * URL: http://cursed-rose.net/dragonsoffate

I have only begun to have this problem on new MediaWiki installations on my shared hosting server, which was recently configured to use only PHP 5 and was upgraded to MySQL 5. Special:Allmessages simply appears as a blank white page. If anyone can point me in a direction I would be very grateful.

—Amber (talk) 23:29, 3 May 2008 (UTC)


 * There isn't a page called "Special:Allmessages". Did you mean "Special:All pages"?

(RESOLVED) interact with Asp.Net application
I want to use MediaWiki in my application.

Can you please suggest me which mediawiki i have to use and let me know How does MediaWiki used in or interact with Asp.Net application?


 * MediaWiki requires PHP. I don't believe PHP and ASP can be run together so you probably can't do what you are trying to do.  You can try looking at Comparison of wiki software for a list of wiki software that runs on ASP.  --Cneubauer 19:49, 2 June 2008 (UTC)

(RESOLVED) Serious Update from 1.4.3 to 1.11.1

 * MediaWiki: 1.4.3 to 1.11.1
 * PHP:
 * MySQL:
 * URL:

We updated our wiki from 1.4.3 to 1.11.1 by running those two programs upgrade1_5.php and update.php. After that, still things are not working as we expected. Some pages are displaying the records from mkt_text table, while we expect them fom mkt_cur table; some pages are just missing. I realiz that 1.4 is really old and some tables no long in use. I can see we missed a few important steps, can anyone give me a direction here? how to upgrade the mediawiki from 1.4.3 to 1.11.1 correctly?

thanks —12.165.188.130 19:55, 5 May 2008 (UTC)


 * Try updating one version at a time. (ex: 1.4 to 1.5, 1.5 to 1.6, ect). --'<font face="freestyle script"> Truetech  <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 02:30, 15 August 2008 (UTC)

(RESOLVED) Can you hide the titles of namespaces a user doesnt have access to in the search page?
Does anyone know of a way to hide namespaces to which a user has no access in the search page where you select the namespaces to be searched? I've modified the search so the results don't contain text from hidden pages, but it would be nice to hide the fact that a namespace exists at all to avoid hacking attempts. It would also be nice to just hide some of the inherent mediawiki namespaces to have less clutter. I thought I read how to do this somewhere awhile back but I just can't find it now! Thanks for any help.


 * I use the extension "Blacklist" to hide my special-pages (and others) from the users (admin has to place a userdefined list into the LocalSettings.php), and this works properly. It should also work with specified namespaces.--FSLEP 08:47, 9 May 2008 (UTC)

(OUTDATED) Problems converting from version 1.4.5 to 1.12.0

 * MediaWiki: Migrating from 1.4.5 on windows to 1.12.0 on CentOS
 * PHP:
 * MySQL: Windows
 * Postgres: CentOS
 * URL:

I am trying to move content using special export from version 1.4.5 to version 1.12.0 using special import. I am encountering all sort of weird problems. For example, I am current getting the following error:

Import failed: XML import parse failure at line 241, col 46 (byte 10949; "&amp;lt;/pre&amp;gt;" ): Invalid character

This occurs even though the sequence '&amp;lt;/pre&amp;gt;' appears all over the exported file above where the error is occuring. I also have to replace and occurrences of ' link goes here ' with '[link goes here]]'. The double '[[' causes all sorts of weird problems. Additionally I have to convert all occurences of 'http' to'ttp' or I get parsing problems.  I am about to give up but I thought someone may be able to show me the error of my ways.

Another issue I also have is with running maintenance scripts like deleteBatch. This script in particular does not seem to work at all with postgresql. There is an error when it tries to execute "SHOW processlist" which I think is a MySQL statement. Are there postgresql specific scripts I need to get from somewhere?

Thanks, Greg —142.166.23.210 16:15, 8 May 2008 (UTC)

(RESOLVED) Recentchanges only shows max. 7 days????
My machine:

MediaWiki: 1.11.1

PHP: 5.2.2 (apache2handler)

MySQL: 5.0.41-community-nt

My problem:

the function Recentchanges only shows maximum the last changes of the last 7 days, even if you change to "show the last changes of the last 30 days" (&days=30), result: only the last 7 days are displayed. example:

http://[...]/dewiki/index.php?title=Spezial:Letzte_%C3%84nderungen&limit=500&days=30

(there are not many changes, the limit of 500 is enough)

Am I doing something wrong?

Is it a bug?

Is there a "hidden" maximum anywhere, maybe in the LocalSettings.php, or somewhere else?--FSLEP 07:31, 9 May 2008 (UTC)


 * 7 days is the default, yes -- it's called recent changes for a reason :) The limit can be configured using Manual:$wgRCMaxAge.
 * The fact that there's a "30 days" link on the page even if the DB only has 7 is confusing though. -- 217.234.218.114 09:29, 9 May 2008 (UTC)
 * Thanks for your answers. This seems to be the solution for my problem.
 * Is it to be placed in the LocalSetting.php?
 * Example: $wgRCMaxAge= "7 * 24 * 3600 ";</tt>  --FSLEP 06:02, 14 May 2008 (UTC)

(OUTDATED) Special pages list categories and list users numbered

 * MediaWiki: 1.12.0
 * PHP: 5.2.5
 * MySQL: 5.1.24

I have recently updated my mediawiki from 1.8.2 to 1.12. In previous versions, I had my special pages Categories and List Users, numbered, as well as some other special categories pages. However, in this latest version, I don't get Categories and List Users numbered which I need (although I still have the rest of special pages numbered). Is there any way to change this? Is it a bug?

Thanks. —195.245.185.37 11:26, 13 May 2008 (UTC)

(RESOLVED) How to Make "Random Page" Select Only Pages from a Certain Category?

 * MediaWiki: 1.11.1
 * PHP: 5.2.3 (apache2handler)
 * MySQL: 5.0.51a
 * URL: DishiWiki

My wiki is a recipe wiki. I have changed the label for Random Page in the navigation sidebar to read "Random Recipe." Of course, it randomly :) brings up a page that is not a recipe. All pages that are recipes have a category tag of.

So how can I structure the Random page link to pull up only pages categorized as recipes? I have explored but am not ready to create a custom Namespace for recipe pages. I think this "trick" would be very useful for many types of wikis! Thanks for all the help here on MediaWiki and elsewhere. -Brian7632416 23:18, 12 May 2008 (UTC)


 * Probably the SQL query in SpecialRandompage.php (directory "includes") has to be rewritten, but I don't know much about SQL, and my trial this morning wasn't successful. (Tried to involve the MySQL table "categorylinks" with "cl_to" into the SQL query.) Meanwhile alternatives may be
 * usage of an extension like in Category:Random content extensions
 * usage of $wgExtraRandompageSQL
 * but both probably with a lot of pages to include or exclude manually. --89.55.152.75 20:13, 13 May 2008 (UTC)


 * Thanks. I, too, tried massaging MySQL table "categorylinks" column "cl_to." I looked at SpecialRandomPage.php but don't want to mess with it yet. $wgExtraRandompageSQL is unwieldy as long as it is wired for "page_title," but I couldn't find the category variable to substitute for "page_title." I will now look at Random conent extensions. Thanks so much. Brian7632416 21:19, 15 May 2008 (UTC) [Edit:] Nothing in that group of "random" extensions is what I need.


 * The SQL query of SpecialRandompage.php is limited to the "page" table, as far as I can see; the $wgExtraRandompageSQL variable is part of this SQL query, so it's not possible to involve parts of other tables with it (like the "cl_to" row of "categorylinks"). That's why I said that probably this SQL query has to be rewritten for this purpose.
 * You could use $wgExtraRandompageSQL in LocalSettings.php like the following:

$wgExtraRandompageSQL = 'page_title != "Main_Page" AND page_title != "Page_1" AND page_title != "Page_2" AND page_title != "Page_3" AND page_title != "Page_4" AND page_title != "Page_5"';
 * but you would have to EXclude all the non-recipe pages this way. Using "OR" instead of "AND" and "=" instead of "!=" should be the other way (INcluding all the pages you want), but as there are much more recipes than other pages this would not be the way of choice, I think. Surprisingly I could not prevent the Main page to be shown this way.
 * I tried it also with the extension Extension:RandomInclude this morning, created 5 test pages (Testseite 1 bis Testseite 5) and included them on a randomtest page as templates (with ). Works on 1.9.6 (look at http://joergmaske.de/wikip/ and the link Randomtest in the navigation bar), of course showing just the content of the page, not the selected page's name, and I had to disable the cache like mentioned on the short manual. Disadvantages: You have to include all the pages you want to have selectable for random, and the disabled cache. Advantage: You have more control on which pages you don't want to show without using $wgExtraRandompageSQL or changing categories (if this would work sometime). --89.55.189.114 08:30, 16 May 2008 (UTC)


 * Thanks for your work. I see your Randomtest link, and I can use that extension for something else. I'm beginning to think I need a namespace for Recipes, which I have been avoiding.


 * In the meantime, I will try:

$wgExtraRandompageSQL = 'page_title != "*Tips"';


 * to try to exclude "Kitchen Tips" pages, which have titles like: "Citrus Tips," "Egg Tips," etc. Will the wild card * work, I wonder? If so, I could add "Recipe" to the title of all recipe pages and use:

$wgExtraRandompageSQL = 'page_title = "*Recipe"';


 * but I've never wanted pages to be so "fully titled." Like you, I have just discovered that Main_Page is not being excluded with:

$wgExtraRandompageSQL = 'page_title != "Main_Page"';


 * so I give up for now. - Brian7632416 18:20, 16 May 2008 (UTC)

(OUTDATED) Recurring issue logging in various MediaWikis
Logging in to various wikis powered by MediaWiki is too often a frustrating experience. I use a password manager, KeePass, so when I register at a wiki (or any other site) I create a new entry and have KeePass generate a high-security password for me. I drag-and-drop this password into the registration form.

So there should be no excuse for my password to be rejected as incorrect when I go to log in and drag-and-drop my login information, or paste from clipboard.

The current problem is with http://freemind.sourceforge.net/wiki/index.php/Main_Page. I've successfully logged in there before... even earlier today! But it's suddenly rejecting my login as having an incorrect password. Grrrrrrr!!!

This time I'm not going to go through the whole process of requesting a new password and creating yet ANOTHER password to be able to log in again, because first I want to know exactly what's going on. If someone could please e-mail me at foxcole@yahoo.com, I'd like to know what the wiki thinks my password ought to be and where that password came from... or, if it does have my correct password, why exactly my login is being rejected.

I would like to note that after I go through all the motions to reset and create another new password, I generally have no further problems with that site. But I shouldn't have to be going through all this in the first place. My original login should be valid forever until I change it myself.

—63.64.39.28 21:39, 14 May 2008 (UTC)

(RESOLVED) A Wiki protected by htaccess gives an internal error 500 when accessing through a Proxyserver
I have may Wiki htaccess protected for educational and research reasons. However after a couple month it was not accessible anymore through a Proxy server feeding only one IP adress to the internet from our company. The server with the wiki on is outside the company. Actually some pages are readable but log in is impossible. Has this problem to do with the WIki settings or with the proxy settings. The access to the Wiki without Proxy works perfectly well. —85.1.21.79 20:46, 15 May 2008 (UTC)
 * MediaWiki: 1.11.0
 * PHP: 5.2.5-pl1-gentoo (cgi-fcgi)
 * MySQL: 4.1.22-log page)
 * Try upgrading your MySql. --'<font face="freestyle script"> Truetech  <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 02:47, 15 August 2008 (UTC)

(RESOLVED) Creator special rights

 * MediaWiki: 1.12
 * PHP: -
 * MySQL: -
 * URL: local

I would like to know if there is a simple way to allow only the creator of a new page to edit it. In fact, when creating a new page, I would like the author to be able to choose whether the page can be edited by everyone, by registered users or only by himself.

I read a lot on user rights and user rights management but I could'nt find how to define a group including only the creator of a page.

Thanks for your help... —81.220.36.67 09:38, 16 May 2008 (UTC)


 * Manual:Preventing access tells that "MediaWiki was not written to provide per-page access restrictions". Perhaps have a look at Extension:EditOwn? --89.55.180.141 10:57, 16 May 2008 (UTC)

(OUTDATED) link back to mediawiki from external page?

 * MediaWiki:] 1.12.0
 * PHP: 5.2.4-2ubuntu5 (apache2handler)
 * MySQL: 5.0.51a-3ubuntu5
 * URL: http://internalsite/socwiki/ ((internal))

I've installed Mediawiki and in order to have a dynamic collapsible menu I created a menu page and dropped it in http://internalsite/socwiki/clientlisting/menu.html. The functionality I want is to have the menu links reload the page inside the wiki with data from the wiki.

For instance


 * menu title (expanded)
 * Location0
 * Location1
 * Location2

When you click on Location0 it will take you to http://172.26.50.211/socwiki/index.php/Location0

I just couldn't find any other way to get the collapsible menu to work in a page other than using an IFrame - but when I link back now - it basically reloads the whole wiki into the content space. so it's like two wikis nested within each other.

Any Help/Info is appreciated. —75.127.66.250 16:58, 17 May 2008 (UTC)

(OUTDATED) How to login and link to mediawiki from another web application?

 * MediaWiki: 1.12.0
 * PHP: 5.2.4 (apache2handler)
 * MySQL: 5.0.45
 * URL: http://flinqe.com:8010/wiki/ FlinqEpedia

I am writing a web application and I want to provide access to my copy of mediawiki via links to specific pages in the wiki. I already have a password protection scheme of my own, and would like to automatically login to mediawiki as or before I start mediawiki in a separate window. I'd also like to be able to create new mediawiki users and new pages with personalized empty-page messages.

I am a php newbie, but program in other languages including perl and C++. I have been trying to get the Api:Login working using Snoopy as suggested in the Api:Login documentation, which references this information: http://lists.wikimedia.org/pipermail/mediawiki-api/2007-October/000117.html

The example 2 there works as advertised, but after completing the login, I want to start a particular mediawiki page as the now-logged-in user, preferably in a new window. Using a HREF link on the resulting page doesn't work; I get there but the user is not logged in. Using Snoopy to fetch the page and print_r the snoopy->results gets me to the page, which tells me I'm logged in. But links to new pages, such as "edit", don't maintain the login.

I'm guessing that the problem involves sessions, and in-memory cookies. I would prefer in-memory cookies for their security advantages, but can live with ordinary cookies if necessary.

I've tried searching the web for a solution, but all I've found is complex approaches (like Drupel) which I don't understand, and which seem to require extensive patches to mediawiki.

—75.147.32.154 03:19, 19 May 2008 (UTC)

(OUTDATED) How to validate fully upgraded wiki ?
(* URL: internal project)
 * MediaWiki: 1.12.0
 * PHP: 5.2.2 (apache)
 * MySQL: 4.1.21-log

Hello, I'm quite new to this forum even though I've been using wiki for some time now, but I've recently moved from one ISP to another and at that time from a Windowsbased host to a Linuxbased one. Well, I had everything up and running smoothly on my new host, the wiki worked fine (don't remember the version but it was quite old) and I upgraded to version 1.11.2 without any problems, everything still worked fine.

But then I noticed there was a version 1.12.0 and I set out to upgrade to it. Now here's the tricky part, previously on Windows I had shell access and used to run the upgrade.php scripts, but now I don't, so I tried the reinstallation option, backed up everything, made copies of localsettings.php etc and launched the setup.

It immediately failed with some kind of script error about $wfIniGetBool not being correctly defined on line xx in /config/index.php. After some checking of access rights and everything I could think of I decided that oh well, before restoring backups I might just try to get around this and removed the checks for wfIniGetBool. This let me run the upgrader, the database checks were executed and some upgrades were reported, and then the installation was supposed to create a new localsettings.php which again failed since I had missed commenting out one section of wfIniGetBool commands.

This really didn't matter since I was going to replace it with the backup, after which done the site is working happily again and now reporting 1.12.0 as version, but this prompts my question(s).

a) what could possibly be the cause for this failure, I never saw anything about that when upgrading to 1.11.2 ? b) Was the installer supposed to do something more after creating the localsettings.php ? Is there something I might have missed that I should check for ? c) Is there some way for me to verify that my site is working correctly, i.e. both that the version now is fully upgraded and also to possibly prevent future issues like this one ?

Best regards // Mike —213.114.35.125 15:54, 22 May 2008 (UTC) Mikael R.

(OUTDATED) Permission Issue
Directory Listing Denied This Virtual Directory does not allow contents to be listed. If I type a path directly to the index.php file I get this:

phpMyAdmin - Error Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.

Even former solutions offered have not helped. I installed php with the IIS install. I must use IIS because I also have .net on my computer. PHP works fine. I have run a phpinfo page. I installed phpMyAdmin but when I try to run it I get the above messages.

I have tried the solutions offered in different forum. Including this one: Right click on CMD.exe and "Run as administrator" and then type the commands below

icacls %windir%\serviceprofiles\networkservice\AppData\Local\Temp /grant Users:(CI)(S,WD,AD,X) icacls %windir%\serviceprofiles\networkservice\AppData\Local\Temp /grant "CREATOR OWNER":(OI)(CI)(IO)(F)

I got a message: 'icacls' is not recognized as an internal or external command, operable program or batch file.

I also right clicked the phpMyAdmin file and set permissions to read. It asked if I wanted it to apply to the child index.php as well I clicked yes.

I stll get the above messages. What now?


 * just a quick question, is this server side? if so, use a ftp client and right click on your root folder that the php files are in and CHMOD it by typing in 777 into the box. i know filezilla requires you to right click, others actually have option in the file menu for this as well.

edit: when you right click there should be a "setup permisisons" dialog box on the right click menu.

I am still very much a novice so some of that went over my head. I am doing what could be server side, but on my own machine. I really don't know what you mean by ftp client, unless I was accessing it from another computer, which I am not. When I right click on it I don't get a box of any sort that I can type in or any "set up permissions" dialogue box, but a box that says open, search, search, refresh thumbnail.. etc. at the bottom is properties.

Ok, I see now. It looks to me you are using your own computer as a server with IIS, my mistake. Well, first and foremost, you do have php installed on your machine, correct? then you will need mySql along with it. here is a great tutorial I found:


 * Installing phpmyadmin http://www.iis-aid.com/articles/how_to_guides/install_and_configure_phpmyadmin_on_iis
 * you also need to change the code $cfg['PmaAbsoluteUri'] = ; in your config.in.php file to $cfg['PmaAbsoluteUri'] = yourpathhere";
 * for example: $cfg['PmaAbsoluteUri'] = ''localhost/ASP/admin";
 * and change to
 * register_Global=ON

This post has been edited by duritz: May 20 2008, 10:53

--- --- --- --- --- --- Yes MySQL is installed.

It said that $cfg['UploadDir'] = '';. is an option. I might not need to actually do that. I did anyway. The instructions say, "log into your new phpMyAdmin install using the root account" That does not happen. I still get the error message! I still get the error message! I still get the error message!

In Internet Explorer it looks like this: The website declined to show this webpage HTTP 403 Most likely causes: This website requires you to log in. What you can try: Go back to the previous page. More information This error (HTTP 403 Forbidden) means that Internet Explorer was able to connect to the website, but it does not have permission to view the webpage. For more information about HTTP errors, see Help.

I can mess around with the configuration all i want, but I still don't have permission.

I found no "$cfg['PmaAbsoluteUri'] = ''; " so I added that command. I also added the "register_Global=ON" cause it wasn't there either.

—71.82.6.222 19:15, 29 May 2008 (UTC)

(OUTDATED) Extensions
Hi. I am looking for extension wchih will allow me to upload images from url, not only from hdd. Is there any? pogo

(OUTDATED) Navigation Tabs?
Does anyone know how to integrate this feature into a wiki? I've tried copying code into the MediaWiki:Common.css and MediaWiki:Common.js, failing to work at every attempt.

E.g. example of use: original source code:

Help? --90.200.52.124 11:28, 28 May 2008 (UTC)

(RESOLVED) Question: How to EXPORT to WORD format
Is there a way to EXPORT an .xml wiki page to WORD .doc or .docx  format?

—129.219.57.164 21:37, 28 May 2008 (UTC)


 * There seems to be just a project (?) the other way (Word → Wiki). Additionally, I have just found a shareware converter on the web so far, and I don't know if it will meet your needs. But isn't WORD able to import web pages? (Sorry, the latest version I have used is WORD 2000, and that's a long time ago ...) Regards -- 89.55.190.92 08:45, 29 May 2008 (UTC)

(OUTDATED) control User Preferences
Does anyone know how to globally change a custom user preference? this is the code i belief that is adding the check box to the special:preferences / misc. page: 	public function onUserToggles( &$extraToggles ) { $extraToggles[] = 'riched_disable'; $extraToggles = array_merge($extraToggles, self::$nsToggles); return true; But I can't seem to have 'riched_disable' checked by default. Matt 19:17, 28 May 2008 (UTC)

(OUTDATED) Embedding external media without extensions

 * MediaWiki: 1.11.0
 * PHP: 5.2.2 (apache2handler)
 * MySQL: 4.1.20-standard-log

My organization runs a secure MediaWiki wiki. Users must be on a list of allowed users to read or edit wiki content. Authentication is handled with an Apache module and a wrapper for MW.

With these security features in place, we decided that rather than installing extensions to help us with embedding YouTube videos or Google maps in MW articles, we would set the configuration variable $wgRawHtml to true. Since we've done that, we are able to put a larger range of HTML tags in our MW articles.

However, it doesn't work with the "object" tags for embedding a YouTube video or the "iframe" tags for embedding a Google map. Instead, MW just displays the HTML in the article. Using "nowiki" tags around the HTML doesn't help, either.

How can I make this work? —Lance E Sloan 16:29, 29 May 2008 (UTC)

(OUTDATED) Unable to add OpenSearch from my wiki to my browser

 * MediaWiki: 1.12.0
 * PHP: 5.2.6 (cgi)
 * MySQL: 4.1.22-standard
 * URL: http://network.the-orc.com/wikimini

Hi guys,

I'm trying to add my wiki's (details above) OpenSearch to the search engines my browser uses, and am failing miserably.

On IE7 (7.0.5730.11), I get the following error message when trying to add the provider: “Internet Explorer could not install this search provider. There was a problem with the search provider's information.”

On Mozilla Firefox 2 (2.0.0.14), it just fails silently.

I’ve trying to save the output of opensearch_desc.php to a local file and add it from there, but it fails with the same error(s), although to my naked eye, the format seems fine.

Any bright ideas?

Thanks in advance

—OgmiosProject 18:04, 30 May 2008 (UTC)


 * Some more info - I set FireFox's logging of Search Providers to true, and gave it another shot. The interesting part of the error console is as follows:


 * _onLoad: Couldn't convert byte array!
 * Error: [Exception... "'Failure' when calling method: [nsIStreamListener::onStopRequest]" nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: " "  data: no]


 * Off hand, I'd say it's some sort of odd encoding problem.
 * Any ideas?


 * Thanks,
 * OgmiosProject 13:16, 8 June 2008 (UTC)

(RESOLVED) Uneeded Copyright removal

 * MediaWiki: 1.12.0
 * PHP: 5.2.6(cgi)
 * MySQL: 5.0.51-log
 * URL: http://osirius.co.uk/wiki/

I don't own the afformentioned wiki, but I was wondering, how can I tell the owner how to removed the second copyright he has on the bottom of every page? He has it loading on the bottom left of every page, in addition to the pre-loaded copyright notice, so, could I given step by step instructions on how to remove this uneeded copyright? Thanks! —Logestic 20:42, 31 May 2008 (UTC)

PS: Is there anything I can add to my common.css to make it disappear? - Logestic 20:43, 31 May 2008 (UTC)


 * When looking at the source code, I find out that a gnu-fdl.png should be shown there instead of just the gnu-fdl link. Perhaps this image is not in the location where it should be so just the alternate text is shown:

<a href="http://www.gnu.org/copyleft/fdl.html"> <img src="/w/skins/common/images/gnu-fdl.png" alt='GNU Free Documentation License 1.2' /></a>
 * To remove it from being displayed using common.css this should work:

div#f-copyrightico {display: none;}
 * Regards -- 89.55.176.121 09:06, 14 June 2008 (UTC)
 * Or in your case edit main.css in monobook. --'<font face="freestyle script"> Truetech  <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 03:59, 12 August 2008 (UTC)

(OUTDATED) Search for short words not working after proposed changes
I've changed the fulltext index to 2 and 2 for both mysql variables and rebuilt the indexes (using the maintenance script), but this did not fix the problem. I still don't find anything when searching for XY or XYZ, even though the pages containing these words are in the searchindex table. Anything else I can do about that?

(RESOLVED) How to change the destination of the login/register link on the right top of the screen

 * MediaWiki: 1.11
 * PHP: 5.2.3
 * MySQL: 5.0.41

Hi there mates i'm trying to force that when you click on this link it will redirect you to another site i have on my localhost system. So i can log in thru CAS authentication. Is there an easy way to do this? Thanks a lot!

—Juanan 10:31, 2 June 2008 (UTC)


 * There should be. Try editing monobook.php in your skins directory. --'<font face="freestyle script"> Truetech  <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 03:57, 12 August 2008 (UTC)

(RESOLVED) Creation of a redirection page for the abbreviation "PRN"

 * MediaWiki: 1.11.0
 * PHP: 5.1.6 (apache2handler)
 * MySQL: 5.0.24a-community-nt
 * URL: http://pc030025527/fr_erp-wiki/index.php/Accueil

We have in my company a process to be described for which the abbreviation is "PRN". I would like to create this page as a redirection page but this is impossible. The message error 403 appears. What can I do? Thanks.

—195.177.247.202 12:19, 2 June 2008 (UTC)


 * How are you trying to create the redirect? <font color="#006500">Smaug [[Image:Tournesol.png|20px]] 17:38, 2 June 2008 (UTC)

I type PRN in the research field, I click on Go and then, the error message appears. When I usually do this, I see a link to create the page, I click on and I type what I want in the page. Is there an another way to create a page?

Thanks


 * In the URL, replace the title of a page (such as "Accueil" in the url you provide) with "PRN". This should bring you directly to the page with a link to edit it. <font color="#006500">Smaug  [[Image:Tournesol.png|20px]] 15:26, 5 June 2008 (UTC)

(OUTDATED) My Watchlist in User Help

 * MediaWiki: 1.6.8
 * PHP: 5.0.4 (apache2handler)
 * MySQL: 4.1.20
 * URL: http://www.openwatcom.org/index.php/Special:Watchlist

I finally set up the Open Watcom wiki (www.openwatcom.org) to email me changes made by others to pages I have created. Well, I thought so, anyway.

I will start by pointing out that, when I try to get help from User Help on the My Watchlist page, I instead get the Login page, apparently because there is no help on the My Watchlist page and the link is trying to open up an actual My Watchlist on your Wiki. Which, I submit, is not what a link in a User Help page should be doing.

The questions I have are probably mostly unanswerable or have to do with configuration, over which I have no control. Here they are, nonetheless:

Even though the "Add pages I create to my watchlist" box was checked, this did not happen; even though the "Watch this page" box was checked every time I edited, this did not happen; I had to track down every page I created and click on the "Watch" tab to add them to the list.

I have no idea what the button "Mark all pages visited" is supposed to do. If this is a toggle, then the text should change to "Stop marking all pages visited" so the setting can be reversed. But, for all I know, it runs the American flag up the pole of the local firehouse.

The email I got about a change (showing that something I did worked) had this text in it:

(text begins) There will be no other notifications in case of further changes unless you visit this page. You could also reset the notification flags for all your watched pages on your watchlist. (text ends)

I have no idea what this is talking about. Neither My Watchlist nor its Edit page show any "notification flags". Neither searching the FAQ nor the MediaWiki search box on the left of each page finds a match.

You know, it should really be very simple: I check the "Add pages I create to my watchlist" and, when I check the box for email notification, I get an email notification every time any of the pages I created is edited by someone else. No ifs, no ands, no buts, no maybes, no notification flags, no need to manually toggle the "Watch" tabs, no nonsense.

I am currently looking at My Watchlist. It claims that there has been exactly one Edit of one page in the last three days, and that is one of mine. Yet the page's history shows /six edits/ in the last three days, one of which prompted the email notification. Perhaps its because they are all on one page, but then, the My Watchlist really should claim to be displaying "pages changed" rather than "changes" as such.

Don't get me wrong -- I find MediaWiki to be a fine environment for documenting my work on Open Watcom. I just wish the watchlist had a less-complex implementation.

—72.244.201.108 00:22, 7 June 2008 (UTC)


 * Have you resolved any of the above? If so, please update us. Because I started to (try to) help, by first going to your wiki, and I did not see "User Help." I saw "User Resources" in your navigation bar, and it took me to your "User Resources" page, which is correct behavior, yes? As far as I know, there is no "User Help" on a "My Watchlist" page. Can you clarify?


 * Also, are you still having a problem with pages you create not being auto-checked to "Watch this page" and therefore not showing up in your "My Watchlist?" Because I tested it on your wiki, and it worked for me. (User: 7632416.) Please mark what parts of your issue have been resolved, and let us know what you found out. Thanks. -Brian7632416 16:43, 14 June 2008 (UTC)


 * 72.244.201.108 responds!
 * I see I confused you a bit. Sorry about that.
 * The "User Help" referred to is the one on /this/ Wiki (www.mediawiki.org). Someone picked this up, because the "watchlist" links on User Help now point to an unwritten help page. Well, that's a start!
 * I haven't had an occasion to create a new page since discovering the above. I am too busy using that MediaWiki to document a program called "wgml". Any time spent on this takes time away from exploring wgml, and that is not what I want to be doing. Especially since, being very much a MediaWiki newbie, I am probably confusing myself on these issues.
 * IIRC, when I first checked the watch list, the correct Prefences | Editing box had been checked ("Add pages I create to my watchlist"), my Watchlist only contained five pages. When I finished adding pages using the "Watch" tabs, I had 23. So, it clearly stopped at some point.
 * It is also a fact that every edit has the "watch this page" box checked, and every page gets edited. If this check box were truly doing what it said, all 23 pages would have been present when I finally got around to checking on this.
 * The "Mark all pages visited" button still keeps the same text however often it is pressed. I still have no idea what it does. I have no idea whether I want it turned on or off, or even if, having pressed the button, I have a choice.
 * And I have no explanation of the "notification flags for all your watched pages". The Watchlist has no flags. Searching for "notification flags" in /your/ Wiki (www.mediawiki.org) now finds an installation manual reference and a bug reference, the solution to which ("go to your watchlist page and click the button to one-click-clear all notification flags") is incomprehensible because there is no button on My Watchlist labled "clear notification flags". Perhaps it is labled "Mark all pages visited" instead ...
 * I honestly do not see why it has to be so complicated to set up a MediaWiki to send an email notification to me if anyone else modifies a page I created. Two check boxes (one for the email, one for all pages I create to be watched) really should be enough, yet here I am forced to click "Watch" tabs, check additional boxes, and then be told by the email I do receive that I will not get another for that page unless I personally visit the page that was modified or change flags which, so far as I can tell, do not exist.
 * But thanks for trying, anyway. If the Help page for Watchlist ever gets done, maybe it will have some answers.

(RESOLVED) Upgrade Problems

 * MediaWiki: 1.9.2 / 1.12.0
 * PHP: 5.2.6
 * PostgreSQL: 8.2.7
 * URL: Title

I recently upgraded my MediaWiki installation from 1.9.2 to 1.12.0.

After upgrading, I found that no page was visible. A quick search for DOMDocument revealed that I need to install php-xml. So I ran the command:

yum install php-xml

This took a while to execute (including quite a few updates for dependancies). After the update, postgres failed to start. I checked the documentation, and found that postgres had been updated from 8.1.0 to 8.2.7 (which have incompatible data formats).

Luckily, I had run pg_dumpall before trying to upgrade mediawiki. I restored this dump in the usual way. But now, mediawiki just gives me:

A database error has occurred Query: SELECT * FROM page_restrictions WHERE pr_page = '1' Function: Title::loadRestrictions Error: 1 ERROR: relation "page_restrictions" does not exist Backtrace:
 * 1) 0 /var/www/wiki/includes/Database.php(799): DatabasePostgres->reportQueryError('ERROR: relatio...', 1, 'SELECT * FROM...', 'Title::loadRest...', false)
 * 2) 1 /var/www/wiki/includes/Database.php(1244): Database->query('SELECT * FROM...', 'Title::loadRest...')
 * 3) 2 /var/www/wiki/includes/Title.php(1725): Database->select('page_restrictio...', '*', Array, 'Title::loadRest...')
 * 4) 3 /var/www/wiki/includes/Article.php(312): Title->loadRestrictions('')
 * 5) 4 /var/www/wiki/includes/Wiki.php(256): Article->loadPageData(Object(stdClass))
 * 6) 5 /var/www/wiki/includes/Wiki.php(46): MediaWiki->initializeArticle(Object(Title), Object(WebRequest))
 * 7) 6 /var/www/wiki/index.php(90): MediaWiki->initialize(Object(Title), Object(StubObject), Object(User), Object(WebRequest))
 * 8) 7 {main}

Can anyone suggest what the problem might be here, or how to fix it? The table page_restrictions appears to exist as far as I can tell.

—MrAngel 15:12, 8 June 2008 (UTC)


 * OK, I should have figured this one out sooner. I ran the upgrade script after dumping the database, so I need to do it again. However, I now get an authentication failure for user 'dracula'@'localhost' (Using password: YES)
 * I've tried logging in to the database using the same username and password specified in LocalSettings.php, and it works fine. I have no idea if the problem is with MW, PHP or postgres now.
 * --MrAngel 15:29, 8 June 2008 (UTC)


 * Resolved - turned out to be a postgres config error --MrAngel 16:01, 9 June 2008 (UTC)

(OUTDATED) display used templates
Hello,

can someone help me on this. If I click edit on a page, I can see all templates used in this page. It displays all pages (sections) I've included with #section-h. Exactly this list I'd like to include in my wiki document. On the bottom of the page I'd like to have a section displaying links to all the pages I've included sections from.

is there a way to display something like this?

Thanks —193.134.254.145 14:50, 10 June 2008 (UTC)

(RESOLVED) search engine optimisation/indexing

 * MediaWiki: latest
 * PHP: im sorry i'm new to wikis i dont know what to write here..
 * MySQL: as above
 * URL: not yet online

Hello,

hopefully i'm doing this correctly, deleting the lines saying delete etc, heres my question

how do i get my site indexed with google? I can do it in html but the index page for media wiki is in php and i dont want to change any of it for fear of braking it.

Is there a way of adding tags, keywords & descriptions to the wiki through the actual wiki ?

please help soon

Thanks

james —81.151.156.227 15:17, 10 June 2008 (UTC)
 * Setting

$wgRawHtml = true;
 * in LocalSettings.php gives you the power to use all the HTML tags (some are allowed also in false mode), but have a look at the warnings at Manual:$wgRawHtml. Regards -- 89.55.176.121 09:32, 14 June 2008 (UTC)
 * PS: Have a look at special page Special:Version on your wiki for finding out the versions required above.
 * I would reccomend against using $wgRawHtml unless you must. This question has been asked before, so have a look there. <font color="#006500">Smaug  [[Image:Tournesol.png|20px]] 13:16, 14 June 2008 (UTC)

(OUTDATED) Email related problem (How to set SMTP mode and how to get log for an error)

 * MediaWiki: 1.12.Orc1
 * PHP: 5.2.5(apache2handler)
 * MySQL: 4.1.12
 * URL:http://192.168.1.122/index.php/Main_Page

I am facing problem in Email notifications. How to set the SMTP mode in DefaultSettings.php.

1. After changing the SMTP Mode according to our requirements and after uncomment the code i am getting an error in these lines. So how to uncomment these lines so that these lines will also run.

/** * SMTP Mode * For using a direct (authenticated) SMTP server connection. * Default to false or fill an array : *  * * @global mixed $wgSMTP */ $wgSMTP= true;

What all other changes we need to do enable Email notification.

2. How to get log files for any error.Is there any option which need to be set.

--Neelam.jain 05:29, 11 June 2008 (UTC)

(RESOLVED) How do I set a link to a namespace?
Hello, how do I set a link to a namespace? I think a link like this http://eniak.info/index.php?title=Spezial%3AAlle+Seiten&from=&namespace=4 looks ugly... Is there a better way to link to a namespace? Thanks, —PMay 15:00, 13 June 2008 (UTC)


 * Well, if lookin ugly is the only problem then you could link it with alternate text like Namespace 4. <font color="#006500">Smaug [[Image:Tournesol.png|20px]] 17:16, 13 June 2008 (UTC)

(RESOLVED) How do I create a second database
Hi, I would like to create a second database with exactly the same structure as the first, and also using the same Mediawiki installation for both. The purpose is to have two different types of contents. How do I go about doing it and what's the disadvantage, if any. &mdash; PM Poon 20:58, 14 June 2008 (UTC)


 * What is your goal? <font color="#006500">Smaug [[Image:Tournesol.png|20px]] 03:51, 15 June 2008 (UTC)


 * If only I know, LOL. Actually, I was thinking of having two sections, one for me to write exclusively, and another for the community. &mdash; 219.95.193.61 23:06, 29 June 2008 (UTC)


 * You could protect an individual namespace with $wgNamespaceProtection. Would that give you what you need?  Otherwise, if you just want to have two wikis, you could just install MediaWiki in two different directories with different databases. Or else see Manual:Wiki_family. <font color="#006500">Smaug  [[Image:Tournesol.png|20px]] 14:58, 6 July 2008 (UTC)

Hi Smaug, thank you for your replies. I have so many ideas for using two databases accessed from the same main page. Now my mind is clearer. One is as said earlier, and the other is to have two languages, one being a mere translation of the other. Users can choose the language at the main page or the side panel. Once a language is chosen, the search bar does not show results for the other language even if some words are similarly spelt. &mdash; PM Poon 00:20, 14 July 2008 (UTC)


 * MediaWiki has some built in support for multiple languages, what with the translation of system messages into different languages. I'm not familiar with that functionality however. <font color="#006500">Smaug  [[Image:Tournesol.png|20px]] 03:37, 22 July 2008 (UTC)

(OUTDATED) Link to other Languages on sidebar
Hello, I have down loaded MediaWiki and installed 2 languages are Thai and English. I would like to know If I have the topic in Thai language, then I would like to link to the topic in English language in to sidebar. How can I do ? Wondermoon 13:41, 15 June 2008 (UTC)


 * Well, I have the same problem with 3 languages. I tried it with 3 scripts and 3 Sql's and with 3 scripts and 1 Sql. Both did not work. Can someone help?
 * http://www.Genwiki.info eMail: kwartierstaat@yahoo.com

(OUTDATED) Display the edit links inside of the page

 * MediaWiki: 1.11.2
 * PHP: 5.2.4-2ubuntu5.1
 * MySQL: 5.0.51a-3ubuntu5.1
 * URL: private network

How can you make it so that the edit links inside of the article appear even if the page is protected?? I have a page that is protected but uses templates to get the information that is desplayed on the main page... I want to have everyone edit the actual templates but not the main page... Thanks

—63.77.141.66 13:11, 16 June 2008 (UTC)

(OUTDATED) Adding messages to image uploads

 * MediaWiki: 1.12.0
 * PHP: 5.2.5 (apache)
 * MySQL: 4.1.13-standard
 * URL: http://wiki.heavengames.com/aom/Special:Upload

How can I get a message to explain information like on Wikipedia above the upload form?

—Mephiles 18:29, 16 June 2008 (UTC)

(OUTDATED) How to sort Special:AllPages into a single column

 * MediaWiki: 1.6.10
 * PHP: 4.4.4-8+etch6 (cgi-fcgi)
 * MySQL: 4.0.24_Debian-10sarge2
 * URL: Private

Hi there,

I'm hoping this is the right place to ask this question.

Basically I have my own private wiki, and all of my users open the Special Page "All Pages" by default. I want to be able to sort the list into a single column instead of three columns, as this makes it hard to pick out an individual article.

Is this possible? I looked at the SpecialAllpages.php file but it's a bit over my head.

Thanks for any help. —202.27.218.212 03:42, 17 June 2008 (UTC)

(OUTDATED) leveraging OS permissions for files used as links

 * MediaWiki: (Reported by your Wiki's Special:Version page)
 * PHP: 5
 * MySQL: (not known)
 * URL:

Is there some way to leverage file permissions, like read, write, etc. when using documents and spreadsheets, etc as links from wiki pages? Example: a named wiki user can only read certain spreadsheets, but write onto others. I think I saw a piece about configuring Apache for this purpose(??) but not for IIS. I am using IIS. THANKS —68.178.62.32 20:26, 19 June 2008 (UTC)

(RESOLVED) Unable to enable HTML in wiki
Product 	Version MediaWiki 	1.12.0 PHP 	5.2.2 (apache) MySQL 	5.0.51a-community URL: www.danda-comics.co.uk/wiki

OK i've created an FaQ for a game i play inside of a wiki and, although its against the idea of the wiki somewhat i've locked off other users from registering without permission etc so as to save the pages getting vandalised by ingrates. However there are certain things i would like to do which i can't do with the wiki formatting. So i had the intention of enabling HTML so as i could do some additional edditing that way, however Whenever i attempt to input ANY html code into one of my pages, i'm redirected from the wiki to the base page.

I have the following at the bottom of my localsettings.php (i'm typring this in so it may not be accurate in here)

$wgGroupPermissions['*']['createaccount'] = false; $wgAllowExternalImages = true; $wgAllowHtml = true;

Far as i can tell i SHOULD be able to use html with that code in there, but i have no idea why i'm being redirected out of the page, anny assistance would be appreciated (i'm sure its something mind numbingly simple)

—193.63.197.246 03:15, 20 June 2008 (UTC)


 * Dunno about redirecting, but the variable is called $wgRawHtml, not $wgAllowHtml. -- Sayuri 04:48, 20 June 2008 (UTC)


 * Whelp i've tried changing that (the allowhtml must've been a previous version or something. ( but still the same problem, whenever i edit a page and put in some html the edit won't stick and i'm sent back to the main site and not the wiki.

(OUTDATED) How can I customize new userpage creation a la Wikipedia? I can't figure out how they did it!

 * MediaWiki: 1.12.0
 * PHP: 5.2.6
 * MySQL: 5.0.45
 * URL: www.narratinglandscapes.net

I don't have an issue, per se, but I need some assistance in customizing MediaWiki. WikiPedia has some cool new userpage functionality: it has different edit text than usual pages, unlike, it appears, in the default install where the MediaWiki:Newarticletext is used. It also seems to be locked, for creation, to users with the same name as the intended page. And I think it also perhaps has an automatic template/category association.

I don't care so much about the user authentication type bits, but I would like to know how to change the newarticletext for userpage only, and also how I might preload a template for user pages.

—67.204.4.161 23:03, 22 June 2008 (UTC)

(OUTDATED) Semantic MediaWiki, Undefined offset

 * MediaWiki: 1.13alpha
 * PHP: 5.2.6 (cgi-fcgi)
 * MySQL: 5.0.27-log
 * URL: http://www.gough-name.org.uk/wiki/Special:Version

I have just installed Semantic MediaWiki (version 1,1,2) and am now getting an undefined offet: 1 error in line 334 of SpecicialVersion.php

—Martin Gough 13:26, 26 June 2008 (UTC)

(OUTDATED) How do I upgrade?

 * MediaWiki: 1.6.8
 * PHP: 5.2.4 (apache)
 * MySQL: 5.0.45-community
 * URL: SW: Evolution Database

How do I upgrade the mediawiki from version 1.6.8 to version 1.12.0? There's a lot of information stored, as well as quite a few modifications having been made with extensions and the theme. I don't want to lose any of it. Is there an easy-to-follow guide that will take me through the process step-by-step?

—97.115.227.196 01:02, 28 June 2008 (UTC)

(RESOLVED) New Page
How do you add a new page?!


 * See Help:Starting a new page. <font color="#006500">Smaug [[Image:Tournesol.png|20px]] 15:01, 6 July 2008 (UTC)

(OUTDATED) Interwiki Transcluding

 * MediaWiki: 1.12.0
 * PHP: 5.2.5
 * MySQL: 5.0.51a

I have a problem when transcluding a template into another site, using $wgEnableScaryTranscluding - What happens: A double linebreak appears before the loaded template. This doesn't happen when i use the template on the same site that it is created.

When i check the sourcecode for the page with the linebreaks, it has added . Why is this added and how do i remove it? Not a big problem, but it messes up the layout. --Aroekene 09:22, 2 July 2008 (UTC)

(OUTDATED) Math support

 * MediaWiki: mediawiki-1.12.0
 * PHP: 2.11.4
 * MySQL: 5.0.51a

Hey every one!

I have installed all the necessary softwares for math support and generated texvc.exe.And made all the changes mentioned in math.php and localsettings.php. Also, the mediawiki on windows asks to make changes in the image.php file, but there is no such file available in the mediawiki version that I downloaded.

I get the error "Failed to parse (unknown error):"

Please help!

Thanks a lot!!!

(OUTDATED) Sending e-mails to specific user groups
how can I send an email to a whole grup of users? i.e. I want to tell everybody of the bot-group via email to force their work in the wiki. thanks —84.188.198.121 13:10, 6 July 2008 (UTC)

(RESOLVED) Changing amount of items in a Category
I'm using


 * MediaWiki 1.12.0 (r16740)
 * PHP 	5.2.5 (cgi)
 * MySQL 	5.0.51a-community
 * http://theaquariumwiki.com/

My Category listings show 200 items at a time. I'd like to change this number to say 300.

Can someone tell me what I need to edit to do this?

—Quatermass 13:54, 7 July 2008 (UTC)


 * Update: I've discovered that placing variable $wgCategoryPagingLimit = 300; in LocalSettings.php will alter the number of categories shown to 300.
 * Pity it's not a per-user setting of course. Maybe next time guys?
 * --Quatermass 18:08, 8 July 2008 (UTC)
 * Just went on your site. Looks like you have a mess in your Special page. --'<font face="freestyle script"> Truetech  <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 03:47, 12 August 2008 (UTC)

(RESOLVED) How do I remove users who are no longer a part of the community that my wiki supports?
I have restricted account creation, but there is the issue of when people leave/are removed from our community, they need to no longer have access some of the information found in our wiki - how do I remove their user accounts?

I apologize if this is incorrectly formatted - I'm not very good at this yet.
 * Removing accounts is a task that can cause all sorts of problems, so we don't recommend it. If you want older users to not be able to access the wiki's information at all, what I what I would do instead is to create a new user group that has the ability to read pages in the wiki (see Manual:Preventing access), and making "current" users members of that group. If you want older users to not be able to access a particular namespace of your wiki, I would apply namespace protection to that particular namespace. It depends on the specifics of what you're trying to do. Tito<font color="#008000">xd (?!?) 06:19, 31 July 2008 (UTC)

(OUTDATED) I have a UId - but I cannot comeback - I have my internal number
I am lost out and very sorry if I am writing things in the wrong place.

I have a UId - tarcisio  and I have asked a new pass to be sent to me, but - perhaps - I used an e-mail that has been dropped since a time.

I have my internal number. Would I put it here ? I do not think so!

How can I manage to come back?

Tarcisio tarcisio@member.ams.org

(RESOLVED) Import TikiWiki-Pages to MediaWiki

 * MediaWiki: 1.12
 * PHP: 5.2.6
 * MySQL: 5.0.51b-community
 * TikiWiki: 1.9.9

Hey, I have used TikiWiki for more than 3 years. Now I would like to change my Wiki to MediaWiki.

Is there any script or trick how to convert the Wiki-Pages from TikiWiki to MediaWiki? —193.111.40.210 13:20, 10 July 2008 (UTC)


 * For now try just to do the long way because I don't think there is a good explanation: Copying and pasting. --'<font face="freestyle script"> Truetech  <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 03:44, 12 August 2008 (UTC)

(OUTDATED) Monobook Skin Variant Help with Line Breaks

 * MediaWiki	1.12.0
 * PHP	5.2.6 (cgi-fcgi)
 * MySQL	5.0.45-log

I have not edited my monobook skin too much, but for some reason my skin has some insane line breaks: For an example check My Special:Version and now take a look at your Special:Version Could anyone enlighten me as to why mine does this? Or what I need to change to make it not act funny?

Hope I did this right —76.107.86.48 14:02, 12 July 2008 (UTC)
 * Yea whats wrong with it? --'<font face="freestyle script"> Truetech  <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 05:36, 11 August 2008 (UTC)

(RESOLVED) Incorrect Link Lists

 * MediaWiki: 1.12.0
 * PHP: 5.2.3 (apache)
 * MySQL: 4.1.22-standard
 * URL: http://zeldawiki.org/

A template of ours is causing pages to show up on the Special:Disambiguations page even though the pages do not actually link to those disambiguation pages. The template is the Cite template. We tried to fix the problem with the template but have had no success.

—Mjr162006 14:50, 16 July 2008 (UTC)


 * We have determined the cause of the problem. It is the #ifexist function from the ParserFunctions extension. If there is an internal link in the either of the outputs for the function, then that link will show up in all of the relevant Special Pages regardless of whether the target pages exists or not. I will now report this on that extension's discussion page.--Mjr162006 22:51, 21 July 2008 (UTC)

(OUTDATED) Database location
I would just like to apologize in advance, because I am well beyond my ken here. I set up a personal wiki on a local server using the lifehacker guide here -> http://lifehacker.com/software/wikipedia/geek-to-live-set-up-your-personal-wikipedia-163707.php, using WAMP5 1.6.5 and MediaWiki 1.5.8. The computer on which I was running this wiki was then brutally infected with a virus, and I was forced to reformat. Before I did so, I saved the entire wamp folder, which I presumed contained the data for my mediawiki project. However, as I am now trying to reconstruct the setup I had before, I have discovered several problems, most of which are probably for the folks at the wampserver forums. But as I'm trying to figure out how to get this up and running again, the first problem I have discovered is that I really don't know where the actual data for my database was saved. I know I should have taken the time to do a real backup (hindsight is 20/20) but I figured that just saving the whole folder would do the trick. I was very frustrated with my computer at that point, so the quickest solution seemed best.

If somebody can tell me that my data was actually located elsewhere and is now lost on my wiped-clean HD, then the plus side is that I will stop needing to bother nice people on forums like this one. But I would really like to get my wiki up and running again, if at all possible. Thanks in advance for your consideration, and for going easy on me.

—MrCheshire 03:29, 18 July 2008 (UTC)

(OUTDATED) mod_auth_sspi with apache, php,mysql on windows

 * MediaWiki: 1.12.0
 * PHP: 5.2.6
 * MySQL: 4.1
 * mod_auth_sspi-1.0.4-2.0.58-3
 * URL: http:\\localhost\testwiki

I am trying to use mod_auth_sspi module for windows integrated authentication. I have loaded the module in httpd.conf LoadModule sspi_auth_module modules/mod_auth_sspi.so

and added the below lines

<Directory "C:\Program Files\Apache\htdocs"> # Configure mod_auth_sspi - who can get stuff from this server. #AuthName "Intranet" AuthType SSPI SSPIAuth On   SSPIAuthoritative On    SSPIDomain MyDomain SSPIOfferBasic On   SSPIOmitDomain On    #SSPIUsernameCase lower # PerRequestAuth can now be safely set to `off` in 1.0.5 #SSPIPerRequestAuth off require valid-user </Directory>

Then what else we need to do to make mediawiki work with domains's username and password

(OUTDATED) W3C's WCAG 1.0 Priorities 1 and 2 checkpoints
Does MediaWiki support W3C's WCAG 1.0 Priorities 1 and 2 checkpoints? —198.103.172.9 16:06, 21 July 2008 (UTC)

(RESOLVED) Server error

 * MediaWiki:1.12
 * PHP: iss7
 * MySQL: php5
 * URL: http://www.ponkavanam.com

this error not come always.

Server Error in '/' Application. Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [NullReferenceException: Object reference not set to an instance of an object.] IIS7Injector.InjectedContentStream.Write(Byte[] buffer, Int32 offset, Int32 count) +146 System.Web.HttpWriter.FilterIntegrated(Boolean finalFiltering, IIS7WorkerRequest wr) +265 System.Web.HttpResponse.FilterOutput +80 System.Web.CallFilterExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute +54 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64 Version Information: Microsoft .NET Framework Version:2.0.50727.1434; ASP.NET Version:2.0.50727.1434

—Azeeznm 16:57, 23 July 2008 (UTC)

(RESOLVED) mailto multiple recipients
Hi,

is there wiki syntax to create mailto-links for multiple recipients, separated by comma?

—83.171.178.221 17:15, 25 July 2008 (UTC)


 * Try looking in extensions. If not, if you using a hosted server, in your control pannel you can do this. --'<font face="freestyle script"> Truetech  <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 03:28, 12 August 2008 (UTC)

(OUTDATED) Permissions not being granted

 * MediaWiki: 1.12.0
 * PHP: 5.2.6
 * MySQL: 5.0.51a
 * URL: http://ufstarfleet.org/wiki/

It seems that user permissions are not being granted. Neither of our bureaucrat, or our sysop seem to be granted any permissions on loggin in. To note myself as a bureaucrat can not create users, not view the Special:Userrights page. For example on the Userrights page it tells me I have not been granted the proper permission.

This is what we have in our LocalSettings.php file in regards to permissions. $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['*']['createpage'] = false; $wgGroupPermissions['*']['createtalk'] = false; $wgGroupPermissions['bureaucrat']['userrights'] = true; This hasn't changed in months, yet now all of a sudden we are bureaucrat less it seems. In looking at the SQL table wiki_user_group the correct user IDs have the correct bureaucrat or sysop permissions set.

—LifesaverM 19:02, 28 July 2008 (UTC)


 * I'm having this trouble with a fresh install of MW 1.12 also. MW says that only bureaucrats have permission to edit Special:Userrights, and it says the (the account created at install time) is a member of the bureaucrat group, but it doesn't allow access to the Special:Userrights page because it says is not a member of the group.
 * UPDATE: I have discovered that if I grant everyone access to the userrights table (i.e. $wgGroupPermissions['*']['userrights'] = true; that I can get access to the table. Also, I checked the mySql database directly to make sure that userid 1 was listed as a member of both bureaucrat and sysop groups, and this is so.
 * I have also noticed that none of the other default groups, user, is not available to assign a user to via Special:Userrights, though it's there in the DefaultSettings.php. I can add it to LocalSettings.php and it'll show up, though.
 * The upshot is: I can only gain access to the Special:Userrights page if I open up the system completely, and of all the default groups assigned at installation time only bot, sysop, and bureaucrat are available even if I do.
 * Quite puzzling! Any help would be appreciated.
 * --Blackhawke 22:17, 2 August 2008 (UTC)

Yes this is the same conclusion I have reached thus far as well. The groups themselves seems fine, however users are simply not having any permissions granted to them on login outside of "Verified" and "User". I as well tested setting userrights access to all users, and I was able to obtain access. So now when I have to do major admin work I'm having to make the server unacessible to the outside world, open up the permissions, do what I need to, secure the permission, and make the server public again. Quite a pain to say the least. This problem began before I upgrade mediawiki to 1.12.0 previously it ran 1.11.0, at some point this stopped working. So I expanded all the files on the server preserving the database to make sure I didn't have any corrupted files and then upgraded to 1.12.0 just to see if it would fix it. I've also noticed images are not displaying properly. When looking in the DB itself I'm noticing a "/?" getting added to the end of file locations. Perhaps some UTF-8 writting problem? Any help would be appreciated.

—LifesaverM 04:55, 11 August 2008 (UTC)

(OUTDATED) Multi langage (French question)

 * MediaWiki: 1.12.0
 * PHP: 5.2.6 (cgi)
 * MySQL: 4.1.22-log
 * URL: Wiki de BelgAnt

Bonjour,

J'aimerai de l'aide sur comment créer un wiki multi langage comme vous l'avez ici (cadre en dessous qui permet de choisir sa langue). Je ne sais pas trop où m'adresser donc je me permets de vous contacter.

Merci d'avance
 * Translated verison from translate.google.com
 * [START OF TRANSLATE]
 * Hello,
 * I'd like to help on how to create a wiki multi language as you have here (below framework that ::allows to choose the language). I do not know where I speak therefore I will contact you.
 * Thank you in advance
 * [END OF TRANSLATE]
 * --76.65.3.32 04:04, 16 October 2008 (UTC)
 * Do you mean inter-language links? Tohd8BohaithuGh1 (talk | contribs) 22:27, 31 October 2008 (UTC)
 * --76.65.3.32 04:04, 16 October 2008 (UTC)
 * Do you mean inter-language links? Tohd8BohaithuGh1 (talk | contribs) 22:27, 31 October 2008 (UTC)

(RESOLVED) dictionary
i want create a dictionary site in mediawiki. i have a dictionary in access database. how to import this database into mediawiki? and make mediawiki site? —212.138.47.12 09:16, 26 July 2008 (UTC)
 * Just install mediawiki onto your site and when asked for you database info put the same as you dictionary one. What is you website's address?--'<font face="freestyle script"> Truetech  <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 23:54, 10 August 2008 (UTC)

(RESOLVED) Download not working
Hello, I have tried unsuccessfully to download the MediaWiki software from MediaWiki download page ( http://www.mediawiki.org/wiki/Download) and from the sourceforge repository. When attempting to download the 1.12 release from the MediaWiki download page I get the following errors: either a 404 because the link to 1.12.tar.gz appears to our anti-virus software to have a virus embedded in a gif in that frame or the standard Internet Explorer 7 error page where it says the page can not be displayed.

When attempting to download from Sourceforge, the current stable version (1.12) is not available (it only shows 1.9) and then when the link is clicked to download the tar file for 1.9, the Sourceforge page says that it is downloading but nothing appears (and there is no information bar that appears in the browser asking me if i want to download the file).

I did not have these problems when I attempted to download some of the extensions to MediaWiki.

Any ideas for how this problem can be resolved?

Thanks, Christine


 * Download 1.13 and extract the files to the point where .tar and .gz isnt there anymore. use 7zip for this. then just upload it to you public_html folder under the name w. Email me if I can be of any assistance when you did this. --'<font face="freestyle script"> Truetech  <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 23:57, 10 August 2008 (UTC)

(OUTDATED) Warning: Cannot modify header information?

 * MediaWiki: 1.12.0
 * PHP / MySQL: I don't know because I can't enter my wiki... = =
 * URL: This is Chinese = =

When I enter my wiki is result in a blank page.

I input the forcing debug code:

error_reporting( E_ALL ); ini_set( 'display_errors', 1 );

in the LocalSettings.php and I get:

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache2/htdocs/unplkno1c/wiki/LocalSettings.php:1) in /usr/local/apache2/htdocs/unplkno1c/wiki/includes/WebResponse.php on line 10

Six of this line on the page...

What is going on...I am exhaused = =

If the solution needs to mod sth in the php.ini or sth like that,

please provide another solution that doesn't need to mod things like that

b/c I am using a free host... —Hamsterham 14:37, 1 August 2008 (UTC)

Sorry for I didn't make a title:P -Hamsterham 14:41, 1 August 2008 (UTC)


 * Try reinstalling your wiki (1.13 is a good version). If that doesn't work it might be because of your host. --'<font face="freestyle script"> Truetech  <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 03:23, 12 August 2008 (UTC)


 * but why? maybe I can contact the host for solving this problem...-Hamsterham 14:21, 13 August 2008 (UTC)


 * Check that there's no space before the  tag or BOM character in LocalSettings.php. <font color="#66A7CC">i <font color="#9966CC">Alex  20:54, 13 August 2008 (UTC)


 * Well,I dont think so... -Hamsterham 07:58, 16 August 2008 (UTC)


 * I thought that it is sth wrong with the php or safe mode, is it? -Hamsterham 12:54, 16 August 2008 (UTC)

(OUTDATED) 500 Internal Server Error Message

 * MediaWiki: (Cannot access Wiki due to error)
 * PHP: (Version 5)
 * MySQL: (Unsure - hosted remotely)
 * URL:

Earlier today my Wiki was returning a 500 Internal Server Error message, I have changed no settings or edited any files. The host says the problem was related to my .htaccess file, the only line I have in the htaccess is "AddHandler application/x-httpd-php5 .php" which forces the server to use php5 instead of the default php 4 for the Wiki. They removed the .htaccess and after that I received this error "Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/rrigney5/public_html/wiki/LocalSettings.php on line 75" which I was told was related to it running on php4.

I'm wondering if this is on my hosts end, or if somehow something happened without any changes or intervention. Thank you in advance :)

—Halister 03:04, 2 August 2008 (UTC)

(RESOLVED) Footer Background Image

 * MediaWiki: 1.12.0
 * APACHE 5.2.6
 * PHP 2.0.63
 * MySQL: 5.0.51b
 * URL: http://ldn-media/MediaWiki

Hi, i've installed mediawiki onto a work server. I am currently editing the wiki but have come to a bit of a road block. I wanted to add an image to my footer, but i want the image to be as long as the footer and have the text privacy policy, About, Disclaimer on top of this. kinda like a background image for only the footer. however my programming skills are pretty much 0-none.

Can anybody help? Thank you Rachel Kempster Rhbacat01@hotmail.com


 * Yea, just sent you an email. --'<font face="freestyle script"> Truetech  <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 05:16, 11 August 2008 (UTC)

(RESOLVED) A comment
Just a comment -- take it for what it is worth: I wrote an rather long article on Dkosopedia. I was surprised to discover the following notice on the bottom of the page:

GNU Free Documentation License 1.2


 * This page has been accessed 1,745 times.
 * This page was last modified 19:37, 2 October 2007 by dKosopedia user Patrick0Moran. Based on work by dKosopedia user(s) Brudny and BartFraden.
 * Content is available under the terms of the GNU Free Documentation License.

It is untrue that Brudny and BartFraden had any substantial input to this article at all. The software appears to have sorted the names of two people out of the edit history, and they were the ones that did nothing to speak of.

Personally, I don't see the point of "giving credit" to begin with, but to give credit to the one person on that site who has been unfriendly to me and lots of other people is particularly galling. Did somebody say that it really takes a computer to screw things up? —152.17.55.136 01:37, 1 August 2008 (UTC)
 * You can always undo thier work. --'<font face="freestyle script"> Truetech  <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 23:51, 10 August 2008 (UTC)

(RESOLVED) New magic word

 * MediaWiki: 1.14 alpha
 * PHP: 5.26
 * MySQL:
 * URL: http://en.wikipedia.org/w/index.php?title=User_talk:Alison&diff=prev&oldid=229621565

Is there a new magic word linked to in the link above, and is NOINDEX a proper magic word?? Also, what settings can I use to prevent robots getting hold of user/user talk pages on my new wiki, when it launches?? —Malrick 09:13, 4 August 2008 (UTC)
 * Take a look at $wgNamespaceRobotPolicies. —Emufarmers(T 09:18, 4 August 2008 (UTC)


 * Thanks, Emufarmers. I will check that out. --Malrick 09:19, 4 August 2008 (UTC)

(OUTDATED) Generell information about user maintenance such as rights, deleting accounts, access and protecting pages

 * MediaWiki: Version 1.9.3
 * PHP: 5.1.2(apache2handler)
 * MySQL: PostgreSQL 8.1.9 on i486-pc-linux-gnu, compiled by GCC gcc-4.0.gcc-opt (GCC) 4.0.3 (Ubuntu 4.0.3-1ubuntu5)

Hello there,

Im using the MediaWiki and would like to know if you also can make some special adjustments such as deleting pages/users or giving some users no access to certain categories.

I would be very grateful for any responses. Don´t hestitate to contact me as well via mail at

d.dumitru@flexa.de —Regards from Germany - Maintower 08:52, 4 August 2008 (UTC)


 * Well you can't delete a user but you can block a user. You can always protect the category pages so only sysops can edit it, though I dont think you can block them completly from viewing it. --'<font face="freestyle script"> Truetech  <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 23:41, 10 August 2008 (UTC)

(OUTDATED) is there a way to use "Gizmos" & other Special Content ?
I'm presently using MetaDot as a wiki platform, and like it for many things, like the ability to have email forums and group calendar "gizmo" pages. Can those kinds of things be found somewhere and used within MediaWiki? I'm also looking for the ability to display page hierarchies and to copy/paste page hierarchy templates as workspaces for clients to use. Is that possible in MediaWiki, or in any other relatively user friendly wiki you know of?

thanks, —PFHenshaw 13:35, 4 August 2008 (UTC)


 * Well it can be if you can find any extensions that do that. I know I saw google calander extension somewhere among others... Just go on the extensions category or type in the search box what you want and see what you come up with. --'<font face="freestyle script"> Truetech  <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 05:10, 11 August 2008 (UTC)

(RESOLVED) Setting default to "protected"
Hi, I would like to set all my pages to "protected" by default so that only sysops and the user who started the page can edit it. Is that possible?

The reason is because I use the "Delete old revisions" feature to cut cost on webhosting. And it would be sad if there is any vandalism that goes unnoticed. Moreover, my articles at Dummipedia.org do not need much co-writing. Generally, each contributor can handle the whole article by himself. &mdash; PM Poon 18:01, 4 August 2008 (UTC)
 * That is not possible. It could be if someone creates an extension for it. --'<font face="freestyle script"> Truetech  <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 23:35, 10 August 2008 (UTC)

(OUTDATED) How to Specify a Default "Main Page" for each custom namespace?

 * MediaWiki: 1.12.0
 * PHP: 5.2.5 (apache2handler)
 * MySQL: 5.1.26-rc
 * URL: Local LAN Only URL

I have spent several hours scouring the help files and, perhaps I am not familiar with how a Wiki is supposed to work but, I am not able to find any information on how to specify the default page for each new custom namespace.

I am under the impression that I would create a new namespace and have a "Main Page" appear for that namespace so a brief explanation of what the namespace is there for or what the namespace offers could be displayed.

Can anyone tell me how this is done? I have found how to modify the NS_MAIN "Main Page" but I don't want to do that. Any suggestion?

--Andrewggrant 17:20, 6 August 2008 (UTC)

(RESOLVED) Export of wiki to CD or USB-Stick
Hello ,

i have installed media wiki on a server with xaamp sql.

can i export the whole wiki to a cd or usb-stick, so that i can see the articles when i have no connection to server.

—217.194.34.103 14:46, 6 August 2008 (UTC)
 * Yea if but you might have to do it one by one. In your browser that you are viewing your wiki on click on File>Save as> specify name and file type (ex: .doc for word). --'<font face="freestyle script"> Truetech  <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 23:38, 10 August 2008 (UTC)

(RESOLVED) How to convert mediaWiki pages to a word file
Hello everyOne ;-) How can I convert mediawiki pages to a word document?.

Contact: stefan@asemota.ch —193.5.216.100 07:53, 7 August 2008 (UTC)


 * What do you mean by mediawiki pages? Do you mean this website or your own wiki? Well if you mean your own wiki and you are talking about the actual pages on your site, not the system pages, the best way would be to go to File > Save as... on your browser, and change the file type to a word document (.doc). --'<font face="freestyle script"> Truetech  <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 23:26, 10 August 2008 (UTC)

(OUTDATED) Special:Version shows up as blank

 * MediaWiki: (Reported by your Wiki's Special:Version page)
 * PHP: 	5.2.3 (cgi-fcgi)
 * MySQL 	4.1.20-standard-log
 * URL: http://www.stthomasmcleanva.org/mediawiki/

I can't figure out my version because the page "special:version" shows up as blank. What causes this and how can I otherwise figure out what version I have

—Jcrigler 15:24, 7 August 2008 (UTC)

(OUTDATED) Paratemers to index.php for controlling date display

 * MediaWiki: N/A
 * PHP: N/A
 * MySQL: N/A
 * URL: multiple

Hi,

I'm working on a bot and I was just wondering if there's any way of overloading the default time and date format and also the time offset in a parameter to index.php?

Thanks in advance,

—Cfp 21:23, 7 August 2008 (UTC)

(OUTDATED) Gadget scripts running under Greasemonkey?
Hello, I asked this at the English Wikipedia help desk and was directed to ask here.

My question is about the Gadgets in My preferences; is it possible to run the scripts under Greasemonkey? So far I've tried all the gadgets by simply coping the code from the monobook pages into Greasemonkey, but none work except WikiED. I can't figure out why wikiED works but popups and the others don't. Trust it would be the Gadget I don't want that works :( Anyway, if someone knows a way or has a link to a site that can tell me how to make the Gadgets work, please. I can't put them in my monobook because I erase the wiki every so often and reinstall. I have a local Wiki and I'd like to use the scripts without installing, because I regularly erase it and start a new installation. It would be enormously helpful if I could run them from my Firefox browser using Greasemonkey to avoid having to reinstall the scripts each time. Thank you for your help.

—82.198.250.2 13:15, 8 August 2008 (UTC)

(RESOLVED) Downloading whole content of a wiki
How can in download the whole content (the articles) of an MediaWiki-Installation? I mean not Wikipedia, but an intern wiki in my company, which I can't reach from outside the intranet.

Thank You! —194.113.141.20 19:10, 8 August 2008 (UTC)
 * If your server is hosted by another company, you can go on your file manager and click the item and download or save the file. In your case, you need access to the database which is not easily read by humans. Try to get help from your company adminstrator for this. --'<font face="freestyle script"> Truetech  <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 05:08, 10 August 2008 (UTC)

(RESOLVED) A few issues with new installation

 * MediaWiki 	1.12.0
 * PHP 	5.2.5 (apache)
 * MySQL 	5.0.51a-community
 * URL: Shadowlore

I'm having a few problems with the new installation of my mediawiki. First, I'm unable to delete pages though my account is set as a Bureaucrat and a SysOp. The delete option isn't there. (I have a Test page that I want to delete). Also, I'm in the process of altering the skin. Finally, I posted for help with the wiki time line I installed as I don't want it to appear on every page so please disregard that and hopefully I'll get the help I need with that. The last issue is ... is there someplace that has an explanation of what each css definition relates to in regards to the page design?
 * No there is'nt a page with a description of css. But I have made my own skin and have some knowledge on css. I would love to help you. I have actually just made an account on your wiki under the name truetech. --'<font face="freestyle script"> Truetech  <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 23:46, 10 August 2008 (UTC)

Terrific! Thank you so much! I have activated the account. My apologies for not seeing this response sooner. I have been slowly working on trying to get my skin to match the forum it's for and there's a few things I'd love to accomplish with it but have been having a hard time in getting it to do what I want it to do.

97.115.181.238 21:49, 11 August 2008 (UTC)

(RESOLVED) How can I get my wiki faster?

 * MediaWiki: 1.12.0
 * PHP: 5.2.5 (cgi)
 * MySQL: 5.0.51
 * URL: DJs-ONLY-Wiki

Hello, if someone of you may take a look on my wiki, you'll see, that it takes a time until it loads complete. So, what can I do to get this faster? Thanks for your help. Best Regards. Mirko.


 * Try cleaning up your url to http://www.mediadesign-group.de/wiki/Main_Page. Your url seems to be really "unorganized". Check out Manual:Configuration --'<font face="freestyle script"> Truetech  <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 20:55, 13 August 2008 (UTC)

(RESOLVED) New section at the beginning?

 * MediaWiki: 1.12.
 * PHP: 5
 * MySQL:
 * URL:

Hi, is there a possibility to create a "add new section" link which adds a new section at the beginning of the page, not at the end? —217.91.74.27 16:18, 12 August 2008 (UTC)


 * There is nothing in the core system files, but you can try altering main.css in the skin directory you are trying to get it running on.--'<font face="freestyle script"> Truetech  <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 20:01, 13 August 2008 (UTC)

(RESOLVED) Sort template entries on page

 * MediaWiki: 1.12.
 * PHP: 5
 * MySQL:
 * URL:

Hi, I got a page with a number of templates on it:

Now I'd like to change the page in order to display the integrated templates in alphabetical order. In this case - may just give the parameter back) the output should be:

1 4 b

What's the easiest possibility to do that? —217.91.74.27 16:35, 12 August 2008 (UTC)


 * Try Manual:Pager.php might work. I that doesn't work, you are going to have to do it manually. --'<font face="freestyle script"> Truetech  <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 20:11, 13 August 2008 (UTC)

(RESOLVED) A request from es.wikinews
Hi all! I'm not sure if this is the right place to ask it. In the Spanish Wikinews we have the policy of archiving all articles after 7 days, and we are asking to create a user right for non-sysops which allow them to edit in protected pages. I want to know if this is technically possible and which are the requirements. Thanks a lot!

—Baiji 15:02, 14 August 2008 (UTC)
 * For that, you need someone with access to the default settings file. The only way that is possible is if someone with access to the server edits it. So you will have more luck asking higher authority people above bureaucratic permission. And this is not the right place to ask it. --'<font face="freestyle script"> Truetech  <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 18:20, 14 August 2008 (UTC)

(RESOLVED) How do I add a language to my wiki?
Kind of like on the side bar with the list of languages. Is there somewhere I can edit that? Oh and by the way it isn't my wiki it is my friend's (ninja-pedia.com) but I can ask him if it is impossible for a non admin to do that.

—Alexbeard 21:31, 15 August 2008 (UTC)
 * Edit Mediawiki:Sidebar. You need bureaucratic permissions for this. In the message, there should be a line with * LANGUAGES. Provide a line to the site with your other language. --'<font face="freestyle script"> Truetech  <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 21:17, 24 August 2008 (UTC)

(OUTDATED) Slow down for big wikis

 * MediaWiki: 1.13.0
 * PHP: 5.2.4
 * MySQL: 5.0.45-log
 * URL: http://vseokino.ru

Recently I update my MediaWiki from 1.12 to 1.13 version. If wiki have any big category then it can greatly slow down the whole site. Looks like the root of problem is in CategoryPage.php:

Old code: function doCategoryQuery { … $res = $dbr->select(			array( 'page', 'categorylinks' ),			array( 'page_title', 'page_namespace', 'page_len', 'page_is_redirect', 'cl_sortkey' ),			array( $pageCondition, 'cl_from         =  page_id', 'cl_to'          => $this->title->getDBKey),			       #'page_is_redirect' => 0), #+ $pageCondition, __METHOD__, array( 'ORDER BY' => $this->flip ? 'cl_sortkey DESC' : 'cl_sortkey',			      'USE INDEX' => 'cl_sortkey', 			       'LIMIT'    => $this->limit + 1 ) ); … } New code: $res = $dbr->select( array( 'page', 'categorylinks', 'category' ), array( 'page_title', 'page_namespace', 'page_len', 'page_is_redirect', 'cl_sortkey',				'cat_id', 'cat_title', 'cat_subcats', 'cat_pages', 'cat_files' ), array( $pageCondition,			      'cl_to' => $this->title->getDBkey ), __METHOD__, array( 'ORDER BY' => $this->flip ? 'cl_sortkey DESC' : 'cl_sortkey',			      'USE INDEX' => array( 'categorylinks' => 'cl_sortkey' ),			       'LIMIT'    => $this->limit + 1 ), array( 'categorylinks' => array( 'INNER JOIN', 'cl_from = page_id' ),		               'category' => array( 'LEFT JOIN', 'cat_title = page_title AND page_namespace = '. NS_CATEGORY ) ) );

So in current version if any user try to look any big category it lock down main tables in database and other users need to wait too long to get page they’re requested. When I look into database processes I have the following:

Query 21 sec Copying to tmp table SELECT /* CategoryViewer::doCategoryQuery Turbo */page_title, page_namespace, page_len, page_is_redir …

All other processes are locked.

Will it be fixed or should I downgrade?

—80.92.96.62 15:30, 17 August 2008 (UTC)

(OUTDATED) Import does not work
I tried importing a page, but it does not work, even though privileges have not been changed in Localsettings.php, why is this?? —Sunstar NW XP 19:20, 18 August 2008 (UTC)
 * MediaWiki: SVN repository
 * PHP:
 * MySQL:
 * URL:

(OUTDATED) Open links in new page?

 * MediaWiki: 1.12.0
 * PHP: 5.1.6 (cgi-fcgi)
 * MySQL: 5.0.51a-community
 * URL: http://biyg.org/wiki/

Two questions. First, on the navbar how can I make a link open in a new window?

Second, how can I embed php in a page? I used a extension to link phpBB to the wiki and I would like the wiki userpage to show phpBB info on the user.

—Zeno McDohl 16:24, 19 August 2008 (UTC)

(OUTDATED) Subpages
Is this correct for enabling subpages in namespaces 2, 4, 8, 10 and 12 ?? $wgNamespacesWithSubpages = array_fill(2, 4, 8, 10, 12, true); I'm not sure if I've done this correctly... Thanks, —Sunstar NW XP 18:55, 19 August 2008 (UTC)
 * MediaWiki: 1.14 SVN
 * 1) Enable subpages in all namespaces

(RESOLVED) Is there any possibility I could convince you to host a new website?

 * MediaWiki: (Reported by your Wiki's Special:Version page)
 * PHP:
 * MySQL:
 * URL: http://CulturalUnderstanding.org/ Cultural Understanding, the Internet's Collaborative Database of Cultural Peculiarities

I realize that hosting sites is not what you normally do, but I have something very valuable and non-commercial. I don't have my own server and to be honest, I don't have a lot of money to spend, but I would like to make this website a gift to the world. Understanding other people is a big step toward world peace.

Would you be open to discuss it?

Michael Gelman  michael@amoureternal.com —74.167.190.166 23:14, 20 August 2008 (UTC)
 * This is a totally wrong place to put this. You need to contact the "big boys" at wikimediafoundation.org. --'<font face="freestyle script"> Truetech  <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 21:22, 24 August 2008 (UTC)

(OUTDATED) same login with other pages

 * MediaWiki: 1.12.0
 * PHP: 5.2.5
 * MySQL: 5.0.51a

Hi! My problem is that i want a common login with another pages. In other words, i want to create a login page, and i want that my wiki takes this username and password and logs automatically in the wiki when the user enters in it. Is this possible? Thank you in advice.

—80.58.205.32 10:41, 21 August 2008 (UTC)

(OUTDATED) Enhancement for the Short page list
This is a feature request in the MediaWiki software regarding short pages.

http://en.wikipedia.org/w/index.php?title=Special:ShortPages&limit=500&offset=0

Currently this link displays all the short pages irrespective of its nature. I would like to see a link which will help me to sort out the (disambiguation) pages from this list.

I am asking this feature specially by considering the short page list in Malayalam Wikipedia: http://ml.wikipedia.org/w/index.php?title=Special:ShortPages&limit=500&offset=0

We would like to see a feature that will hide all the (നാനാര്‍ത്ഥങ്ങള്‍) (equivalent of disambiguation page) in Malayalam.

Thank you--Shijualex 11:15, 21 August 2008 (UTC)

(RESOLVED) A Place to Download - Templates, Categories, etc.

 * MediaWiki: 1.12.0
 * PHP: 5.2.3 (cgi-fcgi)
 * MySQL: 5.0.41-community-log
 * URL: ITS Wiki

Is there any place I can download a set of Templates, Categories, etc. that are used in Wikipedia?

Some examples are:
 * Template:Navbox (protected)
 * Template:Loop (protected)
 * Template:Main (protected)
 * Template:Navbox (protected)
 * Template:Pp-meta (protected)
 * Template:Pp-template (protected)
 * Template:Spaces (protected)
 * Template:· (protected)

It would be nice to have all of the Templates, Cat, etc. available for one mass download. Can anyone guide me with this???

Thank you! —Rockower 20:19, 21 August 2008 (UTC)
 * I don't think you can do this. Your best option would be just to copy and paste the source codes. --'<font face="freestyle script"> Truetech  <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 21:24, 24 August 2008 (UTC)

(RESOLVED) Template:Coord
Hi, why would using produce the following error message at Dummipedia? I have used it in Wikipedia without any problems.
 * Coordinates: 13°05′24″N 80°16′12″E / Expression error: unrecognised punctuation character "[", Expression error: unrecognised punctuation character  &mdash;

PM Poon 18:44, 22 August 2008 (UTC)
 * Looks like a syntax error in the template somewhere, but I have no account @ yer wiki (honestly don't care to make one) so I can't see your  °N, °W  template syntax. Can you post it here?--Töff 18:30, 4 September 2008 (UTC)

(RESOLVED) AutoLoader.php & GlobalFunctions.php errors
Hi out there, I completely installed MediaWiki 1.13.0 and it shows following errors: Warning: ini_set has been disabled for security reasons in /usr/export/www/vhosts/funnetwork/hosting/bodyweightwiki/wiki/includes/AutoLoader.php on line 5 Warning: debug_backtrace has been disabled for security reasons in /usr/export/www/vhosts/funnetwork/hosting/bodyweightwiki/wiki/includes/GlobalFunctions.php on line 757 Warning: array_slice [function.array-slice]: The first argument should be an array in /usr/export/www/vhosts/funnetwork/hosting/bodyweightwiki/wiki/includes/GlobalFunctions.php on line 757 Warning: debug_backtrace has been disabled for security reasons in /usr/export/www/vhosts/funnetwork/hosting/bodyweightwiki/wiki/includes/GlobalFunctions.php on line 757 Warning: array_slice [function.array-slice]: The first argument should be an array in /usr/export/www/vhosts/funnetwork/hosting/bodyweightwiki/wiki/includes/GlobalFunctions.php on line 757 Warning: debug_backtrace has been disabled for security reasons in /usr/export/www/vhosts/funnetwork/hosting/bodyweightwiki/wiki/includes/GlobalFunctions.php on line 757 Warning: array_slice [function.array-slice]: The first argument should be an array in /usr/export/www/vhosts/funnetwork/hosting/bodyweightwiki/wiki/includes/GlobalFunctions.php on line 757 Warning: debug_backtrace has been disabled for security reasons in /usr/export/www/vhosts/funnetwork/hosting/bodyweightwiki/wiki/includes/GlobalFunctions.php on line 757 Warning: array_slice [function.array-slice]: The first argument should be an array in /usr/export/www/vhosts/funnetwork/hosting/bodyweightwiki/wiki/includes/GlobalFunctions.php on line 757 Warning: debug_backtrace has been disabled for security reasons in /usr/export/www/vhosts/funnetwork/hosting/bodyweightwiki/wiki/includes/GlobalFunctions.php on line 757 Warning: array_slice [function.array-slice]: The first argument should be an array in /usr/export/www/vhosts/funnetwork/hosting/bodyweightwiki/wiki/includes/GlobalFunctions.php on line 757 Warning: debug_backtrace has been disabled for security reasons in /usr/export/www/vhosts/funnetwork/hosting/bodyweightwiki/wiki/includes/GlobalFunctions.php on line 757 Warning: array_slice [function.array-slice]: The first argument should be an array in /usr/export/www/vhosts/funnetwork/hosting/bodyweightwiki/wiki/includes/GlobalFunctions.php on line 757 Warning: debug_backtrace has been disabled for security reasons in /usr/export/www/vhosts/funnetwork/hosting/bodyweightwiki/wiki/includes/GlobalFunctions.php on line 757 Warning: array_slice [function.array-slice]: The first argument should be an array in /usr/export/www/vhosts/funnetwork/hosting/bodyweightwiki/wiki/includes/GlobalFunctions.php on line 757 I don't even know PHP :-P
 * MediaWiki: 1.13.0
 * PHP: 5.2.6 (apache2handler)
 * MySQL: 4.1.22-log
 * URL: http://bodyweightwiki.bo.funpic.de/wiki/index.php

Any suggestions?

—Zac 11:28, 24 August 2008 (UTC)
 * You're webhost has disabled ini_set and other functions and MediaWiki will thus not function properly. Bryan 20:34, 30 August 2008 (UTC)

(RESOLVED) repeating logo on each page of outprinted articles

 * MediaWiki: 1.12.0
 * PHP: 5.2.0-8+etch11 (apache2handler)
 * MySQL: 5.0.32-Debian_7etch6-log
 * URL: internal support-page

I search a solution to place one or two images on each outprinted page at the left and/or right side on the top (on left the project-logo and on right the logo of customer).

This image(s) must be defined in the article itself.

Where I must start to have a look ?

Thanks a lot!

—BitH 19:50, 26 August 2008 (UTC)
 * I think your best option would be to edit main.css in the skin directory you want. --'<font face="freestyle script"> Truetech  <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 22:16, 26 August 2008 (UTC)
 * Sorry, but I only found the possibility to hide the footer. I already thought of using images as background but then it is not possible to define them in the article. --BitH 06:24, 27 August 2008 (UTC)


 * This can not be handled by the wiki on html based files. That's because the wiki does not know, which page size the printer has. Perhaps your browser offers an option to add an header/footer on each page.


 * OK - I understand. If there an include to generate PDF-files, so we can place these logos by this way ? --89.182.157.50 20:22, 9 September 2008 (UTC)


 * This would be very usefull, but I haven't found a practicable pdf support yet. These extensions seems to be the best:


 * Extension:Pdf_Export
 * Extension:PDF_Writer
 * I'm looking for a student in the area of nuremberg/Germany to add pdf support to my wiki  --62.128.18.198 15:21, 17 September 2008 (UTC)

(OUTDATED) Hiding pages in namespace
Hi, is there an easy way out to do the above without resorting to Extension:Lockdown? I am using MediaWiki Version 1.9. &mdash; PM Poon 15:40, 29 August 2008 (UTC)

(RESOLVED) Special:Log Fatal error: Maximum execution...
I have recently upgraded to 1.13.0 However, from my account (bureaucrat, sysop) I cannot view the page Special:Log, instead I repeatedly get some (apache?) error:
 * MediaWiki 1.13.0
 * PHP 5.1.2 (apache2handler)
 * MySQL 5.0.18
 * URL:SklogWiki

Fatal error: Maximum execution time of 30 seconds exceeded in /path/of/some/file.php on line XXX

However, from other accounts there is no problem viewing the page Special:Log.

I also do not seem to be able to update the parameters in my Preferences -> Recent changes boxes. Any advice welcome! —Carl 147.96.6.138 16:14, 29 August 2008 (UTC)


 * I have resolved this myself by changing the php.ini parameters as per PHP Errors on Manual: Errors and Symptoms (more time and more memory). All the best --Carl 147.96.5.34 16:50, 1 September 2008 (UTC)

(RESOLVED) How to Transclude a Page Section?
MediaWiki: 1.11.1 PHP: 5.2.3 (apache2handler) MySQL: 5.0.51a Skin: GuMax Extensions: MassEmail 0.3.5, Replace Text 0.2.3, RSS Reader 0.2.4, AWC's MediaWiki Forum 2.3.5, Google News Bar 071007 URL: DishiWiki - Everyday Cooks Sharing Recipes

I want to transclude a section, as defined by a section heading (in my case an h2 heading), of a main-space page into another main-space page. It seems to me that:

ought to do it and that this method would be an improvement/alternative/augment to those brain-twisting "noinclude/includeonly/onlyinclude" tags. I wish to include different sections of the first page into multiple other pages, so the partial-transclusion tags aren't appropriate. I also don't want to edit twice, so cutting and pasting sections into subpages seems tedious.

Has my research missed finding a method to include sections in other pages? —Brian7632416 18:31, 29 August 2008 (UTC)
 * Use Extension:Labeled Section Transclusion Bryan 15:00, 30 August 2008 (UTC)
 * Thanks, Bryan. Extension:Labeled Section Transclusion is working beautifully. —Brian7632416 17:24, 30 August 2008 (UTC)

(RESOLVED) User list error
I have tried looking at the user list page from the special pages, only it doesn't show any users (even when I type in a search for my own username). However, the statistics page shows that there are 6 registered users. I used to be able to view the users, so I'm not sure what happened. Though I did happen to notice that you user list page is linked as 'Special:ListUsers' and mine seems to be 'Special:Listusers' This may be the problem but I'm not entirely sure.
 * MediaWiki: 1.6.7
 * PHP: 4.3.10 (apache)
 * MySQL: 4.1.20-log
 * URL: OpenRPGMaker

--Tuxinator 09:15, 30 August 2008 (UTC)


 * Looks fine to me. —Emufarmers(T 02:05, 31 August 2008 (UTC)


 * So it appears to be working on my laptop, so it may just be an issue with my desktop computer. I'll do some playing around with it and if it still has issues on my home computer, then I'll report back. --Tuxinator 03:29, 1 September 2008 (UTC)

(RESOLVED) Downloadable Help Section.
I asked on Wikipedia, and am now asking here since I was referred to here. I am working on learning how to do syntax for templates, tables, and other such things, including more advanced things. The wiki will be MMORPG based, so working projects of different kinds as well as actually mastering more of the basics. In any case, I need the help section, but so that I can put it on my own wiki that I have saved on my pc (via WOS) so that I can do stuff without being online (on my laptop, etc) 65.11.205.172 22:19, 31 August 2008 (UTC)
 * See Project:PD help, there's no "downloadable" set of help pages ready yet, but feel free to manually copy the pages linked from Help:Contents (–> help on copying). Please note that only pages in our Help:</tt> namespace are in the public domain, not the Manual or other pages. -- :bdk: 22:44, 31 August 2008 (UTC)

(OUTDATED) Ajax-feature doesn't work
Hello Pros, the Ajax-features Dropdown-Suggestions and Watch/Unwatch-Toggle don't work on my Wiki, though I switched  and. The old Ajax-Search that covers the whole article-page can be activated, so Ajax isn't generally disabled (of course I tried with  ). What else can I do to find the error? Is there anything more to do? Do I have to make adjustments to the MySQL-database? Do I have to run some more than just the update.php (formerly MediaWiki 1.12)? Thank you so much for your help. —Robbit 20:01, 2 September 2008 (UTC)
 * MediaWiki: 1.13.0
 * PHP: 5.2.5
 * MySQL: 5.0.51a
 * URL: localhost

(RESOLVED) Mailto links

 * MediaWiki: 1.14alpha
 * URL: Help talk

Can't craft a mailto link that will put this into the To: field of the email message: First Last <foo@bar.com>

—Dave Yost 21:30, 2 September 2008 (UTC)
 * Just use  – this is displayed correctly as [mailto:foo@bar.com First Last <foo@bar.com>] :-) Cheers -- :bdk:  23:28, 2 September 2008 (UTC)

(RESOLVED) Collapsible box
Hi, I have been using navbox collapsible for months and suddenly it refuses to collapse. Please see teknologi-maklumat.com and compare with Dummipedia, a parallel translation site. What can be the reason for the sudden failure? &mdash; PM Poon 23:03, 2 September 2008 (UTC)
 * perhaps you disabled JS in your browser?

(RESOLVED) No scrollbar for source code

 * MediaWiki 1.13.0
 * PHP 5.2.5

My Wiki does not show a horizontal scrollbar if the text is too long. so the text is written behind the frame.

As I have seen, the 'normal' Wiki is using an additional div tag:

This div tag is missing in my wiki - any ideas why? Or is there another problem?

Thanks in advance

--62.128.18.198 15:12, 3 September 2008 (UTC)


 * Adding  to your css, e.g. MediaWiki:Common.css, should help. -- :bdk:  13:59, 4 September 2008 (UTC)

(OUTDATED) How to add dynamic tag to my mediawiki?
(moved from Project:Forum)

Hi, i have a dynamic menu in my mediawiki and when a value is selected (extract from database) it should be insert in my textarea as a tag, so how to do with the parser, i know that for statical tag it's possible but for dynamic tag how to do? thank you.

--193.51.121.244 4 September 2008

(RESOLVED) Adding and using new groups
Hi, I learned that a new user group is created by adding a $wgGroupPermissions['groupname']['read'] = true; to the LocalSettings.php of my wiki. But how do I manage that new group to appear in the access menu of wiki pages? It just contains All, not registered users & Only Admins no matter if I add new groups. —JazzmanDE 15:46, 4 September 2008 (UTC)
 * MediaWiki version: 1.12.0
 * PHP version: 5
 * MySQL version:
 * URL:


 * Use $wgRestrictionLevels. —Emufarmers(T 03:47, 5 September 2008 (UTC)

Thanks for answer. I added the following code to my LocalSettings.php: $wgGroupPermissions['Management']['read'] = true; $wgGroupPermissions['Management']['edit'] = true; $wgGroupPermissions['Management']['protect'] = true; $wgRestrictionLevels=array('Management','sysop'); I added a user account to the "Management" group and protected a page to make it only available to the "Management" group. But when I login as the "Manager", I can't edit the page. I have to delete the restriction in the database to get access again.

Another problem is, that I use the "page security" extension to restrict the read access to single pages. But I can't restrict pages to be only readable for the "Management" group, it always remains readable for everybody. --JazzmanDE 16:13, 10 September 2008 (UTC)


 * Any reason you're not using the built-in sysop and bureaucrat groups? why do you need a separate management group? -- 99.130.6.103 17:16, 10 September 2008 (UTC)


 * Because we need to limit the access to some pages to a special group of users. Not even the Sysop should have access. On the other hand that group shouldn't have full sysop access to the Wiki. --JazzmanDE 13:51, 11 September 2008 (UTC)
 * By the way: When I try to use the "bureaucrat" group instead of a new group I have the same problem with the mentioned code. --JazzmanDE 12:45, 12 September 2008 (UTC)
 * Ok, I made some progress. I forgot to include the code that is described in $wgRestrictionLevels. Now my code is

$wgGroupPermissions['bureaucrat']['read'] = true; $wgGroupPermissions['bureaucrat']['edit'] = true; $wgGroupPermissions['bureaucrat']['protect'] = true; $wgRestrictionLevels=array('','bureaucrat','sysop'); $wgGroupPermissions['bureaucrat']['bureaucrat'] = true; $wgGroupPermissions['sysop']['bureaucrat'] = true;
 * Now I have two problems left:
 * The sysops are able to watch pages which are designated to be seen only by bureaucrats. That doesn't change when I set $wgGroupPermissions['sysop']['bureaucrat'] = false. Edit protection against Sysops works, though.
 * When a common user tries to watch the page he's lead on a "The page can't be displayed" page instead of an error message of the Wiki. --JazzmanDE 13:23, 12 September 2008 (UTC)

(RESOLVED) Alternate Text In Category Listing?
MediaWiki: 1.11.0; PHP: 5.2.6 (cgi-fcgi); MySQL: 5.0.45-community-log; URL: http://paleravens.com/

Quote: "The SORT parameter does not affect how the page title is displayed within the category listing, just how it is ordered."

Great, so how do I specify alternate text (other than the page title) to be displayed in the category listing itself? Surely this is possible! But ... how!?

-- töff 18:10, 4 September 2008 (UTC)


 * This would REALLY be useful for me if anybody knows how to do it, PLEASE PLEASE .... -- töff 21:50, 10 September 2008 (UTC)
 * The only way to do so (afaik, and as a workaround) is to create a categorised redirect.
 * Example: You have a page named "Software XYZ" which is in the category "Software". As you mentioned, you can sort it with the parameter  so that "Software XYZ" is displayed under "X" in the category listing, but it's still displayed as "Software XYZ" there. To get e.g. "XYZ Software" as an alternate title showing up in the listing (or in another category), you have to create the page "XYZ Software" as a redirect to "Software XYZ" and to categorise this redirect in the category in question. Does this help? -- :bdk:  06:35, 21 September 2008 (UTC)


 * That's an awfully clever workaround -- cheers, I hadn't ever thunk of that! -- and it would probably be great for anybody else wanting to do what I asked to do. (You hear me saying "but," right?) ... But ... what I am hoping to do, specifically, is to create alternate text for the category listings to include some graphic markers, icons that specify what each entry in the category is. I still want one single category, though.
 * Specifically, I have a list of scenes. Some scenes begins stories, some are in the middle of stories (a bad place to start reading, in some views), some are the ends of stories (most people hate to read the end first; it "spoils" the story), and some are standalones.
 * If only I could tell the Category what text to display, maybe I could include an icon ... something like:

W(sort) | A Walk In The Park
 * That's what I kinda had in mind for "alternate text." The basic mediawiki category won't let me do that, of course. I was playing around with a manually created & maintained list but I ain't overly happy with that either. I also asked here about transcluding categories, which doesn't seem to be possible, and wouldn't really be a solution for me, either. :\ Long story short, I am unpleasable, I think :( Hah! Quelle dilemma.
 * That really was a good workaround, though. Well done! You should get a cookie or a star or something. I'm sure someone will find it very useful. Maybe me, some day :) -- töff

(RESOLVED) New skin

 * MediaWiki version: 1.13.0
 * PHP version: 5.2.6 (cgi)
 * MySQL version: 5.0.51a-community
 * URL: paperforum.x10hosting.com/tutorials

Hello,

How do I make a new skin for my mediaWiki and get rid of all the others?

—Callum


 * Copy a skin, rename it, and tweak it to taste. Keep the others as backup/references. There's a setting in LocalSettings.php that lets you specify which skins your users can apply. You can remove all other skins from that option, so your users are forced to see only your custom skin. This is what I did on my wiki. -- töff 15:38, 6 September 2008 (UTC)


 * Thanks, but how would I edit the style? (sorry, I literally started doing this yesterday) -Callum


 * I would say you need to familiarize yourself more with the underhood wiki machine. Making a skin requires a lot of different steps: editing LocalSettings.php (that's very important! you really need to learn about this file!), getting a feel for the files & folder hierarchies, adjusting various CSS sheets (there's quite a few of those!), digging around in the skinfile (.php) itself and hacking the code. Sorry, it's just not a simple thing. But I did it, so I'm sure you can. I suggest you read more in the manual, then ask more precise individual questions if you still need help. You might also google for a "mediawiki skin tutorial" but if you are adminning your own wiki I think you'll want to learn all this stuff anyway. It's easier than I make it sound. Like I said, I did it, and I ain't no rocket scientist. Also, MAKE BACKUPS lol omg -- 69.237.91.20 16:44, 6 September 2008 (UTC)


 * p.s. There are a lot of "extensions" that you can add to your basic installed wiki. Just learning how to install an extension will teach you a lot; and some of those extensions are really useful! -- 69.237.91.20 16:45, 6 September 2008 (UTC)

(RESOLVED) Changing Permissions

 * MediaWiki version: 1.13.0
 * PHP version: 5.2.6 (cgi)
 * MySQL version: 5.0.51a-community
 * URL: paperforum.x10hosting.com/tutorials

How do I change permissions?

Example: I don't want guests to be able to edit articles

—88.108.178.88 16:05, 6 September 2008 (UTC)


 * see Help:User rights. --84.139.88.41 16:08, 6 September 2008 (UTC)
 * or more generally: Permissions ;-) -- :bdk: 11:18, 9 September 2008 (UTC)

(RESOLVED) How to enable uploads

 * MediaWiki version:
 * PHP version:
 * MySQL version:
 * URL:

Hi I've installed MediaWiki on my server and it works very well but: I want to upload images on my pages but It's disables on the wiki I can't upload on my admin account or either my other user account.

How can I able uploading Images on my Wiki?

Great Thanks for answering.

—77.164.218.186 08:18, 9 September 2008 (UTC)
 * See Manual:FAQ -- :bdk: 11:18, 9 September 2008 (UTC)

(RESOLVED) Database issue
We cannot get to the contents of our web-site to change information. We can get to the pictures. We do have a back-up file yamaguchi_wiki.sql It does look like all our info is here (2.6 MB) I can open this but do not understand it. —70.56.61.23 17:30, 10 September 2008 (UTC)
 * MediaWiki version:1.13.1
 * PHP version: 4.4.2
 * MySQL version: 2.9.0.2
 * URL:yamaguchibike.com


 * Thats because its a database. It's not easily read by humans. --'<font face="freestyle script"> Truetech  <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 01:32, 11 September 2008 (UTC)
 * The SQL file you mentioned is only usable to load your contents up to a database. It consists of commands that an SQL database can understand to build the tables and fields. What exactly do you want to to? --JazzmanDE 12:30, 12 September 2008 (UTC)
 * We want to be able to open up our back up file.
 * If we could then that back up file we think has the content. We  would like this uploaded to site 5 server.  Then we think we can edit the content.  we don't have the web site  making knowledge to open up the sql file.   We tried to open it with Notepad and got a bunch of mumbo jumbo.  Ultimately what we want to do is change our prices/info on our web-site.

(RESOLVED) How Do I customize main page like Media Wiki Main Page?

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

How do I make my main wiki page look like the Main Wiki Page here at: mediawiki.org? I am new to this I want the same gray title bar and then under it a few links to other pages like at the main page there. The ones that say for users, Developers, ect. I click view source but i get a message saying: {Main page} to edit this page, please see Project:Main page templates

I am new to MediaWiki and have no knowledge what-so-ever in it. Can someone please help me out by explaining to me step by step on what to do? How to get it to work?

Thank you for all the help —System32 22:17, 10 September 2008 (UTC)


 * Our main page here uses heavy template stuff mainly due to the multilingual character of this site, cf. Project:Main page templates. If you're really new to all that stuff, I suggest you simply design your own main page using more simple tables a/o templates. This will be much easier than to explain our templates in detail without knowing if you actually need such a complex structure (I guess not). You can look up all the templates though. -- :bdk: 07:50, 14 December 2008 (UTC)

(RESOLVED) Global ID
Hi there!

I faced one little trouble - I have several resources and my users have to register several times. Is it possible to include option to authorize using some global ID, like Windows LiveID or OpenID or stuff? It will be great in including MediaWiki in a site's workspaces and let one user contribute in many wiki's.

Every Open ID is individual so authorizing on every wiki will cause creating of the same user, that has proof his identity and human nature on registration site.

As for Windows LiveID I can give support in negotiations with Microsoft and I'm sure that for all other IDs according contributor will be founded.

Thank you!


 * Thats actually a great idea. It is not included in the actual software or any extensions that I know of, but you might want to request it at bugzilla or at Extensions:Request.--'<font face="freestyle script"> Truetech  <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 01:20, 11 September 2008 (UTC)

(OUTDATED) URL encoding problems
An issue with croatian letters occured when writing the articles' address into address-bar directly, or linking from other pages with the croatian letter (not converted to ascii code). When the link to specific article with a special letter in its name is clicked from inside the Wiki everything work fine.
 * MediaWiki version: 1.6.6
 * PHP version: 5.1.6 (isapi)
 * MySQL version: 4.0.14-nt
 * URL: local

For example: if I have a link with %C5%A0 character, when I type it in the address bar it gets converted to %C2%8A and doesn't link to the right article. Somehow different things happen with different browsers.

Is there a way for me to use some replacement code to avoid such behavior, or is this browser issue combined with different way of encoding these special characters compared to Wiki's code.

Thanks in advance. —161.53.119.13 10:56, 11 September 2008 (UTC)

(RESOLVED) Mucking with users' settings (as Bureaucrat, of course)
( MediaWiki: 1.11.0; PHP: 5.2.6 (cgi-fcgi); MySQL: 5.0.45-community-log; URL: http://paleravens.com/ )

So, how do I get into a user's settings? Like, say I want to check if he's put an email address in his account ... or, maybe, set his default search preferences for him. There must be some way to review a user's settings (as Bureaucrat) without digging into the SQL. -- töff 15:58, 12 September 2008 (UTC)
 * Well the only way I know of is to search the database table. Other than that unless if someone comes up with a hack... But why would you want to do this? Its not recommended...--'<font face="freestyle script"> Truetech  <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 22:27, 15 September 2008 (UTC)
 * For example, if a new user has signed up, and I want to email him ... and he hasn't put his email on his user page. Or if I want to see (or help him set) his search preferences. Whatever. It seems there ought to be a back door into the user accounts, for the wiki owner. I run a buncha forums and they all have user account editing for the admin (I know, the wiki's not a forum ... but still!) -- töff 23:46, 15 September 2008 (UTC)

The LookupUser extension works well for viewing user data. Unfortunately, I'm not aware of any extensions that let you manipulate that data. —Emufarmers(T 06:30, 17 September 2008 (UTC)
 * Oh, that's very good! At least that lets me see everything. How odd that it's not part of the basic software, though. Thanks Emufarmers! -- töff 13:57, 17 September 2008 (UTC)
 * I just came across the EditUser extension. —Emufarmers(T 18:00, 1 October 2008 (UTC)
 * Awesome awesome awesome awesome awesome ... perfecto. TENGKYU.--töff 18:34, 1 October 2008 (UTC)

(OUTDATED) PHPMailer support?
My ISP requires outgoing authentication so I updated the localsettings.php page with the following config. $wgSMTP = array( 'host'    => "Mail.server.com", 'IDHost'   => "mydomain.com", 'port'     => 25, 'auth'     => true, 'username' => "admin@mydomain.com", 'password' => "mypwd" );
 * MediaWiki version: 1.13.1
 * PHP version: 5.2.5 (cgi-fcgi)
 * MySQL version: 5.0.24a-community-nt
 * URL:

This effectively broke my sign up page spewing out messages relating to pear. I then came to realize that my host does not offer support for the mail component that mediawiki uses. My host supports PHPMailer. Here is a sample of some code that works with my host. <? require("c:\php\includes\class.phpmailer.php"); $mail = new PHPMailer; $mail->IsSMTP; $mail->Host = "mail.YourDomain.com"; $mail->SMTPAuth = true; $mail->Username = "you@domain.com"; $mail->Password = "EmailPassword"; $mail->From = "you@domain.com"; $mail->FromName = "Your Name"; $mail->AddReplyTo("you@domain.com"); $mail->AddAddress("user@domain.com"); $mail->IsHTML(true); $mail->Subject = "PHPMailer"; $mail->Body = "Body"; $mail->Send; ?> Any chance I can input this code somewhere in a config file somewhere so I can use mediawiki? —jimbo

(OUTDATED) Redirects in Image namespace in MW 1.13
Hi! Today i updated my installation from MW 1.11.2 to 1.13.1. Now the redirects from pages in the image namespace are not working any more. What do i have to change? Thanks! -- Beyer 15:49, 13 September 2008 (UTC)

(OUTDATED) Single Sign on

 * MediaWiki: 1.11.2
 * PHP: 5.2.6 (apache2handler)
 * MySQL: 5.0.45-Debian_1ubuntu3.3-log

I have no error to report, but a question to ask.

I'm the administrator for a web site and would like to use the Wiki's u ser accounts for other non-wiki parts of the site, because people don't like to be bothered with many different user-accounts andpasswords.

Is there any neat way to do this from another php page?

—80.101.206.36 16:13, 13 September 2008 (UTC)

(RESOLVED) Image as Link and right lined.
Hi I want to have a image as link and I want to have the image on the right side of the site.

What's the code of doing that?

Pleased for a answer.


 * See Extension:Click. --'<font face="freestyle script"> Truetech  <font face="Imapct">  (Talk)   [[Image:Tournesol.png|20px]]  MediaWiki Support Team '' 22:23, 15 September 2008 (UTC)


 * Sorry but I can't get it done by these information does anyone have a other answer please?


 * See Extension:ImageMap or (if you don't have access to install extensions) Help:Linked images. To get the image on the right side you can then use something like  to surround the image code. -- :bdk:  06:23, 21 September 2008 (UTC)

(RESOLVED) Contact Form
How can I make a Contact Form on my MediaWiki Server?

Thanks if you have a good answer!
 * See Extension:ContactPage. <font color="#66A7CC">i <font color="#9966CC">Alex  10:51, 17 September 2008 (UTC)

(OUTDATED) Fatal error in deleteBatch (What is and where to find wfGetLB ???

 * MediaWiki version: 1.12.0
 * PHP version: 5.2.0-8+etch11 (apache2handler)
 * PostgreSQL version: PostgreSQL 8.1.11 on i486-pc-linux-gnu, compiled by GCC cc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
 * Extensions : Maintenance(1.0), charInsert, imageMap, parserFunctions(1.1.1)
 * URL: http://atlas.ens-lsh.fr/wikicid/

I just begin install Mediawiki with some pages and I'm trying to understand some basic maintenance tools. When I try to submit:
 * Special:Maintenance
 * then deleteBatch on a few pages(Modèle:De,Modèle:fr,Modèle:En,Modèle:Indication de langue,

I get : Fatal error: Call to undefined function wfGetLB in /home/www/wiki/extensions/Maintenance/Maintenance_body.php on line 410 But I don't have any maintenance_body.php nor body.php in the directory maintenance

Thanks —79.86.213.130 13:20, 17 September 2008 (UTC)

(RESOLVED) Login successful on every link SpecialUserlogin.php

 * MediaWiki version: 1.13.0
 * PHP version: 5.2.1
 * MySQL version: 5.0.45
 * URL: http://mortalwiki.com

Hi There I have the following message appearing whenever a user tries to get to a link after login:

Login successful

Return to Home.

Ofcorse the Home. link is replaced with whatever page they where trying to go to, I simply need to bypass the 'Login successful' and redirect the user straight to the requested page within the SpecialUserlogin.php, I belive the function to edit would be as follows: function successfulLogin( $msg, $auto = true ) { global $wgUser; global $wgOut; global $wgArticlePath;

# Run any hooks; ignore results

wfRunHooks('UserLoginComplete', array(&$wgUser));

$wgOut->setPageTitle( wfMsg( 'loginsuccesstitle' ) ); $wgOut->setRobotpolicy( 'noindex,nofollow' ); $wgOut->setArticleRelated( false ); $wgOut->addWikiText( $this->mReturnto, $wgArticlePath ); if ( !empty( $this->mReturnTo ) ) { $wgOut->returnToMain( $auto, $this->mReturnTo ); } else { $wgOut->returnToMain( $auto ); } 	}

However I do not know the code required to acomplish this re-direct after several attempts could you please help a mediawiki nOOb accomplish this basic code change :)

—88.110.5.132 02:12, 17 September 2008 (UTC)
 * Special:Userlogin redirects directly to the previous page since 1.14.0 (unless extensions add html with the UserLoginComplete hook), you may want to see this diff for how it's done. <font color="#66A7CC">i <font color="#9966CC">Alex  10:49, 17 September 2008 (UTC)

(OUTDATED) problem with login session

 * MediaWiki version: 1.13.1
 * PHP version: 5.2.2 (cgi)
 * MySQL version: 5.0.45-log
 * URL: http://www.ufgq.org/wiki/

When I try to set a pages protection, I get this error: "There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Please hit "back" and reload the page you came from, then try again."

I've tried both IE and FireFox.

I've reinstalled the whole wiki.

What causes this problem, and how do I fix it?

komori_san@hotmail.com

—24.227.81.70 18:09, 17 September 2008 (UTC)

(OUTDATED) Reusing parts of Wikipedia articles

 * MediaWiki version: 1.6.10
 * PHP version: 5.2.1 (apache2handler)
 * MySQL version: 5.0.33
 * URL:

hello,

i am not sure if i am in right place to ask this question. actually i am new to mediawiki and i have just installed it on my XAMPP.

basically i have a traveling website and want to show wikipedia content for a particular place on my website.

i have tried http://en.wikipedia.org/wiki/Special:Export/Delhi (e.g. i searched for delhi) and http://en.wikipedia.org/w/api.php?action=opensearch&search=delhi&format=xml to retrieve the data for delhi but some junk data (special symbols, words in reginal languages which are not displayed properly if i extract data from example) is returned from there.

i only want only a portion of the content from wikipedia to be displayed on my site and there will be a link which will take the user to the original wikipedia site.

thanks, Prasenjit Seth seth.prasenjit@gmail.com

(RESOLVED) magic word is not functioning on new install

 * MediaWiki version: 1.12
 * PHP version: 5.2.5
 * MySQL version: 5.0.22
 * URL: http://www.connect-o.com/mediawiki

I have tried to use the magic word, but it just comes back as "template:PAGESINCATEGORY"... I ... dont' get it —99.229.54.183 18:36, 18 September 2008 (UTC)


 * was added in MediaWiki 1.13. —Emufarmers(T 19:16, 18 September 2008 (UTC)

(RESOLVED) MySQL returned error "1146: Table 'wiki.page_props' doesn't exist"

 * MediaWiki version: 1.13.0
 * PHP version: 5.2.6 (cgi-fcgi)
 * MySQL version: 5.0.67
 * URL: http://isoc-ny.org/wiki/

Wiki is one-click install hosted on Dreamhost.com. When I try and edit I get:

Database error A database query syntax error has occurred. This may indicate a bug in the software. The last  attempted database query was: (SQL query hidden) from within function "Article:getHiddenCategories". MySQL returned error "1146: Table 'wiki.page_props' doesn't exist (mysql.isoc-ny.org)".

There was a glitch in the most recent upgrade where it didn't find the right directory, which they fixed. This is the first time I've tried to edit since.

mailto:joly@punkcast.com

—Joly 08:48, 18 September 2008 (UTC)


 * Unless DH has improved their one-click upgrade process, you still have to run update.php. On the bright side, you definitely have shell access. :) —Emufarmers(T 22:55, 18 September 2008 (UTC)


 * Thanks - that did it. I had to invoke php 5, so the fix was to got to the mantenance folder and then enering:

/usr/local/php5/bin/php update.php


 * I've added the info to the DH wiki Joly 20:43, 25 September 2008 (UTC)

(OUTDATED) How do I add a language to my wiki? (continue)

 * MediaWiki version: 1.12.0
 * URL: http://www.twikinet.tw/

I have tried to added * LANGUAGES in the Sidebar, but the languages area don't appear. Somebody can hlep me ? Please

--grand0147 09:40, 18 September 2008 (UTC)

(OUTDATED) Creating user groups

 * MediaWiki version: 1.13.1
 * PHP version: 5.1.4 (apache2handler)
 * MySQL version: 5.0.21-community-nt
 * URL:

Q. how can I create the user groups in this version? I want to create the groups from administrator side.Is it possible? If Then please tell me how to create the groups in details.

Thanks —Madhabendra 10:54, 18 September 2008 (UTC)

(RESOLVED) Installed my own wiki, moved from my Wikipedia userpace, but keep getting errors

 * MediaWiki 1.12.0
 * PHP (5.2.5 (cgi-fcgi))
 * the database (4.1.22-max-log)

I recently installed Mediawiki on INNewsCenter.net. I am currently beta testing it on INNewsCenteer.net/wiki. Unfortunately I have problems with templates and other stuff. I am wanting my wiki to look exactly like Wikipedia. What do I need to do in order to fix this?

Nsgaeverine 14:02, 18 September 2008 (UTC)
 * Well, your question is a bit unspecific. What sort of problems do you exactly have? Which templates? (example on Wikipedia) What is "other stuff"? At first you probably need to adapt your CSS and perhaps JS files to make your pages "look like Wikipedia"; e.g. look up en:MediaWiki:Common.css and related pages there.
 * A general note regarding templates: If you only use a few specific templates it's presumably easier to create them "from scratch" yourself instead of copying the often highly complicated "esoteric" template stuff from Wikipedia (which is so complicated because it has to serve so many different requirements on thousands of articles). The template (table) layout can be exactly the same in both cases. And have a look at Parser functions if you haven't yet. That's all I can think of right now. -- :bdk: 06:16, 21 September 2008 (UTC)
 * I may need help creating navboxes from scratch. How do I even do that? I keep having trouble starting from scratch. Also I am getting "Error creating thumbnail: /usr/bin/convert: Unrecognized option (-thumbnail)." How do I fix this?Nsgaeverine 18:05, 21 September 2008 (UTC)

(OUTDATED) employee ID usage

 * MediaWiki version: 1.8.2
 * PHP version: 5.2.6
 * MySQL version: 5.0.21
 * URL:

I need to user an employee ID for user_id in the user table. Where is the insert and update function for User.php and SpecialUserLogin.php

Regards.. Thanks C D Hicks —204.113.19.9 13:28, 18 September 2008 (UTC)

(RESOLVED) Whitespace before Doctype which renders the Wiki in Quirksmode in IE (IIS)

 * MediaWiki version: MediaWiki 1.13.0
 * PHP version: 5.2.3 (cgi-fcgi)
 * MySQL version: 5.0.41-community-nt
 * URL: 5.0.41-community-nt

For some reason whitespace appears above <!DOCTYPE> which tells IE to render the wiki pages in Quirks Mode and it's not skin related since all the other skins produce the same blank line above the <!DOCTYPE>.

Any idea why this is happening?

See http://203.134.157.116:8080

—60.241.17.247 23:25, 18 September 2008 (UTC)
 * SOLVED: It was the RSS Reader extension that caused the problem. --23 September 2008

(OUTDATED) Click.PHP
Hi I've installed Click and Click.PHP on my server but than I tried to use a image to be a link but I get this:

Fatal error: Call to undefined method Image::transform in /home/thegecko/www/www/wiki/extensions/Click/Click.php on line 108

And this is what line 108 says (copied from the site and not changed eversinds):

$thumbnail = $imageimage->transform( array( 'width' => $width ) );

And I use this to edit the page:



Could Somebody help me with this problem?

(RESOLVED) Searchindex table corrupted
Hi, is there anyway I can repair my searchindex table? &mdash; PM Poon 07:29, 20 September 2008 (UTC)


 * MySQL Reference Manual Try this --62.128.18.198 13:13, 25 September 2008 (UTC)

(RESOLVED) Spezial:Version does not work

 * MediaWiki version: 1.13.1
 * PHP version: 5
 * MySQL version: 5
 * URL: http://www.wecowi.com

on my wiki the special:version page is nearly blank (http://www.wecowi.com/view/Spezial:Version) somebody have any idea where the problem is? I've reviewd my whole installation.

—DaSch 00:03, 22 September 2008 (UTC)
 * Okay, it's something about the Extension:MagicNoCache. When I "uninstall" it, it works. But the strange is, it already worked with the Extension. --DaSch 00:23, 22 September 2008 (UTC)

(RESOLVED) Footnotes?
Does MediaWiki support footnotes?

- Jeff Tanner, Seattle 22 September 2008
 * Are you looking for that what you probably know from Wikipedia ("references" or partly also called "footnotes" sections at the bottom of many articles, like e.g. there)? If yes, have a look at Extension:Cite. -- :bdk: 20:36, 22 September 2008 (UTC)

(OUTDATED) Skins
* MediaWiki: 1.11.1 * PHP: 5.2.5 (cgi-fcgi) * MySQL: 4.1.22

Hi, is there any possibility to use one wiki installation but to define different skins to be used when users access the wiki over a specific URL? I like to run it both as a wiki and as a website. So I will redirect visitors from the home directory to a certain wiki page which will work as a welcome page which should be displayed in a different skin. --JazzmanDE 22:58, 22 September 2008 (UTC)

(RESOLVED) TALKPAGE and DEFAULTSORT don't work
I've imported a german Wikipeda Dump into my local Database and try to run it. But when I open a page where DEFAULTSORT or TALKPAGENAME is used, my Wiki tries to open a template page (which obviously doesn't exist) instead of using the magic word. How can I solve this?
 * MediaWiki version: 1.6.8
 * PHP version: 5.2.6 (apache2handler)
 * MySQL version: 5.0.51b-community-log
 * URL: local

—195.243.159.99 10:50, 24 September 2008 (UTC)


 * Upgrade to the latest version of MediaWiki. —Emufarmers(T 01:34, 26 September 2008 (UTC)

(RESOLVED) Make a header
How Do I make a header inside the MediaWiki?

I want to display 2 images inside of the header but how/where do I attach that?


 * Hi, you may change the layout of your MW in the monobook.php in your skins folder. Take a look on Manual:Skinning. --JazzmanDE 11:47, 25 September 2008 (UTC)

(OUTDATED) Checking Content
When someone edits a page...how do you check that what was written is correct. How do you check the content? —62.169.220.35 08:19, 25 September 2008 (UTC)
 * Could you explain more precisely what you mean? --JazzmanDE 14:28, 26 September 2008 (UTC)

(RESOLVED) Copying a posted photo in another article w/o rehosting or uploading
what button or text must I used to use a photo already hosted at wiki or memory alpha, to use a photo posted in an article that would be relevant in a related article, rather than reupload and waste space. what specifically must I do. Thank you
 * Specifically you need to learn wikitext, which you use to point to the image/file of interest, http://meta.wikimedia.org/wiki/Help:Images_and_other_uploaded_files#Embedding_internal_files -- Dr DBW |  talk  04:02, 13 October 2008 (UTC)

(OUTDATED) Page search

 * MediaWiki version: 1.14alpha
 * PHP version: 5.2.4-2ubuntu5wm1 (apache2handler)
 * MySQL version: 4.0.40-wikimedia-log
 * URL:

I loaded a page last night (about 4 am) and now I cannot find it. The page title is "$700 Billion Trust Fund" Can you help and tell me how I can get it back or re-post it?

Dr. Stephen Tse —68.192.172.102 15:45, 28 September 2008 (UTC)

(OUTDATED) To set up a chinese language section

 * MediaWiki version: 1.13.1
 * PHP version: 5.0
 * MySQL version: 5.0.51
 * URL: http://www.icrunchy.com

Hi, my web site is located here at http://www.icrunchy.com. I would like to add a chinese language section but I have no idea how I could do that. The current chinese language section that I have set up doesn't seem to be correctly done. Could you help me to take a look? Really appreciate that, thanks!

—117.20.188.82 16:47, 28 September 2008 (UTC)

(OUTDATED) Question about magic words
Goal here is to be able to compare the to written text. Problem is that for titles with an apostrophe even an exact match in the text format is flagged as being different from the when using the #Ifeq: parser function.

With respect to the following expression:

When it is used on a page titled "Arthur's cat" and X is equal to the text "Arthur's cat" it gives a "Not equal" output. This is despite the basepagename magic word seemingly giving the correct title. Below are the output from the Arthur's cat page. Note they are all different.

Arthur's cat Arthur%27s+cat Arthur%26%2339%3Bs+cat Arthur.27s_cat Arthur.26.2339.3Bs_cat Arthur%27s_cat Arthur%2527s_cat Arthur.2527s_cat

My question is how can I filter the X text (in this case the text Arthur's cat) such that it is identical to the output for a page titled "Arthur's cat"? Thanks if anyone has an idea. (Chris) 144.92.162.15 18:58, 29 September 2008 (UTC)

(RESOLVED) index page for certain category
How to do index-page for articles which belong to certain category (and its subcategories) rather then for all articles in wiki. --Dnikitin 16:26, 29 September 2008 (UTC)


 * Just go to the Category:some category name page and all pages that belong to that category are listed, for example Category:Help -- Dr DBW |  talk  04:04, 13 October 2008 (UTC)

(OUTDATED) Add links to the footer

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

Hi there, i have a question to add links to the footer.

The doing is clear. I read Footer etc.

In the list are only a few pages, which can be used eg 'lastmod', 'viewcount', 'numberofwatchingusers', 'credits', 'copyright',

But can i also add my own pages and which one? Only systemmessages? What is the precondition?

—Ozz 20:07, 29 September 2008 (UTC)

(RESOLVED) How to remove ths installed successfully information.

 * MediaWiki version: 1.13.1
 * PHP version: 5.0
 * MySQL version: current
 * URL: http://nocturnalcircle.com/wiki

Just installed MediaWiki and am loving it so far. After installing i get this at the top of the main page: ''' MediaWiki has been successfully installed.

Consult the User's Guide for information on using the wiki software.'''

How do i remove this? I tried to edit the page but so far i don't have the option to remove this information. Which way should i go from here?

--Lordvasago 03:27, 30 September 2008 (UTC)


 * simply start adding content to the page / wiki. From the look of it, it is gone now anyway, so you solved it -- Dr DBW  |  talk  04:06, 13 October 2008 (UTC)

(OUTDATED) Problem Skintemplate
I have a problem with my skintemplate: Fatal error: Class '[MonoBook]Template' not found in /home/thegecko/www/www/wiki/includes/SkinTemplate.php on line 125 And this is what line 125 says: function setupTemplate( $classname, $repository=false, $cache_dir=false ) { return new $classname; } I have a standard monobook skin how do I solve this problem?

--77.164.218.186 08:04, 30 September 2008 (UTC)

(RESOLVED) Move Category

 * MediaWiki 	1.13.0
 * PHP 		5.2.5 (apache2handler)
 * MySQL 		5.0.26

Is there a quick and easy way to move a category to a new name? --62.128.18.198 12:03, 30 September 2008 (UTC)


 * Thats great: Extension:Replace Text --62.128.18.198 08:57, 1 October 2008 (UTC)

(RESOLVED) Installation problems

 * MediaWiki version: 1.13.1
 * PHP version: 5.2.5 (cgi-fcgi)
 * MySQL version: 5.0.67-log
 * URL: http://www.androidmodding.com/wiki

When I type in the url "http://www.androidmodding.com/wiki" I keep getting a message to install MediaWiki. Then it tells me if can't find the config directory (since I deleted it). But when I put it back, it says that the installation was already done but still the URL takes me to the install screen.

– 70.84.196.2 04:21, 1 October 2008 (UTC)


 * and what is here? http://www.androidmodding.com/mediawiki-1.13.1/


 * I re-upped the files to try a fresh install. I am getting this error message when going to http://www.androidmodding.com/wiki then clicking on install: "PHP 5.0.0 or higher is required. If PHP 5 is available only when PHP files have a .php5 extension, please navigate to index.php5 to continue installation. :ABORTING."
 * And now I get:

Parse error: parse error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/content/c/a/r/carrlosboyd/html/androidmodding/wiki/includes/AutoLoader.php on line 10


 * PROBLEM RESOLVED
 * The problem has been resolved. My server (shared hosting) was running PHP4.x instead of PHP5.x. Once I changed servers, everything worked fine!  Thanks "anyway" for the help! ;)

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

<mediawiki xmlns="http://www.mediawiki.org/xml/export-0.3/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.3/ http://www.mediawiki.org/xml/export-0.3.xsd" version="0.3" xml:lang="en"> 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> < [<</ta <e> <h2 i<="mw-version-ext">Installed extensions <tabl< id="sv-ext"> <<h c Other <  <<m>[ <td c < <h c Parser extension tags  < <d c   <<tr <ass="sv-space"> <td c < <h c Parser function hooks  < <d c anchorencode, defaultsort, displaytitle, filepath,  formatnum, fullurl, fullurle, grammar, int, language, lc, lcfirst, localurl, localurle, ns, numberofadmins, numberofarticles, numberofedits, numberoffiles,  numberofpages, numberofusers, padleft, padright, pagesincategory, pagesize, plural, special, tag, uc, ucfirst and urlencode  <</ta <e>" 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)

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

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