Project:Support desk/old

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.

I have also the same problem when I resize images like "image:learn.jpg|300px" it doesn't show any image (thumbs) and doesn't give me any error ...just an empty rectangle of the thumb size (300px) with X sign at the top left of that empty rectangle !!! .... I tried something I found in one of the forums, to commented these lines (in \wiki\includes\Image.php):

And instead add this : $cmd = $wgImageMagickConvertCommand. " -quality 85 -background white -geometry {$width} ". ($this->imagePath). " " . ($thumbPath); It works with them but didn't work with me!!!
 * 1) $cmd = $wgCustomConvertCommand;
 * 2) $cmd = str_replace( '%s', $src, str_replace( '%d', $dst, $cmd ) ); # Filenames
 * 3) $cmd = str_replace( '%h', $height, str_replace( '%w', $width, $cmd ) ); # Size

directory I found thumbs with the sizes I've tried on. and the whole directory that contains the the "convert" ....    which is the right path to the thumb
 * I'm sure that the converter works because when I opened the image/thumb
 * I gave permission for both the IUSR_* and IWAM_* on both the Image directory
 * and when I view the source of the page, the path of the thumb is

waiting for your help regards, Butmah

Similiar problem for me. Error message in place of the thumbnail: "/usr/bin/convert: Unrecognized option (-thumbnail)"
 * SuSE Linux 8.2 (Shared Hosting, no root access)
 * Apache/1.3.36 (Unix) PHP/5.2.0 with Suhosin-Patch FrontPage/5.0.2.4803 mod_fastcgi/mod_fastcgi-SNAP-0404142202 mod_ssl/2.8.27 OpenSSL/0.9.6i
 * MySQL 5.0.22
 * Path ImageMagick 5.5.4: /usr/bin/, Path Convert (ImageMagick): /usr/bin/convert
 * MediaWiki 1.9.3, AddHandler php-fastcgi .php .php4

Upload and everything else goes. Strange is that I use a MediaWiki 1.6.5 system on the same hosting where thumbnailing works. I was not able in the last hours to find a solution even searching all the web and are now frustrated.

Thanks for indications. Chrus. 2007-04-29

Similar problem for me. Environement Details:
 * Windows 2003 SP2
 * IIS 6.0
 * PHP 5.2.1 (isapi)
 * MySQL 5.0.37-community-nt
 * ImageMagick 6.3.4-9-Q16-windows-dll

