Project:Support desk/old

Thumbnails Not Working
I get an error for thumbnails: "Error creating thumbnail: sh: convert: command not found". My LocalSettings.php includes the line '$wgImageMagickConvertCommand = "/usr/local/bin/convert";' and this is the correct path for the convert executable. And it has execute privileges for all users. Any idea what could be wrong? (Reinstalling ImageMagick did not help either.)—99.236.141.81 04:16, 4 December 2007 (UTC)


 * Hi, I encountered the same problems like you before. Are you using a webhost to host your site? If so, this thing requires your webhost to do something as it involves some server security features. &mdash; PM Poon 12:26, 4 December 2007 (UTC)


 * No, I am not using a webhost. I'm using MediaWiki 1.11, Apache 2, PHP 5, and MySQL 5. —99.236.141.81 19:17, 4 December 2007 (UTC)


 * Perhaps I should have mentioned that the files involved were SVG files. —99.236.141.81 19:28, 4 December 2007 (UTC)


 * Try setting $wgSVGConverterPath to /usr/local/bin --Nad 20:25, 4 December 2007 (UTC)


 * Well, it works now. Thanks! —99.236.141.81 21:48, 4 December 2007 (UTC)

I had this same problem before I upgraded to 11, I haven't uploaded any images yet, I am still trying to restore my database. PatPeter 01:56, 8 December 2007 (UTC)

Infoboxes
I'm experiencing a small problem with the infoboxes I created for my site, as they do not remain stuck to the right hand side of the screen when I minimize the window and, instead, they remain at the position defined in the code (so I have to scroll right in order to see them. Here is the code I edited for the infobox template header I am talking about: class="infobox vcard" style="border:1px solid #ccd2d9; width:25em; background-color:#fffccc; text-align:left; padding-left:0.5em; padding-right:0.5em; font-size:90%; margin:0 0 1em 68em;" cellspacing="5" cellpadding="1" Am I doing anything wrong? -SupervladiTM 07:59, 4 December 2007 (UTC)
 * You have a 68em left margin, you'd probably be best doing a float:right instead --Nad 20:15, 4 December 2007 (UTC)
 * Thank you. -SupervladiTM 11:26, 5 December 2007 (UTC)

Install on SQL Server?
Can I install the latest release of MediaWiki using SQL Server instead of MySql? If so what (if any) changes do I need to make to the install script(s)?

We are running Windows Server 2003, IIS, SQL Server, and PHP5.

Thanks in advance.

Joe Mayo —63.117.221.135 15:55, 4 December 2007 (UTC)


 * Nope, there is no support for MSSQL at the time, and I don't think there will be in the near future. — color probe — Talk  — Contribs 19:05, 4 December 2007 (UTC)

Bold text

Installing on php compiled with mysqli instead of mysql
My server is compiled using --with-mysqli instead of --with-mysql. When I try to run the setup, I get this message:

* PHP 5.2.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

Version of MediaWiki: 1.11.0

Todd —159.116.208.109 20:52, 4 December 2007 (UTC)

Labelled Map Template
Hi, I am trying to use Asia Labelled Map template from Wikipedia but the labels do not overlay exactly when I change the size of the map as in my website. The instruction for doing so is actually very simple, ie. all widths must be set to the same number, which I have already done accordingly. What could be the possible reason? Could be due to some Common.css scripts? &mdash; PM Poon 21:06, 4 December 2007 (UTC)

Running:
 * MediaWiki: 1.11.0
 * PHP: 5.2.3-1ubuntu6.2 (apache2handler)
 * MySQL: 5.0.45-Debian_1ubuntu3-log

Works fine with Firefox on the local machine, or IE on a remote machine. However, Firefox on a remote machine asks me what I want to do with the PHP file when I ask for the index page, which it thinks is of the type application-xhttpd-php. I've added:

AddType text/html .php

AddType text/html .php5

To the mime.conf file of Apache2, it doesn't make any difference. Any suggestions?

James Turner Senior Software Engineer, Kronos Labs Kronos, Inc jamesturner@kronos.com

—158.228.58.31 21:10, 4 December 2007 (UTC)

Posible to hide sites from normal users?
—62.225.191.42 07:50, 5 December 2007 (UTC) HI there

I want to creat a wiki for my firm. What i want to do is, that normal users can read all pages like usual but some special sites are only available for Admins or another group that doesnt realy matter. I checked the Help:user rights but its not that what i want to enable read or edit for all of the usergroup i just want to disable it on special sites

