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)

I am receiving the same error. I have ImageMagick installed at C:\ImageMagick and the same settings in LocalSettings.php: $wgEnableUploads = true; $wgUseImageResize = true; $wgUseImageMagick = true; $wgImageMagickConvertCommand = "C:\ImageMagick\convert.exe"; $wgImageMagickIdentifyCommand = "C:\ImageMagick\identify.exe"; If I copy/past the attempted command in a command prompt: C:\ImageMagick\convert.exe -quality 80 -background white -size 250 "C:\Wiki\mediawiki-1.10.1/images/6/64/LegatoNetworker1.JPG" -coalesce -thumbnail "250x599!" -depth 8 -sharpen "0x0.4" "C:\Wiki\mediawiki-1.10.1/images/thumb/6/64/LegatoNetworker1.JPG/250px-LegatoNetworker1.JPG" 2>&1 ImageMagick will correctly generate the thumbnail. But when I hit it from the web site, I get the above error. I made sure that the IWAM and IUSR accounts both have full access to C:\ImageMagick\Images and C:\Wiki\mediawiki-1.10.1\images folders. Thoughts? --ThatRickGuy 20:28, 17 July 2007 (UTC)

Found the solution. C:\Windows\System32\cmd.exe needs to have the IUSR (but not the IWAM) account set to Read and Execute access.

--ThatRickGuy 21:48, 17 July 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)

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)


 * Set  in LocalSettings.php. Use maintenance/updateSpecialPages.php</tt> to re-cache. robchurch | talk 13:25, 10 July 2007 (UTC)


 * Thanks. YukataNinja 19:19, 10 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.


 * At the moment, the passwordremindertext</tt> message is used for both password reminders and new account messages; this is an open bug. robchurch | talk 13:25, 10 July 2007 (UTC)

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

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

(SQL query hidden)

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

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

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)


 * This would be an upstream issue in librsvg. robchurch | talk 13:00, 11 July 2007 (UTC)

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

Problem with server side redirect (i.e. "clean URLs") and page titles ending in "k"
http://mediawiki.pastey.net/70624-3leq Hoogs 00:26, 11 July 2007 (UTC)

How do I merge two media wiki's?
Hi!

I have two media wikis installed and running but I want some content of one of them to migrate to the other. How can I do this without having to copy/paste the text?

Thanks,

Jorge --193.136.189.2 14:34, 11 July 2007 (UTC)


 * dumpBackup.php and importDump.php make a fine pair. --brion 15:32, 12 July 2007 (UTC)

Thanks for the answer but I'm using version 1.4.9. I don't have those scripts... Jorge --193.136.189.2 17:47, 13 July 2007 (UTC)


 * Sucks to be you. robchurch | talk 07:36, 18 July 2007 (UTC)

I can change de skin, but what about the include files ?
I can change easily the skin, but it's not always sufficient. I often need to make changes in the include directory for add feature and tweak special pages... But I don't like that because all these files will be (eventually) overloaded by the next upgrade, which :
 * mean a lot of time lost each 3 or 4 months
 * force me to note all modifications for future modifications.

Someone have a better method ?

--FredHewitt 13:26, 12 July 2007 (UTC)


 * Where possible, write extensions to add functionality; upgrades will not usually affect these
 * If changing the core code is unavoidable, consider using diff</tt> to create a patch which can be re-applied after reviewing following an upgrade
 * robchurch | talk 07:36, 18 July 2007 (UTC)

PHP 5.0
My host isn't implementing PHP 5.0 http://www.relioforums.com/showthread.php?t=589 "You can not run two apache mod_php versions at the same time. You can run a mod_php and cgi version at the same time but 99% of hosts will not run a cgi apache. The reason for this is that the cgi version of php has to actually launch the php executable for every php page loaded. When you have a server with more then 100 or so sites on it that run php, then you can start to have problems with too many processes, using too much memory, and raising the server load. With the mod_php version of php all apache has to do is send the information through the php parser which is already loaded into memory. This is much better for a large number of php pages."