ImageMagick is installed in "/images/imagemagick"; (this is the location of the convert.exe command.

ImageMagick renders the images just fine, until I want to utilize the thumbnailing feature. The error I get is "error creating thumbnail:"

One thing I did notice is that if you turn ImageMagick off and let the GD library create it, then when you re-enable ImageMagick it uses the thumbnail created by GD, however it is driving me absolutely nuts, especially since the GD library doesn't deal with transparent backgrounds very well and I get black where it should be transparent.

Any ideas or help would be GREAT!!

Respectfully, Stalling

How can i find out the most searched words on my mediawiki site?
I need to get a report of what words, and how many times a word has been used for searchs during a period of time! Is that possible?

I've been looking aroung for addons or some sort of report but no luck yet.

Regards

Andy

Spider (Swish-E or other external program) Authentication on MediaWiki
Hello -- I am attempting to use Swish-E to spider a local MediaWiki-based intranet that uses default database authentication to access its pages. I am trying to figure out a way to authenticate the spider (so it can proceed with the spider job) without having to whip up something special inside of the wiki (the installation doesn't "belong" to me). (The spider software saves cookies, btw).

The MediaWiki login page uses a POST method -- a GET-based alternative may work, but can't find any info on it.

Does anyone have any advice as to an approach?

thanks Robin

User.php customisation
I've added some checks on user credentials to loadFromDatabase in Users.php, but right at the start of that function, there's this check: if ( $this->mDataLoaded ) { return; } I'm returning at this point every time - even masquerading as different users and even at the first login after a reboot!. This variable is set further down the function, but I can't find out how it's reset - obviously I could do some dirty hacking, but I'd prefer to get a better understanding of what's going on and "do the right thing".

I'd be grateful for some enlightenment!

Searching for IP Addresses
Hi,

we use mediawiki for internal documentation. Is there a way to search for ip addresses? I know, there are lots of them, but the dot between the numbers splits up my searchstring. So, if i search for 192.168.1.1 there is found everything, what contains "192", "168" and "1". :-(

Any hints for me?

regards, Michael

Square Bracket witin Importing File
Issue I am having is &lt; and &gt; in XML file being imported into a wiki. Know that they have to be shown as & lt; and & gt;, otherwise it is interpreted as being part of the XML and lost. That is fine.

The problem then is, that they are converted into &lt; and &gt; within the wiki text after it is imported. For most situations this is not a problem, however have encountered one where in a text mathematical formula &lt; and &gt; are used around a capital "B". And this is then interpreted as being the HTML code for bold, definitely not what we want.

The XML files are being generated automatically using a script, to make it fast and easy to do since there are about 70 odd pages it is generating, all with similar formats. So would be handy to sort something out so doesn't require human intervention once it is uploaded to fix the issue. Any suggestions? --Dr DBW 00:30, 18 June 2007 (UTC)

human readable URLs as an option
For non-english Wikis encoding the URLs of articles in URL encoding looks very ugly. Would be important to have an option to use and display URLs in their original encoding, or at least UTF8. You can recognize the encoding used at the client, and also, this could be available only to clients with utf8 support. I know you recognize latin1 and utf8, but please make an option to not redirect to this encoded-url page. It's very irritating that with every new generation of software (desktop, web, ...) non-us crowd is suffering from this simple problem. Just for one minute try to enable url-encoding english-only URLs on Wikipedia, and you'll see the response, and understand the need. :-)

Database error
Hello, I keep getting a database error when I try to edit a page more than once. The error can be found here: []. I don't know whether I should submit this to bugzilla or not. The error only started occuring after I installed videoflash from Extension:VideoFlash. I asked around on IRC but they told be to post here. --72.1.206.116 14:37, 22 June 2007 (UTC)


 * Please copy and paste the exact text of the error message here. robchurch | talk 09:38, 23 June 2007 (UTC)

Here is exactly what occurs:


 * I have the exact same error. I tried to run  which run fine but did not remove the database error. No updates are possible on my Wiki right now.

Fix/Workaround
I found that logging on to the mysql wiki db and issueing a delete from objectcache; solved the problem for me just until next change. I am unsure as of the implications of this, but I didn't loose any data. TheSpooler 02:15, 3 July 2007 (UTC)

Workaround
I had repeatable errors on editing the Main Page of my local (patched) mediawiki-1.8.4

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 "MediaWikiBagOStuff::_doinsert". MySQL returned error "1062: Duplicate entry 'wikidb:pcache:idhash:1-0!1!0!!en!2' for key 1 (localhost)"

after an update of my installation. I found it to be caused by the upgrade from mysql 5.0.38 to 5.0.42. Downgrading to 5.0.38 seems to have solved the issue. However, I'm still wondering why it writes on install: Creating tables... using MySQL 4 table defs... done. since I only have mysql 5 installed. Wiki-maniac. (Wed Jul 4 00:44:47 CEST 2007)


 * The "MySQL 4" table definitions refer to the version of the schema MediaWiki is using; in this case, it's the default, backwards-compatible schema, which should work fine with MySQL 4 upwards.
 * The choice of schema also affects the character set and collation in use. Under the backwards-compatible behaviour, MediaWiki will ignore whatever character set the database is using, and stores UTF-8 data regardless. This is important because the UTF-8 implementation in MySQL 4.1+ is somewhat lacking for our purposes. The newer, experimental "MySQL 5" schemas explicitly create a UTF-8 (Unicode) database and configure MediaWiki to assume it's storing UTF-8 data in a UTF-8 database. These are not as well tested, which is why we don't select them by default. robchurch | talk 07:48, 4 July 2007 (UTC)

Multiple sites/domains with one mediawiki/one database?
Good day. I would like to run one database and one mediawiki installation to supply several domains/sites.

So on one domain you see layout1 and only posts/articles of category1, on project 2 you shoudl see a different layout and different content.

Is this possible with mediawiki?

Thanks Smo


 * Try Extension:Farmer. --66.102.80.239 14:48, 7 July 2007 (UTC)

Some languages are out of date
I wanted ti use Persian language in my wiki (1.10), but when I compare it with older version I saw it is same and only the MessagesEn.php file is changed and has more sections.if I want to use the MessagesFa.php, what I must do? Can I translate MessagesEn.php and rename it to MessagesFa.php? I I used a translated version of mediawiki 1.9.3 (MessagesFa.php from mediawiki 1.9.3 in that way that I described) is it act normally? in the other word, Messages are backward compatible and if some phrases didn't find in MessagesFa.php, Mediawiki use the translation that is in MessagesEn.php?


 * Yes, if MediaWiki can't find the message it's looking for in the current language, it will fall back to the language specified in the message file, which is often English
 * We've got, I think, a maintainer for Farsi-Persian, now, so the localisations should be more robust in MediaWiki 1.10.x and MediaWiki 1.11.x
 * robchurch | talk 07:44, 4 July 2007 (UTC)

regarding blogs from mediawiki extension.
hi can u help me out on how to delete blogs which are created using mediawiki..i have created a special function of blog using mediawiki extensions and i am able to post blogs. i jus wanted to know on how to delete blogs which are posted and update them to. your help would be of good use to all the members of my wiki. thanks. in mediawiki extensions they have mentioned on only its installation,implementation and working. regards deepak arvind--125.16.138.136 10:50, 25 June 2007 (UTC)

Including in the default edit page some form elements
I was wondering what might be the most straight forward way to include in the default edit page of a new entry, some elements including fields with drop down lists (lists being either static or even better lists generated dynamically by the Semantic MediaWiki for instance). --Tmantiko 16:41, 25 June 2007 (UTC)

Chronological MediaWiki Category Listings
How can I convert Alphabetical sort of categories to chronological in mediawiki?

File Extensions Problem
Hi, My problems is with File Extensions. Firstly let me say that I am not a php developer I am a C++/C/C# etc developer so I like compiled languages and a compiler much better. However I hope that I can get some help here. I've edited my wgFileExtensions[] array to add in the new office file formats pptx, xlsx, dot etc. One of the users at the company I work up loaded a pptx file format. Now every time you click on the link essentially a 404 page is generated.

Things I've tried.

1. Verified that the file existed in the database. 2. Edited the acceptable file extensions in both Default Settings and my localSettings .php 3. Reduced the name of the file, thinking there might be a name length issue. 4. Reduced the size of the file thinking there might be an issue with php post of larger files.

I am just stumped. If Anyone has any ideas please let me know.

Cheers Chris Howell chowell@pyxisinnovation.com


 * It might be helpful to see the corresponding lines from LocalSettings.php
 * Don't ever edit includes/DefaultSettings.php, per the top of the file
 * What "link" is it that you are talking about? Is this a link on the image description page, a link to the description page, or some custom link?
 * robchurch | talk 07:42, 4 July 2007 (UTC)

use Imagemagick on IIS
OS:WinXP SP2,Web:IIS，PHP5, and Imagemagick 6.3.4, I opened the permission, but when I put Image to page, it's always report this error:

PHP Warning: exec [function.exec]: Unable to fork [""C:\Program Files\ImageMagick-6.3.4-Q16\convert.exe" -quality 95 -background white -size 136 "C:\Inetpub\wwwroot\wmtw/images/c/c9/aa-web.png" -coalesce -thumbnail "136x148!" -depth 8 "C:\Inetpub\wwwroot\wmtw/images/thumb/c/c9/aa-web.png/136px-aa-web.png" 2>&1"] in C:\Inetpub\wwwroot\wmtw\includes\GlobalFunctions.php on line 1842

--Alexsh 09:16, 26 June 2007 (UTC)
 * Spaces in the path tend to throw web applications off. Try reinstalling Imagemagick into a directory that doesn't have spaces like C:\ImageMagick. And then modify LocalSettings.php to have the follwing lines in the section where you had the previous ImageMagick directories

$wgEnableUploads      = true; $wgUseImageResize     = true; $wgUseImageMagick = true; $wgImageMagickConvertCommand = "C:/ImageMagick/convert.exe"; $wgImageMagickIdentifyCommand = "C:/ImageMagick/identify.exe";
 * -- Kyle 19:14, 26 June 2007 (UTC)

HowTo: Special pages/Allpages except a specified namespace
I found the following information at the help site of wikimedia:

"All pages ... ... From MediaWiki 1.5 one can also select all namespaces except a specified one. Namespace prefixes are given, but the sort key is the page name without prefix."

But i dont know what, where and how to do this. So i need your help. Where is the file? What i have to change there?

I use version 1.6.8

mediawiki:sidebar coloring?
hi is it possible to add colors to the mediawiki:sidebar? thanks dj--125.16.138.135 10:10, 26 June 2007 (UTC)

--
 * A1: Peter Blaise responds: Great question, 125.16.138.135. I'd love not only find the answer, but also find a link to where in MediaWiki support such a listing exists - but I don't know!  It sounds like a *.css challenge, no?  Here are a few files that I've found with controls over what we see on screen:
 * ...\mediawiki\includes\SkinTemplate.php
 * ...\mediawiki\skins\monobook.php
 * ...\mediawiki\skins\commom\common.css
 * ...\mediawiki\skins\monobook, a directory with 29 files in it.
 * Here's what I have been doing: I make copies of those files, then change their contents one line at a time, save the file, and refresh my screen cache ([Ctrl][F5] in Windows), and see if I've found the control I am after. Then I write down "this controls that" notes to myself in a reference text file.  But, I've not changed much yet, so I haven't got a clue how to accomplish your goal.  Gosh, it would be nice to have a real MediaWiki index of all words, features and parts, something that might include where each component is controlled, maybe entries like:
 * sidebar, mentioned in
 * ...\mediawiki\includes\SkinTemplate.php at line "blah, blah, blah..."
 * ...\mediawiki\skins\monobook.php at line "yada, yada, yada ..."
 * ... and so on. But I've not found such a MediaWiki reference, yet.  Quite a daunting task, eh?  Otherwise, it's kind of like having a grocery store with everything just thrown on the shelves anywhere, and we all have to search the entire store from end to end for what we are after every time we go shopping.  We definitely need a MediaWiki "names of parts" listing, with a complete table of contents and especially a complete, cross referenced index to find all references to MediaWiki elements and controls.  Here's where the word "sidebar" is mentioned specifically in MediaWiki installation files - but none of these are any help:
 * ...\mediawiki\mediawiki-documents.txt
 * ...\mediawiki\maintenance\dumpHTML.inc
 * ...\mediawiki\maintenance\language\messages.inc
 * ...\mediawiki\maintenance\language\messageTypes.inc
 * Perhaps however the sidebar appears is a byproduct of tweaking general controls for the entire screen? Anybody?  Anybody?


 * Note: ...\medaiwiki\maintenance\language\messages.txt DOES have some interesting information regarding the "sidebar" feature:
 * Cool! This information saves my much time in trying to rebuild "navigation/sidebar" as a table of contents.  The sidebar's not looking for pages addresses, it's looking for XHTML id names! ... now to find a table of contents/index on MediaWiki XHTML id names ... ;-(
 * -- Peter Blaise peterblaise 11:57, 26 June 2007 (UTC)
 * -- Peter Blaise peterblaise 11:57, 26 June 2007 (UTC)

How to export multiple nested template/data?
When I want to export one template there are to many nested template in that template, is there any way to export them at once? -- 2007-06-26T08:53:41 213.233.160.48


 * If it's on a Wikimedia-run wiki, have a look at Special:ExpandTemplates, which will zip through the nesting and resolve all templates, brace expansions, etc. into a blob of wiki text. If it's not on a Wikimedia wiki, but you are in a position to do so, then you might try installing the extension yourself, it's pretty nifty. robchurch | talk 19:00, 26 June 2007 (UTC)


 * Peter Blaise says: See http://www.mediawiki.org/wiki/Extension:ExpandTemplates? Thanks for pointing it out. Perhaps one of us can copy this question and an example of the solution to the discussion/talk page behind that extension/article page.  I'm looking forward to seeing to the solution.  Thanks.  -- Peter Blaise peterblaise 10:06, 27 June 2007 (UTC)


 * Peter, please use internal links to link to another page on this site. Note that this sort of question should not go on the extension page or discussion page; it won't help anyone if they can't find it. robchurch | talk 07:40, 4 July 2007 (UTC)

Image file permissions screw pages up!
Hello!

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

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

Thanks, Th.P.


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


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

help reqd in blog extension! DJ
very urgent and important!!! hi i'm getting the following error in my wiki when i tried to create a blog space using mediawiki. can u help me out.

Invalid non-numeric limit passed to limitResult

Backtrace:

0 C:\wamp\www\mywikipedia\includes\Database.php(990): Database->limitResult(, '0,50', false) 1 C:\wamp\www\mywikipedia\includes\Database.php(1046): Database->makeSelectOptions(Array) 2 C:\wamp\www\mywikipedia\extensions\SpecialPageSubBlogs.php(51): Database->select('page', Array, Array, 'listsubpages', Array) 3 C:\wamp\www\mywikipedia\includes\SpecialPage.php(431): SpecialListSubBlogs->execute('User:Aussie') 4 C:\wamp\www\mywikipedia\includes\Wiki.php(182): SpecialPage::executePath(Object(Title)) 5 C:\wamp\www\mywikipedia\includes\Wiki.php(47): MediaWiki->initializeSpecialCases(Object(Title), Object(OutputPage), Object(WebRequest)) 6 C:\wamp\www\mywikipedia\index.php(48): MediaWiki->initialize(Object(Title), Object(OutputPage), Object(User), Object(WebRequest)) 7 {main}

also i dint understand the meanin of the following sentence

Down a few lines, right before " " Added:

and this is wat i have done to my page

and i used media wiki 1.9.3

with best regards dj--125.16.138.136 07:09, 27 June 2007 (UTC)


 * Peter Blaise asks: Hi DJ. What "blog extension"?  And if there is one, (a) where is it, and (b) this question, and it's resolution, should probably go there, at least when done.  Note: I corrected some misspellings so searches on MediaWiki can find this in the results.  Also, see all MediaWiki extensions at http://www.mediawiki.org/wiki/Category:Extensions  Thanks. -- Peter Blaise peterblaise 09:49, 27 June 2007 (UTC) ... also note that Special:Version shows what extensions are installed, and works on MediaWiki.org and our own sites, allowing us to compare if we are looking for the source of familiar features. -- Peter Blaise peterblaise 10:10, 27 June 2007 (UTC)


 * Extension:My blog presumably. Perhaps contact the author of this extension first? -- :Bdk: 09:56, 1 July 2007 (UTC)

Show how much percentage of the whole wiki a user contributed
Hi!

Is there a way to show a statistic how much of the whole wiki an user contributed?

Thank you! 85.176.129.79 15:51, 27 June 2007 (UTC)Martin

How remove the general template on Special:Userlogin ?
When user login or create account, I need to remove the normal mediawiki layout, for just keep the specific Userlogin template. In other terms, I don't want the left bar, the title, the actions, the footer, etc. I just want the login / create account box. Don't ask why... Designer guys have sometime strange ideas and I'm just an executioner.

I search in the manual, and in the code since some hours without success. Someone know how to proceed ? I don't need the exact code, I can write it myself, but I don't see where to write it and which parameter/function I must to use.

Thanks in advance.

--FredHewitt 15:11, 28 June 2007 (UTC)

For information, or if this can be usefull for anyone, I succeed to find a solution.

In the file include/SpecialUserlogin.php at the very end of the mainLoginForm function, I add the line : $wgOut->setArticleBodyOnly(true);

This seems to work well. If someone have other idea or commentary, I'm still open to improvement.

--FredHewitt 15:22, 3 July 2007 (UTC)

I want to know why MediaWiki stops working despite no changes...
Hi,

I'm hoping that someone can help me, but I also recognize that there's a lot of questions on this page and a lot of them never get answered. I've tried my best to look for the answer elsewhere on the site, but to no avail. If I've missed it, I apologize, but I would still appreciate an answer. Considering how scattered and varied the information is, you can't really hold it against me for not finding one!

So, yesterday I was happily plugging away at adding some new content to my mediawiki page. It was working splendidly. No errors or unusual behaviour whatsoever.

Today, however, when I go to access the main page, I receive this error:



...wtf?

So, what I would like to know is how this happened without me making any server-side changes. What I need to know is how to fix it. It seems very suspicious that I could edit and navigate the page with no problems one day, yet be completely unable to access it the next. Especially when I am the only one who even knows it exists and nobody else even has the permissions to change anything anyway!

So is anybody out there? Pleeeeaase?

--Randall00 18:47, 28 June 2007 (UTC)

How Can I hide table of contents in first loading?
How can I set the status of table of contents (toc) hid in first loading, my default setting is show in first loading and I'd like to be like this page: http://www.mediawiki.org/wiki/Manual:Image_Administration

How can I set some options as default?
in settings section of mediawiki (preferences) you can set some of your preferences. how can I change the default settings. for example how can I set search namespaces in all sections as default settings?

Any way to identify the section?
Hello... a question relating to the software. Is there a way to determine the section a template is in? Specifically, we have a template on en.wikipedia that requires different wording depending on whether it is at the top of the page or in a section. I'd like to use an "IF" condition based on section, the premise being that if the section is "0", it would use one block of text, and another if not. Thoughts? (Replies can go here or on my EN talk page - thanks!) --Ckatz 05:39, 29 June 2007 (UTC)


 * Doesn't MediaWiki number the headings from the top to bottom? May be you can use that? --Dr DBW 23:33, 3 July 2007 (UTC)

How can I include content in every new article
Hi,

we are using mediawiki in our company. We have more than 3000 manually registered Users and until today 2.140.527 pageviews.

I would like to automatically insert a signature ( --~ ) and a category in every new article. Is this possible?

Thanks! --Royalsolo 08:27, 29 June 2007 (UTC)


 * There is a bot on Wikipedia that does something like that remember reading about it --Dr DBW 23:40, 3 July 2007 (UTC)

Wiki Migration from SnipSnap to MediaWiki
I am researching the possibility of migrating a wiki from the SnipSnap wiki to MediaWiki. Has anyone done this or are there any resources available to assist with this? Thanks!

Popular Pages
Hi,

I need to have around 5 - 6 popluar pages list in the side bar of my Main Page. Can you please guide me

Regards Ashish
 * See Manual:Navigation bar. Note that sidebar links will appear on every page of the site.--Brian 04:20, 1 July 2007 (UTC)

Help restricting access to all pages, register, create new pages
Hello i need to restrict access to all pages but main page to anon users and also restrict account creation. I've added these to my LocalSettings.php but they did not work;

$wgGroupPermissions['*']['createpage'] = false; $wgWhitelistRead = array( ":Main Page"); $wgWhitelistAccount = array ( "user" => 0, "sysop" => 1, "developer" => 1 );
 * 1) Anonymous users can't create pages
 * 1) Pages anonymous (not-logged-in) users may see
 * 1) Prevent new user registrations except by sysops

