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)