For the above reason... is there a way around this? (i.e. running mediawiki on linux-base machine) Thank you. --66.215.18.156 01:48, 12 July 2007 (UTC)


 * Vote with your dollars -- get a host that supports the software you need to use. --brion 15:30, 12 July 2007 (UTC)


 * Hmm, seems to me there's a lot of hosts out there that do, in fact, run PHP as a CGI executable, because that's a common means of offering PHP 5 at the moment. robchurch | talk 07:35, 18 July 2007 (UTC)

Can't find users changes in page Special:Recentchanges
I've recently install MediaWiki 1.9 on Linux for professional use (France). My problem : I can't see pages which have change recently in the Special:Recentchanges.

I've made many changes today and yesterday, but this page only refer to older changes (july 3). I've checked my preferences. My contribution page show me many changes i've done. I've try with another user, and whith no user (no log in) and MediaWiki Special:Recentchanges doesn't work properly.

I thought it had work before. My recent configuration changes on MediaWiki was made on july 3 (i've change visible from this date) : installation of Pear for activation of mail notification ... Does anyone have an idea to help me ? RomPop

I finaly understand what happend : I've edited pages with SysOp rights and none of these changes is display in RecentChanges list. RomPop 08:02, 18 July 2007 (UTC)

Extension:CrudeProtection
Im trying to use this extension to allow certain members to view a page and keep others out. After I add the name to a page and click save, it will display the message it should when it keeps someone out, but then that page will be blank from their on. Any ideas?

---

How can I sync up my existing user registration and login with MediaWiki?

I've studied the database schema and it seems straight forward enough. I can just insert values into the database directly. Alternatively is there a class I can use as a wrapper to try and avoid breaking things if the MediaWiki code changes in the future (presumably the class interface will remain the same even if the specifics of the user table change for example.)

Also are there any other tables to consider when creating new users manually.

And finally how can I log the user in via my existing login script. Do I have to set a cookie or session?

Transclusion
I have just installed the latest XAMPP MW installation, which works just fine, but when I try to transclude anything outside of template space, template: gets prepended, so for example I am unable to transclude Portal:Foo/Bar in Portal:Foo, which is something routinely done on the Wikipedia sites. What am I doing wrong, please? JzG 15:45, 13 July 2007 (UTC)


 * Try something like instead of  and see if that helps. -- Sayuri  15:55, 13 July 2007 (UTC)


 * Aha, thanks, that moves me ahead another step... Also got short URLs working, which was not as hard as I thought. JzG 17:16, 13 July 2007 (UTC)


 * OK, a follow-up. I have copied and pasted the contents of en:Portal:Box-header to a template, but for some unaccountable reason the mediawiki software is automatically inserting a closing /div into the template, whcih means that instead of rendering a box header, followed by text, followed by a configurable box footer en:Portal:Box-footer, it renders an emoty box, followed by the text, followed by a visible &lt;/div&gt;. - Any ideas why this might be, please? http://mailgate.chapmancentral.co.uk/wiki/Template:Box-header for context. JzG 19:21, 13 July 2007 (UTC)

How do I create a link in Wiki that will point back to a file on an internal server?
''' I want to point to a file on my File Server from within my Wiki. Can someone help me figure out how? '''

Example file file://///ServerName/ShareName/FileName.pdf

this doesn't work...


 * Can't you input it as the full URL using the normal wiki code for an external link? I.e. my file link etc. 84.69.56.232 16:04, 18 July 2007 (UTC)

I need to create a user-specific sidebar
I need to know how to create a new sidebar that will only show when a specific user or group is signed in. This is similar to many CMS designs where 'blocks' can be assigned to specific locations for specific users and denied to others. I don't need a full CMS implementation, just a new 'block' of code with the menu.

Specifically, I have a sort of personal link list (all internal wiki links) that I don't want others to use. As a distant dream/wishlist item, I would like to be able to have a button/link at the top of an article like "Link This" and allow a signed-in user to add the appropriate link to his own sidebar/block. Maybe this already exists, I'm still new to the system and working things out.
 * Shouldn't be a problem, just activate user javascripts and try something like this on user:monobook.js:

document.addEventListener("DOMContentLoaded", function {  var vl_upload = document.getElementById("pt-logout");	if (vl_upload) 	{		var ins_list = document.createElement("LI");		ins_list.innerHTML=/* */'<a href="http://something.else.de/file.htm">My Link</a>';				vl_upload.parentNode.insertBefore(ins_list, vl_upload);		} }
 * Good luck, --Flominator 11:22, 19 July 2007 (UTC)

MediaWiki 1.10.1 won't install
Whenever I fill out all the details of installation, I get this: Something's not quite right yet; make sure everything below is filled out correctly.

Well here is the lines about the server I got... (directory location username replaced with stars) * PHP 5.2.0 installed * Found database drivers for: MySQL * PHP server API is cgi; using ugly URLs (index.php?title=Page_Title) * Have XML / Latin1-UTF-8 conversion support. * Warning: A value for session.save_path has not been set in PHP.ini. If the default value causes problems with saving session data, set it to a valid path which is read/write/execute for the user your web server is running under. * PHP is configured with no memory_limit. * Couldn't find Turck MMCache, eAccelerator, or APC. Object caching functions cannot be used. * Found GNU diff3: /usr/bin/diff3. * Found ImageMagick: /usr/bin/convert; image thumbnailing will be enabled if you enable uploads. * Found GD graphics library built-in. * Installation directory: /home/*******/public_html/gmcr/wiki * Script URI path: /gmcr/wiki * Environment checked. You can install MediaWiki.

The server uses PHP 4 by default, I had to add an override to the gmcr folder in the form of AddHandler.

The following entries were filled out. Any unlisted entries were left untouched. Wiki name: GMCR Contact email: [withheld] Admin username: anger2headshot Admin password: [withheld] Password confirm: [withheld] Database name: [withheld]_villagedump DB username: [withheld]_gmcr DB password: [withheld] DB password confirm: [withheld] Database table prefix: gmcr_

So, any help? Thanks! -anger2headshot


 * We'll need the full transcript from the top. In the meantime, scroll down the form and look for red errors next to fields; these might indicate the problem. robchurch | talk 07:32, 18 July 2007 (UTC)

Hello There,
I am very confused about how my setup is going wrong. I have had a look around but am still pretty unsure about what is goin on, can someone please help, it is much appreciated.

The details of my installation problem are listed below. I don't know exactly how this help works, so you can email me on byron@things2do.ie but I will hang around here anyway.

Go Raibh Mile Maith Agat, Byron Smith Baile Atha Cliatha, Eire (Dublin Ireland)

PHP 5.2.0 installed Found database drivers for: MySQL PHP server API is apache; ok, using pretty URLs (index.php/Page_Title) Have XML / Latin1-UTF-8 conversion support. Warning: A value for session.save_path has not been set in PHP.ini. If the default value causes problems with saving session data, set it to a valid path which is read/write/execute for the user your web server is running under. PHP is configured with no memory_limit. Couldn't find Turck MMCache, eAccelerator, or APC. Object caching functions cannot be used. Found GNU diff3: /usr/bin/diff3. Found ImageMagick: /usr/bin/convert; image thumbnailing will be enabled if you enable uploads. Found GD graphics library built-in. Installation directory: /home/things2d/public_html/wiki Script URI path: /wiki Environment checked. You can install MediaWiki. Generating configuration file...

Database type: MySQL Loading class: DatabaseMysql Attempting to connect to database server as things2d_wikiuse...success. Connected to 4.1.21-standard Error selecting database wikidb: 1044 Access denied for user 'things2d_wikiuse'@'localhost' to database 'wikidb'

Templates and Section Editing
I have several pages which use templates within which text is entered under manually inserted section headings. E.g. {{pagegenerator text=This page is preformatted and the user just enters text here. They add section headings as usual.

Section heading
Blahblah }}

The page displays fine, and looks as it should. However, if you try to edit an individual section, it assumes you want to edit a (non existent) section of the template itself rather than of the page it's been used to format. Am I doing something wrong here? 84.69.56.232 16:20, 14 July 2007 (UTC)


 * Nope, nothing wrong at all. That is how it works. It does not exist on the page you have inserted the template on, so there is nothing to edit.  What does exist, is the template, so that is why it takes you there to do the editing. --Dr DBW 06:00, 18 July 2007 (UTC)


 * Ah, ok, got it. Thanks for the reply! 84.69.56.232 08:38, 18 July 2007 (UTC)

mysterious
I change the pixel value in the url and it comes nevertheless a picture. How does that function? I will this too, but in my local installation (xampp, mw 1.11alpha, php5.2.2) this works not properly --85.178.201.11 14:38, 15 July 2007 (UTC)


 * We're using a 404 handler script, which means that if the thumbnail isn't found, then we have a script which calls the thumbnailer and creates the image. robchurch | talk 07:30, 18 July 2007 (UTC)

Fixed background
Hello. I'm customizing my media wiki and was wondering if it's possible to make a background image stationary? In other words, I'd like to assign the property "fixed" to the image I'm using for the background.


 * Suspect you do it within the css for the skin that you are changing. --Dr DBW 05:58, 18 July 2007 (UTC)

Number of pages
There's a entension for mw which counts the number of pages in a specific namespace? Like  </tt> but for User:, Project:, Help:, etc. Thanks in advance. --Slade (talk) 18:14, 16 July 2007 (UTC)


 * No extension, it's part of the core code, but isn't switched on per default because it can be an expensive operation on large wikis. To enable, switch on $wgAllowSlowParserFunctions</tt> in LocalSettings.php</tt>, then use  </tt>. robchurch | talk 07:28, 18 July 2007 (UTC)

How can I change the widths of the tables?
I'd like to alter the widths of the tables. Where do I do that?


 * At the top where you declare {|, add a width, as in {|width=50% Kainaw 15:10, 17 July 2007 (UTC)

http://host.com/mediawiki changes to http://host-com.local/index.php and does not work!
I'm having problems. Some people can not find my wiki. The regular address is http://barracloughltd.com/mediawiki For many people, however, they get a message back that says: barraclough-com.local/index.php not found. What is this all about?


 * Your web server is reporting that "barracloghltd.com" has been permanently moved (error 301) to "barracloghltd-com.local". It has nothing to do with MediaWiki. Kainaw 15:06, 17 July 2007 (UTC)

There's a good chance the redirect is coming from MediaWiki, in fact; if it's confused about the canonical server name, it might well redirect the client to an incorrect or invalid location.

Check the ServerName</tt> in the web server configuration; it seems to be defaulting to some sort of local host name. You might need to override this in LocalSettings.php</tt> using the $wgServer</tt> or $wgServerName</tt> variables. robchurch | talk 07:27, 18 July 2007 (UTC)

Graphics extension
I'm looking for a rather unique graphics extension that most likely doesn't exist. However, I don't want to write it if it already exists. I need to produce line-art style images (building layouts per floor) for our internal wiki. Then, depending on the page, add markers, highlights, and such. So, I figure it is easiest to embed the images into the wiki. Have one page contain a text description of the floorplan (SVG-style, I assume). Then, I can include that in another page and add to it. Finally, I can include the wiki-image in a page. I know this will not be functional for photograph-type images. This is only for floorplans of the many buildings (and floors) here. So, it is basically a bunch of "draw a line from here to here" commands. If this makes sense and already exists, please point me in the correct direction. Kainaw 14:38, 17 July 2007 (UTC)
 * I don't fully understand your project, but what about imagemaps and javascript? --Flominator 11:18, 19 July 2007 (UTC)


 * I'll try to explain it better...
 * The optimal project will allow me to enter a text file that describes all the lines on a floorplan of every floor in our office building. I'm not talking about full-color 64-bit photographs.  I'm talking about black lines that outline the hallways, doors, and offices.
 * Then, with those in place on the wiki-server, I want to be able to to append to them on the fly. For example, for an article on fire extinguishers, I want to be able to say "load the floorplan for floor 8" and then draw circles where the fire extinguishers are located.  Finally, showing the resulting image as a jpg, gif, or png to the user.
 * The advantage to this is that if a new wall is put up or an extension is added, I only need to change the floorplan once. Then, all the images that use the floorplan will be updated.
 * I can write this, but I'd rather not. Kainaw 12:33, 19 July 2007 (UTC)

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

Featured Article
I've searched everywhere on how to accomplish this but I can't seem to find it. How do you make a featured article and corrisponding list? Much like wookiepedia.com for example. (Newsest version of Wikimedia) DarkSunz 12:48, 17 July 2007 (UTC)


 * Couldn't you just create a new category called Featured Articles and then add a category link to each article meeting your given criteria, then provide a link somewhere to the category? You could do it more easily by creating a template which adds a banner to the top of each article with a star, or something, which contains an includeonly statement to automatically add that page to the Featured Articles category. Is that what you meant? Hope it helps. 84.69.56.232 16:00, 18 July 2007 (UTC)

Problem Uploading Images
I'm trying to upload images - I thought I had everything set correctly except I get the following error type whenever I try to upload an image:

Could not copy file "/tmp/phpt1xA8w" to "/home/g/o/gough_name_org_uk/wiki/images/temp/0/02/20070717211643!John_Bartholomew_Gough.gif".

Probably something very simple but please can someone help?


 * Write permissions on the /home/g/o/gough_name_org_uk/wiki/images directory maybe? I *think* its the web server user that needs permissions to it. --Natebsi 19:02, 18 July 2007 (UTC)

restriction based on Namespace
How to permit a certain group of users to access certain pages or namespace.

Editing toolbar
Hi, the skin I'm using appears to have removed the editing toolbar even if it's set to appear in user preferences. In the source code of a random page I went to edit on Wikipedia to see if I could track it down, I see this: <script type='text/javascript'> /*<!>*/ Can anyone tell me where I need to insert this code (i.e which php file and where) in order for the editing toolbar to appear. Or, is there some variable which needs fixing elsewhere? 84.69.56.232 09:49, 18 July 2007 (UTC)

Safari bug or Mediawiki?
Hi, we're having trouble with page display using Safari. For some reason, Safari is rendering the Main Page and links on the side bar as "text/plain" from the content-type header. Reloading the page corrects the problem, but refreshing the Main Page each time can be a little annoying. Is there some way of forcing the correct behavior? Or is there something wrong with the source code we haven't seen? http://mathforum.org/mathandart/index.php/Main_Page Thanks! Rlee1 18:15, 18 July 2007 (UTC)

Import old Database
My current version of media wiki is the very old 1.5.2. Am I able to directly install the version 1.10.1 and then import the old database from 1.5.2 ? If its possible how can this be done? Thanks for help! Greetings, Max 217.194.34.103 08:30, 19 July 2007 (UTC)
 * What about Upgrading to 1.6 and then Upgrading to 1.10? --Flominator 11:11, 19 July 2007 (UTC)

Can I skip all the updates in between? If that works it would be a good solution. Thanks for the quick answer Flominator. 217.194.34.103 11:30, 19 July 2007 (UTC)
 * Maybe you can even skip the one to 1.6, but I'm not sure. I've updated 1.6.7 to 1.10.1 yesterday almost without problems after. --Flominator 11:59, 19 July 2007 (UTC)

New Non-blank page
Is it possible to create a new pre-populated page. I would like users to be able to create an article but have a number of predefined sections already in place for them to add their own text.

--168.224.1.14 10:53, 19 July 2007 (UTC)


 * I do not believe there is a setting in MediaWiki to do it, but you can go into the code and just before the textbox is sent to the user check to see if the contents are empty and, if so, change the contents to some predefined text. Kainaw 12:35, 19 July 2007 (UTC)


 * Extension:CreateArticle would be another approach. Look for option "preload" in this article. --83.64.209.194 12:41, 19 July 2007 (UTC)