Project:Support desk/old

__NEWSECTIONLINK__

Edit Toolbox disappeared after using skin in 1.9.2
The edit toolbox disappeared once I applied a skin. The skin has the code for toolbox intact and it works prior to 1.9.0 msg('toolbox') ?>

Edit Link has changed after upgrading to 1.90
Since upgrading to 1.90, the [ edit ] link is now on the left of the header and is in the same font as the header for all pages. It's not that bad, but I'd like to go back to the nice, small links on the right. How do I fix this?

Example from my Site


 * Suspect you need to edit the template that you are using. Can't really help beyond that, sorry, might get you going in the right direction though. --Dr DBW 22:44, 8 February 2007 (UTC)
 * Add the following CSS rule to your "MediaWiki:Monobook.css" page:

div.editsection { float: right !important; }
 * To size down the text, you might want to end something like font-size: 50% !important; before the closing brace. -- 85.177.33.102 13:32, 16 February 2007 (UTC)

How to Replace the default WYSISWYG editor into mediawiki?
Hi everyone,

My name is Dominick and I'm looking for some help. I would like to change the default html editor that is into mediawiki by TinyMCE. But I have no idea on how to do it. I already did some search on google by it was unsuccesful. Can you please guide me through some help or explain me how to do it.

I also checked the instruction on tinemce web site and I didn't catch how to with their explanation.

Thanks. Dominick


 * Links to details that you did find? What don't you understand about their instructions? --Dr DBW 22:42, 8 February 2007 (UTC)

Help pages
I followed the procedures in Help:Import and Help:Export to import the help files from META to my newly installed wiki. I noticed that some templates were being refered to by these pages, such as Template:H:h and Template:H:f. So i imported them also. But I still get the following strange text string on some of the help pages:

Could anyone clue me in about this? How do I get it to work correctly?


 * m:Template:H:h refers to m:Template:H:h Help; since it uses #if you need ParserFunctions. You can also replace Template:H:h by your own version (some header) or blank it.--Patrick 00:03, 5 February 2007 (UTC)

Problems upgrading mediawiki 1.4.5 to newer versions. German Umlaute are shown as question marks.
Hello,

i want to upgrade my mediawiki 1.4.5. to an actual version. First I tried directly to upgrade to version 1.9, but the upgrade script "upgrade1_5.php" to convert the database to utf fails with message:

Warning: fopen(maintenance/archives/patch-interwiki-trans.sql): failed to open stream: No such file or directory in /var/www/mediawiki/includes/Database.php on line 1959 Could not open "maintenance/archives/patch-interwiki-trans.sql".

I've tried also to update to version 1.5.8. Here the german Umlaute are shown as question marks.

Thanks

Daniel

SEARCH is Broke
I made a page.. and added content with a 3 letter abbreviation.. and MediaWiki does not pick it up...

The link would be my address:...?title=Chitchat:HEllo_ABC_123

then I would search for ABC and it shows no results unless i do a verbatim search

Any Ideas?

Editing Toolbox?
Is this possible? What I was hoping was to get Recent Changes to appear as an item within the Toolbox so as to have more convenient access to it from any page


 * I'm looking for a way to do this, too. So far i found only this: http://cs.wikipedia.org/wiki/MediaWiki:Common.js helix84 11:16, 15 March 2007 (UTC)

$WgImportsources not working
Can't upload any pages from Meta.... it's not working for some reason, why?? I added it to Localsettings.php as follows: /** * List of interwiki prefixes for wikis we'll accept as sources for * Special:Import (for sysops). Since complete page history can be imported, * these should be 'trusted'. * * If a user has the 'import' permission but not the 'importupload' permission, * they will only be able to run imports through this transwiki interface. */ $wgImportSources = array(metawikipedia, wikitravel);

/** * Optional default target namespace for interwiki imports. * Can use this to create an incoming "transwiki"-style queue. * Set to numeric key, not the name. * * Users may override this in the Special:Import dialog. */ $wgImportTargetNamespace = null;

/** * If set to false, disables the full-history option on Special:Export. * This is currently poorly optimized for long edit histories, so is * disabled on Wikimedia's sites. */ $wgExportAllowHistory = true;

/** * If set nonzero, Special:Export requests for history of pages with * more revisions than this will be rejected. On some big sites things * could get bogged down by very very long pages. */ $wgExportMaxHistory = 0;

$wgExportAllowListContributors = true ;

Anyone able to figure this one out?? --82.42.237.84 22:49, 5 February 2007 (UTC)


 * What values are in the array? Perhaps it should be $wgImportSources = array("metawikipedia", "wikitravel"); -- 85.177.33.228 21:15, 21 February 2007 (UTC)

Search over more than one Wiki
We have 3 Wikis and want to centralise the searching. This Wikis are all installed on a single VM utilising the same LAMP environment. Is there any solution?
 * Oh it must be said, that these Wikis are for internal use. It can't be indexed with google, or something like this.
 * If a wiki search solution doesn't fit or can't be reworked, you may want to use IBM/Yahoo's free OmniFind product. It crawls and indexes wikipedia sites very nicely. It also gives you the ability to customize the interface so it's not "Yahoo'ed". I've had really good success with it - just read the forms on their support site for tips on how to prevent indexing in circles...
 * Sounds good, thanks! We'll check that.
 * How about a different approach using three dedicated namespaces within a single Wiki? If this was a way to get this fuctionality would there be any tools availiable to migrate existing wiki contents into this newly created namespaces?
 * Are there tool available to migrate a full wiki to a namespace ... but there are problems with the rights ... not all are allowed to read and write in different wikis. so namespaces are interessting but not a good solution for us i think ... but i will consider it if its not so a big reorganisation. --Conni 08:18, 16 February 2007 (UTC)

$WgLogo
$wgLogo      = "/DIRECTORYPATH/MEDIAWIKINAME/images/FOLDER/FOLDERNAME/IMAGENAME";

This worked for me when I installed 1.9, $WgLogo doesn't work on newer versions, doesn't appear in LocalSettings.php --82.42.237.84 12:50, 6 February 2007 (UTC)

domjj6jykk,jklj 5jj55jj uj65

DefaultSettings.php
Okay, so I made a mistake instead of adding the FileExtensions to LocalSettings.php I modified DefaultSettings.php

Now nothing works, is there a way to repair the DefaultSettings.php


 * Get it from a fresh installation. Download and unzip it on your own computer, and then copy over the fresh file to your server. --Dr DBW 22:41, 8 February 2007 (UTC)

Wiki hacked by Turkish hacker (iskorpitx)
My wiki was defaced by iskorpitx. He basically replaces the index.php page with his own. What is the easiest way to reinstall and how do I prevent this in the future?


 * I suspect you may find that this has nothing to do with MediaWiki, but rather a hacking of the server itself. They had to get in there to be able to write a new index.php page, which is not the wiki one.  You can't do this via MediaWiki.  Your server provider should be able to find out how they got in there.  --Dr DBW 22:56, 8 February 2007 (UTC)

How do I use as a parser function?
TylerRick 18:56, 6 February 2007 (UTC) I'm trying to make a template that creates a link to a category, but I don't want the link to include the "Category:" part -- just the base page name. So far I have:

&#091;Category:&#093;

I know is technically a variable, but I'd like to use it as a parser function / a template that accepts arguments. I'd like to be able to do something like this, but none of these work:

Any ideas on how I might accomplish this or is it not currently possible?


 * You can simply make a piped link Category:. To extract a part of a string you would need the StringFunctions extension.--Patrick 00:38, 7 February 2007 (UTC)


 * Thanks for your help. --TylerRick 06:44, 7 February 2007 (UTC)

Stewards?
How do i setup stewards on a series of wikis?


 * I got it mostly setup with Special:Makesysop, but now how do i make Special:Userrights to where they can enter (username)@(wiki) to set the account memberships up?

Database Error after updating to 1.9.0
I'm getting the following Error Message when I attempt to save Page Edits:

"Database error 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 "Article::updateRedirectOn". MySQL returned error "1146: Table 'nameddb.redirect' doesn't exist (wiki.domain.com)"."

I have to try re-saving several times before it finally saves.

