Project:Support desk/Archive 09

Problems with inserting WIKIPEDIA in frames or iframe
Dear friends in Wiki,

I have important task to make one html page with 2 frames (or 2 iframes). In first I must put PDF file, and in second I must have WIKI-page, because users of my site will compare to files and correct text in wiki-page. When I make the usual page with two frames and load it it immediatly refresh itself and only wiki-page appear. WHAT'S HAPPEN? PLEASE HELP!?!?

Razum

In your file /path/to/wiki/skins/common/wikibits.js, find the following:

// Un-trap us from framesets if (window.top != window)window.top.location = window.location;

And remove it. After that, clear your cache (ctrl+f5, shift+f5 or some other key combination), then things should work properly. —color probe — Talk — Contribs ¤ 15:05, 26 May 2007 (UTC) Oh yes, thank you very much! And have a nice day! :-D

Sign for text indent (":"): Having influence on its behaviour
Hello!

There's the colon sign ":" to indent a text if it is given at the beginning of a line. Where and how is it defined how much the indent is? Is it possible to overwrite this definition at localsettings.php to get more or less text indent?

Regards -- commons:User:JörgM 08:25, 27 July 2007 (UTC)


 * The actual tag is &lt;dd&gt; and it's defined in main.css for Chick, Monobook, and Simple skin (the usual def is margin-left: 2em;). To override site-wide, edit MediaWiki:Common.css and add the following: dd { margin-left: 3em; }
 * You could also just over-ride for particular skins (I.E. MediaWiki:Monobook.css)
 * --Tim Laqua 22:15, 27 July 2007 (UTC)


 * Thanks a lot! Best regards -- commons:User:JörgM 07:15, 28 July 2007 (UTC)

generic redirection error
Ever since I switched to a new host my wiki won't work. It starts loading but then gives a generic redirection error. The domain name has been switched properly and all databases imported. All files are in place.

link: http://zimwiki.com/index.php/Main_Page --70.67.167.157 04:11, 27 July 2007 (UTC)


 * It's your clean URLs. Re-config your clean URLs. In LocalSettings.php: $wgArticlePath = "$wgScript?title=$1"
 * http://zimwiki.com/index.php?title=Main_Page
 * --Tim Laqua 21:50, 27 July 2007 (UTC)

thanks that fixed it --70.67.167.157 06:05, 29 July 2007 (UTC)

How to generate prefex automaticly

 * When i type RFC **** in a random page, and save it ,there will be a link to certain RFC release. So i guess could i modify the template and make my wiki can generate some other prefex for certain words.

Media Wiki 1.6.10 Install Error
Attempting to install MediaWiki on a virtual hosting account running php 4.4.4 and mysql 4.1.13 and getting the following error (Update: Error resolved):

* PHP 4.4.4 installed *     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. * PHP server API is apache; ok, using pretty URLs (index.php/Page_Title) * Have XML / Latin1-UTF-8 conversion support. * PHP's memory_limit is 64M. If this is too low, installation may fail! * Have zlib support; enabling output compression. * Neither Turck MMCache nor eAccelerator are installed, can't use object caching functions * GNU diff3 not found. * Found ImageMagick: /usr/local/bin/convert; image thumbnailing will be enabled if you enable uploads. * Found GD graphics library built-in. * Installation directory: /home/USERNAME/domains/DOMAIN.com/public_html/w * Script URI path: /w * Environment checked. You can install MediaWiki. Generating configuration file... * Database type: mysql * 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. * Attempting to connect to database server as afoygel...success. * Connected to 4.1.13; 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. o Error selecting database wikidb: 1044 Access denied for user 'USERNAME'@'localhost' to database 'wikidb

--68.163.151.121 04:41, 1 August 2007 (UTC)
 * You need to Grant permissions on wikidb.* - See Manual:Installation
 * GRANT ALL ON wikidb.* TO 'USERNAME'@'localhost' IDENTIFIED BY 'password';
 * or if you're Web Server is on a different box than your DB server - you have to configure remote access to MySQL and grant differently
 * GRANT ALL ON wikidb.* TO 'USERNAME'@'192.168.0.x' IDENTIFIED BY 'password';

Angle Bracket witin Importing File
Issue I am having is &lt; and &gt; in XML file being imported into a wiki. Know that they have to be shown as & lt; and & gt;, otherwise it is interpreted as being part of the XML and lost. That is fine.

The problem then is, that they are converted into &lt; and &gt; within the wiki text after it is imported. For most situations this is not a problem, however have encountered one where in a text mathematical formula &lt; and &gt; are used around a capital "B". And this is then interpreted as being the HTML code for bold, definitely not what we want.

The XML files are being generated automatically using a script, to make it fast and easy to do since there are about 70 odd pages it is generating, all with similar formats. So would be handy to sort something out so doesn't require human intervention once it is uploaded to fix the issue. Any suggestions? --Dr DBW 00:30, 18 June 2007 (UTC)


 * What is the indended output of  ? If you just want it to output literal, in your XML gen script, wrap &lt; and &gt; characters in &lt;nowiki&gt;&lt;/nowiki&gt; tags:      or if you just regEx replace your angle brackets:   <  B  >   ... of course, you might have to escape all those angle brackets for the XML to pass them - but again, more scripting voodoo. --Tim Laqua 15:11, 28 July 2007 (UTC)

File Extensions Problem
Hi, My problems is with File Extensions. Firstly let me say that I am not a php developer I am a C++/C/C# etc developer so I like compiled languages and a compiler much better. However I hope that I can get some help here. I've edited my wgFileExtensions[] array to add in the new office file formats pptx, xlsx, dot etc. One of the users at the company I work up loaded a pptx file format. Now every time you click on the link essentially a 404 page is generated.

Things I've tried.

1. Verified that the file existed in the database. 2. Edited the acceptable file extensions in both Default Settings and my localSettings .php 3. Reduced the name of the file, thinking there might be a name length issue. 4. Reduced the size of the file thinking there might be an issue with php post of larger files.

I am just stumped. If Anyone has any ideas please let me know.

Cheers Chris Howell chowell@pyxisinnovation.com


 * It might be helpful to see the corresponding lines from LocalSettings.php
 * Don't ever edit includes/DefaultSettings.php, per the top of the file
 * What "link" is it that you are talking about? Is this a link on the image description page, a link to the description page, or some custom link?
 * robchurch | talk 07:42, 4 July 2007 (UTC)


 * I'd guess that you are using IIS. For IIS to serve up these file types you need to specify the MIME type for the file extension e.g. .pptx application/vnd.openxmlformats-officedocument.presentationml.presentation
 * Obsydian 21:21, 25 July 2007 (UTC)

File Extensions Problem
Hi, My problems is with File Extensions. Firstly let me say that I am not a php developer I am a C++/C/C# etc developer so I like compiled languages and a compiler much better. However I hope that I can get some help here. I've edited my wgFileExtensions[] array to add in the new office file formats pptx, xlsx, dot etc. One of the users at the company I work up loaded a pptx file format. Now every time you click on the link essentially a 404 page is generated.

Things I've tried.

1. Verified that the file existed in the database. 2. Edited the acceptable file extensions in both Default Settings and my localSettings .php 3. Reduced the name of the file, thinking there might be a name length issue. 4. Reduced the size of the file thinking there might be an issue with php post of larger files.

I am just stumped. If Anyone has any ideas please let me know.

Cheers Chris Howell chowell@pyxisinnovation.com


 * It might be helpful to see the corresponding lines from LocalSettings.php
 * Don't ever edit includes/DefaultSettings.php, per the top of the file
 * What "link" is it that you are talking about? Is this a link on the image description page, a link to the description page, or some custom link?
 * robchurch | talk 07:42, 4 July 2007 (UTC)


 * I'd guess that you are using IIS. For IIS to serve up these file types you need to specify the MIME type for the file extension e.g. .pptx application/vnd.openxmlformats-officedocument.presentationml.presentation
 * Obsydian 21:21, 25 July 2007 (UTC)

Transclusion
I have just installed the latest XAMPP MW installation, which works just fine, but when I try to transclude anything outside of template space, template: gets prepended, so for example I am unable to transclude Portal:Foo/Bar in Portal:Foo, which is something routinely done on the Wikipedia sites. What am I doing wrong, please? JzG 15:45, 13 July 2007 (UTC)


 * Try something like instead of  and see if that helps. -- Sayuri  15:55, 13 July 2007 (UTC)


 * Aha, thanks, that moves me ahead another step... Also got short URLs working, which was not as hard as I thought. JzG 17:16, 13 July 2007 (UTC)


 * OK, a follow-up. I have copied and pasted the contents of en:Portal:Box-header to a template, but for some unaccountable reason the mediawiki software is automatically inserting a closing /div into the template, whcih means that instead of rendering a box header, followed by text, followed by a configurable box footer en:Portal:Box-footer, it renders an emoty box, followed by the text, followed by a visible &lt;/div&gt;. - Any ideas why this might be, please? http://mailgate.chapmancentral.co.uk/wiki/Template:Box-header for context. JzG 19:21, 13 July 2007 (UTC)

How do I create a link in Wiki that will point back to a file on an internal server?
''' I want to point to a file on my File Server from within my Wiki. Can someone help me figure out how? '''