I added them on the last line of the Localsettings before ?>


 * Well, what version of MediaWiki are you using?


 * Secondly, I'd add the following to LocalSetting.php:

$wgGroupPermissions['*'   ]['createaccount']   = false; $wgGroupPermissions['*'   ]['read']            = false; $wgGroupPermissions['*'   ]['edit']            = false; $wgGroupPermissions['*'   ]['createpage']      = false; $wgGroupPermissions['*'   ]['createtalk']      = false; $wgGroupPermissions['sysop'   ]['createaccount']   = true; $wgGroupPermissions['developer'   ]['createaccount']   = true; $wgWhitelistRead = array( ":Main Page, Special:Userlogin");


 * That should basically disallow anonymous users' editing, page and account creation, but allow sysops and developers to create new accounts. Also, it will make the main page and Special:Userlogin (the login page) viewable. -- Sayuri 19:56, 1 July 2007 (UTC)

Your session save path appears to be invalid or is not writable.
I got this error on the install. The session save path is set at 777 and the directory exits. Any idea what is causing this?

Below is the output from the initial set-up. _____________________________________________________________________________________________________ Please include all of the lines below when reporting installation problems.

* PHP 5.0.4 installed * Found database drivers for: MySQL * PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title) * Have XML / Latin1-UTF-8 conversion support. Your session save path appears to be invalid or is not writable. PHP needs to be able to save data to this location in order for correct session operation. Please check that session.save_path in PHP.ini points to a valid path, and is read/write/execute for the user your web server is running under.