Also noticing that the Date / Time Stamp shortcut are not working (i.e. using the date ~'s)

Thank you.


 * You haven't updated your database. Either add the tables and fields manually, or run maintenance/update.php from the command line (php update.php within the correct directory), or reinstall the wiki through the installation wizard (but use the same settings as you did on the first install.) If you do not have access to the command line, you can use phpshell to gain access. Ronald Ping Man Chan 06:46, 7 February 2007 (UTC)

^^ Thank you - this resolved the issue!

2 wikis with one user table
I want to install a 2nd wiki with an own database on my server. But users on the 1st wiki shall also be able to login to the 2nd wiki. I think, the best way to realize this, is that the 2nd wiki shall use the user table of the 1st wiki, which is in another database. What do I have to change in the user login- and logincreation-formform, that the other database is used. Can anyone help me???

Form variables
Is there a way to read variables sent to the page, such as...

http://localhost/index.php/Main_Page?name=Travis

...where 'Travis' was assigned to 'name' from a form?


 * Yes, with extension DynamicFunctions.--Patrick 23:25, 7 February 2007 (UTC)


 * I tried but it doesn't translate to the variable or the default value.  Is displays as the function itself.


 * It works for me. Note that it is an extension. It has to be installed.--Patrick 17:11, 8 February 2007 (UTC)

texvc.ml vs. OCaml
Hallo, I tried everthing, but I can't run TeX in my mediawiki. I have an XP-platform and installed xampp. I have OCaml and ImageMagick installed. The Compilation of the texvc.ml gets Exceptions. I do know nothing about Ocaml and Makefiles, but want to create a MathWiki for my Math-Lessons. Is there anywhere who can help me? Readme an google are not realy good. thx, Ingo Roseneck My email: iroseneck@web.de

Ability to add a header and footer to Mediawiki?
I would like to keep some consistency within all pages on my website and as such need to add a header.htm and footer.htm page to my MediaWiki section.

Has anyone done this and if so can you give some pointers. I don't see an easy way to do it.

Thanks,

Trying to find value similar to a.new in main.css file...
I'm trying to change the colour of the red links in my wiki to a different colour, since it clashes with the background I set...

I looked all over the main.css file in my skin, and I found the entries a.new, #p-personal a.new and a.new:visited, #p-personal a.new:visited, but changing them only changed the colours of the red links outside of the articlespace (for example, a userpage that did not exist), but all of the links in the article stayed red...

What's weirder is that changing a.new:visited, #p-personal a.new:visited also changes the colour of the links IN the articlespace, which is what I was going for... How can I get the red links to be a different colour?

Thanks in advance! Kareeser|Talk! 00:20, 8 February 2007 (UTC)


 * Apply the following CSS rule:

a { color: #xxxxxx !important; } .new a, a.new { color: #yyyyyy !important; } Where #xxxxxx is the new color for the "blue" links and #yyyyyy is the new color for the "red" links. -- 85.177.33.102 13:23, 16 February 2007 (UTC)

Thumbnails Folder in /wiki/images
I recently switched from GD2 to ImageMagick, but I found that all of the thumbnails that were generated previously stay there. If I want to force MediaWiki to regenerate ALL thumbnails (when someone visits the appropriate page, of course), can I simply delete the "thumb" folder? Kareeser|Talk! 18:28, 8 February 2007 (UTC)

How to Override Protect permission if the user is on a group with matching custom namespace?
Hello,

I was trying to find an entry point to override default permission to allow Protect/Unprotect for specific custom namespace depending on its group memebership as following scenario:
 * custom namespace: NS1
 * custom group: wikiGroupNS1
 * sample users: user1 and user2
 * user1 is part of wikiGroupNS1 while user2 is NOT.
 * user1 creates a new article: e.g. "NS1:Protection Test Article for NS1"
 * even though the user1 is NOT sysop, user1 can see Protect tab for any article on NS1 namespace and protect it since the user1 is on wikiGroupNS1
 * since user2 is not on wikiGroupNS1, Protect tab is NOT available.

I did my best research to override this for last a few days but I can't do it by myself with my limited PHP knowledge.

In fact, I was trying to use GroupWikiBase 1.2.0 patch and want to make the user self-serve on changing permissions right after they create a new page.

Could you help me to do this, please?

Thanks in advance...

Ypae 00:45, 9 February 2007 (UTC)

Update to 1.9.2 via phpshell fails
When running the update procedure to 1.9.2 I have to use the phpshell solution. I got it so far that the following occurs, for which I have no idea how to solve it:

$ php update.php --quick MediaWiki 1.9.2 Updater DB connection error: MySQL functions missing, have you compiled PHP with the --with-mysql option?

By now, the wiki worked properly, no problems with the data base.

What goes wrong?

Thanks for help in advance, Thorsten

Solved
I reran the Installer, the problem is solved, the Wiki is up and running again.

Thx and bye Thorsten


 * Webinstaller should work ... but this could be the solution on long term. btw: Did you host your wiki at the german webhoster "HE" ? --Nyks 18:31, 21 February 2007 (UTC)

Category linking without becomong a member
Is it possible to link to a category page without becoming a member of that category ?


 * Yes, put a colon after "Patrick 15:49, 9 February 2007 (UTC)

Problem with image links
A short question: On my wiki (rezeptewiki.org, PHP4, MW1.6.8) there is a strange behaviour on images pages. Under the line "The following pages link to this file:" there is always the image page of this image listet, and so the specialpage unusedimages gives no results. Any ideas? -- Daniel Beyer


 * Ok, I updated to PHP5.1 and MW1.9.3 but the problem is still the same. Really no ideas? -- 84.184.134.115 17:08, 23 February 2007 (UTC)


 * I solves the Problem. It was a simple template problem... -- 84.184.197.175 22:08, 7 March 2007 (UTC)

favicon.ico doesn't work

 * Status: im my wiki the favicon appears only by the url-band and on the tab in the firefox but not in the favorites. in the Internet Explorer appears no favicon.ico.
 * So i have searched ... and found out that the parameter could be set so -> $wgFavicon = "$wgScriptPath/logos/MySiteFavicon.ico"; but i have seen that the file by default must lay in the root directory where LocalSettings.php is and there is the favicon.ico saved. So i have tried many variations but it doesn't seems to work properly. i hope, you can help me.

User Ratings and Link Ratings
I'd like to impliment a system for rating users and external links. For external links though I only want ratings for certain ones for example WebSite will have no rating but something like WebSite|rate would. I'd like it if someone who knew PHP could do this or guide me though the process to make this extension.--71.217.192.176 03:26, 10 February 2007 (UTC)

Config Fatal Error - Loading 1.9.2 Stable Version
I am installing a new Wiki using the stable version 1.9.2

I set the config dir so it is writeable. I loaded all of the files. The config won't run. I get a warning then a fatal error:

Warning: main(install-utils.inc) [function.main]: failed to open stream: No such file or directory in /var/www/vhosts/aircoolersla.org/httpdocs/wiki/config/index.php on line 43

Fatal error: main [function.require]: Failed opening required 'install-utils.inc' (include_path='.:/var/www/vhosts/aircoolersla.org/httpdocs/wiki:/var/www/vhosts/aircoolersla.org/httpdocs/wiki/includes:/var/www/vhosts/aircoolersla.org/httpdocs/wiki/languages') in /var/www/vhosts/aircoolersla.org/httpdocs/wiki/config/index.php on line 43

I checked all the files in the include directory and did not see any "install" files and I didn't see any .inc files.

Would like help getting recent data on the main page.
I would like to show this information on the front page somehow in a table format. I have no idea how to do this and was wondering if someone could help.

I would like it to look similar to jeepiki


 * Most Popular
 * New Pages
 * Recently Updated

Thanks


 * It uses Dynamic Article List, install that and use wikitext like on jeepiki.--Patrick 10:14, 10 February 2007 (UTC)

Fatal skin error in MW 1.5.8 under WinXp
Following the instructions at http://lifehacker.com/software/wikipedia/geek-to-live-set-up-your-personal-wikipedia-163707.php word for word. Then this pops up:

Warning: dir(C:\wamp\www\wiki\skins) [function.dir]: failed to open dir: Invalid argument in C:\wamp\www\wiki\includes\Skin.php on line 23 Fatal error: Call to a member function read on a non-object in C:\wamp\www\wiki\includes\Skin.php on line 26

What do I do!?‽
 * The guide you used described the installation for MediaWiki 1.5.8. This version is very, very old, you should use the current stable version, 1.9.2. As I look over the guide, I see some more horrible advices. You should uninstall WAMP and MediaWiki and have a look for a newer guide, favorably one at Wikipedia etc. For example, if you're speaking German, you might find this guide useful. There should be equivalents in all major languages, this is what I found immediately. -- 85.177.33.102 13:19, 16 February 2007 (UTC)

Mixing Wikitable and HTML syntax
I am setting up a new wiki using the current stable version. Under the terms of the GFDL I am copying a little (attributed) information from Wikipedia. This includes a template which works perfectly there, but does not on my new implementation.

I have tracked the problem down to the original template author mixing wikitable pipe syntax and html table syntax. Ignoring the fact that this is poor practice, I need to know what I must do to make it work on my new wiki, please.

To distill the problem I have an example:

This creates

Wiki table including conventional table syntax

in the finished article.

If I do the same on Wikipedia (or in THIS wiki) I just get Wiki table including conventional table syntax This is the intended end result, and thus highly desirable.

I conclude that I have not installed something that exists on Wikipedia (or here). But what? Timtrent 11:51, 11 February 2007 (UTC)
 * Wikipedia uses the current testing version, 1.10&alpha;. You, however, utilize the current stable branch, 1.9. Maybe this is the reason. -- 85.177.33.102 13:12, 16 February 2007 (UTC)

Problem with session
I use IIS, PHP 5 and MediaWiki 1.9.2, i try to connect me (open session in wiki) and it goes, but i'm direclty disconnected when i click on a link why?

I try to check, remember my login on my computer and i'm not directly disconnected. It's the first solution, this radio button button is obligatory!!

But i try to understand why, on Wikipedia, i'm need not to check the radio button (remember my login on my computer) to be connected correctly?


 * The solutions is the creation of folder /sessions under PHP folder. Don't forget to use 'mysqli' to communicated between PHPmyadmin (2.9.2) and Mysql (5.0.24a)

Google for "MediaWiki session data loss" and see what turns up. 164.11.204.56 23:33, 21 February 2007 (UTC)

MediaWiki 1.91 - no tagline
For some reason MediaWiki:Tagline isn't working.... why??

I run MW 1.91 on my local WAMP server! --82.42.237.84 13:47, 11 February 2007 (UTC)


 * It's hidden by default. Add something like  to MediaWiki:Common.css on your wiki. 164.11.204.56 23:32, 21 February 2007 (UTC)

https log problem
I have MediaWiki 1.9.2 installation (typical installation) on an nginx server.

I have nginx setup to listen on port 443 as shown at the bottom of this message.

I am using Firefox 2.0.0.1 and have cookies enabled.

After I log in to the wiki, as soon as I attempt to go to another page on the wiki, I am always involuntarily logged out of the wiki.

Is there a problem with MediaWiki remembering sessions when using https? Or are there any other known problems that would explain this?

Thanks.

nginx.conf
server { listen      443; server_name wiki.domain.com; auth_basic           "Restricted"; auth_basic_user_file /usr/local/nginx/conf/htpasswd; ssl                 on; ssl_certificate     /usr/local/nginx/ssl/nginx.crt; ssl_certificate_key /usr/local/nginx/ssl/nginx.key; location / { root  /usr/local/nginx/sites/wiki/html; index index.html index.htm index.php; }       # pass the PHP scripts to FastCGI server listening on 127.0.0.1:10005 #       location ~ \.php$ { fastcgi_pass  127.0.0.1:10005; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME  /usr/local/nginx/sites/wiki/html$fastcgi_script_name; fastcgi_param QUERY_STRING     $query_string; fastcgi_param REQUEST_METHOD   $request_method; fastcgi_param CONTENT_TYPE     $content_type; fastcgi_param CONTENT_LENGTH   $content_length; }   }

Template for new pages
Is there a way that new pages already contains something defined by a template page?


 * Yes, see m:Help:Inputbox, type=create, with preload.--Patrick 14:24, 12 February 2007 (UTC)


 * Better option, and a shameless plug; see Extension:Preloader. 164.11.204.56 23:29, 21 February 2007 (UTC)

default of "my preferences"
I want to make a default user which i can set the preferences for example like "Enable e-mail from other users" or "Auto-number headings". So if someone get registerd he should have standard settings in his preferences which i want, that he has it. How can i make such a "default user template"?
 * Ive found a function in user.php called "createNew". Perhaps there i can set the preferences? Or anywhere in user.php?


 * See Manual:$wgDefaultUserOptions. --.anaconda 21:42, 14 February 2007 (UTC)
 * Thank u very much for this tipp :) --Conni 08:12, 16 February 2007 (UTC)

Running Wiki under PHP v5 & mySQL v4 as binaries
Anyone know whether I can run MediaWiki under PHP v5 as a CGI binary, and under mySQL v4 as a binary?

My shared server runs PHP v4 and mySQL v3.23.58, and don't want to upgrade. But I believe that I can additionally run PHP v5 as a CGI binary, and possibly mySQL v4. --84.9.191.165 17:45, 12 February 2007 (UTC)

Problem with internal Tidy
Hello. I've installed libtidy and recompiled PHP 5.2.1 with --with-tidy, but it doesn't work (no error). Manual:$wgTidyInternal says that option is automatically enabled if Tidy is available in PHP. What should I do? I'm using MediaWiki SVN.

Recent Changes
Hi everybody,

i have a problem with our Wiki and the rubrik Recent changes in navigationbar. I installed mediawiki-1.9.1, but on our Wiki this Rubrik is shown on an other way than it is shown on Wikipedia. I just can compare the actual version with the version before, but on Wikipedia it ist possible to compare every Version with every other Version. I need the same on our Wiki too, what is to do here? Do I need an extension?

Please Help.

Greetings Benni


 * I have MediaWiki 1.6.8 installed (because only PHP 4 is available on my webspace), and the Special:Recentchanges page is the same as in Wikipedia with MediaWiki 1.10&alpha;. You're probably mixing up the recent changes and the page history. -- 85.177.33.102 13:09, 16 February 2007 (UTC)

Oh, you are right I thank you for your answere.

Benni

server time error
In the Time Zone section of the Preferences page under Time and Date, the server time is displayed wrong. It is different than my server clock/time. How do I change that time to whatever time I want it to be? Meaning how to change the server time in the Time Zone section.

I really appreciate your help Thanks in advance


 * See m:Help:Timezone. --.anaconda 15:40, 17 February 2007 (UTC)

Could not find a suitable database driver!
Hi

I'm reasonably new to all of this so please be patient with me if this seems obvious.

I'm having what seems to be a common problem when installing Media Wiki, but it also seems that everyone that has this problem is running windows:

* PHP 5.2.0 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

This is the setup:
 * Apache Server 2.2.3
 * MySQL 5.0
 * openSUSE 10.2

I don't really know where to start so if anyone could just point me in the right direction I'd be very grateful. Thanks


 * you need to install the php5-mysql module. Without PHP5 can not connect to a mysql databse. In the same step, think of php5-gd.

Problems with tables in the German Lostpedia
Hello,

can someone help us with the Main Page? http://de.lostpedia.com/wiki/Hauptseite

Greetings, Daniel (@Lostpedia)

allowing [edit] box near title, but not allowing 'edit' on the top ?
hi!

is there a setting available where I can disallow the usage of the 'edit' link on the top of the page, while allowing to edit text-areas? (the edit-link near every title) ? I would need this setting by page.

Thanks! Vali

Renaming the entry page
When users first enter the wiki, they are sent to "Community Portal". I have a redirect to where I want them to go. The main reason for the redirect is to get rid of the "Community Portal" page title.

How do I either a) send them to the correct page on entry OR b) get the Community Portal page to display a different title?

Thanks, Alan


 * I know thats maybe not the best solution... but what about redirecting the Community-Portal page to another one? Redirect is your friend...


 * If I correctly understood, you want to change MediaWiki:Mainpage. --.anaconda 12:13, 15 February 2007 (UTC)

Thanks for the replies, but I already have a redirect from community portal to the page I want, I want people to go straight there, so they don't get a "redirected from..." message. I want to change the default page everyone goes to on entry from Community Portal to something else.


 * Hmm... so I think you want to change MediaWiki:Portal-url. --.anaconda 15:37, 17 February 2007 (UTC)

You could just remove the link; see Manual:Navigation bar. 164.11.204.56 23:27, 21 February 2007 (UTC)

