Project:Support desk/old

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)
 * Has this been resolved?

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)
 * See http://en.wikipedia.org/wiki/Special:Version

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 ............. ............... ................ ............. .............. ............... ................... ...... ..................]


 * Yeah, I have the same on IE7. See if it's been reported in BugZilla - if not, go ahead and report it.

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?


 * Has this been resolved?

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)
 * GNU Date format (there are various options) - this is a common format: 2005-12-25 00:56:27 GMT

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)
 * Are you able to send via non-ssl, port 25 smtp? Also, have you tried using your hosting service's SMTP server rather than googles?

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?


 * Has this been resolved?

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 /*<![CDATA[*/ @import "/wiki/skins/monobook/main.css?7"; /*]]>*/ . Perhaps I need to change the media tag to something else?  I don't know how to change this though.
 * Are you still having problems w/ printable versions showing up in a serif font? Or has this been resolved?

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


 * Wouldn't it be more efficent to write a MySQL > DB2 SQL Cleaner function? And just preg_replace all the MySQL style stuff that conflicts w/ DB2?  How many syntax differences are there $DB2sql = preg_replace("/(WHERE.*?)('|\")(\\d+)\$2'/i",'$1$3',$MYSQLsql);Or is that crazy talk? User:Tim_Laqua/Signature|00:22, 3 August 2007


 * The problem there with SQL statements that get executed from PHP. Those statements are not hardcoded but they are built dynamically in many steps and MySQL accepts much more syntax than DB2.


 * I have to make changes in all functions that build those statements, but I don’t know exactly what those functions are and what purpose of each of them.


 * Could someone who is familiar with MediaWiki code help me to identify those functions?

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)

It is supposed to work....but it doesn't work. I mean, it work on the page of wikitex, but only in that page. :S --Johann 14:24, 31 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)

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)
 * Has this been resolved? If not, have you checked BugZilla for an existing bug report?

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)

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)
 * Has this been resolved?

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)
 * Has this been resolved?

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

--85.102.216.150 14:41, 30 July 2007 (UTC)
 * See Manual:Preventing_access

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 LocalSettings.php file, underneath the &lt;?php:


 * You can also set a value for error_log in 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)

Thank you for your hint. I got error-messages. In logfile: [Tue Jul 31 18:33:05 2007] [error] [client 192.x.x.x] ALERT - script tried to increase memory_limit to 62914560 bytes which is above the allowed value (attacker '192.x.x.x', file '/srv/.../LocalSettings.php', line 25), referer: http://.../index.php?title=New_test_page&action=edit [Tue Jul 31 18:33:05 2007] [error] [client 192.x.x.x] PHP Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 74 bytes) in /srv/.../includes/GlobalFunctions.php on line 1995, referer: http://.../index.php?title=New_test_page&action=edit The same error appears in the browserwindow: Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 74 bytes) in /.../includes/GlobalFunctions.php on line 1995
 * It looks like, some functions of php or an other system have problems with memory if I try to store special characters. What can I do to find those problems?

--84.58.161.208 16:56, 31 July 2007 (UTC)


 * I'm going to hazard a guess here that the additional memory usage is due to the use of a fallback function to count the number of multi-byte characters in a string. We would typically do this with the mb_strlen</tt> function, but where the multi-byte string functions for PHP haven't been compiled in or otherwise enabled, we provide a safe fallback which does the job, although it uses a slower method based on a dumb regular expression match.


 * Probably the best solution here is to make the multi-byte string functions available (see http://uk2.php.net/manual/en/ref.mbstring.php), or convince the server administrator to do this on your behalf if you're unable to do so. Typically this can be done by recompiling PHP using --enable-mbstring</tt> under Unix/Linux, or by enabling the php_mbstring</tt> extension module under Windows. robchurch | talk 20:38, 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)
 * Has this been resolved? 777 on the session.save_path should definately take care of it.

CSS Mediawiki with no Logo
i made my one Skin based on Monobook, but i dont find the line were i can put the Navigation up. I clean the p-logo line in "monobook.php" an the CSS but the Navigation would not come up.

--91.17.123.33 20:33, 31 July 2007 (UTC)
 * Has this been resolved?

"offline" off server use of MediaWiki or similar possible?
From what is available about MediaWiki on en.wikipedia.org, that is currently not possible, but...
 * 1) Is it being planned in the future version?
 * 2) What are some wiki softwares that can be used off line and have similar editing syntax, wikiTeX like MediaWiki, etc?

