Project:Support desk/old

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)

Image file permissions screw pages up!
Hello!

I recently started having problems with the display of some images on my wiki (www.cpcwiki.com). Images are uploaded ok, and if you access them directly they show (example), but when I try to insert them in a page and click 'submit' or 'preview', the system returns a blank page. Upon inspection, I found that their permissions are not set to 777 (but, rather, 644: -rw-r--r--).But even if I chmod them to 777, the pages still have this problem... I recursively chmod'ed everything under /images/ to 777, this covers only existing files.

Why would the uploaded images have permission issues? And why does the problem persist after I change the permissions?

Thanks, Th.P.


 * It doesn't look like a permission issue. 644 is correct, so changing it to 777 shouldn't change anything.  More likely, it's failing to thumbnail the image, probably because it can't run the configured command (usually image magick, but there is at least one other option). -Steve Sanbeg 23:56, 27 June 2007 (UTC)


 * Hmmm, thanks about the tip... but I had never installed image magick, why would the problem crop up now? Also, what is the other option? Thanks again for your help!!! :)


 * Is it a large number of images? They will include in the page fine, but if you try to resize them in any way, it hangs and outputs a blank page.  So it is indeed something to do with the conversion of those particular images.  Have you tried flipping ImageMagick off in LocalSettings.php and just letting it use GD for the convert? $wgUseImageMagick = false; --Tim Laqua 14:22, 28 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)

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)

Common.js
When I try to edit Common.js in my own wiki, I get the following message:

A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: (SQL query hidden) from within function "Title::getInterwikiLink". MySQL returned error "1267: Illegal mix of collations (cp1251_general_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation '=' (localhost)".

--Andysoft 09:50, 10 July 2007 (UTC)

Error: HTML tags on page
Hi! I wish to make copy Wikipedia in a local network. Has established MediaWiki, some extensions, however some pages are displayed incorrectly. For example, as here. What expansion is necessary for establishing, that clause showed correctly? Whether there Is somewhere a list of extensions with which works Wikipedia?--82.200.96.1 23:38, 10 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)

External link is rendered strangely in IE 6.
If an external link text span a line, the rendering of a tiny icon indicating external link seems to mess up. Anyone have the same experience? [http://www.mediawiki.org Here is the example of an external link which line wrap causes an external icon link to disapper ............. ............... ................ ............. .............. ............... ................... ...... ..................]

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.

Memory Leak on Win2k?
I've just installed the latest version of MediaWiki on my Win2k server (please, no giggling) and was suprised to find that PHP started throwing "Fatal Error: Out of Memory" errors and delievering blank pages, not just on the Wiki site, but on all PHP pages on the server.

Now, I did some Googling around and found that a bunch of people banished this error by upping thier PHP memory_limit from 8M to 32M. This elicits nervous laughter from me, as I've had that nailed at half a GB for years now -- the hardware handles it fine. I'm running PHP 5.2.1 and the server has been faithfully serving fairly intensive PHP pages for years prior to the introduction of Wiki. Removing the MediaWiki software makes the problem vanish.

Anyone have any ideas here?

Expiry question
When using protection expiry, how do you format the expiry field?

Thanks, Matt 71.126.156.74 22:52, 21 July 2007 (UTC)

Problem of sending confirmation email through SSL
OS: Windows XP SP2 MediaWiki: 1.10.1 PHP: 5.2.3 (apache2handler)

extension=php_apc.dll extension=php_gd2.dll extension=php_mbstring.dll extension=php_mysql.dll extension=php_mysqli.dll extension=php_sockets.dll

PEAR install --alldeps mail

$wgSMTP = array( 'host'    => "smtp.gmail.com", 'IDHost'   => "username@gmail.com", 'port'     => 465, 'auth'     => true, 'username' => "username", 'password' => "password" ); SSL and 465 port are required by Gmail. Long time after I started sending the confirmation email, no result is returned. I looked into its network connection with netstat, finding that Apache did connect to a Gmail server (such as po-in-f109.google.com:465). Then of course, timed out, and a blank page is returned.

I've already searched for this at mw and meta with all kinds of methods, but no similar problem is found. So is there anyone to help me out? Sicaral 02:18, 22 July 2007 (UTC)

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)

Moving the Logo
How do I move the logo to the left, eliminating that small margin between the left edge of the logo and the left edge of the page?

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)