Example file file://///ServerName/ShareName/FileName.pdf

this doesn't work...


 * Can't you input it as the full URL using the normal wiki code for an external link? I.e. my file link etc. 84.69.56.232 16:04, 18 July 2007 (UTC)


 * You need to copy the settings for $wgUrlProtocols from includes/DefaultSettings.php into your LocalSettings.php and add 'file:' before the ending );. (Don't forget to add a comma after 'news:'). You can then do the above.  If you're using FireFox you'll also need to enable local file links. (See http://kb.mozillazine.org/Links_to_local_pages_don't_work)  All this of course is only useful for internal wikis. Obsydian 21:04, 25 July 2007 (UTC)

MediaWiki 1.10.1 won't install
Whenever I fill out all the details of installation, I get this: Something's not quite right yet; make sure everything below is filled out correctly.

Well here is the lines about the server I got... (directory location username replaced with stars) * PHP 5.2.0 installed * Found database drivers for: MySQL * PHP server API is cgi; using ugly URLs (index.php?title=Page_Title) * Have XML / Latin1-UTF-8 conversion support. * 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. * PHP is configured with no memory_limit. * Couldn't find Turck MMCache, eAccelerator, or APC. Object caching functions cannot be used. * Found GNU diff3: /usr/bin/diff3. * Found ImageMagick: /usr/bin/convert; image thumbnailing will be enabled if you enable uploads. * Found GD graphics library built-in. * Installation directory: /home/*******/public_html/gmcr/wiki * Script URI path: /gmcr/wiki * Environment checked. You can install MediaWiki.

The server uses PHP 4 by default, I had to add an override to the gmcr folder in the form of AddHandler.

The following entries were filled out. Any unlisted entries were left untouched. Wiki name: GMCR Contact email: [withheld] Admin username: anger2headshot Admin password: [withheld] Password confirm: [withheld] Database name: [withheld]_villagedump DB username: [withheld]_gmcr DB password: [withheld] DB password confirm: [withheld] Database table prefix: gmcr_

So, any help? Thanks! -anger2headshot


 * We'll need the full transcript from the top. In the meantime, scroll down the form and look for red errors next to fields; these might indicate the problem. robchurch | talk 07:32, 18 July 2007 (UTC)
 * What do you mean by full transcript? -anger2headshot

Setup problems
Hello There,

I am very confused about how my setup is going wrong. I have had a look around but am still pretty unsure about what is goin on, can someone please help, it is much appreciated.

The details of my installation problem are listed below. I don't know exactly how this help works, so you can email me on byron@things2do.ie but I will hang around here anyway.

Go Raibh Mile Maith Agat, Byron Smith Baile Atha Cliatha, Eire (Dublin Ireland)

PHP 5.2.0 installed Found database drivers for: MySQL PHP server API is apache; ok, using pretty URLs (index.php/Page_Title) Have XML / Latin1-UTF-8 conversion support. 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. PHP is configured with no memory_limit. Couldn't find Turck MMCache, eAccelerator, or APC. Object caching functions cannot be used. Found GNU diff3: /usr/bin/diff3. Found ImageMagick: /usr/bin/convert; image thumbnailing will be enabled if you enable uploads. Found GD graphics library built-in. Installation directory: /home/things2d/public_html/wiki Script URI path: /wiki Environment checked. You can install MediaWiki. Generating configuration file...

Database type: MySQL Loading class: DatabaseMysql Attempting to connect to database server as things2d_wikiuse...success. Connected to 4.1.21-standard Error selecting database wikidb: 1044 Access denied for user 'things2d_wikiuse'@'localhost' to database 'wikidb'
 * You need to Grant permissions on wikidb.* - See Manual:Installation
 * GRANT ALL ON wikidb.* TO 'things2d_wikiuse'@'localhost' IDENTIFIED BY 'password';
 * or if you're Web Server is on a different box than your DB server - you have to configure remote access to MySQL and grant differently
 * GRANT ALL ON wikidb.* TO 'things2d_wikiuse'@'192.168.0.x' IDENTIFIED BY 'password';
 * --Tim Laqua 20:43, 27 July 2007 (UTC)

Problem Uploading Images
I'm trying to upload images - I thought I had everything set correctly except I get the following error type whenever I try to upload an image:

Could not copy file "/tmp/phpt1xA8w" to "/home/g/o/gough_name_org_uk/wiki/images/temp/0/02/20070717211643!John_Bartholomew_Gough.gif".

Probably something very simple but please can someone help?


 * Write permissions on the /home/g/o/gough_name_org_uk/wiki/images directory maybe? I *think* its the web server user that needs permissions to it. --Natebsi 19:02, 18 July 2007 (UTC)


 * i had trouble getting permissions to modify anything past the wiki folder. I just created a different folder outside the wiki folder then changed the file paths and directories for uploading in LocalSettings.php Jedkwon 19:16, 23 July 2007 (UTC)

restriction based on Namespace
How to permit a certain group of users to access certain pages or namespace.

XML Error
I have a problem when I enter to the preferences Menu in the Wiki an send me a menssage, I translated the Message for you:

Page XML cannot be shown cannot be seen entrance XML with the style sheet XSL. Correct the error and you click in the button To update, or try later.

An element of superior level in a document XML is only admitted. Error when processing the resource http://www.kpedia.byethost31...

    faultCode...

I use the last version of Media Wiki.  '== THANKS FOR YOUR HELP ¬.¬ == '

Lists -> tables
Is there a way to change the Special:Recentchanges, histories, and other MediaWiki-related pages to be tables instead of lists? As these lists are now, they are very jumbled and hard to navigate. Ideally, something like this for recent changes, for example:

Date Note: the sorting should not screw up expanded branches (subsorting for them or just keep branch all in the same row?). Also, instead of textual abbreviations for things, use icons (and for other unabbreviated things too--i.e. a clock/watch for "time", etc). The   tag should also work...(please edit this table to fix it if you know how--perhaps using CSS?)

If these things had CSS elements it would be easier to create a table of them, but most are not labelled, as far as I can tell. Also, the "namespace" pull-down list should be a multi-select list (as should the search namespace checkboxes) to make it easier to select multiple namespaces. -Eep² 10:33, 22 July 2007 (UTC)


 * OK, seems there's already Extension:TransformChanges that can do this...for recent changes and watchlist only, though..and the table doesn't sort. -Eep² 22:39, 23 July 2007 (UTC)

Image Thumbnail not appearing
--Jedkwon 23 July 2007
 * images would not upload into wiki folder on web server. Found work around.
 * images upload but do not show proper MIME or thumbnails. Images are accessible. has MIME type of: error.
 * otherwise there are no error messages.
 * i've confirmed independently that imagemagick "usr/bin/convert" and "file -bi" both work outside of php and media wiki so either they don't have permission? or what
 * resorting to the dark arts, unless i can get some help soon Jedkwon 19:35, 23 July 2007 (UTC)
 * Tried using the apache mime list, doesn't work, knows it works because I used to to set up Java Web Start.
 * Resorted to the dark arts 75.26.140.138 20:46, 23 July 2007 (UTC)
 * Dark arts not as rewarding as originally anticipated.
 * went to lunch
 * Tried FileInfo
 * Try flipping ImageMagick off in LocalSettings.php and just letting it use GD for the convert. $wgUseImageMagick = false; --Tim Laqua 15:18, 28 July 2007 (UTC)

Could someone help me with the thumbnails
I can't get images to appear on my wiki, I can upload just fine (I can see the image in the browser), but I can't get them to appear in pages or thumbnails. All pictures have a mime type of "error" except when i check in the server the mime type is correct. Can anyone help please? --75.26.140.138 20:45, 25 July 2007 (UTC)
 * Try flipping ImageMagick off in LocalSettings.php and just letting it use GD for the convert. $wgUseImageMagick = false; --Tim Laqua 15:19, 28 July 2007 (UTC)

Minimum Search Length
Hi Guys,

we are running MediaWiki to run out Library (University of QLD) information system,

it is working great, although we have one problem.. the search feature is not working for any of our acronyms that are 3 or 4 characters long. Obviously there is a minimum search length - is it possible to change this?


 * http://www.mediawiki.org/w/index.php?title=Project:Support_desk&oldid=97251#Searching_for_numbers --Dr DBW 06:14, 25 July 2007 (UTC)

German: Sonderzeichenproblem mit ÜÄÖ
Hallo,

nach dem Backup meines alten Mediawikis habe ich probleme mit Grafiken die im File ein Sonderzeichen enthalten.

Als Beispiel die Datei heißt:

Nv-verst+ñrker-anschluss.gif

vom Mediawiki wird gesucht:

Nv-verst%C3%A4rker-anschluss.gif

hat jemand hiermit schon Erfahrungen?

Danke

13:02, 25 July 2007 (UTC)


 * Those are "encoded" or "escaped" characters. In HEX

ñ = %F1 = ñ Ü = %DC = Ü Ä = %C4 = Ä Ö = %D6 = Ö ü = %FC = ü ä = %E4 = ä ö = %F6 = ö
 * What did you use to backup your MediaWiki installation?
 * And have you set your site language code to German in LocalSettings.php? $wgLanguageCode = "de"; The default is "en" - so locate the line that sets it to "en" and change it to "de" See also: http://en.wikipedia.org/wiki/Help:Searching#Words_with_special_characters - Known bug --Tim Laqua 16:31, 28 July 2007 (UTC)