--Organizex 17:38, 1 August 2007 (UTC)
 * What do you mean by "offline" and off server? As long as you can install a webserver (usually Apache2), MySQL, and PHP Supoprt, you should be able to get it going.  Do you want to use it in an internal netowrk?  Or like locally just on your own computer?


 * Yes, that is correct. Organizex 08:43, 2 August 2007 (UTC)
 * Which? Local Network?  Or just Your Computer?

XAMPP Installation Problems
I recently setup XAMPP and extracted the mediawiki fodler into the proper location according to the setup instructions. When i goto http://localhost/mediawiki im gettin the 403 message Access Forbidden! Anyone know what i should look for to correct this? Thanks

--74.128.1.3 22:51, 1 August 2007 (UTC)
 * So this is the folder you copied the MediaWiki files to?
 * C:\Program Files\xampp\htdocs\mediawiki </tt>
 * and inside the mediawiki folder, you see LocalSettings.php and all the other files?

Edit thumbnails php files
Can someone can tell me where the GD functions are in mediawiki 1.10? I don't find them anymore in Image.php :s

Sorry for my bad english :$ --217.112.179.120 12:55, 2 August 2007 (UTC)
 * [wikiroot]/includes/media/Bitmap.php

How to handle nested XML tags
Hello there,

my name is Matteo and I'm writing from Italy.

I tried to find an answer to this question, always unsuccessfully, that's why now I'm posting here.

I'm writing an extension that should handle XML text created editing MediaWiki pages.

I registered an hook just like $wgParser->setHook( "mytag1", "renderer" ) where I would like to parse the entire XML and return the appropriate output.

The issue comes with nested tags, i.e. if I write:

This is just a test

the input passed to my hook function is only "This is just a test" without and the same happens for every other nested tags.

How can I solve this problem?

Many thanks in advance,

Matteo. --83.103.98.38 11:42, 3 August 2007 (UTC)
 * You must parse the 'inner' sections by yourself i.e. MediaWiki can't help you here, at least not directly. Check out Extension:XML_Class for some inspiration. Jean-Lou Dupont 15:08, 3 August 2007 (UTC)
 * It should all be passed to your function just fine - you want the wiki page to "display" those tags on the screen, you have to do like return htmlspecialchars( $input );</tt> to escape the special characters (like angle brackets).
 * Hello Tim,


 * many thanks for your quick reply. Well, I knew I had to parse the XML by myself, the problem is that the default parser doesn't pass the tags to me, as in the example above.


 * I don't think I had to modify the parser, what can you say about this?


 * Thanks,


 * Matteo.
 * Start with this - This should return the full tags escaped (so they display to the screen) - I tested your exact example.


 * This will simply render what's "inside" the tags (including random xml tags)

Table of contents
Sorry for the stupid question, but how do I create table of contents in articles? FAQ describes how to hide them, but I can't even see them! -217.10.43.49 15:48, 3 August 2007 (UTC)
 * Use the  magic words. Jean-Lou Dupont 15:51, 3 August 2007 (UTC)


 * Thanks! But is it possible not to type this every time I need a TOC? Like in Wikipedia or even here (I guess). 217.10.43.49 16:01, 3 August 2007 (UTC)
 * Not without an extension that would foul the parser. Check 'Parser::formatHeadings' method to see for yourself. Jean-Lou Dupont 16:25, 3 August 2007 (UTC)
 * You could use Extension:RegexNamespaceContext and create yourself an 'header page' for each namespace you require TOC to be present. Jean-Lou Dupont 16:34, 3 August 2007 (UTC)

Local Installation Question
I am looking for the instruction on how to install mediaWiki locally. If you know where to find it, Please give me the link to it. Thank much - —The preceding unsigned comment was added by Phungho2000 (talk • contribs) 12:16, August 3, 2007. Please sign your posts!


 * Installing locally is the same as installing for any other architecture. You simply access the page via http://localhost/ instead. See Manual:Installation

Updating
I am running MediaWiki 1.6.8, can I update to the current version or will I have to update step by step i.e. 1.6.8 to 1.6.9 to 1.6.10?

thanks for any help --70.67.167.157 01:38, 4 August 2007 (UTC)
 * Updating straight from 1.6.8 to 1.6.10 should be fine.