_____

I'm also seeing this same problem. I'm seeing a few warnings, but I believe MediaWiki should work even with the other warnings... Here is my output:

Checking environment...

Please include all of the lines below when reporting installation problems.

* PHP 5.2.3 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. * Warning: PHP's safe mode is active. You may have problems caused by this, particularly if using image uploads. * PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title) * Have XML / Latin1-UTF-8 conversion support. Your session save path appears to be invalid or is not writable. PHP needs to be able to save data to this location in order for correct session operation. Please check that session.save_path in PHP.ini points to a valid path, and is read/write/execute for the user your web server is running under.

(Question removed)

I wold appreciate a visible definition for the bonefisch Conger to diffententiate it from muräne. Can you help? Dahmer.J@gmx.de

I wold appreciate a visible definition for the bonefisch Conger to diffententiate it from muräne. Can you help? Dahmer.J@gmx.de

______

* Warning: PHP's safe mode is active. You may have problems caused by this, particularly if using image uploads.

that is maybe a problem with confixx if you use that, it "overwrite" the PHP safemode in the php.ini

CVS or SVN support for uploaded files
Hi,

are there any plans to have a file upload in a CVS or SVN. I am aware there is a versioning system for files in place, but it is not one of the two above - or am I wrong?

The reason for this request is that we are using the mediawiki software in a project scenario where we need to maintain version of files. The files can be pictures but could also be code. In particular for the code part of it an upload supporting/based on a CVS would be great since IDEs have support for these versioning systems.