How do you open images in a new window?
Im am building a wiki, and have on it a large number of PDF document that are stored as “images” so when a user clicks on a link

media:whatever.pdf|Whatever

The PDF document opens in the current window, I was wondering if there was a way to make it open in a new window.


 * I don't think there's a way to open images and other media, links etc. in a new window. -- Sayuri 12:55, 25 July 2007 (UTC)

I'm wondering exactly the same thing...Where can we get any answer about it??--El Racionalista Prenihilista 11:46, 27 July 2007 (UTC)


 * Short answer; you don't. robchurch | talk 20:40, 27 July 2007 (UTC)

Can't get into mediawiki:sidebar
I am trying to make edits to my sidebar but when I go to the page I'm unable to edit it as it says it's protected. I've been looking for hours and can't find a way to unlock this page. Can someone please help??


 * You need to be logged in as a sysop to edit the user interface. robchurch | talk 20:39, 25 July 2007 (UTC)

MediaWiki and MSSQL Server
Is it possible to use MSSQL Server instead of MySQL?


 * Not at the present time. There is no roadmap for inclusion of MS SQL Server support. robchurch | talk 20:40, 25 July 2007 (UTC)

Nothing will save
When i go on my prefrences and type in my email and my real name and press save, the page flicks and reloads, and then the two boxs are blank again, can anyone help me ?

This also appears to happen on the check boxs in the my prefrences, and i have tryed the shift + reload thing. and also seems to be the same when i try to make someone a sysop, its like everthing is just not saving.

Also this happens when i try the save a page, for example Mediawiki:siderbar, when i change that and try to save it i get:

'''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.''' After logging out and back in, i just get the same message

I WILL LEAVE THIS HERE FOR FUTURE REFEREES BUT THIS PROBLEM APPEARS TO OF FIXED ITS SELF


 * Sounds like a standard session loss problem; the usual process is to check that session.save_path is valid and points to a writeable path in PHP.ini</tt>, then check permissions on that directory to ensure the web server can read and write to it. robchurch | talk 20:39, 27 July 2007 (UTC)

please help me for proceeding further
i have configure WAMP

Apapche, php and mysql has been setted up perfectly as per the installation guide and the necessary changes has been done in the httpd.conf file and php.ini files.i have copied the mediawiki contents and pasted it inside the htdocs folder and when i try to run the file it is asking for setup wiki. When i select setup wiki it is showing me the corresponding message. Am stuck please help me in proceeding furthur. If possible gimme your support contact number let me give a call to you people.

The message that i got Checking environment...

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

* PHP 5.2.3 installed Could not find a suitable database driver! o For MySQL, compile PHP using --with-mysql, or install the mysql.so module o For PostgreSQL, compile PHP using --with-pgsql, or install the pgsql.so module


 * We don't have a "support contact number"; we don't offer formal support for MediaWiki at this time. The problem is quite evident within the error message; MediaWiki has detected that the MySQL client module is not available to PHP. Under Windows, this is quite trivial to fix; open up the PHP.ini</tt> file, find the line ; extension=php_mysql.dll</tt> and remove the preceding semi-colon, then restart Apache.
 * For further information, please see http://www.php.net/manual/en/ref.mysql.php, particularly the "Installation" section. robchurch | talk 20:38, 27 July 2007 (UTC)

Moving wiki to new server
I've moved all the wiki directories and the mysql db to the new server, when attempting to reach the page, get the following error:

Error in fetchObject: Can't open file: 'gfw_page.ibd' (errno: 1)

Backtrace:

* GlobalFunctions.php line 602 calls wfbacktrace * Database.php line 596 calls wfdebugdiebacktrace * MessageCache.php line 246 calls databasemysql::fetchobject * MessageCache.php line 174 calls messagecache::loadfromdb * MessageCache.php line 357 calls messagecache::load * GlobalFunctions.php line 449 calls messagecache::get * GlobalFunctions.php line 408 calls wfmsggetkey * GlobalFunctions.php line 319 calls wfmsgreal * OutputPage.php line 177 calls wfmsg * OutputPage.php line 776 calls outputpage::setpagetitle * Database.php line 476 calls outputpage::databaseerror * Database.php line 419 calls databasemysql::reportqueryerror * BagOStuff.php line 390 calls databasemysql::query * BagOStuff.php line 281 calls mediawikibagostuff::_doquery * BagOStuff.php line 228 calls mediawikibagostuff::_query * MessageCache.php line 142 calls mediawikibagostuff::get * MessageCache.php line 357 calls messagecache::load * GlobalFunctions.php line 449 calls messagecache::get * GlobalFunctions.php line 408 calls wfmsggetkey * GlobalFunctions.php line 361 calls wfmsgreal * Wiki.php line 74 calls wfmsgforcontent * index.php line 105 calls mediawiki::checkinitialqueries

How do I move the wiki to the new server without losing data?
 * Old server RHL 1.2/Apache 1.3.27/PHP 4.4.4/MySQL 4.1.21
 * New server RHL 4/Apache 2.0.52/PHP 4.3.9/MySQL 4.1.20

I moved it by useing, this guide its not very good, but it dose work.


 * On the new server install XAMPP
 * Install phpMyAdmin
 * Install the Wiki software
 * Go through the Wiki software set up
 * Copy over the image table in the DB’s
 * Copy over the image links table in the DB’s
 * Copy over the users table in the DB’s
 * Copy the images folder from one root directory to the other.
 * Copy over the logo and put it in. \skins\common\images
 * Copy over the LocalSettings.php from one root to an other
 * On the old wiki go to Special pages
 * All pages
 * Copy that list put it in a word document and make sure each page has a new line
 * Then go Special : Export pages
 * Then past all the pages into the box, and click “Exsport”
 * Save the xml document that Opens
 * On the new Wiki
 * Go Special : Export pages
 * Click import pages
 * Load the XML file that you just saved.

Note: This is only viewed as a very rough guide, more help and different ways can be found on media wiki

Note: This will not copy over that categories, no cure for this was found at time of typing

--McKinnon 08:44, 27 July 2007 (UTC)


 * The instructions at Manual:Moving a wiki should be comprehensive. From the original error, it sounds like one of the table definitions for the database can't be found, which indicates an incorrect method used to migrate the database. robchurch | talk 20:35, 27 July 2007 (UTC)

Editing toolbar
I didn't get an answer to my earlier question, so reposting and hopefully making it more clear. The skin I'm using appears to have removed the editing toolbar even if it's set to appear in user preferences. I've checked the source code to see if wikibits.js is being called correctly, and it is, and to check whether the HTML/Javascript is specified for the editing toolbar, and it is. It's just not appearing. I'd like to know which part of the monobook skin governs the apperance of the toolbar so I can cross-reference it with my customised skin and then see what's missing. Anyone know? 84.69.56.232 18:31, 26 July 2007 (UTC)


 * No part of the Monobook.php skin has anything to do with the display of the edit toolbar AFAIK.
 * Can see the addButton(...) calls for the Toolbar buttons in the source code of the served page, but they're just nowhere to be found on the rendered page? Is there a public facing example?
 * Toolbar JS block - If this isn't found in the source of the served web page, then EditPage.php isn't rendering the toolbar.

<script type='text/javascript'> /*<!>*/
 * --Tim Laqua 21:30, 27 July 2007 (UTC)

Make MediaWiki display the redirected page name in the web browser URL location instead of the redirect's name
When a redirected page comes up, the redirect URL shows in the web browser's location field instead of the redirected-to page's URL. How can this be fixed? -Eep² 07:12, 27 July 2007 (UTC)


 * This is not something we're looking to "fix" - the main argument against doing this is that using a HTTP redirect for this purpose makes it more challenging to go back and edit the redirect, and there's no explanation as to what happened, i.e. the "redirected from" message. robchurch | talk 20:32, 27 July 2007 (UTC)


 * "More challenging" doesn't mean it's not impossible... I only ask because this is an annoying problem when copying the URL; it's the redirect's URL and the article link needs to be clicked in order to get the correct URL. Surely .htaccess</tt> redirects (if that's what you're using) can output a "redirected to" message... -Eep² 00:37, 29 July 2007 (UTC)

Apache + PHP + MySQL + MediaWiki Setup Issue
While attempting to setup MediaWiki on my Windows XP SP2 based machine, I check "http://localhost/wiki/config/index.php" to see if everything went smoothly but get the following...

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

* PHP 5.1.4 installed Could not find a suitable database driver! o For MySQL, compile PHP using --with-mysql, or install the mysql.so module o For PostgreSQL, compile PHP using --with-pgsql, or install the pgsql.so module''

Currently running MySQL 5.0.20, Apache 2.0.58, PHP 5.1.4, and MediaWiki 1.10.1. How do I make sure that PHP is compiling with MySQL?