How to keep sans-serif font when printing?
All mediawiki pages appear sans-serif eg. like Arial. But when I print a page either the standard or printable version, the print out uses a serif font, like Times Roman. How can I stop this? I want my printed page to look like it does on the screen. 220.244.88.206 05:32, 25 July 2007 (UTC)


 * Edit the printing stylesheet, which can be found in skins/common/printable.css or similar. robchurch | talk 20:41, 25 July 2007 (UTC)
 * Thanks - but that doesn't seem to work. I edited skins/common/commonPrint.css, the only thing mentioning font type was the line span.texhtml { font-family: serif; } which I've tried changing to sans-serif as well as commenting it out.  Neither makes any difference.  I'm using Ctrl+Refresh on my page after each change.  I notice in the HTML source of the printable version of the page a line <style type="text/css" media="screen,projection">/*<![CDATA[*/ @import "/wiki/skins/monobook/main.css?7"; /*]]>*/ . Perhaps I need to change the media</tt> tag to something else?  I don't know how to change this though.

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)

MediaWiki & DB2 support
Hi,

I’ve been developing a plugin for the MediaWiki to support DB2.

1) I’ve written a PHP program that converts the database from MySQL into DB2 (it creates tables identical to the tables in MySQL database and moves the data there)

2) I found that all connection to the database is done in the Database.php. I’m planning to use functions such as db2_connect (from PHP) as they are very similar to mysql_connect. I’ve also written my own functions using db2_connect… that have almost the same signature as mysql functions (I’ve done it in order to eliminate almost any differences between DB2 and MySQL in order to decrease number of changes in the current MediaWiki code. Basically I want to replace mysql function with function that I wrote without making any other Major changes in the MediaWiki code).

However, I’ve noticed that SQL statements in MediaWiki are build dynamically in many steps and placed in different files, which are very hard to track. And I’m not able to use MySQL statements directly as DB2 have slightly different syntax. For example it doesn’t accept a quoted integer in the ‘WHERE’ clause.

My question is there any particular structure how the SQL statements get build in the MediaWiki? I’ve tried to search the MediaWiki code, but I couldn’t find any consistency and I don’t want start guessing, because I need MediaWiki to be stable.

Please help!!!

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</tt> 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)

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)

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)

Several questions

 * Broken spanish text removed, see the diff for the original posting. -- :Bdk: 22:15, 26 July 2007 (UTC)

This comment has an approximate (but maybe not accurate) translation to english at the bottom. Excuse me for my bad english. --El Racionalista Prenihilista 20:04, 26 July 2007 (UTC)

Where can i download a "user manual" about mediawiki
in order to edit the pages with greater theoretical knowledge, obtaining a better performance creating and editing those pages? If this manual doesn't exist, please do it as friendly as possible, for those of us whose have basic knowledge in programming. It would be rather to wikipedia it be this way, in order to expand its possibilities. --El Racionalista Prenihilista 20:04, 26 July 2007 (UTC)


 * Doesn't exist in a document that you can download in a single document. Currently it is spread throughout the pages here in MediaWiki.org --Dr DBW 02:48, 30 July 2007 (UTC)

wikiversidad: Music Notation
i'm actually working on some projects in "wikiversidad" (yes, in spanish lol) and i need the ability to create the pages in music notation At a first glance, we have thought trying to convert the sheet music into images, after it then upload them in commons and make a link in the page to that image. Because the project is related to music, it is unavoidable to listen the music score, we'd have to do exactly the same way  for every music file; on the other hand, it is neccesary for all the users (and attending to the wiki policy) that editing the scores in the page from existing mistakes be possible... but because of they are in an image format the users should repeat all the process over and over. As it could be seen, this way could be easily turned into a mess. For that reason it is necessary that a code be implemented in order to write the sheet music directly in the page and this code also allow (just as lilypond or any music notation software does) to listen what is written in the page. I was reading about a language called "wikitex" or somethng like that; i tried to use the code according to this lenguage but it didn't work. I used the code according to lilypond especifications and nothing happened (well, it appeared as text in the page, lol), even so it was said in the wikitex page that we cand improve our articles by using that code. Summing up, it would be a good idea to implement a language, a tool, a code (or whatever it be the name that the developers give to it) that can do that functions just mentioned, this only if it's desirable to make wikiversity (wikiversidad) a real learning project. Another Suggestion is to have the ability to listen simultaneously to the sheet music we are just watching in the page. It will be an enormous learning tool. --El Racionalista Prenihilista 20:04, 26 July 2007 (UTC)


 * This the code / extension that allows music to be put into wiki pages Wikitex. It should work, may be ask the developers why yours is not. --Dr DBW 02:48, 30 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)

Can you tell me how to embed the page "wikisophia.org" to partially fix the problem with the music notation??
Thank you for your answers --El Racionalista Prenihilista 20:04, 26 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)