thx for help -62.225.191.42 07:54, 5 December 2007 (UTC)


 * See Manual:Preventing access. You will notice that there isn't a good built-in function in MediaWiki for restricting access to specific pages. $wgWhitelistRead might get what you need (restrict access to all but a few pages). You could also try a page specific user rights extension. Note that MediaWiki was not designed to protect sensitive data, and there might be flaws which will still allow users to see pages. Also see security issues with authorization extensions. — color probe — Talk  — Contribs 11:45, 5 December 2007 (UTC)

External Links in new tabs/windows?
Hi, how can I say to the mediawiki, that every external link should be opened in a new browser tab/window? Like target="_blank" in html. —213.214.18.64 13:59, 5 December 2007 (UTC)
 * Ah I got it Manual:Opening_external_links_in_a_new_window --213.214.18.64 14:49, 5 December 2007 (UTC)

Multiple Choice - 1and1
I am using a 1and1 hosting server and tried to install MediaWiki 1.11.0. I copied the files to the host, and when i try to run the installer, it says: Multiple Choices The document name you requested (/config/index.php) could not be found on this server. However, we found documents with names similar to the one you requested. Available documents: * /config/index.html (common basename) Please consider informing the owner of the referring page about the broken link.

I looked, and both the index.php and index.php5 are in the right folder? —66.16.229.16 23:05, 5 December 2007 (UTC)

MediaWiki & Apache
Hello, am looking at installing MediaWiki on two Windows Server 2003 Web Edition platforms, using the second as a fallover server. Will don't have PHP or MYSQL on the servers, so will have to install PHP & MYSQL, but we do have a version of Apache (2.0.4) running already. Can we install MediaWiki with this existing Apache version ?? Or will I need to upgrade to Apache 2.2.6 ?? Cheers, Cameron--125.254.4.28 05:36, 6 December 2007 (UTC)


 * I'm running an older version of Mediawiki with Apache v.2.0.55 so it shouldn't be a problem. Mazi

Different Syle - HowTo "install" on the server
I know, that MediaWiki is not responsible for the different styles, which you can get from: http://meta.wikimedia.org/wiki/Gallery_of_user_styles

But anyway it yould be good, to get an explaination, how to install it on the server, so everybody uses this style. This would make the Wikimedia fit more the personal/ company belongings.

So does anybody could explain, who to integrate for example the: Grey lady look

Thanks fr your help!

—193.16.48.5 15:08, 6 December 2007 (UTC)

Upload new version not working
I am using MediaWiki for an internal intranet wiki at work, but we have discovered that attempting to upload a new version of a file does not seem to be working - MediaWiki reports that it uploaded the file successfully, but the copy on the server is still the old one; MediaWiki does not replace the file with the new version. Does anyone know why this is happening? Is there a way to fix this?

Thanks! —82.68.75.38 17:09, 6 December 2007 (UTC)

all messages
um my problem is that the allmessages special page won't appear up after my migration see l3ga.tk —86.90.194.103 17:59, 6 December 2007 (UTC)

You mean this link: ? PatPeter 02:00, 8 December 2007 (UTC)

Right! It's that link, however I mean that site, the http://l3ga.ferrywijsman.nl/Special:Allmessages doesn't work! Please help me. 86.90.194.103 10:09, 8 December 2007 (UTC)

DschosCalendar
Hello All. I recently installed MediaWiki on a SME server I have running. The installation went smoothly, and we already have users starting to play with it. However, I attempted to install the Dschos Calendar, I was unsuccessful. I created the DschosCalendar.php and calendar_template.html files using touch and pico as requested in the documentation below.

>Copy DschosCalendar.php and calendar_template.html into the extensions/ directory. Then, I attempted to follow the directions below. The first request went fine. When attempting to edit the "MediaWiki:Calendar-url" I found it did not exist. Do I just create it? That is what I tried, and the calendar still does not show up.

''>You might want to edit the sidebar: just edit the page MediaWiki:Sidebar, add a line '** calendar-url|calendar', then edit >the page MediaWiki:Calendar-url to contain just the string Special:Calendar, and the page MediaWiki:Calendar to contain just >the string Calendar. This will add the calendar to your navigation menu on the left side.''

Lastly, I attempted to follow the instructions below:

''>Changes to LocalSettings.php >require_once("$IP/extensions/DschosCalendar.php");''

Putting the line at the top of the script caused MW to crash. Puttin it under the existing "require_once" line also did not correct the problem.

If someonw would lead me in the correct direction, I'd gladly edit the install page to better assist non PHP programmers (like myself) to get this working.

Chris Curtis