--71.127.118.76 01:07, 29 July 2007 (UTC)


 * Once the WAMP is good to go, then the MediaWiki installer should work fine - PHP just can't find MySQL. Did you uncomment (remove the semi-colons) from the following lines out of php.ini to enable the extensions?


 * php_mysql.dll
 * php_mysqli.dll
 * See:<li>Manual:Streamlined_Windows_Install_Guide
 * --Tim Laqua 01:51, 29 July 2007 (UTC)

Thanks Tim, ended up wiping the slate clean and going with a XAMPP install. Works great... so far, now I just need to figure out which ports to open on the router. Does anyone have any idea?

--71.127.118.76 03:30, 29 July 2007 (UTC)


 * Just need to open port 80 (http) to the outside and direct incoming to your Webserver's IP. If you're running SSL, it's port 443 - most people route both to the webserver.  Default MySQL port is 3306, BUT that shouldn't need to be routed to the outside. Note that some ISPs block traffic on port 80 and 443 so you can't host websites from your house (unless you're on a business line) - in that case, you have to do some port redirection.  Hopefully, they're not blocking port 80 and you'll be fine - bottom line is that apache's listening on port 80. --Tim Laqua 03:44, 29 July 2007 (UTC)

Extension doesn't parse Wiki formatting
I've written an extension, and I have it to hook at parse so that it creates a html link. the attribute "url" is passed as an argument, but Wiki formatting is not parsed before passed to the extension. how to I get it to parse? function renderForumAddReply( $input, $argv ) { $output='<a href="'.$argv["url"].'">Add reply</a>'; return $output; }
 * 1) forum add reply button

<forumaddreply url=" ">

Before you state that I should just use a link, please note that I am going to replace the add reply text with an image. --anger2headshot 10:16, 29 July 2007 (UTC)


 * Is this what you're looking for? All the variables you need are available once you escape to PHP.

function renderForumAddReply( $input, $argv ) { global $wgTitle; $output = '<a href="'.$wgTitle->escapeLocalURL("action=edit&section=&preload=Template:Forumheader/include&editintro=MediaWiki:Forum_intro").'">Add reply</a>'; return $output; }


 * --Tim Laqua 13:23, 29 July 2007 (UTC)

Problem with special character in Filenames
Hi,

i have some Problems after Update my Wiki. The Wiki dont find Files with special characters. Example: Mediawiki Search: M%C3%BCterbildr%C3%B6hrenadapter.jpg But the File Named: M++terbildr+Âhrenadapter.jpg

Where is the Problem?

Thanks

--91.17.90.135 11:35, 29 July 2007 (UTC)


 * Did you set your site language code to German (or whatever your language code is) in LocalSettings.php?
 * $wgLanguageCode = "de";</tt>
 * The default is "en" - so locate the line that sets it to "en" and change it to "de" See also: http://en.wikipedia.org/wiki/Help:Searching#Words_with_special_characters - Known bug --Tim Laqua 13:40, 29 July 2007 (UTC)


 * Hi Tim,
 * speacial Thanks for your Answere.i have allready
 * $wgLanguageCode = "de";</tt>
 * in my Localfile.php. And if i turn it to
 * $wgLanguageCode = "en";</tt>
 * i see no Pictures on my Wiki. But i think the Name looks like ASCI Code or UFT8 Code.
 * 91.17.88.127 10:39, 30 July 2007 (UTC)


 * Well, anyone else have ideas? I haven't worked much w/ languages other than english on MW. --Tim Laqua 11:44, 30 July 2007 (UTC)
 * While we're waiting for a professional to wander by - do you have a Public facing example I could take a look at to see what exactly is going on? --Tim Laqua 13:14, 30 July 2007 (UTC)

Example: **tp://arwen78.arwen.baumedia.biz/wiki/index.php?title=Elektronik (Please don´t link this URL) 91.17.95.145 19:14, 30 July 2007 (UTC)


 * Seemed to work for me...
 * **tp://arwen78.arwen.baumedia.biz/wiki/index.php?ns0=1&ns6=1&search=M%C3%BCterbildr%C3%B6hrenadapter&searchx=Suche
 * I added the Image namespace to the search, entered "Müterbildröhrenadapter" in for the search term, and it came up as expected - So what exactly isn't working? Do you just want to turn on the Image(Bild) namespace by default?

Hi Tim, This ist not exactly what i mean. Take a look at **tp://arwen78.arwen.baumedia.biz/wiki/index.php?title=Elektronik you can see bevore the Words "Lampentest" and "Kategorie:Müter Bildröhren Adapter" a black picture. If you click on it youre getting to: **tp://arwen78.arwen.baumedia.biz/wiki/index.php?title=Bild:Gl%C3%BChbirne1.jpg there you can see that the File Glühbirne must be **tp://arwen78.arwen.baumedia.biz/wiki/images/9/9e/Gl%C3%BChbirne1.jpg but if your looking via FTP, you can see the File is here **tp://arwen78.arwen.baumedia.biz/wiki/images/9/9e/Gl++hbirne1.jpg. This is what i mean with the Wiki Search the wrong therm. 91.17.74.129
 * Looks like your filenames are messed up - did you move the entire wiki installation to a different filesystem or different hardware? The file should be named Gl%C3%BChbirne1.jpg - but the %C3%BC got replaced by ++.  The wiki linking looks fine - the filenames appear to be the problem, but I'm not sure why the filenames would be chagned unless the files were moved.

The Files would be moved per FTP vom Root to Filesordner root/wiki/ and after that if been updatet my wiki. So i mean the error are from updating the Wiki. Just now if been looking into my old Backups but there are the same file Names. Im using FTPOnline ( http://web2ftp.de ) and Local Filezilla both Backups with the same Problems!?!? What can i do?

Tim if been indebted to you. (And sorry for my /very/ bad Englsih.) 91.17.123.33 15:07, 31 July 2007 (UTC)


 * When did it last work? On a different server?  Or was it on the same server and you just upgraded the MediaWiki version?  It looks like the filenames were changed at some point where a program or utility replaced all of the hex escape codes (%XX) with +.  Do you have a working version from the old installation?  If you re-upload an image with a special character, the newly uploaded image should work fine.  How many images with special characters do you have?  If it's only a few, just delete the old images and re-upload them.  If it's ALOT of images, I can work with you to come up with a solution.  (will likely be complicated)

I take a look i must upload 40 Pictures. In a view day´s i begin. Thanks a lot. 91.17.123.33 20:13, 31 July 2007 (UTC)
 * np. Make sure you locate a backup solution that doesn't destory your filenames for the future.

How can I show random page from a specific catacory?
I want to show a random page from catagory X for example.. How can I do tthat?

thanx --Tmorid 20:59, 29 July 2007 (UTC)
 * I haven't seen it done for a particular "Category", but the Special:Randompage special page does support specifying a particular namespace (like Category: or Talk:, etc). The default namespace for Special:Randompage is NS_MAIN, but if you want to specify a different namespace, you can do so like this: Random Category Page Which yields: Random Category Page So if feasible, I would advise creating a custom namespace and putting those pages that you want to randomly select from in that namespace - then you can use the stock Special:Random/NAMESPACE style to get that sub-set randomization. For Custom Namespace Creation, See: Manual:Using_custom_namespaces - using stock functionality is always preferrable to extensions. Though this might be a neat feature request - you could request it on BugZilla as an enhancement request. --Tim Laqua 21:51, 29 July 2007 (UTC)


 * This has been filed as bug 2170. It requires a schema change to make selection efficient in large databases. robchurch | talk 02:38, 30 July 2007 (UTC)

How do I use the LOCAL DAY and MONTH option?
How do I put it on my wiki? --Tmorid 21:03, 29 July 2007 (UTC)
 * If you're talking about the MagicWords 27 and August, you can just put those magic words (surrounded by double-curly brackets) anywhere in a wiki article and they will "magically" translate when the article is viewed. August/August/2024 Will resolve to: August/August/2024 --Tim Laqua 21:45, 29 July 2007 (UTC)

How can I set some options as default?
in settings section of mediawiki (preferences) you can set some of your preferences. how can I change the default settings. for example how can I set search namespaces in all sections as default settings?


 * I don't know but I'd like to change that checkbox list into a multi-select box, which would make selecting multiple namespaces far less nerve-wracking! -Eep² 08:33, 24 July 2007 (UTC)


 * ...which I've attempted to do at Extension:Multi-select Namespace Search but it doesn't quite work. Any help would be appreciated... -Eep² 09:47, 25 July 2007 (UTC)


 * You can set the default for New Users and Anon users (existing users will not be affected). See Help:Custom namespaces on Wikipedia

$wgNamespacesToBeSearchedDefault = array(       -1                => false,        NS_MAIN           => true,        NS_USER           => true,       NS_USER_TALK      => false,        NS_PROJECT_TALK   => false,        NS_IMAGE_TALK     => false,        NS_IMAGE_TALK     => false,        NS_TEMPLATE_TALK  => false,        NS_HELP_TALK      => false,        NS_CATEGORY_TALK  => false,        100               => true,        101               => true );
 * Changing the settings for existing users is ugly because it's part of the user_options field in the user table:

searchNs1=0 searchNs2=0 searchNs3=0 searchNs4=0 searchNs5=0 searchNs6=0 searchNs7=0 searchNs8=0 searchNs9=0 searchNs10=0 searchNs11=0 searchNs12=0 searchNs13=0 searchNs14=1 searchNs15=0
 * So you'd have to go parse out the user_options field and do some cool regEx replacing. --Tim Laqua 15:50, 28 July 2007 (UTC)

how can i delete uploaded files?
in my wiki i have the possibility to upload files. files like pdf, doc and so on. i have the filelist where they are displayed. my problem is now. how can i delete those files again???

regards thomas --62.245.156.52 07:54, 27 July 2007 (UTC)


 * Click on the link to the file, which will bring you to the description page for it; when logged in as a sysop, you should see a "delete" link near the top of the screen (default skin), and there will also be a "(delete all revisions of this file)" link towards the bottom. robchurch | talk 20:28, 27 July 2007 (UTC)

Extension development support
There needs to be a central support area/forum/whatever for extension develoment and general MediaWiki hacking. I've posted to several different places (Talk:Extensions FAQ and others I don't recall) and have yet to receive a reply (one of the problems of having a talk page on every page).
 * Lets just #redirect them all! (seriously.)