Misunderstanding
What I mean is can I update from 1.6.8 to 1.10.1 or will I have to go in order. --70.67.167.157 16:04, 4 August 2007 (UTC)
 * You can directly upgrade from 1.6.x to 1.10.x. See Manual:Upgrading_MediaWiki, and more importantly, once you download the latest release (1.10.1), examine the UPGRADE document.  This provides a solid overview of your options and what you need for the upgrade.

Separate read/write databases for MediaWiki
Hi Everyone,

Is there native support for replication (writes to one master db but read from multiple slave db) with MySQL in the current Mediawiki (1.10.1) revision? Googling shows an explanation that Wikipedia uses something like this, but does not give any specifics. I've tried searching for a plugin, as well as the install/admin docs. $wgDBservers looks like it might be the config info for read-only databases, but doesn't specifically say so.

Thanks much! -Frank

-64.142.42.56 01:43, 4 August 2007 (UTC)


 * Update - How do I mark a DB in wgDBservers as either DB_MASTER or DB_SLAVE?
 * From my understanding, you can't specifically mark a server as "DB_SLAVE", but I believe the $wgDBservers['load'] defines the ratio of DB_SLAVE traffic that is sent to that particular node/server - I'm not sure if that means you can set 'load' to 1 and then have ALL DB_SLAVE traffic directed to that node. Worth a shot I suppose.  ;-)  When you get a working $wgDBservers config, could you post your example?


 * $wgDBservers[0]</tt> (i.e. the first server) will be used as a master. In the standard MySQL replication setup, there is only one master. robchurch | talk 23:03, 6 August 2007 (UTC)

Hosting
What site is good for hosting MediaWiki? --Hye 04:39, 4 August 2007 (UTC)


 * I use www.siteground.com. -Virtualtoychest 13:27, 4 August 2007 (UTC)
 * I find that *most* hosts can do the job. some need less wrestling than others.  The last one that I setup was on a GoDaddy Econo-Linux plan - I had to set the .htaccess file to make *.php process w/ PHP5 and the ImageMagick path is non-standard.  These are common problems w/ cheap hosts.

Technical problems in the Latin Wikipedia
Since yesterday we are having technical problems in the Latin Wikipedia. Some/many talk pages are not displayed, I mean, they are displayed blank, there is not even a navigation on the top. See http://la.wikipedia.org/wiki/Vicipaedia:Taberna#Blank_talk_pages.

To whom should we report this problem? Thanks! -- http://en.wikipedia.org/wiki/User_talk:Roland2
 * Looks like they're all working now, right?

game server folder
what file do i put in game server folder so pr maps so on BFCC —The preceding unsigned comment was added by 24.205.52.103 (talk • contribs) 03:16, August 4, 2007. Please sign your posts!
 * Could you rephrase the question? I'm not sure what you're asking - did you possibly post your question on the wrong Wiki?

is there a tool for testing skins
I am not sure if this is the right place for this question, so I apologize if it is inappropriate here. The only way that I know how to test skins that I am creating is to upload them to my server. This is a real hassle as I make my fair share of errors and constantly have to upload the files. Is there a way to test them locally? (When I make an html file I can load it in my browser without uploading it.)

Also are there any other resources on the net for creating skins other than the skinning page, and the other users files?

-Virtualtoychest 13:23, 4 August 2007 (UTC)
 * Well, the only way to test the skin is to actually have the PHP intrepreter do it's thing. So if you want to test locally - Install MediaWiki on your computer.  Then you can test at http://localhost/wiki or whatever and then upload when you're done.  Also, I haven't seen much in the way of other "skin tutorials" or assistance - certainly the best referance I've used is other people's skins/code.

Load html file dynamically to Wiki page ?
Several html pages (they are hierarchically organised and with hyperlinks between them) are edited via svn at the moment and displyed as statis htmls on intranet (intranet web directory is a sandbox of this svn repository). We want users continue to use svn to update the files but want to upload these file new viersions automatically to wiki which is used as main intranet now. What we would need is something like put a link to html file to wiki page and that this html file is uploaded again each time it is updated in the svn repository is updated. Is this possible and how ? -89.212.41.151 14:18, 4 August 2007 (UTC)
 * See Extension:Include