MarkPatrolled
Hi, how off this function? I don`t need red exclamation marks and this function. Thans for help :) --88.222.212.231 15:34, 14 February 2007 (UTC)
 * See Manual:$wgUseRCPatrol. Add this line to your LocalSettings.php:  --.anaconda 21:36, 14 February 2007 (UTC)

IE6 aligned tables won't render
Internet Explorer 6 does not render right or left aligned tables correctly, in our mediawiki 1.5.3. The tables appear as empty white areas. Strangely, IE6 can render the tables fine, in a plain html file outside the mediawiki environment. i have tried the style="float:right" method instead of the align="right" method, but no difference. I see on mediawiki.org some examples of right and left aligned tables, that do work on IE6. So it must be something about our environment. Any suggestions how to troubleshoot this? Here is an example URL:

http://www.santafe.edu/events/workshops/index.php/Inter-generational_Transmission_of_Wealth_in_Pre-modern_Societies

thanks in advance

Installation Failed
I can't manage to install MediaWiki and this is the output of the Installer:

MediaWiki 1.9.2 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.1.2 installed

Found database drivers for: MySQL

Warning: PHP's register_globals option is enabled. Disable it if you can.

MediaWiki will work, but your server is more exposed to PHP-based security vulnerabilities.

PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title)

Have XML / Latin1-UTF-8 conversion support.

PHP is configured with no memory_limit.

Have zlib support; enabling output compression.

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: /df01_htdocs/htdocs/dev/giovanni/apps/wiki

Script URI path: /dev/giovanni/apps/wiki

Environment checked. You can install MediaWiki.

Generating configuration file...

Database type: MySQL

Loading class: DatabaseMysql

Attempting to connect to database server as root...success.

Connected to 5.0.21-standard

Attempting to create database...

Created database wikidb

Creating tables... using MySQL 4 table defs... done.

Initializing data...

Granting user permissions to wikiuser on wikidb...success.

Fatal error: Call to undefined method User::newfromname in

/df01_htdocs/htdocs/dev/giovanni/apps/wiki/config/index.php on line 877

All my directories are 777 at this point in time. Any ideas anyone?

Giovanni


 * It looks like one of your files is out of sync. Try deleting the whole directory, downloading MediaWiki 1.9.2 again, and starting anew. &mdash; Edward Z. Yang (Talk) 15:43, 19 February 2007 (UTC)

New articles
Hi, how I can see newest articles in recent changes or anywhere..? Only new articles, without last edits. Thanks for help --88.222.212.231 12:02, 16 February 2007 (UTC)
 * Use the special page "New pages". -- 85.177.33.102 13:45, 16 February 2007 (UTC)

Create an intranet Wikipedia
If I am to create a local Wikipedia for my company.

Do I have to install some more addons to this program, or is it suffisient to download and install the mediawiki. I of course have the webserver with IIS and mySQL installed.

If som, what addons do I have to download and install?


 * So, you want to create a local copy of Wikipedia? I expect that you have a current version of PHP with the MySQL extension up and running. Install the current version of MediaWiki and import a dump of Wikipedia from http://dumps.wikimedia.org. This can be done with this command line:

php [mediawiki-path]/maintenance/importDump.php [xml-dump-file].xml
 * Have a look at w:Special:Version to find out which extensions might be necessary for you. For example, if you intent to use Wikipedia for historical researches, you might want to install the timeline extension. Click on the links to get the download sources and installation instructions. If you want to view the mathematical formulas in Wikipedia articles, you will have to install TeX and the MediaWiki hooks. -- 85.177.33.102 13:44, 16 February 2007 (UTC)

Reuse MediaWiki code and Wikisyntax

 * 1) For an own GPL project, I'm planning to use techniques shown in MediaWiki and copy some stuff which seems to be very useful, such as the definition of $wgHtmlEntities in includes\Sanitizer.php. Who and how should I credit? -- 85.177.33.102 12:37, 16 February 2007 (UTC)
 * 2) Is there a complete Wikisyntax reference for MediaWiki? My project should be compatible to MediaWiki. -- 85.177.33.102 13:37, 16 February 2007 (UTC)

someone posted hidden files on my site
I am still new to mediawiki. Not many people use my site so I can watch all of the edits and uploads. However, somehow someone posted the following and other files on my wiki. They redirect to other sites. How did they do this without me knowing? Is there a way to stop them from doing this in the future?

www.virtualtoychest.com/mediawiki-1.8.2/images/archive/e/e3/slots-11.html www.virtualtoychest.com/mediawiki-1.8.2/images/archive/e/e3/roulette-3.html www.virtualtoychest.com/mediawiki-1.8.2/images/d/d6/poker-7.html www.virtualtoychest.com/mediawiki-1.8.2/images/thumb/7/77/casino-5.html


 * See this section of the manual. --.anaconda 15:31, 17 February 2007 (UTC)


 * Right. Why did you disable upload security protection? &mdash; Edward Z. Yang (Talk) 15:42, 19 February 2007 (UTC)

Thank you for your help. There is still a problem. I restricted uploads to certain kinds of files, and deleted the offending files from cpanel. However I returned today to find the bad html files were back.

I was never aware that I disabled upload security. When I originally enabled uploading I followed the directions on http://www.mediawiki.org/wiki/Configuring_file_uploads It would be helpful if that page mentioned more about security. I am not qualified to write about it.

I have now disabled uploads. I deleted the files via ftp. The files reappeared. I tried to find them in phpadmin for mysql but did not see them in browsing or via a search. please advise. Virtualtoychest 01:57, 21 February 2007 (UTC)


 * If the file reappears, check if its entry in the image table in the database also reappears. If not, the file was not uploaded via mediawiki, but directly, for example via ftp (which is notoriously insecure). That an HTML file should show up in image/thumbs also lets me believe the file was put there without mediawiki's doing - html files can not be rendered/scaled, and thus should not show up in the thumbs directory. Also, it should not be possible to upload HTML files to mediawiki at all, even if you disable mime checks.
 * If such mystery files show up, please secure a copy of these files, and record their exact location, creation/modification time and the file permissions on image directory and subdirectories in which those files showed up. Please secure a copy of your upload log (ideally the log table from the database, or just a copy of mediawiki's Special:Log page showing the relevant timespan), as well as your image and oldimage tables. With this information, it's more likely that we can tell you what's going wrong. -- Duesentrieb ⇌ 11:11, 21 February 2007 (UTC)

I realize that this is probably not a mediawiki issue, however it relates to properly setting up images, which is a problem that many users have encountered. (see http://www.mediawiki.org/wiki/Talk:Configuring_file_uploads#End_user)

I think that this all may have been caused by the chmod settings. The image file directory was set to 777 as was stated on the following page

http://www.mediawiki.org/wiki/Manual:FAQ#How_do_I_enable_uploading.3F

I have changed it to 755, but I have not yet enabled uploads. Is this the right setting? Some pages mention 755, and others 744.

http://www.mediawiki.org/wiki/Talk:Configuring_file_uploads#End_user http://www.mediawiki.org/wiki/Configuring_file_uploads

Could someone also explain apache permissions and how they are set? Also how I can make sure that the images are not sent through the php interpreter.

Virtualtoychest 15:19, 21 February 2007 (UTC)

Copy into MS-Word?
Hello,

I'm running MediaWiki 1.80, and I seem to crash Microsoft Word when I copy text from a wiki page into MS Word. Has anyone else seen this? Do you know what could cause it? It happens to all users of this wiki. (Note, if you leave a response, can you let me know via Wikipedia? w:User talk:timneu22 Thank you


 * This wouldn't be a bug with Wikipedia, it would be a bug with Microsoft Word. Does copypasted text from Wikipedia have a similar effect? &mdash; Edward Z. Yang (Talk) 15:40, 19 February 2007 (UTC)


 * No it does not. w:User talk:timneu22

Transwiki
How do you get this to work?? I tried doing this: $configdate = gmdate( 'YmdHis', @filemtime( __FILE__ ) ); $wgCacheEpoch = max( $wgCacheEpoch, $configdate ); /** * List of interwiki prefixes for wikis we'll accept as sources for * Special:Import (for sysops). Since complete page history can be imported, * these should be 'trusted'. * * If a user has the 'import' permission but not the 'importupload' permission, * they will only be able to run imports through this transwiki interface. */ $wgImportSources = array(wiktionary);
 * 1) When you make changes to this configuration file, this will make
 * 2) sure that cached pages are cleared.

Tried importing the page obesity from Wiktionary, but it didn't work! Anyone know how to fix it?? --82.42.237.84 18:02, 16 February 2007 (UTC)
 * Try  --.anaconda 15:28, 17 February 2007 (UTC)


 * Didn't work, anyone know what to do next?? --82.42.237.84 01:39, 18 February 2007 (UTC)


 * Which is the error you get? Have you (manually) added the entry 'wiktionary' to the interwiki table? See meta:Help:Guide for system administrators for setting up interwiki linking. --.anaconda 22:57, 18 February 2007 (UTC)

Still not working. --82.42.237.84 01:12, 19 February 2007 (UTC)
 * The error I got was : 'Could not open import file'. And yes, I did add the prefix 'wiktionary' to the interwiki table.


 * I caught on that error about 2 months ago, IIRC. PHP wasn't sending a valid User-Agent header (wasn't set). If you run MediaWiki on your own server, try adding something like  to your php.ini file, or add this to your LocalSettings.php:  . This is just because Wikimedia's Squids require a valid User-Agent header, probably to stop bots. This solved my problems. --.anaconda 03:48, 19 February 2007 (UTC)

MW 1.92, if that's of any help. --82.42.237.84 16:15, 19 February 2007 (UTC)
 * Tried that, still can't import from Wiktionary (or even en.wikipedia) for some reason. What is wrong with this?? I'm running

How do I hide the category namespace in the title, leaving only the category itself as the title?
On entering a category page, you will see the title is Category:Categoryname. The part to the left of the colon is the namespace, and the right part after the colon is the category name. Is it possible to hide the namespace part and only keep the category name as the title of the page? If so, how is this done?

Disable languages
Is it possible to disable all or some languages all together? I need to create some special messages in my wiki and it would be nice to be able to avoid people selecting other languages than English. --194.19.86.146 14:08, 19 February 2007 (UTC)
 * Not that I know of. Alternate languages are fairly harmless, though, especially if you're not going to be into the multilingual thing. &mdash; Edward Z. Yang (Talk) 15:39, 19 February 2007 (UTC)

Aboutus.org
which extension of mediawiki is used by aboutus.org?
 * You will need to be more specific about this. What kind of functionality are you looking for? &mdash; Edward Z. Yang (Talk) 15:19, 19 February 2007 (UTC)
 * See http://www.aboutus.org/Special:Version (they probably also have custom skin stuff that is not mentioned on that page) -- Duesentrieb ⇌ 00:13, 20 February 2007 (UTC)

BUG: Search results don't include categories
I was looking on wikipedia for the four principal ancient greek playwrights, so I searched for greek playwrights. Eventually I found what I was after, and in the process discovered that there's a category named Ancient Greek dramatists and playwrights. I would have found what I was after much more quickly if category names were included in the search.

Wiki SQL for content and tables
I would like to be able to retrieve data from a MySql database and use it for content.

Often I have relational data, and it would be much easier to have this data in a database. From the database you could then dynamically create content in e.g. tables.


 * See Extension:WikiDB and WikiData for starters -- Duesentrieb ⇌ 00:12, 20 February 2007 (UTC)

No admin account created after install
Hi everyone. I just installed MediaWiki for the first time and afterwards when I attempted to login with the admin username and password that the configuration script asked for, I was told there was no such username. I reinstalled several times and the same result occurred. I then created a new user and went into my database tables and saw that this user had been assigned a user id of 2. So that could mean that the admin account was created, but not working for some reason? Is there something special I have to do to "kickstart" that admin account?
 * By default, an account with the name WikiSysop is created. Are you trying to access the wiki through the name of your configuration script? If so, then I'd double-check that you're logging with WikiSysop and then retry.
 * If you're not, though, and there's a WikiSysop account, but it is inaccessible, you can try resetting its password, as described on the FAQ, then try to log in again. That is almost killing a fly with a bazooka, so doing that as the last resort would be ideal. Titoxd (?!?) 22:54, 19 February 2007 (UTC)


 * See Manual_talk:FAQ -- Duesentrieb ⇌ 00:15, 20 February 2007 (UTC)
 * I am trying to access the Wiki through the name that I used in the configuration script and it says that no such user exists. I've also tried to access through the user name WikiSysop and it says the same thing. The user does not exist.
 * The link I provided above tells you how to create it, too... -- Duesentrieb ⇌ 11:20, 20 February 2007 (UTC)
 * It says that in order to access "Special:Userrights" I need to be in the "Bureaucrats" group. So should I add this to LocalSettings.php:


 * $wgGroupPermissions['myusername']['bureaucrat'] = true;


 * Instead of 'sysop'? Or is it a different group name?

No, insert an appropriate row into the user_groups table;  would do it, assuming your user ID is 1 (exposed in Special:Preferences). 164.11.204.56 23:24, 21 February 2007 (UTC)

Changing User Admin Email
I've created a wiki for a College and I've used one of my own email addresses in the setup / testing phase but now it's working and I'd like to change the email address, because now new users receive an email from my private emailaddress when they sign up... Can this be done? How? Thanks!

Bert


 * Look for that private mail address in your LocalSettings.php and change it where you find it. -- Duesentrieb ⇌ 11:18, 20 February 2007 (UTC)

How can i make a wiki with different languages
How can i make a wiki-portal with different languages (on one system)?

Error after install on Windows
Just installed MediaWiki 1.8.2 on a windows server using IIS. After the install, i go through the "setup your wiki" page successfully. Once done there I browse to the site and get this error.

Warning: Cannot modify header information - headers already sent by (output started at C:\Wiki\mediawiki-1.8.2\includes\DefaultSettings.php:1) in C:\Wiki\mediawiki-1.8.2\includes\WebResponse.php on line 9

Warning: Cannot modify header information - headers already sent by (output started at C:\Wiki\mediawiki-1.8.2\includes\DefaultSettings.php:1) in C:\Wiki\mediawiki-1.8.2\includes\WebResponse.php on line 9

Warning: Cannot modify header information - headers already sent by (output started at C:\Wiki\mediawiki-1.8.2\includes\DefaultSettings.php:1) in C:\Wiki\mediawiki-1.8.2\includes\WebResponse.php on line 9

Warning: Cannot modify header information - headers already sent by (output started at C:\Wiki\mediawiki-1.8.2\includes\DefaultSettings.php:1) in C:\Wiki\mediawiki-1.8.2\includes\WebResponse.php on line 9

Warning: Cannot modify header information - headers already sent by (output started at C:\Wiki\mediawiki-1.8.2\includes\DefaultSettings.php:1) in C:\Wiki\mediawiki-1.8.2\includes\WebResponse.php on line 9

Warning: Cannot modify header information - headers already sent by (output started at C:\Wiki\mediawiki-1.8.2\includes\DefaultSettings.php:1) in C:\Wiki\mediawiki-1.8.2\includes\WebResponse.php on line 9

Any help would be great. Thanks, TDS


 * You have something at the top of DefaultSettings.php file. Some windows editor add an UTF8 hidden caracter there. Oh, and you should put your settings in LocalSettings.php ! Hashar 21:46, 20 February 2007 (UTC)

Wikitable
I'd like to use the style of wikitables at www.wiki-site.com, where class=wikitable doesn't seem to work. I've been searching for a template or something, but can't find anything. Where is the code for a wikitable? Oh, and if anyone has any comments about the reliability and what have you of that site, that would also be welcome. Is my work safe there? Thanks. DirkvdM 18:37, 20 February 2007 (UTC)

Currently using 1.2, how should I upgrade?
Looking over the upgrade instructions, I assumed I need to make the changes for each version (upgrade a version at a time). Is this true?

If it is, could I run database updates only? Then I could go from a clean set of the latest PHP pages. Along those lines, could I just export my wiki data and then re-import it on a clean install of the latest version?


 * I would recommend to upgrade to 1.4.latest, make an XML dump, upgrade to 1.5.latest and mind all the charset conversion fuzz, then upgrade to 1.9.latest (the point being that the only really problematic transition is between 1.4 and 1.5). Oh yea, and upgrade more often. -- Duesentrieb ⇌ 23:08, 20 February 2007 (UTC)

Problem with Fileextensions?
I have uploaded many pictures in my wiki. So i have noticed, that files with extensions in capitals were not displayed. Has anyone the same problem, or even a solution?


 * File names are case sensitive. When using the file, you have to enter the name exactly as on upload. -- Duesentrieb ⇌ 13:03, 21 February 2007 (UTC)


 * Sorry for my short description. i mean if i click on Spezialseiten -> Dateiliste -> specific file. There if a png, or jpg has his extension in capital letter, won't get displayed. --Conni 15:55, 21 February 2007 (UTC)

How do I prevent un confirmed email user editing
I found this message in the user messages confirmedittext - You must confirm your e-mail address before editing pages. Please set and validate your e-mail address through your user preferences.

How do i activate this functionality?


 * in LocalSettings.php</tt>
 * or


 * robchurch | talk 17:51, 21 February 2007 (UTC)

Is forum like facility is available in mediawiki software?
Hi,

Is forum like facility is available in mediawiki software?

Kindly reply.


 * There have been some more or less successful attempts of integrating forum software - but htere's nothing definite. The most interresting i have seen so far is LiquidThreads. I don't know if it's ready for use, though. -- Duesentrieb ⇌ 13:02, 21 February 2007 (UTC)


 * ok

How can I make a page only viewable for special users or groups?
Hi,

I use mediawiki 1.5 and the whole page is open for all to see and restricted for * to edit. But there is a need for some pages that they can't be seen by everybody. Perhaps one can use a $wgblacklistread but I think that doesnt work.

Or even better would be to edit the Parser so you can set the rights while editing the page, like:

code:

<<black|user|read|User1,User2,...>>

or

<<black|group|read|Group1,Group2,...>>

/code

Does somebody has an idea?

Thanks, Tobias

<div style="width: 80%; margin-left: auto; margin-right: auto; padding: 4px; border: 2px solid #FF0000; background-color: #FFDDDD; text-align: center;">'''You are advised to install an appropriate document management package. MediaWiki was not written to provide per-page read access restrictions, and almost all hacks or patches promising to add them will likely have flaws somewhere, which could lead to exposure of confidential data. We will not be held responsible should a password or bank details be leaked, leading to loss of funds or one's job. robchurch''' | talk 17:49, 21 February 2007 (UTC)

I have an other question:

My page can only be edited by logged in users. How can I set that not logged in users can edit for instance the "guestbook"? $wgwhitelistedit seems to be depricated and doesnt work. Thanks, Tobias

Settings in MediaWiki:common.css disappear when mod_rewrite is turned on...
As stated in the title, all of my settings in common.css (a#new, #personal colour changes, etc...) disappear when mod_rewrite is activated in apache's httpd.conf, even when I don't use the rewriting engine at all. Is this a bug?

I'm using WAMP5 Server 1.6.6
 * Apache httpd 2.0.59
 * PHP Version 5.2.0
 * mySQL version 5.0.27

TIA! Kareeser|Talk! 21:35, 21 February 2007 (UTC)

Difference between MediaWiki 9.1 and 9.3
Sir/Madam,

I have been working on Mediawiki 9.1. I am customizing the source code. But now as new version has arrived I need to upgrade it. Each and every time new version arrives I have to change the code of new version files. Instead can I not replace the new version files with my old changed files?

Or the simple question to ask you is that is there any difference in files between newer and the older version (9.1)?

Please reply ASAP.

Regards, Vikas Agrawal


 * You can use a file comparison tool to check the difference between two versions of a file. One of the ways is putting one version in a wiki page, then putting the other version, and using diff. If the new official version of file A1 is file A2, and you have changed A1 to A3, I suppose you have to merge the changes, creating a file A4. The more far-reaching your changes are the more tricky this becomes. Obviously suitability of A4 also depends on other files, and their changes.--Patrick 09:15, 22 February 2007 (UTC)

Patrick,

Thank you for your reply. Regards, Vikas Agrawal

Random html in wiki?
I want to use a random youtube clip generator for a page on my website. Basically everytime you logon you get a new video. Is there anything that will allow this? I use the code and random generators on this site dont seem to parse the code...

Scott drzodiac@gmail.com

Problem with Link [\\internalPC\share]
Hi all,

I want to use some kind of special-links in my Media-Wiki, like [\\internalPC\share] for example. I have the Problem, that this kind of Links are shown as Text and not as Link. How can I change this. Http-Links are 100% funktional, [http:www.test.com http:www.test.com]for example Please help.I am useing version 1.9.1.

Benni


 * You need to specify the "file:" prefix to indicate the "file protocol" and better use forward slashes (for example, [file://internalPC/share]</tt>), and you need to add "file" as a valid protocol: $wgUrlProtocols[] = 'file:'</tt>. Note however that it depends on the browser if "remote files" are allowed for the "file" protocol - as far as I know, only MSIE supports that. You would have to mount the desired shares locally, in the same place on all client machines, and then use the local path ([file:///Z:/bla]</tt>), to make this work with all browser. -- Duesentrieb ⇌ 16:21, 22 February 2007 (UTC)

I thank you so far Duesentrieb, big THX Benni

How do i create a link to a non-html file server?
We want to link to CIFS shares (windows shares) on our file servers. The normal windows method would be \\servername\\share but i would be happy with file:///server/share/  as used in the HTML context when you browse CIFS shares from a web broweser.

Any help would be appreciated -

thanks

Jcastleberry 21:32, 22 February 2007 (UTC)


 * See the question right above yours. -- Duesentrieb ⇌ 23:27, 23 February 2007 (UTC)

Image sizing problem
I recently set up my own wiki using the mediawiki software. While trying to embed an image into a page, I typed the text:



However, the image still appears on the screen as a full size embedded image on the right of the page. It still retains the mouse-over caption "Our house", but none of the resizing or formatting options work. Anything you could help me with would be appreciated


 * It's possible that MediaWiki is unable to resize the image; check that  is switched on in LocalSettings.php</tt>. You need to install the GD libraries, or (better) ImageMagick, and instruct MediaWiki to use convert</tt> - see the comments for the thumbnailing options in LocalSettings.php</tt> and includes/DefaultSettings.php</tt> for more information. robchurch | talk 22:11, 23 February 2007 (UTC)

Problem with Dynamic Article List
already posted in wikimedia (Problem with refresh). I think there is a problem with the SQL-queries, the lists only refresh if i edit the site, where the dynamic article list is inserted. I have tested it on different sites in my wiki. The mystery is, it refresh only if this site gets edited. On other sites there is no refresh, only if it gets edited. I hope its clear, what i want to say and that someone can help me out :) --Conni 09:33, 23 February 2007 (UTC)


 * No, this is standard behaviour with a parser hook extension due to MediaWiki's use of a cache to store the results of the wiki text transformation operation, which is too expensive to perform for all pages on all page views. The extension does have a means of asking MediaWiki's parser not to cache output, but this might not be in use in the extension in question, or it might be that the version of MediaWiki in use is too old; as I recall, the function call needed was broken in older versions of MediaWiki (less than 1.7.0). robchurch | talk 22:08, 23 February 2007 (UTC)


 * Hello ... im using mediawiki 1.9.2 mysql 5.0.24 and apache 2.0.55 and i noticed, that the lists refresh in about one day. i have no site caching, or so. Can there be a problem between mysql and apache? --Conni 09:35, 26 February 2007 (UTC)

Delete users
Hello I may be stupid to ask but I can't seem to find out how to delete a user from my wiki How do I do this??

I was testing creating users by email password and would like to remove my test user.


 * Deleting users is possible, if the user has made no edits, uploaded no files and caused no log entries, otherwise it becomes problematic in terms of the referential integrity of the data.


 * If you wish to prevent access to the account, scramble the password in the user table (something like "broken" would work; it isn't valid output for a password hash), or give the account an indefinite block.


 * If the account is listed when running maintenance/removeUnusedAccounts.php</tt> in --report</tt> mode, then it should be safe to delete from the user table, but it's advisable to take a backup of the database in case some unknown, undefined behaviour occurs. robchurch | talk 22:05, 23 February 2007 (UTC)


 * I want to ask something. I have tried to activate this "script" but i get only permission denied (with root rights)... so i tried to change the rights and after a  chmod 770 removeUnusedAccounts.php </tt> i get this (the same result without the option --report</tt>)

root@udoc:/var/www/etc/test192/maintenance# ./removeUnusedAccounts.php --report ./removeUnusedAccounts.php: line 1: ?php: No such file or directory ./removeUnusedAccounts.php: line 3: /bin: is a directory ./removeUnusedAccounts.php: line 4: addwiki.php: command not found ./removeUnusedAccounts.php: line 5: addwiki.php: command not found ./removeUnusedAccounts.php: line 6: addwiki.php: command not found ./removeUnusedAccounts.php: line 7: addwiki.php: command not found ./removeUnusedAccounts.php: line 8: addwiki.php: command not found ./removeUnusedAccounts.php: line 9: syntax error near unexpected token `newline' ./removeUnusedAccounts.php: line 9: ` * @author Rob Church <robchur@gmail.com>'
 * how can i delete unused accounts? --Conni 15:51, 19 March 2007 (UTC)


 * Run  --.anaconda 00:00, 20 March 2007 (UTC)


 * FYI, you have left out the key part of the command php at the start of the line, which tells the server to run a php file. --Dr DBW 03:13, 20 March 2007 (UTC)