Is there a bug related to template-trascluding in MW 1.10.0 and 1.10.1?
I have several instances of MW running and there is a behaviour while inserting templates from a central pool I cannot explain myself. E.g. there is a central instance let's say foo1.bar.tld and another one let's say foo2.bar.tld. And now I want to use a template hosted by foo1.bar.tld using the designated way while foo1 is the right interwiki link. (yes, iw_trans is set and scary transcluding is turned on). So here is my problem:

Instances which are based on MW 1.10.0 include that templated but wiki markup within the template is ignored. Html markup works fine. Instances based on MW 1.10.1 show something like UNIQ1e69a7ad64e3f598-item140b0119235f4147 instead the included template.

Is there anyone out there who can explain that behaviour to me? --195.145.211.194 07:19, 27 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)

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

Can I be a "counselour" on the implementation of the music notation software?
If it is the case that i can't be a counselour or anything like that, I'd like to make the following suggestions:


 * 1.- Use exactly the same language that lilypond uses (not similar, the same). Being this way we don't have neither to learn new languages nor shift the way we are used to input music. It diminishes the difficulties in making new learning projects.


 * 2.- Allow the possibility of opening links in new pages according to the will of who is editing the project. This make possible many things about playing some kind of multimedia...and the ability to see different pages simultaneously makes some learning processes be easier, especially in musical matter.


 * 3.- Make the pupil able to listen to the music that is written at its own will. For example, if we want to show the sound of every note of the diatonic scale, the person who is learning it should have the option to play that sound at its own will and skill without loosing the view of the current page. He(or she)needs to listen and look simultaneously to learn properly.--Johann 16:33, 27 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)

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)

Deleting Page - Nothing Happens, Does not Delete
When logged in as a sysop user, the Delete link is there for the page, but when I click on the "Delete" button on the "Confirm Delete" page, nothing happens. It appears to just reload this "Confirm Delete" page and does not delete the intended article.

Any suggestions greatly appreciated

--216.86.181.69 08:41, 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)

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

Mediawiki in sub directory
Hi dear wiki-ers, I havce a drupal site, and I wanted to add a wiki. I've installed Mediawiki in my site under a subdirectory (i.e. public_htmp/wiki) and having trouble with enabling the "nice URLs. I can get the .htaccess to resirect mysite.com/wiki to go to the wiki so the browser actually returns http://www.mysite.com/wiki/index.php?title=Main_Page when I acecss http://www.mysite.com/wiki . by for some reason, if I enable nice urls as described at here, the nice URL get rerouted to the drupal site. Thansk in advance, Udijw 13:03, 30 July 2007 (UTC)
 * Example Available? --Tim Laqua 13:17, 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)

Only registered users create and edit page
--85.102.216.150 14:41, 30 July 2007 (UTC)

how can i do this ? just registered users can create and edit page ? i didnt see any page about this...


 * Create an account and log in. Then you will be a registered user and can create pages.  --Tim Laqua 14:48, 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)

a really blank page
Since a few days I have a tricky problem: It is impossible to save a page with special characters like äüöéè and so on ... After, I click "save page" the browser shows a white page. There is no content, nothing from mediawiki or other information. I can only see the browsermenu and the tapbar (firefox), that's all. Nice, isn't it?

My server is an opteron-system with openSuSE 10.2 and all patches. I have never installed own packages for apache, php, mySql, ...

Does someone have any idea?

--84.58.139.249 18:26, 30 July 2007 (UTC)


 * A blank white page indicates a PHP error which isn't being printed to the screen. To force this, add the following lines to the <tt>LocalSettings.php</tt> file, underneath the <tt>&lt;?php</tt>:


 * You can also set a value for <tt>error_log</tt> in <tt>PHP.ini</tt> and read the PHP error log to find out what's going on. In some cases, PHP errors might also be recorded in the web server error log. robchurch | talk 21:55, 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)

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.
 * &rarr; Tim Laqua <sup style="font-size: 80%;">Talk | contribs  <sub style="font-size: 80%;">@00:59, 31 July 2007 (UTC)

SessionPath
When i tried to install MediaWiki the first time, there was a report: "Your session save path appears to be invalid or is not writable. PHP needs to be able to save data to this location in order for correct session operation. Please check that session.save_path in PHP.ini points to a valid path, and is read/write/execute for the user your web server is running under."

I checked session.save_path in php.ini (i've got root access to the server) and in was pointing to /var/lib/php/session/. I've set chmod for /var/lib/php/session/ to 777. Then i tried to install MediaWiki again. Installer reported me the same.

--85.141.91.40 23:26, 30 July 2007 (UTC)