Labelled Map Template
Hi, I am trying to use Asia Labelled Map template from Wikipedia but the labels do not overlay exactly when I change the size of the map in my website. However when I tested the same text in Wikipedia, it worked perfectly. What scripts am I missing in my installation? — PM Poon 20:02, 6 December 2007 (UTC)

Copyright Icons
How do I change the copyright shown in the bottom left? And can it be done on a per-namespace basis? There doesn't seem to be a MediaWiki page that handles this. —99.236.141.81 21:24, 6 December 2007 (UTC)

Hi, the copyright information is in your LocalSettings.php. As for per namespace basis, I am not knowledgeable enough to give an answer. Hope Nad or someone else will come to your rescue. &mdash; PM Poon 14:31, 7 December 2007 (UTC)
 * Set $wgUseDatabaseMessages to true in your LocalSettings, then you can change any of the interface text messages directly from the wiki articles listed in your Special:Allmessages page. You can do this on a per-namespace basis by adding appropriate conditions into the wikitext of the message, eg


 * Note that you need the ParserFunctions extension installed to use #if --Nad 22:08, 8 December 2007 (UTC)
 * Sorry I only just noticed you said "icons" not "text" - use $wgCopyrightIcon and change on a per namespace basis by cheking $wgTitle->namespace --Nad 22:13, 8 December 2007 (UTC)

toolbox and titles of pages
I have several questions because I didn’t find a solution for my problems in this website:
 * First question: I am administrator of a mediawiki and I would like to render the toolbox invisible for not registered users.
 * Second question is about the titles of pages: I would like to change their style for instance, center the title of the article, change the colour of the title,....

I thank you for your help.
 * 1.) Nad should be able to help you with this. I remember having read about this before but I can't find it. Try searching the mediawiki helppages or search with google for "mediawiki", "toolbox" etc
 * 2.) This can be set in your css-file which should be monobook.css.
 * Mazi

Link to a file or folder does not work
Hi,

I tried to link to an folder or file with html and wiki syntax. Both does not work. Here is what i tried:

txt datei im Windows Ordner



With http all links are recognized but file seems not to be supported ? Or is it somewhere hidden in the configuration?

Hi, to use html code, you need to enable your Rawhtml in your LocalSettings.php, but this will compromise security considerations. I have read somewhere that you can actually enable specific html codes by listing it one by one without enabling rawhtml. However, I cannot find the source now. Should you find it, please let me know. I also want to add html codes to my pages but am worried about hackers and vandals. &mdash; PM Poon 14:36, 7 December 2007 (UTC)

templates, buttons and editor
3 questions: 1. how do I insert this template on my wiki? http://en.wikipedia.org/wiki/Template:Infobox_VG like this too: http://www.mediawiki.org/wiki/Extension:Polyglot (the box in the right of the page)

2. how do i insert buttons like in this wiki: http://www.wikia.com/wiki/MediaWiki if you look in the footer you will see: Rate this article, Share this acrticle -> digg, del.icio.us, stumbleupon, etc

(last one) 3. i can't remember where, but in a wiki a saw some extra buttons in the editor bar... is there any reference about this? sorry for too many questions, is just that i want to learn more :p thanks btw —foxfirediego 10:56, 7 December 2007 (UTC)

displaying flash files in navigation/ as logo
hi i created a small flash animation that should be placed as the logo in the topleft, or somewhere in my navigation in order to do this i installed a flash extension. with tags i can display flash files. when i edit my navigation and add a line with the swf tags the animation is shown in my wiki text but not in my navigation. when i add my animation as the logo in the top left this place stays empty... who knows how to display swf files at these places? ben —130.60.53.185 13:05, 7 December 2007 (UTC)
 * SOLVED
 * I had to change the normal sidebar text in my monobook.php into wikitext. Now i can do with the sidebar everything i can do with normal wikitexts...

How to Create a New Log?
--Abercrombie 19:19, 7 December 2007 (UTC)
 * 1) Is there a way to log visits to a specifc page?
 * 2) Is there a way to log opening (downloading) of a specific image?
 * You're probably best using your webserver access log for that kind of logging - or a program which generates reports from the access logs such as webalyser etc --Nad 22:01, 8 December 2007 (UTC)

Manual:Backing up a wiki
It tells you how to back up the wiki, but where are the actual database files? Where are the files that contain all the wiki pages? PatPeter 19:44, 7 December 2007 (UTC)
 * You should not back up a wiki from the files because it makes the backup very unportable - ie you may have trouble if you try and restore the backup on a different version of mysql or even the same version with different environment settings. You should always backup from a mysqldump (or another program such as phpmyadmin which uses mysqldump for you). --Nad 21:59, 8 December 2007 (UTC)