SVG rendering to PNG with ImageMagick


Does anyone know how to render SVG to PNG using ImageMagick in LocalSettings.php?? The only reason I'm using ImageMagick is because the webhost of the person I'm setting the wiki up for wants ImageMagick, he doesn't really want to go too far from the defaults in MediaWiki.

I've enabled SVG uploads, but nothing shows up, so I have to upload .svg.png files for now.

Anyone got a solution to this?? Advice is appreciated! --Westholm 12:30, 23 February 2007 (UTC)


 * Set up  in LocalSettings.php</tt> - this option is well-commented in includes/DefaultSettings.php</tt>. robchurch | talk 22:02, 23 February 2007 (UTC)


 * I did that, but it's not displaying SVG's properly.... why?? --Westholm 11:55, 24 February 2007 (UTC)

no changing articles
Hello, can you tell me, how I can adjust the mediawiki server that no viewer of the article can change the article?

Best Regards

Peter


 * Here is an article about userrights. i hope, it helps ;) --Conni 13:38, 23 February 2007 (UTC)

Changing a page in an existing mediawiki by another program
Hi all,

I want a program that is run automatically by a crontab to update/create a page in my mediawiki for it's own. This program runs on another server thzan the wiki. How can I do this? I don't find an extension or documentation for this.

Thanks a lot, Tobias

RSS options?
If I were to host my own wiki, using MediaWiki on my firm's server, is it possible to offer RSS feeds for individual wiki-pages?

I do not want to send e-mail notices when updates to the content of a specific page is made, but would like to offer update notices to RRS subscribers interested in specific wiki-pages (wiki-topics). Trevor.


 * MediaWiki provides RSS feeds for recent changes and page histories. robchurch | talk 22:01, 23 February 2007 (UTC)


 * Try WikiArticleFeeds, it allows any page to be served as a RSS/Atom feed. Very handy for news pages.

Make a User's page his login Home at login
Does anyone know how to make it so when a particular user logs in he is directed and landed on his own user page instead of the Main page>

This open up a lot of opportunities.

Dan Mendell


 * That could be done using the UserLoginComplete hook, a couple of lines of code in the LocalSettings.php:




 * Or something similar along those lines. Noopectro 13:39, 19 March 2007 (UTC)
 * Or something similar along those lines. Noopectro 13:39, 19 March 2007 (UTC)
 * Or something similar along those lines. Noopectro 13:39, 19 March 2007 (UTC)
 * Or something similar along those lines. Noopectro 13:39, 19 March 2007 (UTC)

User email & IP Lookup

 * Can I look-up the email address and IP address of a User?
 * Just found Extension:CheckUser --84.9.191.165 19:00, 23 February 2007 (UTC)

User Log file entries?
I see that Syspo/Admin's actions are entered into a log file. Is there a similar log file for Users? --84.9.191.165 18:50, 23 February 2007 (UTC)


 * All actions performed by anyone, including page moves, deletion, and protection, blocking users, file uploads and deletion, etc. are logged in Special:Log. robchurch | talk 21:54, 23 February 2007 (UTC)

Account creation activation
Can I require accounts to be activated by a Sysop? --84.9.191.165 18:36, 23 February 2007 (UTC)


 * It's possible to create a custom group with edit permissions, and remove those permissions to regular users; a bureaucrat can then move users into, e.g. the editors group as needed. This doesn't, however, grant approval access to administrators. You could, however, adapt an extension such as MakeBot or GiveRollback to allow administrators to perform this operation. robchurch | talk 21:56, 23 February 2007 (UTC)

Account email requirement
Can I require new accounts to have an authenticated email address? --84.9.191.165 20:38, 23 February 2007 (UTC)


 * You can require that accounts have a valid, authenticated email address set before editing; use  in LocalSettings.php</tt>. robchurch | talk 21:59, 23 February 2007 (UTC)

Header message
Warning: Cannot modify header information - headers already sent by (output started at /home/base72/public_html/wiki/LocalSettings.php:1) in /home/base72/public_html/wiki/includes/OutputPage.php on li
 * remove the blank line or BOM from the top of your LocalSettings.php -- Duesentrieb ⇌ 14:16, 19 March 2007 (UTC)

Transwiki question
How, exactly do I enable a transwiki, like wikibooks and wiktionary do?? I would like to use it to import articles from Wikipedia (English!) --Westholm 11:57, 24 February 2007 (UTC)

include .txt files into a wiki-page
Hi, i want to include the content of a *.txt file (e.g. a ftp statistic file) into a wiki article, but i have no clue how to do that. I found this configuration setting: $wgExternalStores it says: "External stores allow including content from non database sources following URL link", but i don't know how to use it. Can anybody please give me a hint how to get that thing working, or how else i can solve my problem? --80.69.122.107 12:52, 24 February 2007 (UTC)


 * External stores are not what you want. It should be relatively simple to write a parser hook to do what you want. Look at Extension:HTMLets for starters. -- Duesentrieb ⇌ 13:33, 24 February 2007 (UTC)

User Group Name Length
Hello,

While configuring Extension:PageSecurity, I had to modify the length of user group names in the user group table. I moved it from CHAR(15) to VARCHAR(255). It seems to be OK but was not extensively tested. Do you think it is a safe modification or will it make the software unstable? I use Mediawiki 1.9.2 on EasyPHP 2.0b1 on XP Pro SP2 and PageSecurity 1.1.3

--Antoine Sirianni 16:15, 24 February 2007 (UTC)

Need to use PHP 4
I need the latest stable version of MediaWiki that works with PHP 4 ... where can I get that?

Thanks in advance!


 * See Installation. Try 1.6.10 from http://sourceforge.net/project/showfiles.php?group_id=34373&package_id=93103 --.anaconda 20:48, 24 February 2007 (UTC)

Database tables
Which tables contain the text of the articles in them?? --82.42.237.84 22:29, 24 February 2007 (UTC)
 * That would be the text table. -- Duesentrieb ⇌ 22:41, 24 February 2007 (UTC)


 * Using phpmyadmin, I went to that table, but can't actually see any article text... why is this?? --82.42.237.84 22:43, 24 February 2007 (UTC)

Sidebar not visible with cologne blue
I modified the page "mediawiki:sidebar" but unfortunately the modification is not visible when using the skin "cologneblue" - when i switch to "monobook" I will see my modified sidebar. I compared cologneblue.php and monobook.php but could not find out, what code to add to see the modified sidebar with cologneblue. Anyone have an idea? Link to my wiki is Freecoffee Wiki - thx in advance --77.128.51.163 12:32, 25 February 2007 (UTC)


 * Its a bug - not a feature - reported at 2005-11-15 but obvisouly not fixed yet - see . I think the only solution is to edit the skin.php as described here --85.178.182.187 14:47, 26 February 2007 (UTC)


 * Don't think this is a bug, since I use this skin and can edit the sidebar fine. I suspect it is a cache issue, need to clear the cache for the page. --Dr DBW 02:37, 27 February 2007 (UTC)


 * I dont think so, see the wikipedia with the cologne blue skin and you'll miss the sidebar... anyway, how can you clear the page cache? --85.178.151.212 06:18, 27 February 2007 (UTC)

MediaWiki:Userrights-logcomment
I'm using the almost ancient version 1.6.8 of MediaWiki, Finnish localization/version. I'm a Steward there (sysops have no access to Special:Userrights, Bureaucrat group is not used, Stewards can access Special:Userrights). Whenever I, as a Steward, modify an user's groups, the log comment is taken from MediaWiki:Bureaucratlogentry when it seems that it should use the comment in MediaWiki:Userrights-logcomment. I know, I should upgrade to 1.9.3 but it's out of my hands as I don't own the domain and they run PHP 4.3 and not 5.1... -- Sayuri 16:09, 25 February 2007 (UTC)

Content Encoding Error
I'm currently running MediaWiki Version 1.6, with PHP version 4.4.4 I am not able to upgrade PHP to V5 to use a newer version of Media Wiki.

Whilst trying to access it all I get is a Content Encoding Error. "Content Encoding Error (content_encoding_error)

Server response could not be decoded using encoding type returned by server. This is typically caused by a Web Site presenting a content encoding header of one type, and then encoding the data differently."

I can access other wikis on the internet ok, just not my installation. Is there anything in the settings I can change to make my installation work?

Create New Wiki a/c
How to create new Wiki a/c


 * Do you mean a new wiki user? Just click on the login/register link and follow the instructions --Dr DBW 02:32, 27 February 2007 (UTC)