Any comment is appreciated...

best regards Andreas


 * No, there are no plans to use CVS or Subversion as backend versioning for files or page data. robchurch | talk 07:36, 4 July 2007 (UTC)

Transwiki question
I set $wgImportSources to commons and wikibooks, set import in Localsettings.php, yet when I tried importing it said it could not find the import file!!

what do I need to do to enable transwiki on my installation??

it's 1.10, on a WAMP server. if that's of any help. --84.45.219.185 12:48, 4 July 2007 (UTC)

Why is my main page appearing blank?
http://vanburenskits.com/wiki/index.php/Main_Page

Please help, it was working fine, but now its blank :/

AIM me at korgone5 if you have the answer :)

Thank you.


 * How about looking at your error_log it will usually report the errors when the page is blank.

Image width limitation in articles
Hi.

I need to limit the width of images in articles. User must be able to upload really large images, but I want than these images appear never larger than 728px in article. For my need, it's not really necessary to create a thumbnail. So, I think about "just" adjust the width/height in the img tag, but.

1) I'm absolutely unable to find in which php file this tag is created. 2) It's not an elegant solution, because the visitor load a larger image than what his see. If it's possible to create and show automatically a 728px-thumbnail, it's clearly better.

Someone have idea ? Even for the simple - no so good - solution ?