CategoryPage.php hack
I'm trying to edit this file to make the subcategory/article amounts appear in parentheses next to the section header (i.e. "Subcategories (10)") instead of the wordy "there are x subcategory(ies)/article(s)" singular/plural semantic nonsense. I've managed to get it to work by changing

To:

And then editing MediaWiki:Subcategories to add the subcategory count parameter in parentheses [($1])--and commenting out or removing MediaWiki:Subcategorycount. But, for some reason, the output in the HTML code:

Subcategories (10)

Instead of:

Subcategories (10)

Which causes the bottom border to be under the header too far (as on ). Any ideas? Is there something in count( $this->children)</tt> that's causing that closing   </tt> to appear? -Eep² 11:11, 31 July 2007 (UTC)
 * Naaa, it's your processing rule. 'parse' is straight html (tidied), while 'parseinline' strips those    tags out of there.  Here's the line you need:


 * Cool, thanks. I just took the line from the one under it to generate the wordy version:


 * Now to do the the pages/images sections and figure out a way to make this an extension instead of a hard-coded hack--perhaps with Manual:MediaWiki hooks/CategoryPageView? -Eep² 14:07, 31 July 2007 (UTC)
 * Sounds like a pain in the butt. Unleless there's an existing hook right where you need it (i.e. down in the function where you hacked that code) - you usually have to do some pretty fancy coding to take the page text as-is and reformat it to your liking.

Putting article in multiple categories does not add article to categories
MediaWiki 1.10.1

PHP 5.1.6-3

PostgreSQL 8.1.9-1

Putting an article in multiple categories does not add the article to these categories. If the category is new, it is not created. However, adding an article to only one category works as expected. Is there a trick to putting articles in multiple categories?

--131.104.87.11 14:16, 31 July 2007 (UTC)
 * Nope, it's pretty straightforward. Go to Special:Wantedcategories to find all those un-created categories.  Multiple categories is just:
 * It seems to be a PostgreSQL statement problem. In MySQL a statement like this is legal:  INSERT INTO table VALUES (data1, data2),(data3, date4),...
 * This inserts multiple rows at a time. However, in PostgreSQL, you cannot insert multiple rows in one SELECT statement.  So, adding the article to one category at a time works, but adding to multiple categories at a time attempts to use an SQL statement which errors (under PostgreSQL).  Will submit as a bug.
 * Nice catch.

Re-upload broken
Here is the error message I got: Internal error From MediaWiki.org Jump to: navigation, search

Could not rename file "/mnt/upload3/wikipedia/mediawiki/temp/9/92/20070705173321!BizzWikiLogo.png" to "/mnt/upload3/wikipedia/mediawiki/9/92/BizzWikiLogo.png".

&#91;user:jldupont&#124;Jean-Lou Dupont] 17:35, 5 July 2007 (UTC)

Why can't we use a single username and password in order to access to the benefits of all the wikiprojects
(wikipedia, wikiversidad,ismlp, idcl,etc), instead of creating multiple accounts? summing up, i encourage you to make this improvements in order to make the "wikiproject" grow up a lot --El Racionalista Prenihilista 20:04, 26 July 2007 (UTC)

¿Puedo ser un "consejero" en la implementacion del software para edición de música?
En caso de no poder, quisiera hacer las siguientes sugerencias:


 * 1.- Que el lenguaje usado sea exactamente el mismo de lilypond (no similar, igual)así no tenemos que aprender nuevos lenguajes ni modificar la forma en la que estamos acostumbrados a escribir música.


 * 2.- Que se permita la posibilidad de abrir vínculos en páginas distintas a conveniencia de quien edita la pagina wiki. Esto posibilita muchas cosas a nivel de la reproducción de multimedia... y la posibilidad de ver simultáneamente algunas páginas facilita muchos procesos de aprendizaje, sobre todo a nivel musical.


 * 3.- Que se pueda reproducir (escuchar) lo que se ha escrito en notacion musical a discreción de quien está aprendiendo. Por ejemplo, si uno quiere mostrar el sonido de cada una de las notas, la persona que aprende debe poder tener la posibilidad de reproducir dicho sonido a su libre elección y sin que se sustituya la página que está viendo por una página donde se reproduzca dicho sonido; por el contrario, debería poder ver y escuchar al mismo tiempo lo que está aprendiendo.--Johann 16:33, 27 July 2007 (UTC)

Multiple Wikis on one server?
I'm using MediaWiki: 1.10.1, PHP: 5.2.4-dev (apache2handler), MySQL: 5.0.45-community-nt and Apache 2.2.4.

Is it possible to create multiple Wikis using this setup? Is it a simple matter of copying MediaWiki to another, differently-named directory in /htdocs, or are there other things I would have to do? Thanks. --82.4.221.60 18:26, 31 July 2007 (UTC)
 * Different directories for each wiki - copy the base package that you downloaded in to each directory, and they can all use the same Database and Database user - just specify a "Prefix" like alphawiki_ or devwiki_ or something for each wiki. Then run the installer for each wiki from each wiki's directory (like /alphawiki/config and then run /devwiki/config) - the installer creates the tables correctly.  (There is a bunch of other fun voodoo you can do, but I think this is what you want - just multiple wikis, no interlinking)


 * Excellent. That confirms that for me then - thank you very much Tim. :) --82.4.221.60 21:51, 1 August 2007 (UTC)

File Extensions Problem with 'mm'
Hi, My problems is with File Extensions. I hope that I can get some help here. I've edited my wgFileExtensions[] array to add in the new office file formats mm (for MindManager) etc. One of the users at the company I work up loaded a mm file format. Now every time you click Upload to upload this fileformat warning The file is corrupt or has an incorrect extension. Please check the file and upload again..

Things I've did.

1. LocalSettings.php
 * add the line   include("$IP/extensions/FreeMind.php");   placed on the end of this file.

2. Install the Plugin -rwxrwx--- 1 root   www    175 2006-07-09 07:33 README -rwxrwxrwx 1 lorenz users 6484 2007-07-26 12:11 FreeMind.php drwxrwxrwx 2 lorenz users  464 2007-07-26 12:12 freemind lorenz@dehgbnet0005:/srv/www/htdocs/pdm-wiki/extensions>