hook: ArticleSave & ArticleSaveComplete
Hello, I am trying to catch an article when someone is saving it. I have tried : $wgHooks['ArticleSave'][] = 'mgt_ArticleSave';

function mgt_ArticleSave(&$article, &$user, &$text, &$summary, $minor, $watch, $sectionanchor, &$flags) { // nothing in it } but I get the following error (no, no one else is working on it ><) : Someone else has changed this page since you started editing it. The upper text area contains the page text as it currently exists. Your changes are shown in the lower text area. You will have to merge your changes into the existing text. Only the text in the upper text area will be saved when you press "Save page".

alternate possibility for me is to work with ArticleSaveComplete hook. But is there a way to get the previous ID revision on an article when using ArticleSaveComplete hook?

I have notice than: getOldIDFromRequest return 0. getRevIdFetched return the current id, after the article have been saved.

thanks for your time.

problems running maintenance scripts.
I can't get any of the maintenance scripts to run. Or to be more exact, they appear to run, but do nothing. Any help on how to see what's going on?

server:/Library/WebServer/docs/wiki/maintenance jkeenan$ time php -v runJobs.php PHP 4.4.4 (cli) (built: Nov 1 2006 18:12:33) Copyright (c) 1997-2006 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

real   0m0.059s user   0m0.034s sys    0m0.022s server:/Library/WebServer/docs/wiki/maintenance jkeenan$

joe

Upload files other than image such as PDF or DOC or XLS.

Is there a method to allow user to upload and then add a link on a page to the uploaded PDF document?

Fatal error "non-object" while upgrading 1.8.2 to 1.9.3
Upgrading from 1.8.2 to 1.9.3. Did so for another similar wiki on the same server, got through fine. This time it reaches the "Deleting old default messages..." step (which does take a very long time I have found out ~ 10 minutes) and comes up with a fatal error: "Call to a member function addGroup on a non-object in maintenence/deleteDefaultMessages.php on line 19." Line in question is "$wgUser->addGroup( 'bot' );" Any suggestions on what to do? Tried the #mediawiki IRC and can't find mention of something similar anywhere. --Dr DBW 02:30, 27 February 2007 (UTC)


 * Found the solution, thanks to TimStarling. The problem is an extension that is installed, called Auth_phpBB.  Removing that from LocalSettings.php while running the update.php script removed the error and the updating script finished fine --Dr DBW 23:10, 27 February 2007 (UTC)

Problem with Link to Wikipedia
Hi all,

I have a problem with linking my Mediawiki to Wikipedia. I am using mediawiki-1.9.1 normally i make a link to Wikipedia with following code: test but it doesnt work, it is shown as wikipedia:test

on the otherside: test is working, so I just have to change something with my config. But what and where? plz help.

Benni

Ok, I found a solution myself. http://meta.wikimedia.org/wiki/Help:Guide_for_system_administrators_for_setting_up_interwiki_linking

ZIP file?
Hi

Is it possible to get the mediawiki in a .ZIP file?
 * Whats wrong with the Archive u can download from the sourceForge Servers? It is unpackable with the most common Unzip tools --85.178.133.252 17:42, 27 February 2007 (UTC)
 * 7zip is a useful open-source alternative to winzip and winrar, and can open tarballed and gzipped files. I used that one for my mediawiki installation although winrar is my primary archive manager. Kareeser|Talk! 15:46, 7 March 2007 (UTC)

Okay I wanna try it :-)

In-page translations to improve content cohesion between languages
One thing that really bug me about wikipedia is that translations of topics differ so wildly in their content. You will often see different translations offering different facts, media, outside links etc.

I think you might agree when I say that this is because MediaWiki doesn't seem to offer any tools to easily link translations together.

Suppose for example that MediaWiki would allow per-section translations. That way, translators would be strongly encouraged to provide the same content in the language they're translating to.

Also, readers could provide a list of languages that they understand and if a translation of a paragraph is missing, MediaWiki could provide the content for that paragraph in another language they understand.

Per-section-and-language version numbers could be used to alert translators to the fact that a translation might need updating.

This is just an example of what could be done, I'm just trying to raise awareness of this issue and I'm wondering if any work is being done towards fixing it.


 * Have a look at Extension:Multilang -- Duesentrieb ⇌ 20:32, 27 February 2007 (UTC)

500 Internal server error
I'm running Apache 2.2.4 with PHP 5.2.1, PHP is loaded as a fastcgi. Mediawiki picks that just fine and all the install checks go through properly, but once the installation is complete and I try to open wiki's main page I get a "500 Internal Server Error" and nothing more. Have anyone experienced a similar issue and what can I do to resolve this problem?


 * What does the server error log say? --Dr DBW 22:33, 27 February 2007 (UTC)

acces log has this in it: 10.65.68.28 - - [28/Feb/2007:10:18:17 +0200] "GET / HTTP/1.1" 200 186 10.65.68.28 - - [28/Feb/2007:10:18:17 +0200] "GET /icwiki/index.php HTTP/1.1" 301 26 10.65.68.28 - - [28/Feb/2007:10:18:19 +0200] "GET /icwiki/index.php?title=Main_Page HTTP/1.1" 500 536 10.65.68.28 - - [28/Feb/2007:10:18:27 +0200] "GET /favicon.ico HTTP/1.1" 404 209

error log has only this one line: [Wed Feb 28 10:18:27 2007] [error] [client 10.65.68.28] File does not exist: D:/apps/ApachePub/wwwroot/favicon.ico


 * v1.9.3 fixed the problem. Though I still can't figure out what the problem was. --196.26.83.136 08:03, 2 March 2007 (UTC)

Want to include TinyMCE - where to do?
Hello,

as mentioned above I want to include TinyMCE in my mediawiki. For this reason i have do include the javascript on every .php i need:

TinyMCE Test '''<script language="javascript" type="text/javascript" src="../jscripts/tiny_mce/tiny_mce.js"> <script language="javascript" type="text/javascript"> tinyMCE.init({	mode : "textareas" }); '''

Now is my question in which file i have to put this code? I searched the whole wiki directory but found nothing. Pleas tell me the correct page.

Thanks in advance Patrick


 * put it into the skin class - for the Monobook-Skin (the default), this would be skins/Monobook.php -- Duesentrieb ⇌ 20:31, 27 February 2007 (UTC)

Under title...
Hi, how add one line of text under title? example en wiki: From Wikipedia, the free encyclopedia

Thanks for help. --88.222.212.231 12:56, 1 March 2007 (UTC)


 * Edit the page MediaWiki:tagline on your wiki. Note that the "tagline" is hidden per default, and only shows up in the print version, and when you copy&paste. To make it visible, you would need to put #siteSub { display:block; }</tt> into your MediaWiki:common.css page. -- Duesentrieb ⇌ 14:35, 1 March 2007 (UTC)

Y2K7?
Lot's of products affected. Anything under the hood here?--74.231.144.126 16:23, 1 March 2007 (UTC)


 * Internally, MediaWiki uses UTC for everything. For display in listings, etc, timezone offset is a user preference, and is not automatically changed when DST starts/ends. For rendered dates, e.g. in signatures, i'm not quite sure - if a symbolic time zone is set for this, PHP's time zone handling is used, I suppose. On a quick glance I coudn't find anything about PHP and Y2K7 - not sure if this is good or bad. -- Duesentrieb ⇌ 20:14, 1 March 2007 (UTC)

German Umlaut in Upload File
Hello I installed MediaWiki 1.9.1 on my System (German). It is working fine, but if I upload files with ö,ä, ü, or ß than they are stored with wrong characters like Ã¼. How can I change this?


 * Uploaded files are served by apache directly, not via mediawiki. Make sure apache declares the correct charset for the type of file you want (the above looks like you uploaded UTF-8, but it's served as Latin-1/ISO-8851-1). See the apache docs. Or just change the display charset in your browser when looking at the file. -- Duesentrieb ⇌ 11:28, 2 March 2007 (UTC)

I tried changing the charset, but the filename is still the same. Can you suggest me a help page?


 * Oh, you are talking about the file name, not file contents. Well, the files are stored with utf-8 filenames. On windows, this may lead to problems if the filesystem is configured to use Latin-1 or cp1252 for file name (which is the default). On a linux system, this should work. Also, this might be a browser issue - i recall some older browsers no converting file names correctly for files from FAT partitions - or something like that. -- Duesentrieb ⇌ 17:23, 2 March 2007 (UTC)

Upgrading from backup (1.4 -> 1.9)
Hello,

I have a mysql database & uploaded files backup from mediaWiki 1.4 (it ran with php 4). Now I'm going to transfer everything to my new server with php 5. Which way is better: download and install 1.4 again, load backup and then try to upgrade to 1.9? Or download and install 1.9 and then somehow try to load backup directly into this version? Or probably there is a third way? Thanks in advance for your help --85.206.209.17 11:49, 2 March 2007 (UTC)


 * Two options, basically:
 * restore the backup and then install 1.9. This should take care of any shema change automatically - however, note that 1.4 used Latin-1 encoding per default, while 1.5 and later use UTF-8 only. Charset conversion is not applied automatically. See, and the next point. Also beware that mysql's dump- and import-functions sometimes try to be "smart" about charsets, and convert on thy fly - which tends to break mediawiki dumps badly (especially with mysql 4.1, it seems).
 * restore the backup, install 1.4, then use maintenance/dumpBackup.php to make an XML dump. The XML dump is "future proof" - it should not have any encoding issues, and it's independant of the database layout. This is the preferred format for migration and long term storage. You can then proceede like in option 1, hoping for the best, or you can set up a virgin 1.9 wiki and import everything from the XML dump. Note however that the XML dump only contains pages (with all revisions) - images need to be imported separately (use maintenance/rebuildImages.php --missing), and you would also have to transfer the user database (that would be a reason to use the 1.9 installer to convert the db shema). Logs would be lost too.
 * See also Manual:Upgrading. HTH -- Duesentrieb ⇌ 14:29, 2 March 2007 (UTC)


 * Thank you, Duesentrieb. I installed 1.4 again, then I upgraded to 1.9 as per manual. Since I have no access to command line, I chose to rerun installer. Now looks like it works more or less, at least I can browse articles, but I still have some problems.

--Nomad
 * 1) Looks like some links are messed up, especially image ones. I suppose it was supposed to happen and refreshScript.php could fix it. But it must be runned from command line and I cannot do it. Are there any alternatives?
 * 2) As you said, encodings got messed up. Actually I don't even remember which one I used before but it might be either UTF-8 or Windows-1275 (both supports lithuanian language symbols). Now I chose UTF-8 when upgrading so I believe it was win-1257 before. This wouldn't be a big issue, we could rewrite messed symbols manualy, but there is another error and I guess it has something to do with encodings:
 * 3) When I try to edit article I get this: "Parser::replaceLinkHolders". MySQL error "1267: Illegal mix of collations (latin1_bin,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '=' (localhost)". - Is there any way to fix it?

-- Duesentrieb ⇌ 17:17, 2 March 2007 (UTC)
 * if you don't want/need an XML dump, you don't need to install 1.4, there's no point.
 * if you can't solve the charset issue otherwise, use an XML dump
 * to solve the charset issue, try to run your database dumps through iconv before importing them (win-1257 -> utf-8) - this assumes the dump was not mangled on creation - which happens frequently! MediaWiki always declares latin-1, no matter what it actually uses (to work around some mysql bug). This may cause confusion when the dump is created. The charset used by your terminal may also play into this - both when creating the dump, and when applying it.
 * to resolve the "mix of collations" problem, don't select "experimental utf-8" when installing 1.9, use "compatible" mode instead.
 * if you don't have command line access, don't expect to be able to do more than basic operation with mediawiki. Command line access is required for many things. You can try to use phpshell to simulate a command line via the web browser, but that's flaky.

-- Duesentrieb ⇌ 17:17, 2 March 2007 (UTC)


 * Thanks once more Duesentrieb, I managed to get just about everything work using phpshell and following your other advices & reading manual. Just one more thing - I already used rebuildImages.php and they are restored, but in cases where they are in thumbs ([[Image:image.jpg|thumb...]]) I get errors. They reads that permissions are denied for mkdir, and that image in question is not found.. I get almost the same errors when I try to upload a new version of an existing image. Completely new image uploading works very well (but I cannot use it with |thumb| too). I have chmoded /images/ dir and /thumbs/ dir inside /images/. 777 but I left those lots of inner dirs intact. Should I chmod 777 them too? Or the problem is somewhere else? Thanks again ;) --88.118.185.83 19:51, 2 March 2007 (UTC)


 * All those directories in there have to be writable for the php process (i.e. you user id, or apaches, depending on setup). Setting them to 777 will do that - although that may be overly broad anyone on the server can then do anything with the files in there. Perhaps talk to your hosting people about what file permissions/ownership/groups would be appropriate.
 * Also note that in case php-safe-mode is in effect, the user running php must be the owner of the directories. -- Duesentrieb ⇌ 23:42, 2 March 2007 (UTC)


 * Thanks a lot, I changed permissions for those lots of dirs, now everything's allright. --88.118.185.83 04:24, 3 March 2007 (UTC)

Somethig bad...mediawiki
hi, I am korean wikipedian, use mediawiki. My computer is pentium III 450Mhz, Windows XP. I installed mediawiki in XP environment.

Some Problems...


 * 1. It is too slow. I use module...some say fastcgi is faster...how to use?
 * 2. Instant Commons...I want to use Commons images.
 * 3. I can't upload SVG file...how?

-- <font style="background-color:#0000ff;color:ghostwhite">WonYong ( Talk / Contrib ) 01:35, 3 March 2007 (UTC)


 * Mediawiki is large and complex. It was build to scale to a few thousand hits per second an a dedicated server farm, not to be fast on a low-end computer. Actually, with windows XP on a P III, everything is slow, no?
 * Instant Commons would be nice. No one has written it yet.
 * Manual:Image_thumbnailing
 * -- Duesentrieb ⇌ 01:42, 3 March 2007 (UTC)


 * 3. I can't upload SVG file...how?
 * I can upload SVG file. See ko:user:멀뚱이/미디어위키 -- <font style="background-color:#0000ff;color:ghostwhite">WonYong ( Talk / Contrib ) 14:12, 7 March 2007 (UTC)

Question
How...exactly..do you get your own to work? I dont understand.


 * question to me? Private wikipedia that can use commons images, 200 languages interwiki, etc...is so strong DB. Why Private? In korean copyright law, For Private use...(publish -> X) I can use any images, any articles, thesis, book, etc...
 * Private use...any law prohibit my uasage. I can make So strong DB and use. -- <font style="background-color:#0000ff;color:ghostwhite">WonYong ( Talk / Contrib ) 03:01, 3 March 2007 (UTC)
 * Private use...any law prohibit my uasage. I can make So strong DB and use. -- <font style="background-color:#0000ff;color:ghostwhite">WonYong ( Talk / Contrib ) 03:01, 3 March 2007 (UTC)


 * I beg to differ. I run my wiki on an AMD K6+, equivalent to a PII at best :P
 * To answer your question: You need to allow the .SVG extension in your localsettings file.
 * Also, install a PHP Cache Optimizer. I use APC (installation guide), it works VERY well. Instant gain. Kareeser|Talk! 15:41, 7 March 2007 (UTC)