Remove display of redirects
Hi, whenever a page is accessed from a redirect, there is a display of it at the top of the page. How do I remove that? &mdash; PM Poon 01:31, 8 December 2007 (UTC)
 * Just go to the page without using the redirect, its that simple. PatPeter 01:47, 8 December 2007 (UTC)
 * Hi, thanks for the reply. The problem with the display of the redirect is that it messes up my page layout and it looks very unsightly because it does not jiffed in with a few other changes that I have made. I believe that there must be a way, just like you can take away the words "From Wikipedia, the free encyclopedia" at the top of each page in Wikipedia. &mdash; PM Poon 10:29, 8 December 2007 (UTC)
 * The redirect is in a div with id="contentSub" so adding a css rule to your MediaWiki:Common.css saying #contentSub { display:none } will get rid of it. But there may also be other things that show up in the contentSub id which won't show up either, but I'm not sure. --Nad 21:55, 8 December 2007 (UTC)

'''Thank you very very much, Nad. That was perfect! How can this site everdo without you!!! &mdash; PM Poon 08:04, 9 December 2007 (UTC)

How do you make it so that redirects are italicized?
When they display in Special:Allpages, like Wikia does? PatPeter 02:08, 8 December 2007 (UTC)
 * Put

.allpagesredirect { font-style: italic; } in your MediaWiki:Common.css. --MF-Warburg 13:30, 8 December 2007 (UTC)

Initial installation problems - error in your SQL syntax
Everything went well until this message came up. I'm learning MySQL, PHP, and installing this Wiki as part of my start [thus a new user]. Running Win2K.

MediaWiki 1.11.0 Installation Don't forget security updates! Keep an eye on the low-traffic release announcements mailing list. Checking environment... Please include all of the lines below when reporting installation problems.

PHP 5.2.5 installed Found database drivers for: MySQL PHP server API is isapi; using ugly URLs (index.php?title=Page_Title) Have XML / Latin1-UTF-8 conversion support. Session save path (C:\Spool\TempFolder\Session) appears to be valid. PHP's memory_limit is 128M. Couldn't find Turck MMCache, eAccelerator, APC or XCache; cannot use these for object caching. GNU diff3 not found. Couldn't find GD library or ImageMagick; image thumbnailing disabled. Installation directory: C:\Inetpub\WWW\Wiki Script URI path: /wiki Installing MediaWiki with php file extensions 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 root...success. Connected to 6.0.3-alpha-community Database wikidb exists Creating tables...Query "CREATE TABLE `user` ( user_id int unsigned NOT NULL auto_increment, user_name varchar(255) binary NOT NULL default , user_real_name varchar(255) binary NOT NULL default , user_password tinyblob NOT NULL, user_newpassword tinyblob NOT NULL, user_newpass_time binary(14), user_email tinytext NOT NULL, user_options blob NOT NULL, user_touched binary(14) NOT NULL default , user_token binary(32) NOT NULL default , user_email_authenticated binary(14), user_email_token binary(32), user_email_token_expires binary(14), user_registration binary(14), user_editcount int, PRIMARY KEY user_id (user_id), UNIQUE INDEX user_name (user_name), INDEX (user_email_token) ) TYPE=InnoDB " failed with error code "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=InnoDB' at line 20 (localhost)".

After my MediaWiki 1.11.0 download, I didn't change anything, and was following the online instructions for install.

Help is appreciated!

— 19:33, 8 December 2007 (UTC)

The layout of main page has problems
The search function should be put at the top. Google did a better job in page layout, and it improved often. Now, it puts all of its options at the very top --76.68.123.15 20:30, 8 December 2007 (UTC)

Automatic replacement of string from more than one page
Hi Nad, refer to your response at [Project:Support_desk/Archive_11#Automatic_replacement_of_string_from_more_than_one_page at Archive 11] on 6 September. I have uploaded Extension:Simple Forms successfully to my server and configure my LocalSettings.php accordingly.

I have also downloaded Yi-bot but am at a loss as to what to do with it so I uploaded it into my Extension folder? How do I activate it? Sounds so silly, hehehe, but I have never used a bot before. &mdash; PM Poon 08:17, 9 December 2007 (UTC)

—220.131.76.228 08:38, 9 December 2007 (UTC)

Remove buttons
Hello, I need remove math and media buttons from my encyclopedia editing toolbar. How I can do that? Thank you. --88.222.212.231 10:47, 9 December 2007 (UTC)