3. for additional information, here the settings in LocalSettings.php $wgEnableUploads               = true; $wgMaxUploadSize               = 1024*1024*1024*10; $wgUseImageResize              = true; $wgUseImageMagick              = true; $wgImageMagickConvertCommand = "/usr/bin/convert";
 * 1) To enable image uploads, make sure the 'images' directory
 * 2) is writable, then set this to true:
 * 3) Lorenz !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'ogg', 'zip', 'doc', 'ppt', 'pdf', 'xls', 'mdb', 'mm', 'mmap' ); Can someone help ??? Thanks and Bye Michael
 * 1) Lorenz !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 * 2) File type extensions allowed
 * Enable the debug log (Prefferable while nobody else is using it) on your wiki, then upload one of the problematic files (or is it ALL files?) - and paste the failure line (NOT the whole log - it's huge) in here. It should look something like this:

MimeMagic::MimeMagic: loading mime types from includes/mime.types MimeMagic::MimeMagic: loading mime info from includes/mime.info MimeMagic::detectMimeType: magic mime type of /tmp/phppUIiOH: image/png MimeMagic::guessMimeType: final mime type of /tmp/phppUIiOH: image/png SpecialUpload::verifyExtension: mime type image/png matches extension png, passing file
 * Yours is failing in that area - that mime matching is where the "corrupt file" error comes from. To enable debug log, add this line to the bottom of your LocalSettings.php: $wgDebugLogFile = "$IP/MWdebug.log"; Your debug file will be in your Wiki root and called MWdebug.log *** make sure to turn debugging off asap! --Tim Laqua 14:08, 29 July 2007 (UTC)

Installation Problems on pytal.de
First of all this is my installation process:

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


 * PHP 5.2.3 installed
 * Found database drivers for: MySQL
 * Warning: PHP's safe mode is active. You may have problems caused by this, particularly if using image uploads.
 * PHP server API is cgi-fcgi; using ugly URLs (index.php?title=Page_Title)
 * Have XML / Latin1-UTF-8 conversion support.
 * Session save path (/srv/www/httpd/phost/s/com/pytalhost/sro-wiki/ses) appears to be valid.
 * PHP's memory_limit is 24M.
 * 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: /srv/www/httpd/phost/s/com/pytalhost/sro-wiki/web/wiki
 * Script URI path: /wiki
 * 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 phost78105...success.
 * Connected to 5.0.32-Debian_7etch1
 * Database phost78105 exists
 * Creating tables...Query "CREATE TABLE `wiki_job` ( job_id int unsigned NOT NULL auto_increment, job_cmd varbinary(60) NOT NULL default , job_namespace int NOT NULL, job_title varchar(255) binary NOT NULL, job_params blob NOT NULL, PRIMARY KEY job_id (job_id), KEY (job_cmd (160), job_namespace, job_title (160)) ) TYPE=InnoDB " failed with error code "Incorrect sub part key; the used key part isn't a string, the used length is longer than the key part, or the storage engine doesn't support unique sub keys (localhost)".

I try to host mediawiki (new version) on www.pytal.de They are telling me to change some stuff:

1. open \includes\AutoLoader.php - #line 5 ini_set('unserialize_callback_func', '__autoload' ); to   @ini_set('unserialize_callback_func', '__autoload' );

2. open \maintenance\tables.sql - #line 467 cl_sortkey varchar(86) binary NOT NULL default '', to   cl_sortkey varchar(78) binary NOT NULL default '',

#line 1061 KEY (job_cmd, job_namespace, job_title) to   KEY (job_cmd (160), job_namespace, job_title (160))

#lines 1122-1124 pr_type varchar(255) NOT NULL, -- The protection level (Sysop, autoconfirmed, etc) pr_level varchar(255) NOT NULL, to   pr_type varchar(160) NOT NULL, -- The protection level (Sysop, autoconfirmed, etc) pr_level varchar(160) NOT NULL,

but i cant find line 1122-1124, it looks like this:

pr_type varbinary(60) NOT NULL, -- The protection level (Sysop, autoconfirmed, etc) pr_level varbinary(60) NOT NULL,

'''when i just change the 60 to 160 it looks like i posted on top! when i start the installation again (without deleting the tables he create on first try) installation go to the end, but i cant use the Admin-LogIn from installation-config.

Anyone know how to fix this???'''

--217.238.126.133 01:08, 29 July 2007 (UTC)


 * What error do you get if you try to run the installation WITHOUT making those changes they suggested? Try using the stock installer with no modifications.  The line 467 change on the "job" table creation is causing that particular error - but your mention of the page_restrictions tables - those match lines 1122-1124 in the MW 1.10.x tables.sql file.  Are you installing MW 1.10.1? --Tim Laqua 01:40, 29 July 2007 (UTC)

How can I link to other format URLs in my wiki?
like ftp://, \\192.168.1.1 etc.


 * You'll notice above that MediaWiki has attempted to render the FTP link;  ftp:// </tt> is a recognised URL protocol; see $wgUrlProtocols</tt> in includes/DefaultSettings.php</tt> for the others.


 * The other link is a UNC link which would equate to a local "file" under Windows, and thus use  file:// </tt>, e.g.  file://\\192.168.1.1 </tt>. It's possible to add this to the URL protocol list, however, a lot of modern browsers, including Firefox and Opera, won't render these for "security" reasons. This may or may not be configurable on the client. robchurch | talk 02:35, 30 July 2007 (UTC)
 * In Firefox you can configure UNC links like this. Maybe you want to try Extension:FileProtocolLinks as well. --Flominator 11:24, 30 July 2007 (UTC)

Problem with mySQL
I received this error. Please help me to fix it.

Sorry! This site is experiencing technical difficulties. Try waiting a few minutes and reloading. (Can't contact the database server: MySQL functions missing, have you compiled PHP with the --with-mysql option? )

http://resg.com.au/rhwiki/

Regards, 203.22.70.5 02:09, 30 July 2007 (UTC)


 * PHP's MySQL functions have apparently gone AWOL, which means MediaWiki won't be able to access the database. This may indicate a change in your configuration, or some other breakage.


 * If you're responsible for managing the server, then follow the instructions on the PHP web site to ensure MySQL is compiled into PHP or otherwise enabled; if not, then please ask whoever is responsible to check the same. robchurch | talk 02:30, 30 July 2007 (UTC)

Rename Wiki
I have downloaded and installed the latest Media Wiki and started a wiki. Will I be able to rename the Wiki without having to start again or lose data etc? Thanks! 217.44.96.203 02:29, 30 July 2007 (UTC)


 * Rename in what manner? You can change the site name using $wgSitename</tt>, but are advised to add a namespace alias from the old name to the project namespace, to prevent link breakage, e.g.


 * $wgNamespaceAliases[' '] = NS_PROJECT;</tt>


 * You can move the wiki to another directory or server, but don't forget to update the paths set in <tt>LocalSettings.php</tt> - see Manual:Moving a wiki for more information on that. You can rename the database, but again, don't forget to update <tt>LocalSettings.php</tt>, changing the value of <tt>$wgDBname</tt> as needed. robchurch | talk 02:32, 30 July 2007 (UTC)

Deaktivate Discussion
Hi,

how can i deaktive Discussion all-over the Wiki?

Thanks

--91.17.110.223 13:20, 30 July 2007 (UTC)
 * Just hiding the discussion tab is a pretty common and simple tweak. Edit MediaWiki:Common.css in your wiki and add:
 * <tt>#ca-talk { display: none !important; }</tt>
 * <tt>#ca-talk a { display: none !important; }</tt>
 * So the talk pages exist, but there's no discussion tab - which is usually "good enough."
 * --Tim Laqua 14:43, 30 July 2007 (UTC)

Greate it Works Discussion are deaktivet (i put it direkt in my CSS file), well nobody see :-)! Thanks, but if i Login in my Profile i can see "My Discussion" were are the difference between "My Discussion" and "Discussion" ? 91.17.95.145 19:09, 30 July 2007 (UTC)
 * Use this instead then (remove the other two lines you put in earlier). This will disable general Discussion and "My Talk"
 * <tt>#ca-talk, #pt-mytalk { display: none !important; }</tt>
 * BTW, the difference is the classes and IDs they're using - cat links are across the top, and the pt links are the "user" links in the upper right of Monobook.
 * --Tim Laqua 19:14, 30 July 2007 (UTC)

about wikimedia settings
i installed mediawiki but i want only registered users create and edit pages... i didnt see this option in settings how can i do this ? sorry for english and first question --85.102.216.150 15:16, 30 July 2007 (UTC)


 * Edit LocalSettings.php and add the following lines to the end - before the closing ?>
 * <tt>$wgGroupPermissions['*'   ]['edit']            = false;</tt>
 * <tt>$wgGroupPermissions['*'   ]['createpage']      = false;</tt>
 * <tt>$wgGroupPermissions['*'   ]['createtalk']      = false;</tt>
 * <tt>$wgShowIPinHeader = false;</tt>
 * That should take care if it. --Tim Laqua 15:28, 30 July 2007 (UTC)


 * If there's a <tt>?&gt;</tt> at the end of the file, remove it; it's useless, and makes appending to the file a bit less convenient. robchurch | talk 22:18, 30 July 2007 (UTC)

Accountsettings
Hello,

I will use the mediawwiki software as Intranet.

Is it possible to change the Accountsettings, that every user musst aktiviate by an Administrator?

Sry for my bad English und Thank you for the answer.

Phillip


 * Yes, you have to disable all implicit rights and then MANUALLY grant the rights (or "activate") each user. NOTE - You will also have to make Sysops Contributors - NO ONE will have edit rights unless they have been put in the Contributors group (Special:Userrights to manage Groups) - Put the following lines at the end of your LocalSettings.php file (before the closing ?>)


 * Good luck! --Tim Laqua 19:01, 30 July 2007 (UTC)


 * Alternately, disable account creation and have the sysops create accounts for people who need them. You would then only need to add:


 * You could also use Extension:ConfirmAccount. Prodego 19:19, 30 July 2007 (UTC)


 * That's not nearly complicated enough. ;-) --Tim Laqua 19:49, 30 July 2007 (UTC)


 * Actually, all you need is this <tt>$wgGroupPermissions['*']['edit'] = false;</tt>, which is what I use on my 1.0.3 MediaWiki--and I can't create/edit anything as an anonymous user. Unfortunately, this permission doesn't allow unprotected page source text to be viewed, which I'd like to allow without having to do a mass page protection... -Eep² 20:09, 30 July 2007 (UTC)


 * 1.0.3?!?! Nice.  If someone registered an account, the DefaultSettings.php permissions assignment gives "user" edit rights.  * doesn't over-ride explicit permissions in other groups.  (as far as I know) - perms definately changed between 1.0.3 and 1.10.1  --Tim Laqua 20:25, 30 July 2007 (UTC)


 * It occured to me that you meant 1.9.3 - yeah, that works to disable anon edits, but this guy is trying to force sysop "activation" --Tim Laqua 20:31, 30 July 2007 (UTC)


 * Yea, sorry, I meant 1.9.3. ;) I still don't know why I downloaded that version when 1.10.1 was available. Ah well...brainfart, I guess. Anyway, do you know how to allow unprotected pages to allow "view source" if anonymous users can't edit pages? -Eep² 09:25, 31 July 2007 (UTC)
 * I don't think so. Looking at the code, there doesn't even appear to be a very straight-forward way to hack it in to submission either.