Customizing Category text and link inserted by category tag
Background: When you use in a page, it automatically displays the text "Category:foo" and makes "Category" a link to "Special:Categories".

Problem 1: On my installation, I want to change the text "Category:" to something else.

Problem 2: Would also like to have that text link to something other than Special:Categories.

Have spent an hour and a half looking through system messages & phps and wikipedia & wikimedia help & can find nothing. Help meeeeeeeee pleeeeeease! Elf 15:51, 3 March 2007 (UTC)


 * The text can be changed by editing MediaWiki:Categories, the link by editing MediaWiki:Pagecategorieslink - on your wiki, of course. If those (pseudo-)pages do not exist, simply create them with the content you want. You may have to flush the parser cache to see the effect, no sure - for testing, use the edit preview mode (that's never cached), to purge all pages, simply touch LocalSettings.php. -- Duesentrieb ⇌ 16:02, 3 March 2007 (UTC)

Thanks so much! I don't know why I couldn't find those before on Special:Allmessages -- but now that I see them, I also see that what I probably need is MediaWiki:pagecategories rather than MediaWiki:Categories. 75.30.114.204 17:25, 3 March 2007 (UTC)

Email confirmation black list?
$wgEmailConfirmToEdit requires users to confirm email address before they can edit. Is it possible to add a blacklist of email address domains, for example, to prevent users from signing up with email addresses from @hotmail.com and @gmail.com --84.9.191.165 16:02, 3 March 2007 (UTC)

Default Value for new users
Hello I want I set up a default value that users get on emails on changes in observed sides. How can I do this?

$wgDefaultUserOptions ['enotifwatchlistpages'] = 1;
 * This only applies for newly created users, of course. Existing users already have a setting for this option, so the default does not apply. To force everyone to have this enabled, you can use maintenance/userOptions.php (on the command line):

php userOptions.php enotifwatchlistpages 0 1 -- Duesentrieb ⇌ 11:07, 5 March 2007 (UTC)

SHORT URL
When I am trying the rewrite or the alias methods, What else should be in my .htaccess file besides what I am supposed to be adding? Should I put the .htaccess file in the public_html folder or public_html/w/ which is the folder I have the wiki in? When looking the the localsettings.php I see $wgScriptPath should I change = "/w"; or add the $wgArticlePath = "/wiki/$1"; I seem to be a little lost on this. --84.58.197.191 13:17, 5 March 2007 (UTC)

Makesysop help
For some reason, when I used Makesysop, it didn't work! What do I need to do to make it work like the Wikimedia wikis??

I tried to set rights for "User:Westholm@northmidlandswiki" but it said no such user existed, even though I have an installation with this user.

What should I do to get it working and to make it work like the Wikimedia meta wiki?? --Westholm 00:12, 6 March 2007 (UTC)
 * Unless "@northmidlandswiki" is part of the username, you don't need that bit there... Kareeser|Talk! 15:38, 7 March 2007 (UTC)


 * On m:Special:Log/rights it shows the username as Username@nameofwikidatabase, so that's probably why Westholm sees it that way... --82.42.237.84 14:38, 8 March 2007 (UTC)

Edit Link lead to editing the template and not the document
I have the following template;

The template works fin and the entry appears corectly in the TOC However next to the heading there is an edit link. Clicking this link takes the user to the template edit and not the page edit.

Can this be corrected easily? Preferably; can the edit link be supressed for that heading i.e. in the template so that it remain functional elsewhere.


 * This is not a bug, it's a feature - kind of. The problem is: depending on context, you may want to go to the template when clicking edit (i.e. you want to edit the text you see there, namely, the template). In other cases, you would want to edit the templates parameters, or add some text before or after the template - which isn't possible when the edit link takes you to the template directly.
 * I don't know of a way to control this behavior, but I agree that it would be nice to be able to control it somehow - at least globally, ideally per-page and/or per template. Perhaps file a feature request on Bugzilla - actually, there is probably already a ticket discussion this issue. -- Duesentrieb ⇌ 11:03, 6 March 2007 (UTC)

Warnings on upload
Does anyone have a solution for User:Flominator/Upload_problems? --Flominator 13:50, 6 March 2007 (UTC)

Suppot for Microsoft SQL server
OK daft question for which I apologise. But am I correct to assume that MediaWiki only works with MySQL and not MS SQL?

Problem with picture data storage after MySQL-Update
I got a problem in our wikiafter a MySQL-Update by the provider to version 5.0.33.

The wiki itself is running with version 1.6.9 due to PHP version 4.4.4. Normaly there should be an an article created, when uploading an image. But now the wiki says, that the image is not existing. But in the list of all uploaded files the image appears. If there was given a description when the image was uploaded, it even appears in the article.

Do you have an idea what bug that is?

MfG, Jasper

Composite page
I'm attempting to create a printable version of a group of wiki pages. My attempt so far has been to create one "host" page that links all my content using the composite page syntax. This solution is not perfect for me. For one, embeded pages ignor the headers in the host page, as they should I could be at ==== Foo ==== and a content page will go back to == Bla ==. Second, page titles do not display when embeded. Neither of this issues are a big deal but together they make for a hell of a document to read. From this set up, I have three questions:

1. can I make a template that will take as an input a number to be translated into a header level: => == Subject ==
 * Yes, see.
 * head does not work even on wikimedia.org. creates =foo=, however I love the idea. I did create all the x# templets too by the way.
 * m:Template talk:Head shows that it works, but you have to put the template call in a new paragraph (I reverted Fabartus' change of m:Template:X4 into something unrelated.)--Patrick 00:45, 8 March 2007 (UTC)
 * Still no luck, looks as if something is in m:Template talk:Head that makes it work for you. I've writen up an example of what I'm seeing here m:Template talk:Head/broken.--Ceaser 11:23, 8 March 2007 (UTC)

2. can a page take a variable and can that variable be pass to the templat in the question one?
 * Yes, the page can have a parameter, a call can be replaced by
 * I see, but how do I pass the parameter from one page to another
 * Page P containing can be called with e.g., as usual.--Patrick 00:51, 8 March 2007 (UTC)
 * I see, it all makes since now.--Ceaser 11:23, 8 March 2007 (UTC)

3. can content be displayed only when page is embeded (I don't really need this but I could hack things out with it).
 * With noinclude, see Template.--Patrick 01:17, 7 March 2007 (UTC)
 * Love it, thanks.--Ceaser 19:51, 7 March 2007 (UTC)

Thanks in advance. --Ceaser 20:08, 6 March 2007 (UTC)

SQL-Error
Hi, I'm developing a MS-SQL PLugin for my company. Now I've found a problem:

After the SELECT TOP 1 * FROM `job` ORDER BY job_id follows a COMMIT-statement, but never before there was an BEGIN statement. Have you used the automatic-COMMIT? Is there a way to determine a COMMIT before a query happens, so that I can post a BEGIN? ( $this->mFlags & DBO_TRX ) didn't work, because mFlags is always 16 and DBO_TRX is 8, 16 & 8 = 0, so no BEGIN will be posted.

Greetings, Sven

Migrating MediaWiki
Is there any way by which I can migrate my mediawiki from windows machine to linux.

Thanks.


 * Hi, Chida. I do believe the database itself (which contains the "meat" of your wiki, so to say) is platform-independent. Just save it as an SQL file or XML file, and copy it over. Don't forget to make multiple backups! Kareeser|Talk! 15:35, 7 March 2007 (UTC)
 * User:Flominator/Backup MW could be helpful. --Flominator 11:12, 12 March 2007 (UTC)

width-limitation of text
Hi Community,

is it possible to reduce the writeable place of my MediaWiki (width) to 70%. So it is better to read a long text. My users are loosing their line to often, cause of their high resolution. This high resolution leads to very long text lines. Any Ideas? Benni
 * Could be done in the monobook.css, I assume. --Flominator 11:11, 12 March 2007 (UTC)

Problem with apache and proxypass directive
Aapache 2.0.54

apache only proxypass virtual host config file: <VirtualHost *:80> ServerName knowledgecenter.[domain] ServerAlias www.knowledgecenter.[domain] ProxyPass / http://[ip]/ ProxyPassReverse / http://[ip]/ RewriteEngine on   RewriteCond %{HTTP_HOST}    !^www\.knowledgecenter\.[doamin] [NC] RewriteCond %{HTTP_HOST}   !^$ RewriteRule ^/(.*)         http://www.knowledgecenter.[domain]/$1 [L,R] </VirtualHost>

connect from Safari (test and with Firefox 2) to host 'www.knowledgecenter.[domain]' and getting this error: "KnowledgeCenter uses cookies to log in users. You have cookies disabled. Please enable them and try again."

This error present only if I use proxypass redirection.

How-to fix this? tnx!

Changing License type
During the install process I was allowed to choose a License type. Now I wish to switch, how do I do that without having to reinstall my entire Wikisoftware?


 * Use the following settings in LocalSettings.php:

$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright $wgRightsUrl = ""; $wgRightsText = ""; $wgRightsIcon = "";
 * -- Duesentrieb ⇌ 01:17, 8 March 2007 (UTC)

Enable external image link
I use my mediawiki. I suggest a new feature.

External image link!!

<IMG src="http://acb.com/image.jpg">

I want to use "html code image link". $wgExternalImageLink = false; (default) $wgExternalImageLink = true; (I want this!!)

-- <font style="background-color:#0000ff;color:ghostwhite">WonYong ( Talk / Contrib ) 14:18, 7 March 2007 (UTC)


 * See Manual:$wgAllowExternalImages and Manual:$wgRawHtml -- Duesentrieb ⇌ 01:14, 8 March 2007 (UTC)

Configuring MediaWiki to use SMTP Relay?
Hi all, trying to enable email from behind firewall, which won't work by default. I have an SMTP relay option, but there are no options in the localsettings.php file to enable it... any help? Kareeser|Talk! 15:33, 7 March 2007 (UTC)


 * See $wgSMTP. -- Duesentrieb ⇌ 01:11, 8 March 2007 (UTC)


 * Hm, I thought I needed pear to be installed to get that... I tried it anyway (without pear), and it doesn't seem to work...


 * Warning: require_once(Mail.php) [function.require-once]: failed to open stream: No such file or directory in C:\WAMP\www\wiki\includes\UserMailer.php on line 87


 * Hm... Kareeser|Talk! 06:08, 8 March 2007 (UTC)


 * You need to download PEAR (pear.php.net), then extract it into your includes directory. If done correctly, you will have Mail.php in the includes directory, and a new Mail subdirectory. Once done, you shouldn't get anymore script errors. ~Swampert

RunPHP Extension accessing template variables
Hello, I am trying to access template variables in some embedded php using the runPHP extension. Is there a way to reference the Template parameters? You can't simply reference the argument within the php block. Any ideas?

I want to do something like this in my article:

Here is the value from my template:

echo "Value from template: ".;

Thanks in advance for any help!

Fatal error: Cannot access protected property DatabaseMysql::$mOut in /home/censored/public_html/wiki/includes/Database.php on line 429
I receive the error "Fatal error: Cannot access protected property DatabaseMysql::$mOut in /home/censored/public_html/wiki/includes/Database.php on line 429" after a "successful" install of MediaWiki (latest version as of March 07, 2007, tarball) when I load /index.php. I haven't found very much good documentation about this issue, and that which I have found has not been helpful. If someone could please assist me, I'd appreciate it.
 * Write protection of the directories? Check chmod! --Flominator 11:10, 12 March 2007 (UTC)

There seems to be a problem with PHP 5.2 and the MediaWiki source. http://bugs.php.net/bug.php?id=37212 http://bugs.php.net/bug.php?id=34893 http://forum.java.sun.com/thread.jspa?threadID=5143859 Downgrading to PHP 5.1.4 solve the issue for me.

Creating a Javascript extension?

 * I want to create an extension which uses Javascript to run a picture image swapper/slideshow. Has anyone created a basic Javascript extension?
 * Or is there a better way to place a bit of Javascript in the middle of my edited content? --84.9.191.165 10:27, 9 March 2007 (UTC)
 * What about creating a template with a javascript link and defining the function for it at MediaWiki:Monobook.js or MediaWiki:Common.js? Regards, --Flominator 11:09, 12 March 2007 (UTC)


 * If your extension needs extra JavaScript, you have to register that script with the $wgOut object:

global $wgOut, $wgJsMimeType, $wgXXXExtensionPath; $wgOut->addScript(         "<script type=\"{$wgJsMimeType}\" src=\"{$wgXXXExtensionPath}/XXXExtension.js\">" .         " \n"      );
 * Instead of referencing a JS file, you can directly put you JS code there, of course.
 * However, note that doing this in the parser hook function will not work, because that function is not called when using content from the parser cache. Instead, it would have to be done always (perhaps in the extension-function that registers your parser hook) - or you can do it only for pages which need it - that's a bit more complicated though. You would have to set a marker in the parser-output object, and check in a OutputPageParserOutput hook if that marker is set; if yes, you have to inject the JavaScript. Look at Extension:CategoryTree, function efCategoryTreeParserHook and efCategoryTreeParserOutput, and also CategoryTree::setHeaders for the actual scripßt-injecting code. -- Duesentrieb ⇌ 11:27, 12 March 2007 (UTC)

$wgLocalDatabases
$wgLocalDatabases - what does this do?? --82.42.237.84 12:03, 9 March 2007 (UTC)


 * DefaultSettings.php sais: Other wikis on this site, can be administered from a single developer account. This appears to be used by some maintenance scripts that are able to process more than one wiki. A quick grep turns up the following:

maintenance/clear_interwiki_cache.php:foreach ( $wgLocalDatabases as $db ) { maintenance/clear_stats.php:foreach ( $wgLocalDatabases as $db ) { maintenance/nextJobDB.php:     foreach ( $wgLocalDatabases as $db ) { maintenance/cleanupSpam.php:   print "Finding spam on ". count($wgLocalDatabases). " wikis\n"; maintenance/cleanupSpam.php:   foreach ( $wgLocalDatabases as $db ) {


 * HTH -- Duesentrieb ⇌ 11:19, 12 March 2007 (UTC)

Force Registration for editing
Hi All,

How can I force my users to register to my MediaWiki and just allow editing Articles for registered users?

Benni
 * Preventing access --Flominator 11:08, 12 March 2007 (UTC)


 * I thank you very much. It's exactly what I am was looking for.

XML Parsing Error on Special:Recentchanges&feed=rss
After upgrading to MediaWiki 1.9.1 the "recent changes" feed stopped working and I get this error for both rss and atom.

XML Parsing Error: xml declaration not at start of external entity Location: http://local.babyblog.com/index.php?title=Special:Recentchanges&feed=rss Line Number 1, Column 2: <?xml version="1.0" encoding="utf-8"?> -^

XML Parsing Error: xml declaration not at start of external entity Location: http://local.babyblog.com/index.php?title=Special:Recentchanges&feed=atom Line Number 1, Column 2: <?xml version="1.0" encoding="utf-8"?> -^


 * There is probably a blank line (or a BOM) at the start of the XML feed. This can happen if a stray blank line (or BOM) is introduced into a PHP file, especially at the very top (before the <?) or the very bottom (after the ?>). Check all files you might have edited, especially LocalSettings.php. Another problem could be files getting mangeled during upload, especially when using FTP without "binary mode" enabled. -- Duesentrieb ⇌ 11:15, 12 March 2007 (UTC)

Can i hide subject?
How can i hide page subject in one page? I mean like works. Is there tag for this?

por favor no votar papeles en el piso de los baños ,bajar la palanca

Thumb and pixel options have no effect when embedding images
I am running MediaWIKI 1.9.3 on IIS6, PHP 5.2.1, MySQL 4.1.22, and everything working as expected including ImageMagick.

But when I embed an image into an article and use the |thumb or |200px options with the image they have no effect. The |frame option works perfectly, as do |right, |left, etc. and the alt text options.

To confirm ImageMagick works, if I access a category that contains images, ImageMagick successfully thumbnails these automatically (when I put a typo into the $wgImageMagickConvertCommand value, this thumbnailing fails with an appropriate error), so I know this works OK.

Just can't understand why the |thumb and |200px options don't work - do these even use the ImageMagick convert application?

Can anyone help find the cause of this, or know a fix please?

Thanks, Ben.

Restart browser, lose session info, "Remember my login" fails (not FAQ)
In our wiki, when a user checks the checkbox "Remember my login on this computer", the login is not remembered when the browser is closed and reopened and the user visits the login page. I can't figure out why. The PHP session directory (session.save_path) exists, is writable, and session files are being created within it:

session.save_path="C:\temp\php\Session"

However, if I watch the browser's cookies and the session directory, I see the browser switch to a new session instead of preserving the information from the original session. A case study is below.

Setup is: MediaWiki 1.9.3 on Windows 2003 server; Apache 2.2.4; PHP 5.2.1; mySQL 5.

Case study:

1. I visit our MediaWiki site and log in, taking care to check the checkbox, "Remember my login on this computer". Note: Our wiki requires logins to edit a page:

$wgGroupPermissions['*']['edit'] = false;
 * 1) LocalSettings.php:

2. Confirm that a PHP session file was created, its name is stored in a browser cookie (dbname_tablePrefix__session), and it contains this information:

kw_bread_crumbs: TechWiki (1.9.3.vp.2.e)|a:2:{i:0;s:17:"Special:Userlogin";i:1;s:16:"Name of page";}wsUserID|i:16;wsUserName|s:4:"Danb";wsToken|s:32:"f12a2d7154f0ea29190a5c0fb91a6e1a";

3. Close the browser. Confirm the session file still exists as above.

4. Launch the browser and visit the wiki's home page. The correct username is displayed at the top of the page, as if the user were still logged in. (I am probably seeing a cached page here.)

5. Now visit ANY OTHER page on the wiki. The username at the top of the page disappears, the IP address is shown instead, and a new session file gets associated with the browser (as verified in the session cookie above). The file contains no username information:

kw_bread_crumbs: TechWiki (1.9.3.vp.2.e)|a:1:{i:0;s:36:"Name of page";}

Now, if I repeat this experiment but use en.wikipedia.org instead of my wiki, the session information is remembered even after I close and reopen the browser.

This problem exists in both IE 7 and Firefox 2.0.

The problem also existed before I started using the "kw_bread_crumbs" extension that's showing up in our session data, so that extension is not the cause.

Any help appreciated. Maiden taiwan 02:33, 12 March 2007 (UTC)


 * I tried moving the session folder inside the PHP installation folder, as suggested here, but that did not change the problem. Frankly, I would have been surprised if it had helped. Maiden taiwan 02:39, 12 March 2007 (UTC)


 * This won't help you, but I am experiencing the same issue on my private version of my wiki: MW 1.9.3, PHP 5.2.0, MySQL 5.0.27, Apache 2 under MacOs X. On the online wiki this never happens. I mostly use Safari, but Firefox or Seamonkey Mac make no difference. It happens on edit, it is not browser related. I don't have the kw_bread_crumbs extension. I'd also be interested to find a solution. --Orso B. Schmid 18:43, 12 March 2007 (UTC)


 * I found the problem!! This was happening because I had secured the login page with SSL (https). The session cookie was being created as a secure cookie, which the http site could not access. Here is my complete solution which secures the login page. Maiden taiwan 04:50, 16 March 2007 (UTC)

Infoboxes
The infoboxes in my personal local wiki don't seem to be displaying properly... For one thing, the thin borders of the infobox don't show up, and the infobox itself doesn't want to sit to the side of the article text. I tested the very same markup in Wikipedia, and it showed up as it normally should have. I've already brought this question up at the IRC Mediawiki support channel, but I was ignored. Any help with this would be appreciated. Thanks,

--Knyght27 202.134.243.187 03:15, 12 March 2007 (UTC)
 * You need to copy the CSS-styles from Wikipedia, as well.

Unable to block users as sysop after upgrade
Some time ago we upgraded our wiki from MW 1.5.x to 1.9. Recently I needed to block a user, but the following error occurred: 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 "Block::insert". MySQL returned error "1054: Unknown column 'ipb_enable_autoblock' in 'field list' (localhost)".

Apparently the database didn't upgrade properly. Researching here and elsewhere showed me that I must be the only one experiencing this issue. Can someone give me a hint to how to fix this?

Thanks in advance. --Orso B. Schmid 04:38, 12 March 2007 (UTC)


 * Did you follow Manual:Upgrading to 1.9? Especially, did you run the database upgrade script? -- Duesentrieb ⇌ 11:06, 12 March 2007 (UTC)


 * Yes. I followed the instructions to the letter. But I made the online upgrade, because for some reasons our provider do not let us access the database with PHPmyAdmin, or use shell or anything (Ipowerweb). Shouldn't the online upgrade be the same? --Orso B. Schmid 18:14, 12 March 2007 (UTC)

Preventing interwiki-links from being urlencoded
Hi there, I'm currently using the interwiki table to link to a php project called abc. It works well with links like <nowikI>abc:index.php, but when I want to use parameters like <nowikI>abc:index.php?first=true the url gets encoded and wants to open the page named index.php?first=true instead of opening the page index.php with the parameter first=true. Any suggestions? --Flominator 11:05, 12 March 2007 (UTC)


 * interwiki-links are for linking to wiki pages, not for composing URLs with parameters. Characters like = must be URL-Encoded, so they work when they occur in page names. This means that the $1 in the URL-pattern in your interwiki-table can only act as one url-parameter, or as one part of the path in the URL. You have to use external link syntax (i.e. a full URL) if you want to compose URL parameters. You can wrap that in a template, to make this easier... and use the plainlinks class to make the link "look internal". -- Duesentrieb ⇌ 11:11, 12 March 2007 (UTC)

Error codes

 * Does MediaWiki return a 404 error code for pages that don't exist?
 * Does MediaWiki return a 410 error code for pages that at one time existed but don't anymore?
 * Does MediaWiki return a 301 error code for pages that have been moved?

If they do, where would I find the request handling code that returns these codes? If not, why doesn't it? ZJH 01:34, 13 March 2007 (UTC)


 * No. MediaWiki returns code 200 OK in all those cases. See 2585 for some discussion. -- Duesentrieb ⇌ 10:46, 13 March 2007 (UTC)

Install fails with DB Connection Error midway through install
I'm trying to install MediaWiki 1.9.3 with MySQL 5.0.27 and PhP 5.2.1; I'm using the config/setup script. It connects to my mysql db, checks the environment, proceeds to grant user permissions and then fails with: Deleting old default messages...DB connection error: Unknown error (mankato)

Does anyone know how to fix this? I've googled and googled and searched the mediawiki site with no luck.

Thanks,

Bobby


 * "Deleting old default messages..." potentially does a lot of queries if you are upgrading from an earlier version of MediaWiki. Perhaps there's some type of queries-per-minute restriction in effect? Perhaps look at the mysql error log and/or ask your hosting people -- Duesentrieb ⇌ 10:44, 13 March 2007 (UTC)

Thanks for your reply. I have not found any mysql error messages in /var/log/*; I did a vanilla install install of mysql on my own webserver (not hosted). I did not see any queries-per-minute restrictions but I have to confess I'm not a mysql expert. I'll look through a mysql book and check.

No relevant error messages in /usr/local/mysql/var/mankato.err

Is there any way to get more feedback from the install/setup script?

Also, I went and deleted the wikidb and wikiuser from my mysql instance and re-ran the install/configure script. Interesting that the first time I run the install script, it says that it failed in attempting to connect.

Attempting to connect to database server as root...failed with error [].

If I repeat the above procedure (delete everything from mysql and re-run install/configure), I get the same problem: fails first time and then second time I get mid-way through install and run into the "deleting old default messages" fails.

Update: problem solved. I deleted everything, and then I re-installed the wiki. The thing I did differently is I let the default 'localhost' stand instead of putting my web/db/wiki server's name in the field.

Can someone explain why that would have broken the install? I checked my root user and the fields for root for localhost, %, mankato, and FQDN all appeared the same. I'd like to solve this problem so that future install/upgrades will work.

Thanks,

Bobby


 * MySQL manages access by user@host, not just user. Per default, only root@localhost is supported, root@somethingelse will not work. Also, "localhost" is magic for MySQL, and not the same as 127.0.0.1: localhost maps to a unix socket (aka FIFO) to connect, not TCP. So, root access using anything but "localhost" will fail per default. Also, on some distributions (like debian and ubuntu), accessing MySQL via TCP is disabled completely per default.
 * The remaining question would be why it doesn't always fail immediately... -- Duesentrieb ⇌ 17:01, 13 March 2007 (UTC)

Thanks. I did verify that my mysql was listening on the main tcp port and that port was bound to various interfaces. I also had enabled the root user to be valid for various combinations of my hostname and FQDN. I think the problem was (and I still need to test this) is that I had not re-loaded privileges for the root user. I'm thinking that I updated the root privileges but then essentially did not flush them. Could this have been the problem? (I also turned off the dreaded SE linux.)

Thanks,

Bobby

How to change Default URL wiki/Main_Page
Is it possible to change the default url of the wiki.

The DEFAULT url looks like http://www.domain.com/wiki/Main_Page and I want to change it to say http://www.domain.com/wiki/Travel

see FAQ -- Duesentrieb ⇌ 10:42, 13 March 2007 (UTC)

Problems related to MediaWiki and PostgreSQL
Hi! I have successfully installed MediaWiki 1.8.4 on an Debian Etch system, which uses PostgreSQL 8.1 and Apache2. The default encoding is UTF-8.

After texvc was compiled and I changed the $wgUseTeX variable to true, the following error appears when I try to parse a mathematical expression, such as $$\sqrt{2}$$

Warning: pg_query [function.pg-query]: Query failed: ERROR: secuencia de bytes no válida para codificación «UTF8»: 0xd218 HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding". in /var/www/wiki/includes/DatabasePostgres.php on line 381

In Spanish, "secuencia de bytes no válida para codificación «UTF8»" means "invalid byte sequence for encoding «UTF8»".

The PostgreSQL database for the wiki defined the client_encoding variable to UTF-8.

Another MediaWiki installation was done on MySQL. Mathematical formulae are correctly displayed.

Could someone please provide some advice?

cant find php_mysql.dll == ==

cant find php_mysql.dll
cant find php_mysql.dll while installing Mediawiki php_mysql.dll  cant  found. Following message displayed ............. "PHP Warning: PHP Startup: Unable to load dynamic library 'c:\php\ext\php_mysql.dll' - The specified module could not be found. in Unknown on line 0 "

How to set isHTML
Hello I try to wirte a ParserFunction that returns text that returns HTML. But I dont know how to set the flag isHTML. Can somebody help?

acces control by chapter instead of by page
Hi everyone,

Is there any ways or extentions to apply security or user permissions on a chapter (part of the page) ? I want to restrict edition on a chapter instead of the entire page.

Thanks for your help.

195.68.44.143 14:27, 16 March 2007 (UTC)

Content word cloud?
Hello everyone, is there any way to parse a wiki's content and produce a word cloud of the article words? How? Thanks in advance! Gryzor 14:41, 16 March 2007 (UTC)

about authority
I want various user authority. how? my wiki site here

Creating a 'Common' media repository
Hi every body !

I'm trying, for the ScoutWiki network to set up a common media repository (like Commons on Wikimedia). But I have big difficulties to set it up.

I have a local french scoutwiki here wich I configured as expected (I think):

// Allow using ScoutMedia

$wgUseSharedUploads		= true;

// ScoutMedia upload directory

$wgSharedUploadPath		= "http://media.scoutwiki.org/images";

// ScoutMedia upload directory structure

$wgHashedSharedUploadDirectory = true;

// descriptions communes pour ScoutMedia & autres

$wgFetchCommonsDescriptions = true;

$wgRepositoryBaseUrl = "http://media.scoutwiki.org/w/Image:";

But when I try to call (from http://media.scoutwiki.org ) on Scoutopedia (here ), the image is not included.

What do I have to do more to make it work ?

Thanks a lot :)

Best regards,

Cedsib 15:47, 16 March 2007 (UTC)

Installation problem.
I uploaded all the files to the host, and browsed to the /config/ page, and I get this:

Warning: set_time_limit [function.set-time-limit]: Cannot set time limit in safe mode in /home/vhosts/modpedia.6te.net/install-utils.inc on line 21 * PHP 5.1.6 installed * Found database drivers for: MySQL *     Warning: PHP's register_globals option is enabled. Disable it if you can. MediaWiki will work, but your server is more exposed to PHP-based security vulnerabilities. * Fatal: magic_quotes_runtime is active! This option corrupts data input unpredictably; you cannot install or use MediaWiki unless this option is disabled.

Cannot install MediaWiki.

I don't know how to disable magic_quotes_runtime, does it involve .htaccess files? Because my host doesn't allow them.


 * magic_quotes_runtime</tt> is a PHP configuration option which corrupts data. If you're unable to disable it yourself, contact your hosting provider for support. 164.11.204.56 23:22, 18 March 2007 (UTC)

Hard to customise?
Hi

I really don't understand why customizing mediawiki is so cumbersome. We have the year 2007 after all. Why are there no wisiwig options for at least basic functions such as background colour and text changes?

I am thinking of using something else or giving up all together. It totally hinders the flow of productivity. I really wonder how many weeks and months it could take to change the wiki to match the overall theme of the website.

regards antonio


 * If the software is not suitable for your needs, then please do use something else. We didn't force you to select MediaWiki. 164.11.204.56 23:22, 18 March 2007 (UTC)

Joomla
Hi. I would like to have the ability to search my wiki's (I have 2) from within the Joomla search function. Does anyone know of a bot or method to achieve this please?

Hiding Page titles
I can't seem to find the command to hide the page title on a specific or main page. Thanks in advance.


 * This is achieved on the English Wikipedia using CSS; see http://en.wikipedia.org/wiki/MediaWiki:Common.css. 164.11.204.56 23:19, 18 March 2007 (UTC)

March 18th, 2007 on MONDAY.... a day that doesn't exist
Hi, I have just made a Japanese site that Mediawiki 1.9.3 is installed on the server which takes GST as Mediawiki recommend 9 hour adjustment. Though today is "Sunday, March 18th", it shows "MONDAY, March 18th". It used to show "Sunday, March 18th" till at least 14:44 JST as the picture on the right shows. The reason for it is probably that dates and days are differently programmed.
 * on dates, it is precisely indicated.
 * on days, they made it just add a day at least for GST-based servers to JST clients.
 * as a result, if GST area is on Saturday, it makes JST area on Sunday, which is correct. However once GST area becomes on Sunday, JST area becomes Monday even though the date is precise at JST, just like "Monday, March 18th", 2007.

I think the solution is making days be calculated from the adjusted time not calculated from GST time.--Orcano 10:54, 18 March 2007 (UTC)

Thanks for noticing, but please report bugs on Bugzilla. There it has a greater change of being fixed soon. -- Duesentrieb ⇌ 01:35, 19 March 2007 (UTC)


 * Thanks. I have noticed Bugzilla and I could not find relatives for that, though there might be some. I put 9325 there(no responce so far :)). Thanks for tell me information anyway.--Orcano 01:50, 19 March 2007 (UTC)

Searching
Hi Community,

I changed from JSP- to MediaWiki. Now I have a question about searching an article. I have an Article "MS CRM" for example. Typing "crm" in the search field doesn't find this article. Why? What can I do? An other Question: by default MediaWiki searches by articlename first. How can I configure to scan first the content? Is it possible to change the text of the textbuttons, like Wikipedia is doing that Benni


 * per default, MediaWiki uses MySQL's fulltext search index - which per default ignores words that are not at least four characters long. Look at the MySQL reference for changing that.
 * Interface text can be changed by editing MediaWiki:xxx pages. Look at Special:Allmessages to find the one you want. -- Duesentrieb ⇌ 14:19, 19 March 2007 (UTC)

I thank you for yout hint. I had to change the Pages searcharticle and searchbutton. How to change the MySQL's fulltext can be read here (german) http://dev.mysql.com/doc/refman/5.1/de/fulltext-fine-tuning.html '''But how to change searching full text after pressing Enter? Default ist searching Article.''' Benni

High CPU usage
I'm using Mediawiki on "Second Life Italia" website (secondlifeitalia.com), it's working fine but CPU usage on the web server is TOO high. Any page request require 20%-50% on w3wp.exe; same situation with Apache for Windows (httpd.exe). On the other hand, MySQL load is really low and at normal levels. Turning caching on/off seems to change anything. What I can do? Thank you in advance.

Radio buttons for diffs disappeared
Hello,

We recently installed 1.9.3 - http://jerusalem.perl.org.il/

We uploaded and edited some pages. There's a problem: When we view a page history, we don't see the radio buttons for selecting the versions for comparison.

Any ideas what could cause this? This is a clean install. We only locked it for anonymous editing using the instructions at http://meta.wikimedia.org/wiki/Preventing_Access

Any help will be appreciated.

Thanks in advance. --Amir E. Aharoni 12:45, 19 March 2007 (UTC)

Editing the Upload File page & link
Looking to change the upload file page and link within the toolbar to better reflect our storage procedures. Can't find the proper lines for either function in the database. Anyone have any experience with this before? Much appreciated. --Brookeb 22:55, 19 March 2007 (UTC)

Force TOC on all pages automatically
Hi,

I would like to know if there is a way to force all articles to have a TOC, instead of using for each page.

Thanks in advance for any support provided.

Kind regards,

Fabiano Antunes

Logo not appearing on all pages
I just downloaded the latest copy of MediaWiki, and I'm happy to report that the installation went flawlessly.

I just have one minor issue. The Logo that I defined in LocalSettings.php will work for some pages.

q$wgLogo = "sweep.gif";

But not on the main page. The gif is an animated gif, but I doubt that should have much of an effect, as it works on other pages, for example, on any discussion page.

Am I missing something obvious?


 * Clear your browser cache. -- Duesentrieb ⇌ 10:28, 20 March 2007 (UTC)


 * It doesn't seem to be a browser cache issue, as it occurs on client browsers that have never been to the site before.

Version No. of current MediaWiki
Hi!

Before a few months I installed MediaWiki on my server. But I have forgotten what version it is. Where can I find informations about on the running system which version of MediaWiki I am using?

Thanks alot!--Cwahl 10:38, 20 March 2007 (UTC)
 * Check Special:Version on your wiki.24.20.69.240 02:42, 22 March 2007 (UTC)

Water marks
Hi, i have one importantly business, i need function, who do watermark on uploaded foto automatic. Are this function are in mediawiki? Please, very need, thanks. --88.222.212.231 15:23, 20 March 2007 (UTC)
 * no, that is not doablein mediawiki as it is. You'll need an external programto watermark the images. However mediawiki privides a page for each image where you can add the description, license and all information you need about the image. Drini 15:27, 20 March 2007 (UTC)

but i need watermarks on my photos, whos i upload in my encyclopedia... --88.222.212.231 15:33, 20 March 2007 (UTC)

so, any can help for me? --88.222.212.231 19:41, 21 March 2007 (UTC)

PD help border
I can't find how to get the thin blue border around a page, like this site uses in the help: namespace. Any ideas? Thanks Gary Kirk 15:28, 20 March 2007 (UTC)

Relevance status on my private Wiki
In my office we're running mediawiki in order to share info. I was wondering if it would be possible to have a "relevance" status on my searchs, just like the wikipedia.

Is it possible? How do I do it?

lower case first letter for username
Is it possible to allow the creation of usernames with a lower case first letter? What do I have to change in the config? --JuergenL 09:26, 22 March 2007 (UTC)

Search for "Lange" gets SpecialSearch.php non-Object-Error
Ive installed the MediaWiki 1.6.10 Software and ONLY changed the Monobook Stuff. I didnt changed anything in sourcecode on all other Files.

I get this Error:

Fatal error: Call to a member function on a non-object in /home/watch-wiki_com/www/includes/SpecialSearch.php on line 335

But only when Searching for "Lange" or "lange" or...its not case sensitive...

You can test it yourself here -> www.watch-wiki.de -> Search for "Lange" (or "lange" "lANGE" -> its equal)

Did anybody know how to fix this error?

Language toggle
I have seen a few posts regarding language, but none seem to address my question. Is it possible to have a toggle option that would allow users to change from one language to another, more specifically the navigation menus without having the users go into their preferences. Basically, I am dealing with French and English as my 2 main languages, and I was wondering if it would be possible to add an option in the navigation menu that would change the language setting from one language to the other.

I thought that maybe we could do 2 installs and have 2 Wikis running at the same time and link from one to the other. But when it comes to accounts and administration, it seems like twice the amount of work, etc. Any suggestions would be appreciated.

March 22nd, 2007 Acadian_jl

JSR 168 Compliance in MediaWiki?
My company is implementing an enterprise portal framework. It can do portlets of info from applications that are JSR 168 compliant. Is MediaWiki compliant with that standard? If not, are there plans to make it so in the future? We would love to be able to use this portal tool in conjunction with our rather large existing MediaWiki information store.

Is it possible to create the functionality of the Forum on my own Wiki?
I want to have a Forum link in my Wiki navigation - just like this site has - and I want it to work just like it does here? Is there some sort of plug-in or upgrade I should know about? Or have MediaWiki built this specially for their own site?


 * Hm? It's just a link to an ordinary wiki page... nothing magic about it. -- Duesentrieb ⇌ 10:43, 24 March 2007 (UTC)

Image frame width in units other than pixels
I have tried to set image thumb width on Wikipedia in units other than pixels and it does not work. What I want is the following: "" This should display the image in a frame 1.5 inches wide independent of screen resolution. There should also be an ability to recognize other standard CSS length units: cm, mm, pc, pt, em, ex.

Instead, the only currently available options are either to set the width in pixels or to omit it and to hope that the user will set the default thumb width in user preferences.

Here is how the non-pixel width could be processed by the engine. At first it generates the image with the number of pixels determined by user preferences or by default settings (that is, as if the width was not specified at all). Then it scales the image as requested by adding the "width:" property to the style attribute of the tag. At the same time the tag should not contain width or height attributes.--Contra ventum 01:08, 23 March 2007 (UTC)


 * image thumbnails are rendered/scaled on the server, so this can not work. -- Duesentrieb ⇌ 01:44, 23 March 2007 (UTC)
 * The size of the image rendered by the server can always be the same (say, 180px), but if the returned page contains <img src="Picture.jpg" style="width: 1.5in;"/> then the browser will scale it to 1.5in. That is, the engine should not do the scaling itself, it should instruct the browser to do it.--Contra ventum 03:57, 23 March 2007 (UTC)
 * well, if you want the browser to do the scaling, you can always set Manual:$wgUseImageResize=false; in that case, it would indeed make sense to allow units like pt or ex. But mediawiki is specifically designed not to do that:
 * You don't want the browser to scale pictures up, that would look ugly. Images are used in several different sizes, so just giving a fixed thumbnail size for server-side rendering would not work (and 180px would be much to small).
 * uploaded images are often quite large, because people want to make full-resolution images available for viewing. Pictures on Commons and Wikipedia are often > 100KB, some are several MB large.
 * The are pages with hundreds of images - category pages show up to 200 per default, for example. Loading full the scale images would take very long, and asking the browser to scale 200 images with several megapixels each would take long again - and probably freeze the browser for a while.
 * Browser scaling also often yields pretty bad quality.
 * Some images can't be shown directly by the browser at all (SVG, DejaVu, etc), so they have to be rendered server side. And to do that, you need to know the desired size, in pixels.
 * So, client-side scaling is a bad idea in many cases. If you really want it, it may make sense to allow units other than pixels - but if you use them, you can't switch to server side scaling later on without manually adjusting all places where non-pixel units are used.
 * Mediawiki provides a per-user thumbnail size preference precisely to work around this issue. Its the best solution available at the moment, i'm afraid. -- Duesentrieb ⇌ 12:05, 23 March 2007 (UTC)
 * The problem with this solution is that a lot (if not the most) of Wikipedia articles explicitly set the sizes of the images to optimize the view for a particular resolution (typically 1024x768). For example, a portrait often needs a much smaller frame than a painting with lots of details. As a result, the pages look different in other resolutions and I have seen complains about it myself. In this case it is much better to scale pictures up than to leave them looking smaller than a postage stamp! Besides, the number of users who configure their preferences is tiny, we have to be realistic. Perhaps the solution needs to be slightly more complex, indeed. For example, a possibility to specify the size of the image in pixels rendered by the server (hidden from the browser) and the width. Or, when only non-pixel width is provided, the server could generate the image with the size corresponding to the preferred or the "typical" resolution.--Contra ventum 16:58, 23 March 2007 (UTC)
 * Oversampling could work. Would probably still cause more problems than it solves.
 * File a feature request on Bugzilla if you like. -- Duesentrieb ⇌ 01:46, 24 March 2007 (UTC)

Artifacts on special pages after upgrade to 1.93
Wiki has been upgraded to version 1.93. Preferences - Language: Russian. Page headline contains strange artifact: .oubleredirect. For example: "Ниже показаны 14 результата, начиная с № 1.oubleredirect" What is in english: "Showing below up to 14 results starting with #1." But in english there is no .oubleredirect on the line end. I think, that .oubleredirect is cutting doubleredirect. Similar pages can be found easily by google. http://www.google.com/search?q=.oubleredirect

Error is in file MessagesRu.php - line 850: ... $2 .oubleredirect',

Can only add very little text. Otherwise page will not save.
Installed Wiki successfully. Everything seems to work, but: If I edit an article and there is more than about one line of text changed, the page does not save. I just see a white browser window.

Whats wrong?

Thanks, Frank.


 * YOu might have a *very* small limit to post-data length set. This is a PHP setting (and apache can have a limit too i think). Or there might be an issue with the database. crank up error reporting and look at the logs. -- Duesentrieb ⇌ 01:44, 24 March 2007 (UTC)

add a lot of files to gallery
Hi Community,

I want to add a lot of Datafiles to my MediaWikis gallery. uploading data by hand, the software puts a copy of the file in images/randomdir/randomdir/file.dat and adds a entry in the table filearchive. I want to use a small perl script to insert my files in the gallery, but how? (create entry with link to the file) I can create the fileinfo and metadata in filearchieve an page, but where have i to put the link to the file? Benni
 * look for maintenance/importImages.php or some such. -- Duesentrieb ⇌ 01:43, 24 March 2007 (UTC)

German characters (and the like) are not correctly processed
I've installed wiki software on my own website. Unfortunately german characters like ö are not correctly processed. That is, if I enter (for example) ö in the search box and hit the GO button. The (web) page turns white and nothig happens (anymore). So the software holds. The exact thing happens when I enter a character like ö in the edit box to edit/submit a page. Is there some setting to set which tells wiki to accept and(correctly) process these kind of characters? Help!?! GertWillem


 * Should work without a problem (I'm using MediaWiki with german on two servers, not to speak of the german wikipedia, etc). All I can think of is a very strange database configuration. Look into the error logs (apache, php (if enabled), mysql, etc). -- Duesentrieb ⇌ 01:42, 24 March 2007 (UTC)

Invisible pages
Is it possible to make a page invisible to people without certain permissions? Specifically, can I make a page that only SYSOP or higher can view and edit, while nobody else could even read the page? Thanks! ColinR 08:16, 24 March 2007 (UTC)
 * see preventing access and Category:Page Access Control Extensions. Beware Security issues with authorization extensions -- Duesentrieb ⇌ 10:42, 24 March 2007 (UTC)