Respectfully, --FredHewitt 19:33, 4 July 2007 (UTC)

Solution
Lack of quick support here :) Well, anyway, I find a clean and simple method. Feel free to use...

In include/Linker.php, function makeImageLinkOb, find:

global $wgContLang, $wgUser, $wgThumbLimits;

Replace by

global $wgContLang, $wgUser, $wgThumbLimits, $wgImageMaxOutputWidth;

Find:

if ( !isset( $params['width'] ) ) { $params['width'] = $img->getWidth( $page );

Replace by:

if ( !isset( $params['width'] ) ) { if ($img->getWidth( $page ) > $wgImageMaxOutputWidth && $wgImageMaxOutputWidth <> 0) { $params['width'] = $wgImageMaxOutputWidth; } else { $params['width'] = $img->getWidth( $page ); }

In the LocalSetting.php, add (with the value you want in pixel, or 0 for desactive):

$wgImageMaxOutputWidth = 728;

--FredHewitt 18:11, 5 July 2007 (UTC)

urgent: About VLC...
Dear Developer team, I want to broadcast some presentation videos to my variours office at LCD Screen by using my home's pc. Which i can operate with my pc and can broadcast video at a time.I am ready for pay cost for it,if you provide any solution.

regards, Vats, India vats@inbox.com

How to list unprotected articles?
I would like to generate a list of unprotected articles in my wiki. Is that possible? Also, is it possible to have "protected" articles as default when saving the articles? 80.203.147.174 11:36, 5 July 2007 (UTC)


 * Assuming MediaWiki 1.10.0 or later, then the following SQL would query it:


 * As to protecting pages after creation, write an extension which hooks ArticleInsertComplete and then updates the page restrictions. robchurch | talk 17:15, 6 July 2007 (UTC)

Re-upload broken
Here is the error message I got: Internal error From MediaWiki.org Jump to: navigation, search

Could not rename file "/mnt/upload3/wikipedia/mediawiki/temp/9/92/20070705173321!BizzWikiLogo.png" to "/mnt/upload3/wikipedia/mediawiki/9/92/BizzWikiLogo.png".

&#91;user:jldupont&#124;Jean-Lou Dupont] 17:35, 5 July 2007 (UTC)

Editing the bottom bar of the wikimedia
Okay, so, I want to do something like wikipedia does, in that I want to link the Privacy Policy link at the bottom of the page to this site. However, I can't find where to edit that, so I can do that...can anyone help me?

how to edit the sidebar
I am not able to edit or add new links in the side bar please tell me how to do that


 * See the manual please. -- :Bdk: 14:29, 6 July 2007 (UTC)

Is it possible to set a default group to new accounts?
I would like to set a default group to new accounts so that we do not have to manually added users to a default group. They need to log in before they can edit pages and be a member of a specific group, and we have set up several groups so we can restrict the viewing/editing of pages. I have not found anything in the documentation that says how to do this or even if it can be done.


 * Write an extension which subscribes to the AddNewAccount hook and adds the new user to the desired groups. robchurch | talk 17:08, 6 July 2007 (UTC)

problem at changing the logo
Hello to mediawiki, I tried to copy $wgLogo = "{$wgStylePath}/common/images/wiki.png" to LocalSetting.php file, and I didn't saw the photo. At the FAQ I saw that I should look at "web server error log and adjust accordingly". Where can I find this log ? Thanks Gili Email : gili1234@netvision.net.il

Removing the Table of Contents from specified Pages
Is there any way to remove the table of contents from specified pages? It appears automatically when there are four or more headings. I haven't been able to find anything written about this in any of the existing literature.

Thanks for the help! Eli


 * You can add  to the page where you want to hide the table of contents. For more information, see meta:Help:Magic words. SPQRobin 13:57, 7 July 2007 (UTC)

Thanks! I also just came across this for anyone else who might be interested in adapting their toc: http://www.mwusers.com/forums/showthread.php?t=1804&highlight=table+contents

How can I make parser functions like work?
, and similar functions don't work in my wiki. What should I do to turn them on?


 * MediaWiki: 1.10.0
 * PHP: 5.2.3 (apache2handler)
 * PostgreSQL: PostgreSQL 8.2.4 on i686-pld-linux-gnu, compiled by GCC i686-pld-linux-gcc (GCC) 3.3.6 (PLD Linux)


 * You need to download the ParserFunctions extension from Wikimedia's SVN. Click here to view the 5 files and download them. Create a folder called  to your   folder, place those files there and then add the following to your LocalSettings.php:


 * -- Sayuri 12:03, 7 July 2007 (UTC)

Cache special pages
How can special pages (specifically orphaned/lonely pages) be cached instead of generated dynamically? YukataNinja 23:25, 7 July 2007 (UTC)

Can't access special pages
Hello

For some reason, when i enter a special page url, i get this message:

"You don't have permission to access /wiki " etc.

Any idea What and where do i give permission for this pages so sysop could access them?

Thanks a lot! Jack.

How to add a htmlcode to the sourcetext of the edit-page
How (and where) can I add a Html-code to the bottom of the editpage (over the buttons and under the Copyright-text) from all sites in my WIKI??? greet...

Email Confirmation Content
I am using the most current version of MediaWiki (1.10). My wiki is set-up so that only I can create accounts for other people (new users cannot create their own accounts). I prefer to do this with the "by e-mail" button. My problem is that I would like to edit the content of this automatic email so it is more personal to my wiki. In other words, create a new template for this email. I cannot find any documentation that shows me where/how I would do this. Can you please point me in the right direction or explain how I would do this? Thanks.

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

A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:

(SQL query hidden)

from within function "Title::getInterwikiLink". MySQL returned error "1267: Illegal mix of collations (cp1251_general_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation '=' (localhost)".

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

possible bug in SVG rasterisation
not sure if this is a bug or not. I have uploaded an SVG to wikimedia commons at http://commons.wikimedia.org/wiki/Image:Blank_map_of_Europe.svg

The rasterised version shown on that page has every nation shaded grey, yet there is an embedded stylesheet that specifies that various countries (defined as shapes and groups with ids) have a fill of a colour. Viewing the SVG live in firefox shows the coloured version as does opening it in Inkscape. Now I am no SVG guru, so I might have missed something that means that the SVG itself is wrong, but if the SVG is ok, then it looks like the rasterisation is failing to correctly read in all the CSS. MrWeeble 12:15, 10 July 2007 (UTC)