Session-data lost error
If I am logged on as sysadmin, I couldn't change articles, specially mediawiki:sidebar. What is wrong? medaiawiki says, that session-data had been lost. What ist wron? Although it is not possible to change user-roles. I have PHP 5.2.3 and MySQL 5.1. I spent almost 3 days with that Problem. Please let me know your experince at mailto:martin.schlederer@t-online.de

--84.151.97.8 22:09, 30 July 2007 (UTC)


 * Per rob's comment above and in Archive1 (Project:Support_desk/Archive1) - check to see if your session.save_path value in php.ini is valid and writable to the webserver - PHP configuration.

Page for each variable, function, etc
I just created wfMsg (which may need to be moved to Manual:wfMsg or Manual:wfMsg) for the function of the same name. I think there should be an article/page for each MediaWiki variable (such as already exist for Manual:Configuration settings) and function. -Eep² 14:58, 31 July 2007 (UTC)
 * I agree - but why post here? Wouldn't that be in a Manual discussion of some sort?  If not... lets make a Manual Discussion.  ;-)


 * If we're going to have pages about each function (which I think is a bad idea, development documentation should be in doc blocks in the code, or in files with a general overview of how to do things in <tt>mediawiki/docs/</tt>) then it ought to go in a separate namespace; it's not part of the user manual, and shouldn't be in the main namespace. robchurch | talk 20:31, 31 July 2007 (UTC)


 * Well, there's the Doxygen documentation (http://svn.wikimedia.org/doc/) but it's incredibly clunky to use and almost as bad as actually opening up the class files and hunting through them. So you're thinking of a Documentation: namespace?  I understand the objection as it creates a redundant data stores - but say I wanted to know the syntax for wfMsg right this second.  Where could I type "wfMsg" and get the answer?  I think that's the problem.  I don't think inline func defs do the entire job and I don't think manually replicating all of that data in a Documentation: namespace does it either.  Though, at least the Documentation: namespace would allow me to search for "wfMsg".  (and grepping for wfMsg is my current solution - I just don't thing that inline func defs are "adequate documentation").


 * That entire site should be moved to this wiki. I can't find any way to search it (other than Google, of course) and all of the functions are crammed into long lists, making the pages load slow and lag from all the "reference by" links (in Firefox anyway). There are no "functions by type" or whatever categories and the site just isn't very user-friendly. I do like being able to see the code of the various PHP files and links to various functions/variables though. :) -Eep² 04:13, 1 August 2007 (UTC)

Recording Username insted of IP address for page edits while not logged in.
--192.104.67.222 17:21, 31 July 2007 (UTC) Is it possible to change the settings of the wiki to record a username insted of an ip address for page edits? I would like to be able to log the username from Active Directory for my wiki insted of the IP address. I have my wiki in a corporate evironment.

Thanks in advance, Tom
 * Your users would have to log in - MW can't poll the client for the logged in user. See Extension:LDAP Authentication - We use that on our internal wiki against a w2k3 AD.  Also, we disabled anonymous edits, so the users all have to log in once (using their domain user and apssword), check "remember login" and they're good to go.  (assuming roaming profiles or static workstations).

Capturing new/updated pages being created in a external database
I have a external database (actually its on the same box just not in the mediawiki db) that when someone creates a new page or updates a page on the wiki then it inserts a record into my database. I can not seem to find in the php files the code that actually does the updating and inserting of the data in the database. Can anyone help point me to this location? I am using the newest version of mediawiki but I am sure the code will be in approx the same spot on different versions of the wiki.

--143.166.226.40 22:40, 31 July 2007 (UTC)
 * Use the ArticleSaveComplete hook and write an extension - it is called everytime an article is successfully inserted or updated. http://www.mediawiki.org/wiki/Manual:MediaWiki_hooks/ArticleSaveComplete

I tried to make this change and I added the following code into my LocalSettings.php file but it appears it is never called. Do I need to add this somewhere else? $wgHooks['ArticleSaveComplete'][] = 'fnMyHook';