help
i wanna be an admin on a wiki but the only admin hasnt edited in four months. the wiki is wikinorth24.109.218.172 17:28, 4 August 2007 (UTC)
 * You have to get in contact with the existing Wiki admin or find someone who has access to the webserver that the wiki is hosted on. You can't simply usurp someone's Wiki.  ;-)  If he/she set a catchall forward on his hosting account, you can usually email admin@theirdomain.com and it should forward to them (hopefully).  Good Luck!

wiki free hoster?
Is there any good or free (I know, they don't come together) hoster to install wikimedia on?. -66.130.120.174 22:00, 4 August 2007 (UTC)
 * Not that I'm aware of. The biggest hurdle w/ a free hosting account would be access to a MySQL database for the wiki backend.  As long as your hoster can offer PHP5 support and a MySQL database, you can *usually* get MediaWiki running.
 * Visit Funpic.de

Error in my_thread_global_end: 1 threads didn't exit
I have just installed MediaWiki into a Win2k3 environment and have the above error message on every page I view. The system seems to function but I have an aversion to error messages.

Environment Windows 2003 Server MediaWiki 1.10.1 MySql 5.0.24 PHP 5.2.3

I am a Wiki newby, I have looked in the forums and not been able to find a similar error. Can anybody point me in a direction to resolve...

TIA

John

-203.97.248.13 08:39, 5 August 2007 (UTC)
 * I know some people had problems with w/ libmysql.dll in the PHP 5.2.2 release, maybe there's still problems w. the 5.2.3 release - try downloading http://dev.mysql.com/downloads/connector/php/ (packages will contain libmysql.dll and php_mysql.dll) - replace your existing versions (In your PHP folder) with these versions of the files - see if that takes care of it.


 * Thanks, this appears to have resolved the issue. -John

Modrewrite and Mediawiki
Hi,

i am install my Mediawiki 1.10.1 on root/wiki/ but i could not rewrite my URLs. What must i insert on Localfile an .ht the Takes on mediawiki.org would not funktion. But Moderewrite is aktivtet (a wordpressblog works with Modrewrite).

Thanks

-91.17.79.194 15:36, 5 August 2007 (UTC)
 * See Manual:Short_URL
 * my Code in Localsettings.php
 * $wgArticlePath = "/wiki/$1";</tt>
 * in .htaccess

<pre style="margin-left: 4em;"> ''RewriteEngine On RewriteBase /~username RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^wiki/(.*) wiki/index.php?title=$1 [PT,L,QSA] RewriteRule ^wiki/*$ wiki/ [L,QSA] RewriteRule ^/*$ wiki/ [L,QSA]''
 * if i Type: **tp://arwen78.arwen.baumedia.biz/wiki/ i get an 301 to **tp://arwen78.arwen.baumedia.biz/wiki/Hauptseite but an 404 to. I dont know whats wrong? (Please dont link to the wiki)


 * 91.17.83.220 16:37, 5 August 2007 (UTC)
 * Hello again - Try this in your .htaccess

<pre style="margin-left: 6em;"> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^wiki/(.*) wiki/index.php?title=$1 [PT,L,QSA] RewriteRule ^wiki/*$ wiki/ [L,QSA]
 * That should work. - note, if you already have the RewriteEngine turned on for your wordpress rewrites, you don't need to turn it on again.


 * WOW it works. But if user type **tp://arwen78.arwen.baumedia.biz/wiki/index.php?title=Elektronik he get the Site. But i want rewrite direct the URL **tp://arwen78.arwen.baumedia.biz/wiki/Elektronik ! Did you now if this Script works?

<pre style="margin-left: 8em;"> RewriteCond %{THE_REQUEST} ?title=(.+) HTTP RewriteRule ^.*$ /wiki/%1? [R=301,L]

RewriteRule ^wiki/?(.*)$ /wiki/index.php?title=$1 [L,QSA]
 * 91.17.97.196 18:35, 5 August 2007 (UTC)
 * Not recommended. ;-)  index.php?title=xxx$action=edit is the query string used to edit an article, and rewriting it would make it impossible to edit anything - for the most part, all you can rewrite is base article view URLs.  So if you wanted to play around with redirecting JUST article title query strings, you would have to make sure there weren't any other arguments in the query string (like &action=edit) - here's the condition that should scope it down to just article views.  As for exactly what to use - I'd have to play w/ it, I've never rewritten them in that direction.  ;-)  Feel free to post your solution if you do decide to go that route.
 * RewriteCond %{QUERY_STRING} title=([^&;]*)</tt>

MediaWiki:Editsection
I want to change this from "edit" (actually, I want to get rid of the brackets too) to just an image like but the wiki markup isn't interpreted for this message. How can (and what do) I change (in) whatever PHP file (../includes/Linker.php?) necessary to enable this (but make the image link to the edit section and not the image page)? Perhaps there's an existing extension that uses Manual:MediaWiki hooks/editSectionLink to do just this I'm not aware of (Extension:DiscussionThread Article does somewhat but not for what I want)? -Eep² 00:55, 6 August 2007 (UTC)
 * Cool icon. Here's your extension - I made it as complicated as possible. Extension:Edit_Section_Link_Transform ;-)


 * Heh, thanks, but does it only work for MW 1.10+? I'm still on 1.9.3...though I guess this could be another reason to upgrade... -Eep² 02:49, 6 August 2007 (UTC)


 * Naa, it pry works fine on 1.9.x pry even 1.6.  I just write 1.10+ on everything I write because that's what I test on.  ;-)


 * But those hooks were introduced in 1.10 so they probably won't work in earlier versions... -Eep² 03:36, 6 August 2007 (UTC)


 * ParserAfterTidy, available from version 1.5.0. (or so says the hook documention)


 * OK, I got this to work (not the extension but using an image) by just putting <img src=http://upload.wikimedia.org/wikipedia/commons/a/a9/Crystal_Clear_action_configure.png width=16 height=16 border=0></tt> in MediaWiki:Editsection (with $wgAllowExternalImages = true;</tt> in LocalSettings.php, of course). Although the system message will render the image at full size (and show the HTML code), MediaWiki will render the HTML properly after putting the message through wfMsg</tt> (which doesn't remove the HTML). I also removed the brackets [ ] in Linker.php. -Eep² 03:36, 6 August 2007 (UTC)


 * Well, that sounds incredibly complicated!


 * btw, the extension is currently expecting those square brackets - so if you hacked Linker.php to omit brackets, the extension will be all confused (and just do nothing - the regEx won't match)


 * Well, does your extension keep the brackets and put them around the image? Cuz I wouldn't like that. :P Anyway, I'll stick with my "complicated" version for now but thanks for making the extension at least. :) Now I'm trying to get the edit link/icon to appear right after the section header text instead of all the way on the right side. Unfortunately, a CSS change from "float:right" to "float:none" is putting the edit link/icon on the left side (since it's declared first by Linker.php). I tried forcing .mw-headline</tt> "float:left" but then that pushes it under the edit link/icon. :/ Any ideas? -Eep² 04:32, 6 August 2007 (UTC)


 * The extension gets rid of the brackets. Note, 1.11alpha doesn't use hard-coded brackets anymore, it uses editsection-brackets (I'll make it tolerant to that once 1.11 is released.  As for your icon placement, you'll have to hack Linker.php again to change the way it throws the span in there.  Currently, the span is placed before the headline and float: right.  You'll have to remove the float and make Linker put it AFTER the headline.


 * OK, I tried moving this section: ...[removed for readability]...
 * But it didn't have any effect. :/ Perhaps the linker output is specified in another file? -Eep² 04:47, 7 August 2007 (UTC)


 * Moving functions around in a program never has any effect. ;-) Change makeHeadline to the following and and set .editsection { float:none !important; } in MediaWiki:Monobook.css (or Common.css). Mind you, i'm *assuming* that the only thing makeHeadline is used for is editsection links.  If it's used for other stuff, this could break it.




 * Thanks! That works well, but if the CSS isn't changed, the icon oddly appears under the header border. :/ -Eep² 16:11, 7 August 2007 (UTC)

A few questions.
Hi guys. Hope you can help. I have a few questions and hope you dont mind.

Question 1: Just wondering if MediaWiki has an extension for making Glossaries? I know there is the extension called Extension:Glossary, but this is not what Im after. This only gives you a tooltip feature.

Question 2: On the left hand side of each page (the sidebar), how to add extra entries to this sidebar, so that they will be available on each page of the wiki?

Question 3: With the Extension:Glossary, if you insert a word that exists in the Glossary Page into any page, then when you hover over that word, you get the tooltip (meaning) of the word, as retrieved from the Glossary Page. Is there any way to automatically HIGHLIGHT these words in the page as well as display the tooltip?

Thanku!

Simon -203.5.136.234 07:44, 6 August 2007 (UTC)


 * Questions about specific extensions should go on their relevant talk pages. I haven't used Extension:Glossary so I don't know what it can/can't do. However, if all you want to do is make a glossary, it's done easily enough "manually" creating each term's page and categorizing it under "glossary", or create a single page with all glossary terms on it. See sidebar for the other question. -Eep² 13:22, 6 August 2007 (UTC)


 * Thank you Eep²

MediaWiki and MS SQL
Is the installation with a MS SQL - Server instead of MySQL possible? -193.159.228.66 11:01, 6 August 2007 (UTC)
 * Negative. See Project:Support_desk/Archive9.

Security and MediaWiki
Hi guys. Dont know if you think this is silly, but because more and more companies see the great benefits of using this great product, I think security should become more of a priority. The ability to lock down sensitive information is really important, and although it might not be for some, the definition of what a wiki is, because it is such a great tool to use, why would you not want to put sensitive information on it in place for using something else that isnt as good and flexible? I hope you gurus out there that spend your precious time (that I thank you for :>) are also interested in making this product more secure for those of us that feel that way inclined. Thank you.

Simon

Changing the message sent when renewal sent out
Hi, Could someone please tell me how I change the message sent out when a password is renewed?

TIA Peter -85.118.170.181 18:51, 6 August 2007 (UTC)
 * Edit MediaWiki:Passwordremindertext on your wiki.

Where do I set Passwordremindertext
Hi Guys,

Sorry to be a pain but I am brand new to WIKIs. What is MediaWiki:Passwordremindertext and where do I find it?

TIA Peter -85.118.170.181 19:25, 6 August 2007 (UTC)
 * In the Search box (on your wiki), type MediaWiki:Passwordremindertext and click Go.

Email Configuration Question
I am looking for instruction on how to configure mediawiki to send Email locally. Thank you


 * See Manual:Configuration_settings

Error: Cannot redeclare property static public SpecialPage::$mList
I am trying to install Mediawiki 1.10.1 on a Suse Linux 9.3 with Apache 2.0.53, PHP 5.0.3 and MySQL 4.1.10a. After unpacking, the Mediawiki Config/Setup page tells me the environment is fine. After entering the details there Mediawiki creates the database and I get a success message. So I copy the LocalSettings.php to the parent directory and call my new wiki.

Problem: The Main_Page appears and looks good. However, whenever I click on any links refering to my Wiki (or try to create a new page), I get the following error:

Fatal error: Cannot redeclare property static public SpecialPage::$mList in class UnlistedSpecialPage in /srv/www/wiki/includes/AutoLoader.php on line 328

I reinstalled it several times, also tried Mediawiki 1.9. Same error all the time. I am guessing something is messed up with PHP / Apache setup, but I have no clue what. Both were installed using rpm-packages. Any help is greatly appreciated! Steffen

-84.72.78.136 13:21, 5 August 2007 (UTC)

Most Recently VISITED Pages
I've looked through the extensions and throughout the site and cannot find this, but I was wondering if it would be possible to make a page that displayed the most recently visited pages in the wiki.

Thanks. -Smaug 22:18, 6 August 2007 (UTC)
 * It would be possible, but you would to have to also create the mechanism to track page views. MediaWiki does not keep track of page views.  It could be done easy enough with an extension.  See  for instructions on Extension writing and examples.

Locking Down the Main Page and Page Templates
Hi Guys. Question 1:  Is there a way to lock down the Main Page to your wiki, so that it is not even viewable, until you log in? Question 2: Id like to be able to create page templates. So for example, this is what Id like to do. Build some template pages, and save them eg.with all settings Id like. Then, upon creating a new page, use/reference the template page Id like to use, so it inherits all the template's settings. Any help appreciated. Thank you. Simon
 * 1:Deny read access to anonymous users ['*'] - see Preventing Access
 * 2:See Extension:Boilerplate

Hi Tim...Mate thank you!

Sidebar and Categories
Hi Guys. Question 1: On the sidebar, is there a way to add another group? For example, on the mediawiki.org site, there is: Site, Download, Support, Development, Communication...each with their onwn sublinks. Id like to try and find out how to add these extra top headings such as Site, Download,Support, Development etc. Question 2: Also, is there any way to change the home page so that a Categories list is displayed instead? Question 3: On the page Special:Categories, it says you cannot edit this page. If you wanted to make a page with all the Categories listed (in order to then make it the home page for the wiki), how could you edit this? Thank you to all u great people! Simon


 * See sidebar and try an extension like CategoryTree or Dynamic Page List (which I use to put subcategory counts on manually-added categories on [http:/tnlc.com/wiki/ my wiki's main page]). Oh and you might want to make use of the "Show preview" button before saving a page, in order to reduce how many edit revisions a page goes through. ;) -Eep² 04:26, 7 August 2007 (UTC)


 * Q2, you can simply set up a redirect on Main Page to what you want that to be (which is what has been done here on MediaWiki.org). Something like   --Dr DBW 01:43, 8 August 2007 (UTC)

moving index.php from install subdirectory to root folder
I am trying to move the index.php file from the directory in which I installed mediawiki to the root directory of my site. I assumed that all I had to change was move the file, move the localsettings.php file and change the $IP parameter, but alas when I do this, I get a whole string of errors. I know I am missing something simple, but I can't for the life of me find information on the correct way to do this. Could you please point me in the right direction? Thanks - Martin

-41.241.19.231 04:19, 7 August 2007 (UTC)


 * You can't just arbitrarily move PHP files and expect any web application that uses them to continue working. See Manual:Moving a wiki but I think you want Manual:Short URL instead. -Eep² 04:43, 7 August 2007 (UTC)

By using FckEditor with Mediawiki...
I have modified MediaWiki version 1.10.1 to integrate FckEditor by following steps from http://mediawiki.fckeditor.net/index.php/FCKeditor_integration_guide. I have also modified some code in FckEditor's files to use font color, font size and background color.

And that features are working fine. I haven't test it much. But i just want to know is this is feasible  solution to show those buttons on editor or there is some other way also available?

And yes i have also try to use the alignment buttons but it is not working. So can you help me out to solve the above things. Like i need more features on FckEditor as FckEditor is providing in its latest version.

And yes this is really really major requirement to improve FckEditor on MediaWiki site.

Thank you Viral Shah
 * If you have problems with the FCKeditor extension (either of them) for MediaWiki, you need to contact the extension writer/programmer. I personally dont' see a problem with having those extra buttons enabled except for the fact that they insert HTML rather than wikitext.  Which is how you change the color anyway in wiki.  If you have further questions regarding FCKeditor, please contact the extension designers.

tag
What extension provides ability to use the  tag? And why doesn't it work with itself?

-217.10.43.49 18:51, 7 August 2007 (UTC)


 * -Eep² 19:20, 7 August 2007 (UTC)

Complicated if</tt> parser function statement
I want this template to accept a single parameter but change the output relative to what that perimeter is (unnamed and named). This code works correctly if I give an unnamed parameter (where it links to Wikipedia with it) and if I specify "wikt=whatever" (where it links to whatever) but if I don't specify a parameter it defaults to Wiktionary instead of Wikipedia (which I don't want). Also, I'd like the "wikt" parameter to default to  </tt> without having to specify a name ("wikt=name"). Did you get all that? Now, is it possible and, if so, how do I do it? ;)

-Eep² 19:55, 7 August 2007 (UTC)

2 Tabbed page in Mediawiki
I see a very simple two tab page (three pages - the tab header page, the first tab page, and the second tab page [described here].

The first line on the tab header pg. references Wikipedia:Tutorial/Tabs. How do I reference this line on an internal Mediawiki for my company to create a two page tab? What do I put on the first line of the tabs header pg. to make 2 tabs on a page? I tried making it an external link, but that did not work. -Pomykala01 20:25, 7 August 2007 (UTC)


 * What exactly is the problem you are having? Did you copy over all the templates onto your wiki? --Dr DBW 01:47, 8 August 2007 (UTC)

Failed connection to MySQL
I successfully installed MediaWiki and the Semantic Wikipedia from Ontoworld.org on a Windows machine with WAMP. I created my first pages but after a reset I'm getting the error message below, even though WAMP services including MySQL are successfully relaunched.

FirstWiki has a problem

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

Thanks for your help.

Mircea -216.48.88.11 20:38, 7 August 2007 (UTC)

Posting Questions
Hi guys hope you can help. Objective: We are trying to make our Issues List page more SECURE and lower the RISK of someone inadvertently deleting all existing issues eg.by possibly highlighting all issue sections and removing the wiki code. Our manager doesnt like the idea of this being a vulnerability and "manual" so to speak, in terms of posting, but I tend to think otherwise, and think that the following can be done without having to resort to another possibly paid$$ solution, with the help of a little magic by some of you gurus out there :>) Overview of our Problem: At our wiki, we have an Issues List Page with the following setup so far.. Summary of Issues                        (First Section of our Issues Page) - Issue 1 <1 line summary of Issue 1>  (Auto-inserted by creation of Issue 1 section) Issue 2 <1 line summary of Issue 2>  (Auto-inserted by creation of Issue 2 section) Issue 3 <1 line summary of Issue 3> (Auto-inserted by creation of Issue 3 section) Issue 1   (New Section)		         (added by clicking on [Edit] - This section is the core of the issue/problem. Issue 1  (Updates) (Auto-generated by creation of Issue 1 section) -  Update 1  (1 line update)             	 (added by clicking on [Edit]  Update 2  (1 line update)              	 (added by clicking on [Edit]  Update 3  (1 line update)               (added by clicking on [Edit] Etc etc  Issue 2   (New Section)		         (added by clicking on [Edit] - This section is the core of the issue/problem. Issue 2  (Updates) (Auto-generated by creation of Issue 2 section) -  Update 1  (1 line update)             	 (added by clicking on [Edit]  Update 2  (1 line update)              	 (added by clicking on [Edit]  Update 3  (1 line update)               (added by clicking on [Edit] Etc etc Comments about our page:  In the first section (Summary of Issues), a line for each Issue posted in subsequent sections on this page is automatically generated and appended to existing 1 liners in the "Summary of Issues" section, as soon as a user adds a new issue (by creating a new section at the bottom of the page). This serves to have a high level overview of all issues outstanding. When a new issue is created, 2 sections are autocreated: a section for that issue, AND a section called Updates for updating that particular issue. The summary line for the issue comes from the first section (of 2) for the new issue. Problems with our exising setup:  A user can by mistake, click on [Edit] - from various places on the page, and completely remove all Issues, and updates. What we would Ideally Like: - Not allow editing of existing issues/updates, by anyone other than the creator of that issue/update. - Functionality similar to what is on your(this site) whereby: At the top, you have: > Click HERE to post a new question <. When you click on it, you have a Subject/headling section, then the text box. In this text box, no other wiki code for other sections is visible, which lowers the risk of those other sections being tampered with. I just wanted to know firstly, how you guys did this, so that no other wiki code for other sections is there in this text box, to remove the possibility that someone could delete all posts? This is a really good idea and hope to use this, but dont know how. At the moment, we click on edit, and all section wiki code is there, so anyone could by mistake, mess things up. - Another option we'd like possibly is to completely remove the edit tab next to each section for ALL USERS other than the creator of the section/update/issue so that only the initial creator of the section can edit it, and for others, it is either invisible, or no access. -What we'd like to do is to try and mimic this functionality on our wiki, as this facility you guys have done is great! Sorry for this post being so long. Any ideas greatly appreciated. Thank you. Simon -58.175.34.89 21:24, 7 August 2007 (UTC)

Email does not work
Hello All: I've setup the following in my LocalSetting.php for sending Email but does not work. I used apache_2.2.4-win32-x86-no_ssl.msi as server. php-5.2.3-Win32, mediawiki-1.9.3, Please help. Thanks in advance

$wgSitename        = "my_company_site"; $wgEmailAuthentication = true; $wgEmergencyContact = "myname@innovint.com"; $wgEnableEmail = true; $wgEnableUserEmail = true; $wgPasswordSender = "mypassword@innovint.com"; $wgSMTP = array('host' => "pop.slkc.qwest.net",'IDHost' => "innovint.com",'port' => 25,'auth' => false,'username' => "myname@innovint.com",'password' => "mypassword");


 * Well, for starters, POP is a read protocol, not designed for sending email, so that host name seems to be wrong. You'll also need to install the PEAR::Mail</tt> module in order to use $wgSMTP</tt> for sending mail. This can be done from the command line via <tt>pear install Mail</tt> when PEAR itself is installed. robchurch | talk 01:45, 8 August 2007 (UTC)

MediaWiki has been successfully installed.
Hi guys. Just wondering how you remove the line: "MediaWiki has been successfully installed. " on your Main Page. Thank you. Simon -58.175.34.89 21:43, 7 August 2007 (UTC)


 * Click the "edit" link at the top of the page
 * Remove the text
 * Click "Save"
 * robchurch | talk 01:42, 8 August 2007 (UTC)