function fnMyHook(&$article, &$user, &$text, &$summary, &$minoredit, &$watchthis, &$sectionanchor, &$flags) {	$dbh = mysql_connect($wgKBserver, $wgKBuser, $wgKBpassword) or die("Unable to connect to MySQL"); die("Connected to MySQL"); // you're going to do lots more here soon mysql_close($dbh); } --143.166.255.40 15:01, 1 August 2007 (UTC)
 * It gets called when you click Save after editing a page. I just tested it on a MW 1.10.1 installation - here's the function I tested it with.  (I just put it at the bottom of my LocalSettings.php)


 * w/ this hook, you'll just get the dingI'mdead. screen whenever the hook fires. (and it does indeed fire after saving an updated article or new article.

Thank you, you were correct. It appears that if you just edit a article without changing any text and saving it, that it does not call the ArticleSaveComplete. One last question and I should be done. If I am connecting to another database in the php code, is there a way I can have it connect back to the wiki database? When I use the below code I get php errors after it inserts the record because it took over the connection to the wiki database.

--143.166.255.42 16:02, 1 August 2007 (UTC)
 * Have you tried adding <tt>return true;</tt> to the end of your function?
 * Otherwise, I have no idea - I've never initiated a separate connection. Most extensions simply create another table in the existing wikidb.  then use the wfGetDB( DB_MASTER ); function which uses the global Database class (stored in Database.php).  Here's an example:


 * note - this function uses the tableName method to get the 'real' name of the user table - this is because users can set prefixes to tables and such. You would just update or insert on your table name.  As for the whole getting the wikidb connection back question - I don't know - the Database class in Database.php is the one that handles the connection, so an answer might be in there.  Let me know if you or anyone else knows/figures it out.

Well I tried what you suggested along with other items and I am still not able to get it to work. I understand that most people use the same database but mine has to goto a different server. I do connect to the other server and able to process the data. What it appears is that I am canceling the connection to the mySql server the wiki is using. I tried to add $dbw =& wfGetDB( DB_MASTER ) at the end of my function but I still get the same errors. The error is

Warning: mysql_real_escape_string: 33 is not a valid MySQL-Link resource in C:\Inetpub\wwwroot\wiki\includes\Database.php on line 1607 and Warning: mysql_query: 33 is not a valid MySQL-Link resource in C:\Inetpub\wwwroot\wiki\includes\Database.php on line 779

I tried looking all thru the database.php file to see if there was some function that tells the software to connect to the database but I could not find anything. Does mediawiki have a function that I can just call if i wanted to connect to the database or how exactly does this happen?

--143.166.255.42 19:43, 1 August 2007 (UTC)


 * Try using the ArticleSave hook instead of the ArticleSaveComplete hook - between when ArticleSave and ArticleSaveComplete fire, the database connection is created in doEdit of Article.php . Make sure your function returns true!  If your function does not return true on an ArticleSave hook, the edit will NOT happen.  Input is the same for both hooks.

Well I really dug into this following the functions around and I found out that the wfGetDB will reopen the connection to the database if its not available. So to complete what I was trying to do, I closed the connection to the database and then it reopens at the end of my hook. Everything appears to work unless I am missing something. Can someone verify that this should not cause any problems and that I am reading it correctly that wfGetDB will reopen the connection? Below is the code I am using so someone else can benefit from my trials


 * I thought you already tried adding that wfGetDB call and it didn't resolve the issue? But it looks good - the MW connection is idle because the execution of that hook is linear - there are no other processes using the connection while you are inside your hook function. So as long as that solution re-establishes the connection (evident by the fact that it's not throwing mysql_query errors post-hook execution), that's a cool little extension.  ;-)  If you want more feedback on it, you can post it as an Extension: page and explain that it's a "Proof of Concept" extension.  Most people will comment on specific Extension methodology on the Extension's talk page.


 * I did add the wfGetDB call, but the problem is that this hook was deleting the connection to the database so it never reconnected to the database. Maybe something to think about adding in the mfGetDB function is to check to make sure that it has a connection to the database and if it does not to reconnect to the database. For 99.99% of the people this would never be needed but it could help make sure people dont run into these type of problems again.


 * The last thing I would like is if a wiki page is deleted that it would also connect to the external database. This wouldnt be in the ArticleSaveComplete hook would it? If so how can I know if it was a delete or add/update?

--143.166.255.41 21:45, 3 August 2007 (UTC)


 * Maybe to also give you some additional information on what this is used for, we try to maintain formatting and have people check on articles once in awhile to make sure they are correct. So now when someone adds/updates a article it makes sure its in a secondary database so we can mark it off when we verify the html... and then we can send out automated reminders that they need to make sure the article is upto date. It is a cool extension, but not one most people would need.
 * Interesting. I could see it being used scoped down to a partiuclar namespace - like have it check which namespace the article was saved to and if it was in the "monitored" list, it'd log the save in the external db sort of thing.  Like if you only wanted to monitor Project: and Help:.  As for your hook, just hook ArticleDeleteComplete as well ;-)  -NOTE - ArticleDeleteComplete has a different argument set - check documentation for details.  See Manual:MediaWiki_hooks for the list.


 * Tim.. Is there a way I can contact you via email? I dont want to post my email address on this site as I am sure you dont either. If you want you can goto http://www.okctickets.com/contact.php and fill out the form and then I can send you a email that would be great.
 * --143.166.255.41 21:45, 3 August 2007 (UTC)


 * Done.

Custom color of namespaces
I'm sure it's hidden somewhere, but I wasn't able to find it: How do I change the background-color of one specific namespace? Regards, --Flominator 10:48, 1 August 2007 (UTC)
 * MediaWiki:Monobook.css
 * <tt>.ns-4 #content { background-color: #eef}</tt>
 * So Namespace 4 (Project) = pastel blue BG.
 * Awesome. Thx. --Flominator 08:44, 2 August 2007 (UTC)
 * Awesome. Thx. --Flominator 08:44, 2 August 2007 (UTC)

Permissions Question
I just had a quick question. How can I totally remove the login/registration features on the website, and make it so that anyone can post anything? Basically make it an "Open Wiki". I need to 1. Remove the register/login options. 2. Allow global permissions for people to do everything as guest (except edit the pages I marked as "Non-Editable". Any Advice?

--72.148.242.187 12:59, 1 August 2007 (UTC)
 * Add these lines to the bottom of your LocalSettings.php - that should give anonymous users the same rights that "registered users" would have and disallow user registration. There may be other "sysop only" permissions you want to grant to anon as well - just add them in on new lines and set to true as below.

// Implicit group for all visitors $wgGroupPermissions['*'   ]['createaccount']   = false; $wgGroupPermissions['*'   ]['read']            = true; $wgGroupPermissions['*'   ]['edit']            = true; $wgGroupPermissions['*'   ]['createpage']      = true; $wgGroupPermissions['*'   ]['createtalk']      = true; $wgGroupPermissions['*'   ]['move']            = true; $wgGroupPermissions['*'   ]['upload']          = true; $wgGroupPermissions['*'   ]['reupload']        = true; $wgGroupPermissions['*'   ]['reupload-shared'] = true; $wgGroupPermissions['*'   ]['minoredit']       = true; $wgGroupPermissions['*'   ]['purge']           = true;
 * To hide the Login/Create Account link, edit MediaWiki:Common.css in your wiki and add:
 * <tt>#pt-login { display: none !important; }</tt>
 * See Manual:Preventing access for further information

HTML tags: what extensions?
The Wikipedia template w:Template:Infobox Ethnic group uses lots of  tags throughout, yet it just displays   on my setup, instead of (presumably) terminating that table row.

I have the same set up as above and the following extensions installed: Cite (Ævar Arnfjörð Bjarmason); Inputbox (Erik Moeller) and ParserFunctions (Tim Starling).

Is there another extension I have to install or is there some variable that allows the use of specific HTML tags that I have to set? Thanks in advance. --82.4.221.60 22:03, 1 August 2007 (UTC)
 * No, it's more likely that you're missing transcluded templates that the master template relies on. Look at the HTML source for the page that you're seeing (right-click, view source) and locate the area where you're seeing the   tags - there should be opening   tags for each one.  Also, look at the "Templates used on this page:" section when you edit the template - you need to ensure that any other templates the master template relies on also exists.  Generally speaking, it's not a good idea to try and use one of wikipedia's templates as they often have a large number of dependencies - it's best to examine their template and re-build it yourself to suit your needs.  Good luck.


 * Yeah, I had already included all the templates necessary (thankfully those templates didn't have other transcluded templates!). I had a look at the source code and I saw &lt /tr&gt (semi-colons removed) - I'm not familiar with either of those codes lt or gt, and I don't know why they'd be there. I'm guessing they're "less than" and "greater than".


 * I copied the template from Wikipedia and pasted it in. In the original wikicode, there weren't actually any opening tr tags either.. but the template there works. Presumably either the pipe or pipe-dash template is equivalent to the tr tag.

--82.4.221.60 06:46, 2 August 2007 (UTC)
 * Yup, it's the Pipe. They won't be actual html tags won't be created until the MW parser processes it.  ;-)

Creating Thumbnails Not Working
Hello - I'm the webmaster of Zelda Wiki.org (http://www.zeldawiki.org/), and I continually experience a problem generating thumbnails. A thumbnail for any image can be created, so long as it does not deviate from the default 180 pixel setting. However, set your own pixel width, and it generates this message: Error creating thumbnail: sh: /usr/bin/convert: No such file or directory. I have not been able to find any solution to this, and am unsure of the cause. It began on roughly July 22nd, of unknown origin - I was away at the time, and was not able to manage the wiki to know if something had gone wrong.

Thanks for all the help! --Jason (aka GoldenChaos) 13:29, 2 August 2007 (UTC)
 * Try flipping ImageMagick off in LocalSettings.php and just letting it use GD for the convert. <tt>$wgUseImageMagick = false;</tt>
 * Thank you - that solved the problem. However, is there any specific reason why ImageMagick should stop working? Also, it appears that now some transparent PNG's have had their alpha channels made into black pixels. Oddly enough, some remain transparent. Is this something that "GD" does, or is it just an effect of switching the image renderer? --Jason 18:31, 2 August 2007 (UTC)
 * I've seen that many times w/ GD. I'm not 100% on why it happens - I would imagine it's a known bug.  You could take a look at bugzilla.mediawiki.org and see if the bug has been reported already (I didn't notice it in there) and if it's not, you can report it.  Otherwise, you can try to get ImageMagick working again - try to figure out what changed and why it stopped working.  Verify that /usr/bin/convert is indeed the ImageMagick converter - sometimes <tt>$wgImageMagickConvertCommand = "/usr/local/bin/convert";</tt> is the correct setting.
 * Ok, I figured it out. It's the GD lib w/ PNG-24 alpha trans.  Patch posted on SVN.

Inserting wiki pages using an external script
I've got a lot of pages of content that I'd like to insert directly into my wiki instead of manually creating them one by one. I was going to write a PHP script to handle it, but got stumped. I'm a little confused about the tables and fields that I need to edit as a minimum. I create a new page_id, and page_title... and the text needs to be put into old_text... but the revision table has me puzzled. Is there an easier way to achieve this?

--195.137.100.182 17:49, 2 August 2007 (UTC)
 * Are the existing pages from another wiki? If so, just export them and then import them in to the new wiki.  If they're not from another mediawiki installation, but just raw content - there are many ways to get the data in - but directly inserting the data in to the database isn't one of them - it's incredibly complicated. http://www.mediawiki.org/wiki/Manual:Database_layout What does your existing content look like?  Like, what format is the existing data in, where is it stored, etc - Then we can help you w/ a method for inserting it using the actual MediaWiki engine.  An extension for the import is one option (pry too much work for a small batch), or like a bot to do the inserts.  If it's a public facing wiki, someone could pry run the import using a bot for you.


 * I'm basically looking to convert an existing 'regular' database driven site into a wiki-based one. It's not a particularly small number of pages - around the 5 thousand mark, but I wasn't necessarily planning on doing them all at once. Data is in a MySQL db, mostly just plain text. Nothing fancy. I'm really just exploring my options at the moment - seeing what the easiest method would be. --195.137.100.182 18:26, 2 August 2007 (UTC)
 * Sure - take a look at <tt>maintenance/importTextFile.php</tt> in your wiki installation. It's got all the code to use the Article class' doEdit method.  That could easily be modifed to pull from your DB.
 * Aha! That looks like just what I'm looking for. Thanks a lot! --195.137.100.182 18:46, 2 August 2007 (UTC)

Embed special page results
From meta:Help talk:Embed page, is there a way to embed results from special pages like Special:Whatlinkshere/? I'd rather not have to dork with DPL or another extension to do this if I don't have to... -Eep² 10:40, 3 August 2007 (UTC)


 * OK, I found out after reading meta:Help:Embed page but now I'd like to make <tt>../includes/SpecialWhatlinkshere.php</tt> more intuitive so it doesn't display the <tt>View (previous 50) (next 50) (20 | 50 | 100 | 250 | 500).</tt> navigation links if there are less than 20 (or whatever the minimum # is) results. Ideally, the formatting of this string should be customizable in the MediaWiki:Whatlinkshere-nav (navigation/whatever) system message page, too. Also, I'd like to have an option to remove this text and customize it as well:

< Page name

The following pages link to Page name:


 * OK, seems the "<" is customizable at MediaWiki:Whatlinkshere-barrow and "The following pages link to :" is at MediaWiki:linkshere. However, it would be nice if these messages were optional with embedding since the page name may already be shown on the embedded page (as is the reason I want to embed backlinks on the actual page of the same name). -Eep² 11:50, 3 August 2007 (UTC)
 * Sounds like something that should be posted on http://bugzilla.wikimedia.org . ;-)  Sure, it can be done, SpecialWhatLinkshere.php, showIndirectLinks - look for the call to getPrevNext.  If you'd like to make it a normally includable special page AND make it so when transcluded, those links don't show up, throw a enhancement request on BugZilla.  Note, there can't be transclusion options - the page would pretty much have to have one behavior as a stand-alone special page and one other behavior as a Transcluded page.