Project:Support desk/Flow/2011/04
| This page is an archive. |
| Please ask questions on the current support desk. |
| This page used the LiquidThreads extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
Ignore whole folder (debug) not working
Hi, everyone.
I have several logicaly connected Visual Studio project in my repository. I've added to .ignore all Default ignores that also contains: [Dd]ebug*/ But, that does not do any good. I still have 'edited' dlls and other files that I don't want to track.
My structure don't want to track looks like: Project1/bin/Debug/ Project2/bin/Debug/ etc.
Maybe issue is that I've added those file before changing .ignore.
A would appreciate suggestions to fix this. 195.68.177.230 (talk) 08:47, 1 April 2011 (UTC)
- What does this have to do with MediaWiki? -- Bryan (talk|commons) 18:19, 1 April 2011 (UTC)
Fighting NON-regular expression spam
Hi guys,
I'm sure I am not alone in this, but lately I've been getting spam of a very specific type that incorporates the following tag to link to an outside site: ==
==
I've been trying to teach myself how to block spam using regular expressions, and so far I've gotten pretty good results. However, these guys are being much more subtle, using large blocks of texts that don't necessarily use words I would likely block out. I found information on how to block CSS tags that are used to hide spam, but....does anyone know how I can use the $wgSpamRegex feature to block out regular HTML like the above?
Here is what my tag looks like right now:
$wgSpamRegex = "/|fuck|shit|motherfucker|porn|viagra|phentermine|pussy|adult-website\.com|display:none|overflow:\s*auto;\s*height:\s*[0-4]px;/i";
I'd appreciate any help anyone can give, or if there is a website that shows how to deal with this type of spam. I get about 7-8 spammy entries per day, likely humans because some of them actually go back and edit stuff! 216.217.58.206 (talk) 18:59, 1 April 2011 (UTC)
- Sorry....I should have known that would happen. THIS (below) is what I get:
- ==<center>Spammy Link Here</center>== 216.217.58.206 19:01, 1 April 2011 (UTC)
- How about having a look at Manual:$wgSpamRegex? Hazard-SJ ± 16:30, 2 April 2011 (UTC)
- That's what he is using, Hazard-SJ.
- What about adding
"==<center>[http://"to your $wgSpamRegex? (I'll add this to $wgSpamRegex's documentation too; it's quite common.) 75.137.144.177 19:34, 2 April 2011 (UTC)- I know that's what he is using, so I referred him to the page so he could read it. Hazard-SJ ± 20:09, 2 April 2011 (UTC)
- I read it, and I did add it to my line, but it doesn't seem to work. I assume that it wasn't picking up actual HTML commands, only regular text. Otherwise, I don't know why it would not work. I'll try it again. Let me be a little clearer.
- Here is an example of one of the edits a typical spammer makes:
- ==<center>[http://mylinkdirs.com/forum/index.php?topic=mp7MjE3fHwxMzAxNjA0MTY1fHwxOTUyfHwoRU5HSU5FKSBNZWRpYVdpa2k%3D&s=Atkins_Diet_Side_Effects_Bumps <big>'''<u>Atkins Diet Side Effects Bumps</u>'''</big>]</center>==
- I created the following line in my LocalSettings:
- $wgSpamRegex = "==
[http://"; - But it doesn't help. Should I be adding something else? 96.32.128.84 00:29, 3 April 2011 (UTC)
- try $wgSpamRegex = "/==<center>[http:\/\//"; 75.137.144.177 22:36, 5 April 2011 (UTC)
- Not only is it not working, but it seems to have "broken" my
- require_once( "$IP/extensions/ConfirmEdit/ConfirmEdit.php" );
- tag which I was using to confirm anyone who posted links. 96.32.128.84 00:34, 3 April 2011 (UTC)
- I realize that this won't address your root problem, but have you tried banning the IP or block of IP's that the spammer uses? Banaticus 02:48, 4 April 2011 (UTC)
- ...or the range if it is a similar range of IPs and not one? Hazard-SJ ± 00:27, 8 April 2011 (UTC)
- I realize that this won't address your root problem, but have you tried banning the IP or block of IP's that the spammer uses? Banaticus 02:48, 4 April 2011 (UTC)
- I know that's what he is using, so I referred him to the page so he could read it. Hazard-SJ ± 20:09, 2 April 2011 (UTC)
- How about having a look at Manual:$wgSpamRegex? Hazard-SJ ± 16:30, 2 April 2011 (UTC)
Images randomly disappearing
PidgiWiki Stats: MediaWiki 1.16.0 PHP 5.2.11 (apache2handler) MySQL 5.0.81-community
I've recently noticed that some of my images are randomly missing. I have run into two of these issues, but the ones that I am having issues with right now are files that have working thumbnails and old revisions, but the newest file is gone. After moving, the newest file and the newest thumbnail are gone. The other kind is when a file is moved, but the page itself isn't moved with it; an easy fix. But the first problem is bad.--99.181.164.155 16:19, 2 April 2011 (UTC)
- Could you please be more specific by giving more details? Hazard-SJ ± 19:41, 2 April 2011 (UTC)
Css for categories
Hello mediawiki people,
mediawiki version: 1.16.2 mysql version: 5.1.45 PHP version: 5.2.13 url (just testing purposes): http://www.mediawiki.byethost7.com/mediawiki-1.16.2/index.php/Main_Page
I tried irc, but I guess for some reason I am not able to get an answer, so here I am.
I made my skin for mediawiki, but now I want to have categories, and for each page in that categorie to implement it' own css, like, all pages under category 'foo' should have h1 blue, and all pages under category 'bar' should have h1 yellow. (css itself will be much more complex, this is just an example)
I was surprised that nobody uses this, and the only thing I could find was this: http://www.mwusers.com/forums/showthread.php?4519-Applying-CSS-to-individual-categories. but it is old and no one has answered it...
Any help is appreciated and welcomed!
Thank you
Kind regards, Seiduna Seiduna (talk) 16:54, 2 April 2011 (UTC)
- The page title is encoded as a CSS class of the body element. So, you can use body.page-Category_Foo h1 { color: blue; } -- Bryan (talk|commons) 20:08, 2 April 2011 (UTC)
- It could be a little tricky, as pages can have more than one category, so depending on which order you list categories in your CSS file, pages may have a surprising color. For instance, you might have a CSS page something like:
- in category foo color = blue
- in category bar color = red
- Page with category bar & category foo = red (bar comes after foo in the CSS file). If you had math pages as one color and music pages as another color, well, there might be something like a pi song that should be in both the math category and the music category: Banaticus 03:02, 4 April 2011 (UTC)
- Hello guys, and thank you for your prompt answer!
- The code Brian provide works nicely (THANK YOU BRIAN!), but just for main category page...
- On Test site (link in first post) you can click on LABORATORIJ link (top left) and h1 and h2 are correct (white background and red font), and in that category I have 2 pages, and as I click on either, the css does not kick in... (as, it should be red font on white background [correct], instead it is black on black[which is wrong]).
- So I need all the pages in that category to have h1 and h2 red on white... I am not a native english speaker, so I might express my self wrongly...
- Banaticus, khaha, is that the song of PI? nice...
- Yes I read that a page might belong to different categories, so I'll keep an eye on that one, so that one page belongs just to one category. Thank you for heads up!
- Is there a piece of code that I am missing, to have the same css for all pages that belong to one category ?
- Thank you Seiduna 14:27, 4 April 2011 (UTC)
Insert and align a picture
Hello,
I am working as a wiki editor on www.tiptheplanet.com. I know about different wiki applications including uploading a picture, but I don't know how to align a picture at left side with the text flowing on the right side. Please see this edit: http://www.tiptheplanet.com/wiki/Indoor_air_pollution
What should I do to move the picture on the left side of the page with the text on the right.
Cheers, Sajjad A. nashitf (user name on ttp) 182.177.155.156 (talk) 19:07, 2 April 2011 (UTC)
- [[Image:Example.jpg|thumb|left]] -- Bryan (talk|commons) 20:06, 2 April 2011 (UTC)
- You can also add a name tag:
- [[Image:Example.jpg|thumb|left| Flowers in the garden]]
- w:en:Wikipedia:Extended_image_syntax
- w:en:Wikipedia:Picture_tutorial
- Help talk:Images Ron Barker 08:44, 3 April 2011 (UTC)
Count amount of list elements?
Hey!
Is it possible to automatically count amount of list elements? Example: this list exist of 5 words, and 3 list elements.
Thanks! 85.196.108.214 (talk) 20:00, 2 April 2011 (UTC)
- Not in core. It would be trivial to create JS to do that if you really wanted it. Bawolff 14:24, 4 April 2011 (UTC)
SVG Rendering trouble...
Hi,
We have just installed a new MediaWiki at a website. Here's the link to it: http://statesmanship.co.uk/wiki/Main_Page
Unfortunately, after everything we've tried, we cannot get .SVG files to render as thumbnails (or at all) properly.
Here are the localhost.php settings in use:
# Enable svgs $wgFileExtensions[] = 'svg'; $wgAllowTitlesInSVG = true; $wgSVGConverter = 'batik';
Everything we've tried doesn't work!
Thanks! 139.78.10.136 (talk) 23:07, 2 April 2011 (UTC)
- PS: Here is how SVGs appear: http://statesmanship.co.uk/wiki/File:Flag_of_Australia.svg
- Thanks! 139.78.10.136 23:09, 2 April 2011 (UTC)
- Have you CHMODded /w/images to 777? Hazard-SJ ± 01:42, 3 April 2011 (UTC)
- Yes. I just did that now (also applied it to ALL contents of that directory), and the problem still remains after multiple refreshes.
- Thanks! 139.78.10.136 04:34, 3 April 2011 (UTC)
- You probably need to reupload the images now. Hazard-SJ ± 04:53, 3 April 2011 (UTC)
- You need to disable safe mode. You can view the error at http://statesmanship.co.uk/w/thumb.php?f=Flag_of_Australia.svg&width=800 Bawolff 14:26, 4 April 2011 (UTC)
- Cool. How do I do that? Thanks! 139.78.10.136 19:19, 4 April 2011 (UTC)
- How do I turn off safe mode? I can't find the php.ini file anywhere in the Wiki directory. Is this a file that the host is in charge of? We're hosting this wiki off a hosting service's servers and I'm not sure we have access to PHP controls etc. 139.78.10.136 19:22, 4 April 2011 (UTC)
- Normally the host would be in charge of it. See Safe_mode. Bawolff 21:16, 4 April 2011 (UTC)
- Our host has confirmed that safe_mode is disabled on our server! 139.78.10.136 16:38, 6 April 2011 (UTC)
- Can also be caused if
passthruis in thedisable_functionsphp.ini directive. Bawolff 02:51, 7 April 2011 (UTC)
- Can also be caused if
- Our host has confirmed that safe_mode is disabled on our server! 139.78.10.136 16:38, 6 April 2011 (UTC)
- Normally the host would be in charge of it. See Safe_mode. Bawolff 21:16, 4 April 2011 (UTC)
- You need to disable safe mode. You can view the error at http://statesmanship.co.uk/w/thumb.php?f=Flag_of_Australia.svg&width=800 Bawolff 14:26, 4 April 2011 (UTC)
- You probably need to reupload the images now. Hazard-SJ ± 04:53, 3 April 2011 (UTC)
- Have you CHMODded /w/images to 777? Hazard-SJ ± 01:42, 3 April 2011 (UTC)
framed image resize does not work
This is more of a bug report then anything else. It would seem that setting an image to have a frame and size causes the size field to be ignored. This may be a more recent bug, as it is documented to work here
As proof of the matter I give you a link on your sandbox and a link to my wiki page that is currently having the problem here. Not being able to resize the image is actually causing the css frame to break.
Thanks for your help, Georgyo (talk) 07:18, 3 April 2011 (UTC)
- You are not the only one with the same problem You may find something or maybe not at:
- http://www.mediawiki.org/wiki/Manual_talk:Image_Administration Ron Barker 10:17, 3 April 2011 (UTC)
- In the meantime, you can just make a one cell table and put the image in that cell. Then you can give the table whatever border you want. However, you have to size the image to be smaller than the cell that it's supposed to be in, as it won't resize itself automatically. For instance:
- {| style="width:50px; border:5px solid blue;"
- |[[Image:Example.jpg|45px]]
- |}
- makes:
- Note that I gave both the table and the image a size. Banaticus 02:45, 4 April 2011 (UTC)
wiki image
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
how to align a picture on my wiki edits. I want the picture on the extreme right corner with text on the left. HOw? 182.177.158.182 (talk) 17:05, 3 April 2011 (UTC)
- The default placement for a thumbnail is over on the right with the text floating around it, so make your image a thumbnail then give it a default width and a caption. Put the picture at the top of the text that you want over on the left. The example image of a sunflower field is the first thing in this paragraph, for instance, and was created with the following text: [[Image:example.jpg|thumb|300px|An example image showing how text will float around it.]]
- You'll notice that the text is to the left of the image and that it eventually flows out around the image. If you have a really short paragraph followed by a section header, the image will go down over the side of it. You can force text to resume after the image by "clearing the float" -- add the template: {{clear}} or learn what that means in CSS and add a div with a style that clears a right float. Anyway, here's some more dummy text to show you how the text floats around the image.
- Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur? Banaticus 02:39, 4 April 2011 (UTC)
(resolved) Is it impossible to call a template within a #ifeq "is it equal" parser function?
I'm trying to call a template within a #ifeq "is it equal" parser function. The template returns "yes" or "no" and the parser function then checks to see if that's equal to "yes" and then returns other text based on that. The template call seems to be ending the parser function early, though. You can see the page that I was working on at: w:Template:Current time with daylight savings. Banaticus 22:29, 3 April 2011 (UTC)
- Can you show the problem ? I dont see anything broken, I recommend placing the message on the Wikipedia Template talk page. Krinkle 07:34, 5 April 2011 (UTC)
- I think I'm having the same problem. Try this to duplicate:
- Create a template (foo) with
{{#ifeq:{{CURRENTDAYNAME}}|{{{1}}}}|{{{2}}}|{{{3}}}}}- Then try calling that template with
{{foo|1={{CURRENTDAYNAME}}|2=This is what should be showing|3=This is what's actually showing.}}- For some reason, it seems you can't use a template parameter in the comparison part of the ifeq parser. -Avicennasis (SWMT) 17:51, 10 September 2011 (UTC)
- I can't reproduce that (was testing on 1.19, but I can't imagine the behaviour changed that much between versions) Bawolff 22:23, 10 September 2011 (UTC)
- This is what I get at EnWp, using en:Template:Template sandbox (permalink) and en:User talk:Avicennasis/sandbox (permalink) -Avicennasis (SWMT) 09:24, 11 September 2011 (UTC)
- you had an extra } screwing it up diff. Can you still reproduce with that in mind? Bawolff 19:56, 11 September 2011 (UTC)
- Huh. No, I can't, actually. :-) I don't know how I missed that. Thanks. -Avicennasis (SWMT) 10:48, 12 September 2011 (UTC)
- you had an extra } screwing it up diff. Can you still reproduce with that in mind? Bawolff 19:56, 11 September 2011 (UTC)
- This is what I get at EnWp, using en:Template:Template sandbox (permalink) and en:User talk:Avicennasis/sandbox (permalink) -Avicennasis (SWMT) 09:24, 11 September 2011 (UTC)
- I can't reproduce that (was testing on 1.19, but I can't imagine the behaviour changed that much between versions) Bawolff 22:23, 10 September 2011 (UTC)
Problem with thumbnail subfolders chmods
Hi, I had a problem with automatic creation of thumbnails on my wiki. After some investigating I discovered that subfolders (created in .../images/thumb) for thumbnails after image upload suprisingly don't want to inherit chmods of parent folder (775) and have 744 chmod instead. Of course after changing chmods by hand, thumbnailing works great, but this is a little exhausing. I couldn't find any tips for this problem on FAQ/whole site/whole net - or maybe I couldn't understand them, because of my poor English or even poorer computer skills ;-) So, how can I 'convince' them to inherit those chmods properly? I would be deeply grateful for help on this :-)
My versions are: MediaWiki - 1.16.2, PHP - 5.2.4 (cgi-fcgi) MySQL - 4.0.27-log. I dont have the direct access to the advanced (?) server functionalities (such as modyfing php.ini etc.), but if it's necessary, it can be done. 83.24.189.12 (talk) 16:59, 4 April 2011 (UTC)
- Sounds like an odd umask. —Emufarmers(T|C) 08:13, 5 April 2011 (UTC)
No word wrap after MS-Word copy and paste into wiki page.
MediaWiki 1.16.0 PHP 5.3.2-1ubuntu4.7 (apache2handler) MySQL 5.1.41-3ubuntu12.9
After I copy and paste verbiage from an MS-Word 2010 document into my MediaWiki page, the word wrap feature doesn't seem to work anymore. It works fine on an ordinary wiki page where I have actually typed the text into the page editing field. How do I turn the word wrap feature back on after an MS-Word 2010 copy and paste function? Also, your online manual could use more information about word wrap features. 67.139.123.82 (talk) 18:08, 4 April 2011 (UTC)
Ideal Windows Installation
Greetings,
I'm setting up MediaWiki on Windows Server 2008. I've noticed there are several ways to set it up (Apache vs IIS, etc.) and I was just wondering what the fastest/easiest/best-supported way to set it up is.
Thanks! 142.244.127.138 21:20, 4 April 2011 (UTC)
- Apache is better-supported here than IIS (and Linux is better-supported here than Windows :)). —Emufarmers(T|C) 08:10, 5 April 2011 (UTC)
- Thanks, I'll use Apache then. I definitely prefer Linux-- I've set up Linux wikis before and it was a lot easier-- but I'm setting this one up for work and I don't have a choice as to what operating system I use. (PS: This is the original poster.) 129.128.215.25 20:01, 5 April 2011 (UTC)
Entering an URL containing an IPv6 Global address in IP-literal format
MW version: 1.13.3 PHP: 5.2.14 MySQL: 5.0.67 URL: http://timchappell.plus.com/timswiki/index.php5/IPv6
Hi. I'm trying to enter an IPv6 global address into an HTTP link. Something like:
http://[wwww:xxx:y:zzz::2]/ipv6tcptest/index.php
Unfortunately, the following doesn't work:
[http://[wwww:xxx:y:zzz::2]/ipv6tcptest/index.php Port Scanner]
The following does work, but its unclear, at least to me, whether its valid to use %encoded reserved characters. Certainly not all browsers correctly decode the URL:
Is there a better/correct way to achieve what I intend?
Thanks,
Tim. 140.101.16.142 (talk) 07:41, 5 April 2011 (UTC)
Webresponse.phph Line 16 -> Blank Page
It seems to be a quite common problem:
The error message I get from following the steps explained here is: "Warning: Cannot modify header information - headers already sent by (output started at /var/www/webXX/html/XXXYY/LocalSettings.php:1) in /var/www/webXX/html/XXXYY/includes/WebResponse.php on line 16"
The mentioned line 16 in the WebResponse.php is: header($string,$replace);
It all results in a blank page when saving any edit of any page:
URL: test.travel-namibia.com Mediawiki Version: 1.14.0 PHP-Version: 5.2.6-1+lenny9 MySQL: 5.0.51a
Any solution? (nope, upgrading is not a solution, as I get a bunch of even more severe erros when using 1.15 or 1.16)
Thanks Christian Chtrede (talk) 10:45, 5 April 2011 (UTC)
- The answer is on the same page. Max Semenik 11:25, 5 April 2011 (UTC)
- I obviously worked through that solution :-) It does not solve the problem! Chtrede 12:52, 5 April 2011 (UTC)
- Then you obviously worked it wrong. "output started at /var/www/webXX/html/XXXYY/LocalSettings.php:1" says it all. Some text editors simply don't show BOMs. Max Semenik 14:11, 5 April 2011 (UTC)
- I am not working and never worked with text editiors like Wordpad. I am working with HTML-Editors.
- I installed a second wiki on a complete clean server environment, did not make any changes to LocalSettings.php and the same error occurs.
- If I look into the LocalSettings.php line 1, there is no BOM whatsoever.
- Thanks
- Christian 217.92.144.64 05:56, 6 April 2011 (UTC)
- Solved... it was a simple CHMOD permission error! Chtrede 06:04, 6 April 2011 (UTC)
- Then you obviously worked it wrong. "output started at /var/www/webXX/html/XXXYY/LocalSettings.php:1" says it all. Some text editors simply don't show BOMs. Max Semenik 14:11, 5 April 2011 (UTC)
- I obviously worked through that solution :-) It does not solve the problem! Chtrede 12:52, 5 April 2011 (UTC)
Search result crashes using some words
I have strange problem with searching mediawiki. There are few words that I use in searching that causes skin crash:
Luky there is more "good" search result but what is wrong ? Is it something with my Wikicode ? MediaWiki 1.16.0 Arek 212.14.11.13 (talk) 13:47, 5 April 2011 (UTC)
- Any ideas ? 83.168.82.227 22:15, 20 April 2011 (UTC)
Unused category "ghost" page
When I go to Special:UnusedCategories it tells me I have an unused category called All Kings & Queens. When I click on the link to the category page it then tells me this page has been deleted. It also tells me that the page contains no pages or media which makes sense as I have no pages that link to it. To make things trickier, the page displays that it is called Category:All Kings, leaving off the rest of the name. If I manually type in the URL as Category:All Kings, it brings me to the same page as the supposed link to Category:All Kings & Queens.
How do I delete a page that isn't there?
MediaWiki 1.16.2 PHP 5.2.17 (cgi-fcgi) MySQL 5.1.47-community-log URL http://www.shannarawiki.com/wiki/Special:UnusedCategories 122.49.136.181 (talk) 13:51, 5 April 2011 (UTC)
- Your Apache rewrite rules are broken, see Manual:Short URL#Ampersand (&) problem. Max Semenik 14:22, 5 April 2011 (UTC)
- Great! Thanks for that. :) 122.49.136.181 13:42, 8 April 2011 (UTC)
Mediawiki link groups to Active Directory
Hi, I have a mediawiki installed and configured with SSL. It currently uses LDAP to allow users from Active Directory to login. I have been searching in extensions and plugins section but I can't find any information about linking Active Directory groups to mediawiki.
Also I was wondering how do you assign users from AD to a group in mediawiki? There are bureaucrat and sysadmin but I can't assign any users to a AD group. The goal for this mediawiki is to put every document in one same place for the company I work for. But some users should not have access to some client procedures on the wiki.
any helps is apreciated,
thanks,
Jb Wikijb777 (talk) 15:24, 5 April 2011 (UTC)
- I forgot to mention :
- Mediawiki 1.16.2
- PHP 5.2.6-1+lenny10 (apache2handler)
- MySQL 5.0.51a-24+lenny5
- Debian 2.6.26-2-686
- Server version: Apache/2.2.9 (Debian)
- Extensions:
- LDAP Authentication Plugin Wikijb777 18:45, 5 April 2011 (UTC)
- I dont mean to bump an old thread, but I need help with setting up the ldap extension for mediawiki. When I follow directions here: https://www.mediawiki.org/wiki/Extension:LDAP_Authentication/AD_Configuration_Examples
- it gives me an error regarding not finding the php file. Any suggestions Nic9212 (talk) 16:33, 16 October 2014 (UTC)
"Outlook:Inbox"
Hello everyone,
I'm trying to build into my Wiki "outlook:inbox" that opens (as the name suggests) the outlook inbox. It works fine in HTML: <a href="outlook:inbox"\>Open Outlook Inbox</a>
But I can't get it to work in my Media Wiki. I'm not using HTML in my Media Wiki but only the simplified syntax in which \\ stands for page break, for instance.
Any ideas? Thanks in advance guys, Marc 95.91.154.36 (talk) 15:50, 5 April 2011 (UTC)
how to have different text in footer depending on title=
hello all,
Is it possible to have a different code included in the footer depending on what title URL shows?
For instance, if I have a page on apples, and the URL is http://mywiki.org/index.php?title=apples is there a way be able to include dynamically a text into a footer which would say something like "find more apples at XYZ.com".
I am actually thinking about this to have different sponsors for different pages. (vs. paid adds, you know). 89.102.207.167 (talk) 16:49, 5 April 2011 (UTC)
Your edit has been rejected because your client mangled the punctuation characters in the edit token.
No matter what I try, I keep getting the following error any time I edit or add a page:
Your edit has been rejected because your client mangled the punctuation characters in the edit token. The edit has been rejected to prevent corruption of the page text. This sometimes happens when you are using a buggy web-based anonymous proxy service.
I've Googled this all afternoon and have tried the disabling magin quotes through both the php.inin and the .htaccess file.
I'm not really sure at all what to do or how to fix this. there seems to ber very little online to support it.
Please give me a shout if you have any ideas.
S 216.240.7.29 (talk) 20:25, 5 April 2011 (UTC)
- Are you editing through a proxy? Max Semenik 04:06, 6 April 2011 (UTC)
- No, I'm not using a proxy at all. 216.240.7.29 13:38, 6 April 2011 (UTC)
Install worked then Redirect to main page?
MediaWiki: 1.16.2 Php: 5.2.10 (apache2handler) Database: MYSQL 5.1.39 Url: http://tsf.sonicstrike.net/tsfdatabase
I just recently tired to install my new wiki onto the site and I followed the directions right down to the letter, even with moving local host to the right directory, and when I click on the link I can't seem to access my wiki. Everytime I try to access the main page of my Wiki it redirects me to the main page of the site. I'm sure I have the permissions right on it and we had a wiki in the past on the server (though it was a few years ago) so I'm trying to figure out what is wrong. 68.32.167.76 (talk) 01:36, 6 April 2011 (UTC)
Search function in File list doesn't work properly
- Hi dear,
- when I try to search a name in File List the result are empty either if the file is in the wiki; a workaround is to omit the first char of filename ( http://www.mwusers.com/forums/showthread.php?16489-Search-function-in-File-list-doesn-t-work-properly ) .
- I've tried with last mediawiki release ( 1.16.2 ) but the problem persist.
- DB: Mysql 5.0.77
- OS: Centos 5.5
- Thankx
- Alessandro Zioalex (talk) 12:02, 6 April 2011 (UTC)
- I've always thought the File List search needed some sort of option to activate since it never worked for me.
- Checking the file, the query generated attempts to convert both the image names and the search query to lowercase before using a LIKE comparison. I've checked the database and apparently the image name column is set as VARBINARY, preventing the lowercase conversion of the image name thus botching the comparison.
- TL;DR
- Go to includes\specials\SpecialListfiles.php. On Line 84, change:
$this->mQueryConds[] = 'LOWER(img_name)' .</pre> to <pre>$this->mQueryConds[] = 'CONVERT(img_name USING latin1)' .
- Necrobumping since this problem still persists in 1.19.
- kthxbye. Fereal (talk) 18:25, 24 August 2012 (UTC)
- It appears that somewhere around v1.22 they introduced a new function to replace the mQueryConds member variable. When they did this, the patch above recommended stopped working. I believe this is because the new function, "protected fuction buildQueryConds" handles this task now.
- TL;DR Go to includes/specials/SpecialListfiles.php, Line 138:
$conds[] = 'LOWER(' . $prefix . '_name)' .- I'm not sure what to change this to.
- For the full function, see here:
protected function buildQueryConds( $table ) {$prefix = $table === 'image' ? 'img' : 'oi';$conds = array();if ( !is_null( $this->mUserName ) ) {$conds[ $prefix . '_user_text' ] = $this->mUserName;}if ( $this->mSearch !== ) {$nt = Title::newFromURL( $this->mSearch );if ( $nt ) {$dbr = wfGetDB( DB_SLAVE );$conds[] = 'LOWER(' . $prefix . '_name)' .$dbr->buildLike( $dbr->anyString(),strtolower( $nt->getDBkey() ), $dbr->anyString() );}}if ( $table === 'oldimage' ) {// Don't want to deal with revdel.// Future fixme: Show partial information as appropriate.// Would have to be careful about filtering by username when username is deleted.$conds['oi_deleted'] = 0;}// Add mQueryConds in case anyone was subclassing and using the old variable.return $conds + $this->mQueryConds;}165.212.186.27 23:21, 8 July 2014 (UTC)- Nevermind, I figured it out.
- TL;DR Go to includes/specials/SpecialListfiles.php, Line 138 change:
$conds[] = 'LOWER(' . $prefix . '_name)' .- to
$conds[] = 'CONVERT(' . $prefix . '_name USING latin1)' .165.212.186.27 23:25, 8 July 2014 (UTC)- Seems to be tracked in bug 32207 Ciencia Al Poder (talk) 09:35, 9 July 2014 (UTC)
- Unless i'm reading it wrong, that bug seems to be more based on an error in handling non standard characters. They couldn't search because the db table was not accepting UTF8.
- With the issue described above, its not a special character but just a capital letter. I didn't need to change the db table format, just how the query was being submitted to the db. 165.212.186.27 23:24, 9 July 2014 (UTC)
- nevermind, both issues are related to the VARBINARY column type. In the resolution above we changed the query, in the resolution in the bug, they changed the column type. either way would resolve it I guess. 165.212.186.27 23:36, 9 July 2014 (UTC)
- The efficient way is to convert the database field, specially if it's part of an index, because searching for that column would use the index. If you need to convert the value for searching, then the index won't be used and the database engine would need to do a full table scan instead. Ciencia Al Poder (talk) 09:36, 10 July 2014 (UTC)
- I am A newbie here. I accidently changed the subject of the thread.
- I actually wanted to start a new one. Please change it back.
- Sorry. 212.149.48.42 11:55, 10 July 2014 (UTC)
11:55, 10 July 2014 (UTC)
- Hi everybody,
- sorry but I am facing this same issue in 1.27.1. In Special:ListFiles I can't retrieve any file using letters (either upper and lower case) in the query; if I use only numbers I get results.
- The solution proposed in this thread, seems not to be still valid for newer versions of MW. Maybe is this another bug?
- Thanks for your collaboration! Loman87 (talk) 10:09, 7 November 2017 (UTC)
- Can you check the datatype of the column img_name from the image table? It should be varbinary. Ciencia Al Poder (talk) 10:25, 7 November 2017 (UTC)
- Hi,
- I am not sure if the following is what you asked, however this is what I find in tables.sql for the image table:
- CREATE TABLE /*_*/image (
- -- Filename.
- -- This is also the title of the associated description page,
- -- which will be in namespace 6 (NS_FILE).
- img_name varchar(255) binary NOT NULL default '' PRIMARY KEY,
- -- File size in bytes.
- img_size int unsigned NOT NULL default 0,
- -- For images, size in pixels.
- img_width int NOT NULL default 0,
- img_height int NOT NULL default 0,
- -- Extracted Exif metadata stored as a serialized PHP array.
- img_metadata mediumblob NOT NULL,
- -- For images, bits per pixel if known.
- img_bits int NOT NULL default 0,
- -- Media type as defined by the MEDIATYPE_xxx constants
- img_media_type ENUM("UNKNOWN", "BITMAP", "DRAWING", "AUDIO", "VIDEO", "MULTIMEDIA", "OFFICE", "TEXT", "EXECUTABLE", "ARCHIVE") default NULL,
- -- major part of a MIME media type as defined by IANA
- -- see http://www.iana.org/assignments/media-types/
- -- for "chemical" cf. http://dx.doi.org/10.1021/ci9803233 by the ACS
- img_major_mime ENUM("unknown", "application", "audio", "image", "text", "video", "message", "model", "multipart", "chemical") NOT NULL default "unknown",
- -- minor part of a MIME media type as defined by IANA
- -- the minor parts are not required to adher to any standard
- -- but should be consistent throughout the database
- -- see http://www.iana.org/assignments/media-types/
- img_minor_mime varbinary(100) NOT NULL default "unknown",
- -- Description field as entered by the uploader.
- -- This is displayed in image upload history and logs.
- img_description varbinary(767) NOT NULL,
- -- user_id and user_name of uploader.
- img_user int unsigned NOT NULL default 0,
- img_user_text varchar(255) binary NOT NULL,
- -- Time of the upload.
- img_timestamp varbinary(14) NOT NULL default '',
- -- SHA-1 content hash in base-36
- img_sha1 varbinary(32) NOT NULL default ''
- ) /*$wgDBTableOptions*/; Loman87 (talk) 10:45, 7 November 2017 (UTC)
- Ok, maybe I understand now. I have to change
- img_name varchar(255) binary NOT NULL default '' PRIMARY KEY,
- to
- img_name varbinary(255) NOT NULL default '' PRIMARY KEY,
- is that right? Loman87 (talk) 10:50, 7 November 2017 (UTC)
- I made this change but the result is the same...any other idea? Loman87 (talk) 13:28, 7 November 2017 (UTC)
- tables.sql is how the tables are created, and they should already exist on your installation. Changing the script will do nothing unless you install MediaWiki on a new database. Also, you should not be editing MediaWiki files directly.
- What I asked is to check the type and collation of the actual tables on your database. The tables.sql may be changed on each upgrade, and if your wiki is old it may have the wrong datatype.
- In any case, varchar(X) binary is not equivalent to varbinary(X) (see this) and I didn't check the actual type of those columns in tables.sql, so this were mostly instructions for you to check rather than changes to do to your database.
- https://stackoverflow.com/questions/7617412/discover-collation-of-a-mysql-column
- Collations other than *_bin are probably wrong. This feature is probably still broken since T34207 is still open. I wonder why using this instead of Special:Search. Ciencia Al Poder (talk) 14:57, 7 November 2017 (UTC)
- Good morning and thanks for you patience.
- I check the actual database and this is the result:
- SHOW FULL COLUMNS FROM image;
- stdClass Object
- (
- [Field] => img_name
- [Type] => varbinary(255)
- [Collation] =>
- [Null] => NO
- [Key] => PRI
- [Default] =>
- [Extra] =>
- [Privileges] => select,insert,update,references
- [Comment] =>
- The datatype seems ok; the collation instead is not *_bin as you stated. Do I have to change it? How?
- I use Special:ListFiles because the results presentation is cleaner and also because the results have a chronological order (for some purposes pertinence is not always the best choice). For me it is easier to work here, but now I have a lot of files and I need to use the search function.
- Thanks again for your collaboration! Loman87 (talk) 10:34, 8 November 2017 (UTC)
- Looks like, in order to be able to search, the field mist be varchar(255) binary, not varbinary(255) Ciencia Al Poder (talk) 14:57, 8 November 2017 (UTC)
- Hi,
- I am experiencing this issue with the following configuration:
| MediaWiki | 1.30.0 |
| PHP | 5.6.29-1+deb.sury.org~xenial+1 (apache2handler) |
| MySQL | 5.7.22-0ubuntu0.16.04.1 |
- Search in the Special:ListFiles only returns results when using numbers in the search query (and these numbers are present in a file name).
- Is this a bug or something broke in my wiki?
- Most comments (up) seem to indicate is a known issue from previous versions. If so, is there a patch? Cascosoft (talk) 19:13, 24 April 2018 (UTC)
- I'm also experiencing this problem with the following configuration:
| MediaWiki | 1.31.0 |
| PHP | 7.0.33 (apache2handler) |
| MySQL | 5.6.43-84.3 |
- If I omit the first letter of the file I can find them. It doesn't apply to numbers though, they are found without a problem. PorkCharSui79 (talk) 10:13, 1 February 2019 (UTC)
- Yep, also having the exact same problem... sickening :( Exactly as described above PorkCharSui79 Jamiehutber (talk) 12:10, 15 March 2019 (UTC)
- We have the same Problem with
- mediawiki 1.31.0
- PHP 7.2.16
- MariaDB: 5.5.60
- but I found a wierd little workaround:
- e.g. I search for a file named Start
- I can find it if I just type S
- I can find it if I type art or tart
- BUT I can't find it when I type Start or even just St Cornulio (talk) 13:24, 15 May 2019 (UTC)
- Same Problem.
- MediaWiki 1.31.0
- PHP 7.2.20-2+ubuntu18.04.1+deb.sury.org+1 (fpm-fcgi)
- MySQL 5.7.27-0ubuntu0.18.04.1
- Does anyone have a solution? Thank you Haakmak (talk) 07:05, 6 August 2019 (UTC)
- Can't believe a problem I've encountered from basically fresh MediaWiki installations has an answer from myself from 8 years ago.
- Go to /includes/specials/pagers/. Open ImageListPager.php. Find the line:
$conds[] = 'LOWER(' . $prefix . '_name)' .- And replace it with:
$conds[] = 'CONVERT(' . $prefix . '_name USING utf8)' .- This fix is only for Special:Listfiles. Don't expect fixes for vanilla search from devs since Wikimedia projects use their own search functions. Fereal (talk) 14:41, 16 August 2019 (UTC)
- Thank you! works fine! Cornulio (talk) 14:09, 26 August 2019 (UTC)
- @Fereal Thank you very much!!!! 165.225.76.91 (talk) 14:12, 4 September 2019 (UTC)
- @Fereal Thanks this worked for my Wiki version 1.32.0. The Fix is still going strong! Bruceillest (talk) 19:05, 24 September 2019 (UTC)
- This workaround is working, why isn't patched and deployed into the next MW version? S0ring (talk) 08:06, 20 February 2020 (UTC)
- Nobody has submitted this patch for review. If anyone is interested, see How to become a MediaWiki hacker.
- EDIT: Well, someone cared, but it was abandoned because nobody cared to review that, which is sad :( Ciencia Al Poder (talk) 10:32, 20 February 2020 (UTC)
- The patch is addressed to fix the file SpecialNewimages.php, while the workaround from this topic fixes the file ImageListPager.php (!) S0ring (talk) 11:32, 20 February 2020 (UTC)
- I also found this patch worked. Is there any way we can promote that patch for review again? 2001:420:C0C0:1002:0:0:0:35D (talk) 11:54, 9 June 2020 (UTC)
- I figured out how to patch MW 1.34.2 to make Special:ListFiles and Special:NewFiles working again: https://phabricator.wikimedia.org/T34207
- Would be great to get this fixed in MW 1.35 :) Gruniversal (talk) 16:40, 17 August 2020 (UTC)
- Those wishing to automate the process can apply Gruniversal's patch directly onto your 1.35.x installation with
cd /path/to/your/mediawiki/installation curl https://gerrit.wikimedia.org/r/changes/mediawiki%2Fcore~630340/revisions/2/patch?download \ | base64 -d | patch -p1 --dry-run
- Use
base64 -Don macOS (and maybe BSD) and remove the--dry-runto actually do the thing if you get no complaints frompatch --dry-run. - This will not apply cleanly to 1.36 and above, so you'll want to make the changes by hand, based on some variation of Fereal's suggestions above, or the patch from phab:T34207.
- It might help to make backups of the core files that are about to be modified to something like
.factoryfirst, so you can more easilydiffto see what changed, and go back if everything else goes disastrously, althoughpatchhas a-R("reverse") option, if that's any consolation. Ernstkm (talk) 01:32, 1 September 2021 (UTC) - Still works, still ridiculous that a one-line fix has persisted in a talk page for 10 years without promotion. 2600:1700:4BA0:8430:9836:C644:BD8:87C3 (talk) 05:22, 27 September 2021 (UTC)
- Anyone found the solution for the 1.38x ?
- Those two files arent the same anymore, and i'm a bit lost. 45.45.58.50 (talk) 17:27, 29 June 2023 (UTC)
Lock down pages?
Is it possible to lock down a wiki page to the extent that unauthorized users can't even view the page, much less edit it? Thanks!
Product Version MediaWiki 1.16.2 PHP 5.3.5 (apache2handler) MySQL 5.5.8 Kommgroup (talk) 16:16, 6 April 2011 (UTC)
- This functionality is not built around MediaWiki, as the software is meant mainly for collaborative, transparent projects. However, there are several ways to protect pages from being viewed by certain user groups, most of them involving extensions. The one I use on my wiki is Lockdown.
- See also: Security issues with authorization extensions and Preventing access. Ecliptica 20:30, 6 April 2011 (UTC)
- thanks for the advice! Kommgroup 17:08, 7 April 2011 (UTC)
A database query syntax error has occurred. Help please!
Hello, people. I'm from Brazil and my Wiki (wiki.animekey.net) have a problem. Everytime I try to execute some functions(like "protect"), the following messages appears:
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 "IndexPager::reallyDoQuery (LogPager)". Database returned error "1176: Key 'log_user_type_time' doesn't exist in table 'logging' (localhost)".
I'm a newbie and I don't know what to do. Help, please.
MediaWiki 1.16.2 PHP 5.2.13 (apache2handler) MySQL 5.1.47
Thanks all of you. 200.151.85.122 (talk) 18:29, 6 April 2011 (UTC)
- You need to finish upgrading. —Emufarmers(T|C) 20:44, 6 April 2011 (UTC)
- I'm having the same error message and I think I have finished updating. I have several other similar errors when trying to edit pages, delete pages, etc.. while logged in. Editing pages without logging in seems to work fine.
- This is an update from 1.15.0.
MediaWiki: 1.16.2Wiki: http://pipedia.orgPHP: 5.2.15 (cgi-fcgi)MySQL: 5.1.52- I may have botched the update at several steps. Here is what I've done:
- Uploaded new files
- Re-Ran the web installer per instructions, but may have selected the wrong database type. It returned that it was expecting schema5 and found schema 4 and could not convert it to schema 5. The result was error messages like the above.
- Re-Ran the web installer again using the backward compatible option for schema 4. No change in error messages.
- Ran update.php script from SSH shell (It appears I might have been using PHP4 though). No change in error messages.
- Re-Ran the update.php script from SSH shell using PHP5 for sure. No change in error messages.
- Finally I tried uploading a back up of the database, and ran the update.php script on it, but it looks like my backup may have issues as it did not import cleanly. I could not get it to work at all and switched back to the original partially updated database with the error messages, which is where I am now.
- I'm sorry, I realize this is a mess. Any hope?
- Thanks for any help, which I would really appreciate. I'm about at my whits end with this.
- Scott
- Just edited this after logging in, which I should have done before, sorry.. User:Sethile 17:32, 9 April 2011 (UTC)
- Please include exact error messages. Bawolff 22:45, 9 April 2011 (UTC)
- Thanks, Bawolff!
- Here's the one when trying to block a user (spambot), or delete the new page full of spam:
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 "IndexPager::reallyDoQuery (LogPager)". Database returnederror "1176: Key 'log_user_type_time' doesn't exist in table 'logging' (localhost)".- And here is one when trying to edit a page while logged in:
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 "LogPage::saveContent". Database returned error"1054: Unknown column 'log_page' in 'field list' (localhost)".- Thanks very much for any insight you might have,
- Scott Sethile 00:15, 10 April 2011 (UTC)
- I meant was the exact text of the "It returned that it was expecting schema5 and found schema 4 and could not convert it to schema 5" error? Bawolff 00:37, 10 April 2011 (UTC)
- Oh, sorry.. I ran it again. Here it is exactly:
Warning: you requested the mysql5 schema, but the existing database has the mysql4 schema.This upgrade script can't convert it, so it will remain mysql4.- This is not from the update.php script, but when I re-run the web installer.
- Thanks, Scott Sethile 00:51, 10 April 2011 (UTC)
- This is fixed, thanks to Platonides on mediawiki-l!
> Platonides asks:>>> What errors are you getting?>> (eg. table foo not found)>>>> What does update.php say?>> (eg. table foo already exists)>>>>> Thanks for asking!>> Here's the one when trying to block a user (spambot), or delete the new page> full of spam:Key 'log_user_type_time' doesn't exist in tableUnknown column 'log_page'Both items are added in patch-log_user_text.sqllog_user_text> Here is the report from update.php:> ...have log_user_text field in logging table.log_user_text field is added in that same patch, so it assumes all ofthem are in the table.I don't know how did you end up with such half-applied patch.What engine are you using? MyIsam, Innodb... ?You can executeALTER TABLE logging DROP COLUMN log_user_text;Then rerun update.php which should now pick that full patch.- That fixed it!
- I think the half applied patch may have had to do with doing the update from the web installer, and selecting the wrong option for the database on the frist go around, but I don't know.
- I'm using MyISAM. I used Innodb at first but it was less stable on the server I was on so I switched.
- What a relief to have this fixed. Thanks to all!
- Scott Sethile 20:26, 10 April 2011 (UTC)
- I meant was the exact text of the "It returned that it was expecting schema5 and found schema 4 and could not convert it to schema 5" error? Bawolff 00:37, 10 April 2011 (UTC)
- Please include exact error messages. Bawolff 22:45, 9 April 2011 (UTC)
Lockdown Extension - Redirect Problem
I'm using Extension:Lockdown, and the section at the bottom of the page indicates that page redirects to restricted pages are no longer a problem after version 1.10. However, I'm using version 1.16, and redirect pages do in fact work on pages for which the viewer is not allowed to access. Entropy (talk) 21:05, 6 April 2011 (UTC)
- Interestingly, this only happens when I'm using the Vector skin, and not with MonoBook. Ecliptica 21:18, 6 April 2011 (UTC)
Turkish Special Characters Don't Show
Hi,
I installed media wiki on xampp and everything worked fine. I then uploaded it to webhostingpad, installed it. But now the special characters doesn't show on the website. Like where there is supposed to be a dotless ı, its a question mark,etc. What to do? 217.131.178.231 (talk) 00:02, 7 April 2011 (UTC)
MediaWiki in graphical presentation
Hi all, I want to know , if we can present a wiki ( eg : MediaWiki ) with graphical graphe ? so if it is ? how we can do it ! is there any tools for ? or sources ? thanks ^^ 80.82.238.143 (talk) 08:41, 7 April 2011 (UTC)
extensions don't work after installation
hi, i have been installed article2category extension and FCKeditor like their instruction but they don't work, and i can't see any changes in my wiki. could someone help me please? thanks alot 173.236.127.109 (talk) 11:17, 7 April 2011 (UTC)
- MW version? Are they visible on Special:Version? Did you add them to the top or bottom of LocalSettings? Max Semenik 11:39, 7 April 2011 (UTC)
- thanks for your attention
- mw version is 1.16.2 (latest one). no, i didn't try other version. i am a beginner.
- i add them at the end off LocalSettings.
- thanks 46.100.174.162 06:45, 8 April 2011 (UTC)
- nobody can help me? I use easyPhp on my localhost, does it have problem with mediawiki?
- thanks in advance Hosnieh 06:30, 25 April 2011 (UTC)
- Because you're a beginner, it would be better for you to ask this on #mediawiki, this way asking questions and receiving replies will be much quicker. Max Semenik 06:34, 25 April 2011 (UTC)
MediaWiki: Disable the password requirement
Hello help, I am using mediawiki and have multiple websites within.Each website within requires a username and password in order to access that site. I would like to remove the password requirement for one of the sites. Could anyone assist me with this?
Thanks Dezione1 (talk) 13:18, 7 April 2011 (UTC)
- Yes, I have precisely the same problem. The kind admin who setup the wiki with password access for us has apparently evaporated. We are done and now need to open up the resulting Wiki for viewing by the public as per our Government Grant ... BUT WE CAN'T!
- Please help!
- Charles 65.96.6.128 15:41, 10 June 2011 (UTC)
- See Manual:Preventing access. Namely, you need to remove stuff like $wgGroupPermissions['*']['read'] = false; from your LocalSettings.php. Max Semenik 16:20, 10 June 2011 (UTC)
Where is the watchlist maximum days site variable configured?
I saw somewhere in the manuals a mention that users can choose watchlist durations of up to 30 days "depending on wiki." Our wiki, version 1.16.2, only allows 7 days at present. The man page here on variables for LocalSettings.php has no variable with "watchlist" in the name that appears to be about the duration to be made available.
Also, as a suggestion, it's suboptimal interface design to have a text area for a constrained choice like this. It would be better as a list, on which only allowed numbers of days are presented as user choices, to minimize confusion.
But fixing that isn't my current goal, just finding where to reset the variable, since we have people who want a watchlist duration choices beyond 7 days. WhitWye (talk) 14:35, 7 April 2011 (UTC)
- I've found Manual talk:$wgRCMaxAge - but as others have already commented in the discussion, after setting that value to 91 days in LocalSettings.php, and then running maintenance/rebuildrecentchanges.php (which confirms 91 days), the watchlist option for the user is still limited to 7 days. Is there a second variable lurking here? Whit 15:08, 7 April 2011 (UTC)
asp extension?
is it possible to create an asp extension to run as an extension for mediawiki? im not good with php :\ perhaps i can use php to hook it in but the main part being asp? thanks, this may be a stupid question but ive been looking around and no information on it. 174.115.253.68 (talk) 23:12, 7 April 2011 (UTC)
- I don't know anything about asp, but in the worst case, you could have the asp as a separate page, and then have your php extension fetch the results of the ASP part via HTTP. (That'd be rather inefficient though). Does asp have a command line client, if so you could probably use that to write most of your extension (Again not the ideal way though). For example I know some extensions (like EasyTimeline) are 99% written in perl, and just have a small php part that just executes a perl program.
- (OTOH, php really is not a very hard language to pick up if you have experience with other programming languages). Bawolff 14:00, 8 April 2011 (UTC)
Problems with global login on Commons
It seems that my global login works with all Wikimedia sites except Commons. Quite the opposite, actually: When I log in anywhere other than Commons, this logs me out on Commons if I was previously logged in. And vice versa: When I log in on Commons, sometimes this logs me out on all other Wikimedia sites. I've been trying to find a system, because the log-out does not happen everytimes, but rather random. What gives? --Tetris L 08:35, 8 April 2011 (UTC)
TOC Linking?
I currently have a wiki setup with ABC format. The TOC shows up as A...how do I link to the letters on my page? Here is the page in question;
http://wiki.cheapassgamer.com/index.php/Xbox_360_Game_Install_Sizes_%26_Loading_Times
Any help would be greatly appreciated. SynGamer~mediawikiwiki (talk) 11:42, 8 April 2011 (UTC)
- You have to create anchors at the points you want to jump to. For example,
<span id="anchor-a">A</span>
- shows the letter "A" and makes it an anchor. You can then jump to the point of the page where that anchor is, by appending the anchor name to the page name in this fashion:
- Hamilton Abreu 21:41, 8 April 2011 (UTC)
[[Xbox 360 Game Install Sizes & Loading Times#anchor-a]]
- Alright, I'm extremely new to wiki's in general. How do I keep the ABCD... at the top of the page and still make the A link to the A section? I trying using the code you posted above but it doesn't seem to work. SynGamer 01:47, 9 April 2011 (UTC)
- Well, let's try to simulate it in this message. The menu at the top should read as follows:
[[#A|A]] - [[#B|B]] - [[#C|C]] etc.
- This will yield:
- A - B - C etc.
- each entry jumping to an anchor #something. You then need to create each anchor for everyone of these. The cleanest way to present that would be a separate entry in the table, to server just as anchor. So, say you have a table as follows:
- Alright, I'm extremely new to wiki's in general. How do I keep the ABCD... at the top of the page and still make the A link to the A section? I trying using the code you posted above but it doesn't seem to work. SynGamer 01:47, 9 April 2011 (UTC)
| Entries starting with A <anchor entry> |
| A1 |
| A2 |
| Entries starting with B <anchor entry> |
| B1 |
| B2 |
| Entries starting with C <anchor entry> |
| C1 |
| C2 |
- If you press "A", "B" or "C" in the menu at the top, your browser should jump to the corresponding table entry.
- Edit this message to look at the code for the table. Hamilton Abreu 05:51, 14 April 2011 (UTC)
- Any help will be greatly appreciated. We currently have no clue why this isn't working...well, a slight clue, but no idea how to fix it. SynGamer 02:31, 14 April 2011 (UTC)
- It´s not working because you've defined the jumps to anchors #A, #B, #C, etc. but did not define the respective anchors to jump to with <span id="A">xxxxxx</span>, <span id="B">xxxxxx</span>, <span id="C">xxxxxx</span> on the lines that are the target of the jump.
- You can elect as target of the jump the first line that starts with the respective letter. However, if you do this, you'll be creating a potential future failure point. This is because for any additional future entries inserted in the table, if they happen to start just before the entry you've chosen, you'll need to remember to transfer the anchor to that new entry.
- It would be cleaner to create a new header entry with the anchor, that will serve just as header for its letter, so that all future entries starting by that letter are sure to always be placed below that header. Hamilton Abreu 06:03, 14 April 2011 (UTC)
Error on first run of index-dot-php
I get:
"MediaWiki internal error. Exception caught inside exception handler"
and nothing in the Apache error log.
Versions--- MediaWiki: 1.16.2 Apache2: 2.2.17 PHP5: 5.3.5-5.12.1 OS: openSUSE 11.4 x86_64
Any other information I should provide in order to receive troubleshooting advice? 128.171.73.73 (talk) 01:09, 9 April 2011 (UTC)
localhost/mediawiki redirects en.wikipedia.org
Please, I'm new installing and configuring a mediawiki. I've installed mediawiki succesfully, I ran configuration script and mediawiki worked. I have a Wikipedia dump wich I imported to wiki DB, it works partially. Like I read I run rebuildall.php and after that when I try to to go to localhost/mediawiki (I use it that way before, I want it locally) it redirects to w:en:Portada wich even doesnt exists.
Any help will be apreciated. This is for a project in my carrer.
Ubuntu 10.10 Maverick Meerkat Mediawiki 1:1.15.5-1 PHP 5.3.3-1ubuntu9.3 MySQL 5.1.49
Thanks. Jrluis (talk) 04:10, 9 April 2011 (UTC)
- Disable JavaScript, go to MediaWiki:Common.js and remove the code that performs the redirection. You've imported it along with other stuff. Max Semenik 05:47, 9 April 2011 (UTC)
- Thank for the quick response. But when you say "go to MediaWiki:Common.js" I dont understand what to do. If you could explain to me it will be great. Jrluis 23:28, 9 April 2011 (UTC)
- There is a page with that name on your wiki, delete it. Also, check $wgServer in LocalSettings.php - it shouldn't point to Wikipedia either. Max Semenik 04:39, 10 April 2011 (UTC)
- The requested URL /mediawiki/MediaWiki:Common.js was not found on this server. I've disable JavaScript and clear browser cache. Jrluis 05:04, 12 April 2011 (UTC)
- There is a page with that name on your wiki, delete it. Also, check $wgServer in LocalSettings.php - it shouldn't point to Wikipedia either. Max Semenik 04:39, 10 April 2011 (UTC)
- Thank for the quick response. But when you say "go to MediaWiki:Common.js" I dont understand what to do. If you could explain to me it will be great. Jrluis 23:28, 9 April 2011 (UTC)
How to create dialog boxes for text input?
Is there an easy way to create a template with a certain number of Dialog boxes, for instance for inputting name, company, date and usual text? Each box should have buttons like ok,cancel, add; template should have save button; when clicked contents should be saved and stored in the database; also it should be possible to retrieve the data for each user respectively create some report. I checked CK editor but looks like it's not what I'm looking for. My basic question is whether this is possible , at all, or do I need a different approach without Mediawiki? Mediawiki Version 1.15.1 PHP Version 5.3.2 Ubuntu 10.04 MySQL Version 5.1.41 Danke in advance for any tip --heinrich Heinrich~mediawikiwiki (talk) 13:07, 9 April 2011 (UTC)
Linker::makeImageLink2: File:blah.jpg does not allow inline display
An example of the problem can be found here: http://50.56.114.108/index.php?title=Kodokan_Judo_Institute
If you notice, the first thing on the page is links to File:Kodokan(andLaqua).jpg and File:Kodokan logo.gif. However, these are created using [[Image:
If you click through to the image page and then click through to the image, you can view it.
I migrated to a new server recently. Previously I was on a shared host using apache, but now I have my own virtual server using lighttpd. The problem occurs on the new server using either apache or lighttpd. Before I migrated I upgraded the installation to 1.16.2 and did not notice if the problem was from that or not.
Any new files I upload will work correctly. It is just the files that I have uploaded before the migration. (so one possible solution is to re-upload all the files... but I sure hell don't want to do that.)
Here is the error the debug log gives (it gives this for any image it tries to display):
- MediaHandler::getHandler: no handler found for image/jpeg
- Linker::makeImageLink2: File:Kodokan(andLaqua).jpg does not allow inline display
- MediaHandler::getHandler: no handler found for image/gif
- Linker::makeImageLink2: File:Kodokan_logo.gif does not allow inline display
I am guessing this has something to do with $wgTrustedMediaFormats and Image::isSafeFile deeming these file types to be invalid. But I have no idea why they would be doing this.
Any help would be appreciated. Revil~mediawikiwiki (talk) 12:11, 10 April 2011 (UTC)
- Hrmm... interesting. If I go to the image page and force a purge, it will rebuild the image. While I am glad I am getting closer to the root issue, I still have no idea what is going on. any ideas? Revil 00:17, 11 April 2011 (UTC)
- 1 year later. I am having same problem. Using mw version 1.17.0, supposed to be stable.Installed PHP GD
- Appreciate if you could share solution if you managed to fix the prob.
- Thanks!
- Zai Zaisarkar (talk) 13:08, 12 March 2012 (UTC)
- This can be caused if MediaWiki had trouble determining the width and/or height of the image.
- The width and height are generally discovered at upload time and stored in the db. A purge action causes this data to be re-fetched from the image.
- So it sounds like your db somehow got bad data for some images.
- Try running the maintenance script refreshImageMetadata.php with the -f option
php refreshImageMetadata.php -f- (rebuildImages.php would probably also work. Both scripts do similar things). Bawolff (talk) 02:44, 13 March 2012 (UTC)
Does anyone know a mediawiki skin that looks like Wikia's?
Does anyone know a mediawiki skin that looks like Wikia's? Secretmapper (talk) 13:25, 10 April 2011 (UTC)
Math-mode with Mac-OS X
I successfully installed wikimedia-1.16.2 on my homepage. Everything woks fine except of math mode (even upload of files). Texvc delivers good results on my local computer. But editing formulas with math mode on results in: "Parser-Fehler (Das texvc-Programm wurde nicht gefunden. Bitte math/README beachten.): A=B".
Thank you in advance for your support
Live long and prosper... HJG 109.193.113.180 (talk) 15:10, 10 April 2011 (UTC)
- Manual_talk:Running_MediaWiki_on_Mac_OS_X#Mathematics. Max Semenik 15:25, 10 April 2011 (UTC)
- Do I have to go through all the mentioned issues, or can you give me a hint, where I should focus on? Texvc works fine on my Mac. So I thought that everything is o.k.
- Best Regards
- HJG 109.193.113.180 15:45, 10 April 2011 (UTC)
- Hm,
- I have tried all the recommendations from "Manual_talk:Running_MediaWiki_on_Mac_OS_X#Mathematics." ....... still no success.
- What am I doing wrong????
- Live long and prosper... HJG 109.193.113.180 19:22, 18 April 2011 (UTC)
Enabling Lonely Pages to be found and indexed by external search engines
MediaWiki 1.12.0 PHP 5.2.1 (apache2handler) MySQL 5.0.37
How do you turn off the "don't follow" HTML for the "Lonely Pages" so that the links to lonely pages will be followed and the lonely page contents will be indexed by external search engines? I've pointed our Google search appliance to Lonely Pages, but the "don't folllow" HTML is preventing it from working. I saw the $wgNoFollow... configuration options, but those didn't seem to apply. Palfvin (talk) 15:39, 10 April 2011 (UTC)
Wowhead Tooltips
I have tried to install the script in order to have Wowhead tooltips appearing when I mouseover an item link.
To do it, I have changed the line $ret .= "</head>\n"; in OutputPage.php with $ret .= "<script type=\"text/javascript\" src=\"http://static.wowhead.com/widgets/power.js\"></script>\n</head>\n";
But when I mouse over a link, the background of the tooltip is white, but it should be blue and I don't understand why it is white...
Can somebody help me ? Arctara (talk) 19:01, 10 April 2011 (UTC)
Configuring Special:Statistics
I would like to configure how Special:Statistics produces its results - specifically, excluding certain pages from "most viewed pages" and changing how "active users" is computed. Can someone direct me to a page detailing configuration settings for this and where I can go to change them? Thanks 198.103.53.5 (talk) 17:04, 11 April 2011 (UTC)
- The latter is $wgActiveUserDays, I don't think that there is a way to do the former. Max Semenik 17:22, 11 April 2011 (UTC)
- Thanks for the reply and information. It's too bad about the former - pages like Main Page and Sandbox (as well as some pages that existed but do not any longer) are right at the top of the list and are stubbornly hanging on. Since they're at the top of the list they get viewed more often and become entrenched. Sigh.
- Thanks again! 198.103.53.5 20:04, 11 April 2011 (UTC)
- Hi i have made some changes in the Default settings adding this lines:
- $wgActiveUserEditCount = 30;
- $wgActiveUserDays = 30;
- but when i go to check statistics Statistics i keeps showing 91 days. I do not know what to do to chage this 91 for 30. Can anybody help me ? Thanks. Abel406 20:02, 3 May 2011 (UTC)
- Hi i have made some changes in the Default settings adding this lines:
- $wgActiveUserEditCount = 30;
- $wgActiveUserDays = 30;
- but when i go to check statistics Statistics i keeps showing 91 days. I do not know what to do to chage this 91 for 30. Can anybody help me ? Thanks. Abel406 20:02, 3 May 2011 (UTC)
Moving an existing wiki to a new account
I work for a company that is in the process of purchasing a product from another company. When this is done, we will need to transfer the wiki associated with this product from the old owner's Media Wiki account to our own account. (We can't simply take over their account because they have other wikis related to products that they still own.)
We are planning to create a new Media Wiki account under our name, and then to hopefully be able to transfer the wiki to our account. Is this possible? Is this process similar to moving a page?
Or will it be necessary to create a new wiki under our account and delete the old one?
Many thanks for your help. 173.160.50.1 (talk) 20:39, 11 April 2011 (UTC)
- Depending on your needs (do you need to move user accounts, for example?) see Manual:Moving a wiki or Manual:Importing XML dumps. Max Semenik 04:03, 12 April 2011 (UTC)
- Yes, we need to move the wiki from one user account to another. Is this the same as moving the wiki to a new server? 173.160.50.1 21:05, 15 April 2011 (UTC)
- Probably. —Emufarmers(T|C) 21:34, 16 April 2011 (UTC)
- Yes, we need to move the wiki from one user account to another. Is this the same as moving the wiki to a new server? 173.160.50.1 21:05, 15 April 2011 (UTC)
Custom Description Page depending on uploaded file MIME type
I would like to have embedded players on Description pages for video files (in my case I have linked FlowPlayer extension), pdf viewers for pdf-files, djvu viewers for djvu-files, audio player for mp3 and etc. I would like to learn how to realize something like described here w:en:Help:File_page about video and other multimedia such as File:Russian national anthem at Medvedev inauguration 2008.ogg or w:en:File:Abroad_-_1882.djvu 77.239.160.219 (talk) 23:14, 11 April 2011 (UTC)
Migrating From MediaWiki 1.2 to MediaWiki 1.16
Hi,
Situation looks not too good here. We have mediawiki 1.2 /mySQL (Xampp) and wish to move to mediawiki 1.16 (Postgres). First we thought to move to mediawiki 1.2 /mySQL to mediawiki 1.16 /mySQL did work. Number of tables are not the same, data can not be transfered to new mediawiki.
Can anyone help us with this situation?
Many thanks in advance.
BaF 139.105.134.69 (talk) 13:23, 12 April 2011 (UTC)
- First, upgrade your MySQL installation to latest release, 1.16.3. Then see Manual:PostgreSQL, it has two migration options. Max Semenik 04:18, 13 April 2011 (UTC)
- Did you run the update script after updating 1.2 to 1.16? It should of fixed the tables. The issue you are experiencing is most likely the mySQL changes that happened at 1.5, You could try to upgrade to that then to 1.16. and after that to the Postgres migration. Peachey88 04:30, 13 April 2011 (UTC)
- Many Thanks for your replies. I will try the suggestions and hope for the best. 139.105.134.69 09:22, 13 April 2011 (UTC)
everything is broken
Dear Support Team, We have migrated our MediaWiki to another Server. Now it is broke completely.
This is what I did: dumped Database - downloaded directorys and files - uploaded directorys and files - uploaded Database - changed LocalSettings.php
the URL of the Wiki is fcnwiki.de
When I try the /maintenance functions, like rebuildall.php I get the Warning:
Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/web0/html/wiki/wiki/includes/Exception.php on line 172
Permissions for Dirs and Files are set....
I dont know what to do right now and I hope you can help me. Thanks in advance, C. 84.168.213.156 (talk) 22:00, 12 April 2011 (UTC)
- It looks like need to update your paths/rewrite rules. See Manual:Short URL. —Emufarmers(T|C) 04:19, 13 April 2011 (UTC)
MediaWiki internal error. Exception caught inside exception handler
Have been running the wiki for several weeks. Had a equipment failure and after fixing it (video card) I satrted getting this error when accessing. Is there any hope in fixing it and getting it working again. Just what should I be looking for?
Thanks for any and all help Youcantoo~mediawikiwiki (talk) 03:55, 13 April 2011 (UTC)
- More information needed. See Manual:How to debug on displaying exception details. Max Semenik 04:16, 13 April 2011 (UTC)
Remove access for anon users.
MediaWiki 1.16.2 PHP 5.2.12 (cgi) MySQL 5.0.91-log
I'm sorry if this is an easy fix, I just really don't know what to search for.
What I'd like to do is basically make the wiki read only for users who are not signed in, and remove any links related to editing the wiki. Only approved users will have access editing. When the site is accessed by a user who is not signed in I only want them to see the content and the "Navigation" side bar. I do not want them to see the links to History, Source, Discussion across the top or "Personal Tools" or "Toolbox" in the sidebar.
Also, if possible, I'd like anon users who manually type the address of one of these restricted pages to be faced with only a sign in screen.
Could someone please point me in the right direction?
Thanks! Abbott75 (talk) 09:13, 13 April 2011 (UTC)
Articles size is limited to 64 kb
I can't write articles bigger than 64 kb on my wiki. Whenever it’s bigger than 64 kb, I get an empty article. Any ideas? My host said he changed suhosin.post.max_value_length from 65000 to 256000 but that didn’t change anything. Things like hphp.post.max_value_length mentioned here don’t even exist. Adventure Game Critic (talk) 02:58, 14 April 2011 (UTC)
- This setting is for Hardened PHP only, and that is mentioned. Max Semenik 04:14, 14 April 2011 (UTC)
IP, Spam. Editing for users only!
Hello sir/madam,
We want that only users can edit pages. Where can I change that?
Thanks!
Regards, Jorrit 188.204.104.166 (talk) 08:38, 14 April 2011 (UTC)
- Try this in your LocalSettings.php:
$wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['user']['edit'] = true;
- More in Manual:User rights. 46.0.28.171 19:05, 14 April 2011 (UTC)
- Thanks, I tried it in the Localsettings.php, but it doenst work? I try the below code. Can you help me further? Thanks!
This example will disable editing of all pages, then re-enable for users with confirmed e-mail addresses only:# Disable for everyone.$wgGroupPermissions['*']['edit'] = false;# Disable for users, too: by default 'user' is allowed to edit, even if '*' is not.$wgGroupPermissions['user']['edit'] = false;# Make it so users with confirmed e-mail addresses are in the group.$wgAutopromote['emailconfirmed'] = APCOND_EMAILCONFIRMED;# Hide group from user list.$wgImplicitGroups[] = 'emailconfirmed';# Finally, set it to true for the desired group.$wgGroupPermissions['emailconfirmed']['edit'] = true;188.204.104.166 09:17, 18 April 2011 (UTC)- anybody who can help us? 188.204.104.166 11:35, 28 April 2011 (UTC)
- What isn't working? —Emufarmers(T|C) 01:02, 29 April 2011 (UTC)
- anybody who can help us? 188.204.104.166 11:35, 28 April 2011 (UTC)
MediaWiki Multi-lingual. How?
Dear sir/madam,
We have our own MediaWiki (http://wiki.onlinefootballmanager.co.uk/index.php?title=Main_Page) and we want that our wiki is multi-lingual, but we don't now how!
Can you help us? Thanks!
Kind regards, Jorrit 188.204.104.166 (talk) 08:39, 14 April 2011 (UTC)
- May be this Manual:Wiki family can help you. 46.0.28.171 19:02, 14 April 2011 (UTC)
Upload Problems
I've seen the problem I'm running into elsewhere in different forms, but none of the solutions seem to work for me.
I'm on a shared server (IXwebhosting) and I'm receiving the error: Could not find file "C:\WINDOWS\Temp\phpX.tmp" where X is always different. I've used the IXwebhosting instructions for setting upload_tmp_dir to the absolute path on their server of a temp directory on my site. I also have $wgUploadDirectory set to the absolute path of the images folder on my site.
If, however, I change the $wgUploadDirectory variable to a relative path ("/images"), I get a different error: "The upload directory (public) is missing and could not be created by the webserver."
The server is running windows, with PHP 5.2.12 and MySQL 5.0.45. I've uploaded Mediawiki 1.16.4.
Any ideas? Thanks ahead of time. Miguelag~mediawikiwiki (talk) 18:03, 14 April 2011 (UTC)
- Just for a quick update on my problem. I haven't solved it, but I think I understand the source of it. This bug report describes exactly my problem: https://bugzilla.wikimedia.org/show_bug.cgi?id=14213
- It seems like regardless of the upload_tmp_dir php value, PHP is trying to use the C:\Windows\tmp directory even though I don't have permissions for that folder. The fix on the bug report seems to be for an older version of MediaWiki and hasn't been updated in a while. Miguelag 15:35, 19 April 2011 (UTC)
lost admin password
- The admin password for our wiki has been lost. Because I can only login as a user, the "Special:" options are not available.
- While I have access to the wiki db via phpmyadmin, the user_options and ur_rights fields are binary, so making edits is not an option.
- How do I go about either retrieving the admin password, or creating a new admin?
- No idea which version of Wiki we're running. Also, the admin settings is still named AdminSettings.sample.
- david 74.67.39.114 (talk) 21:40, 14 April 2011 (UTC)
- I'm having the same issue but am on shared hosting, so have phpmyadmin access but not shell access. The former admin of the wiki is unreachable, so I need to be able to get admin access. Any ideas? 2001:569:7D25:5C00:A83D:4F6:C475:4226 (talk) 19:50, 20 July 2018 (UTC)
Wiki can't find any words in tables
Hello.
Here is my wiki info:
- MediaWiki 1.16.0
- PHP 5.2.14
- Database MySQL 14.12 Distr 5.0.24 for Win32
In my wiki I store information in tables, like the table below.
| ID | Req | Disc |
|---|---|---|
| Infrom 1 | Infrom 2 | Infrom 3 |
|
But when I try to find any word the wiki shows nothing. Is it known issue? Is there any way to solve it. |
89.175.166.12 (talk) 05:39, 15 April 2011 (UTC)
Account Reinitialized after an error 500
Hi,
I recently took back the maintenance and administration of a wiki developed for a company. There was a problem of php script for almost 3 weeks, that I corrected but when I replace the corrected files in the FTP I missplaced them (on the root instead of going in the good file) and generate a bug on the website (wich is hosted on the same place). To correct all this I reloaded the old version of our wiki file wich was in our FTP (a back up that I'de made the day before), the back up version of our web site and reloaded the old index page that I erased. The web site is now working, but after about 3 hours of error 500 when I tried to go on our home page for identifying, the page suddently reappeared except that it is the page of initialisation of our wiki. I don't know what happens and how can I reload all our infos... May be reloading the database whith PhpMyAdmin, but where is it? Our website and wiki are hosted on a 1&1 account, could it be there? Or I've read about a rebuildall.php page, could this be usefull to me?
Thanks for your help. Savannah. 80.14.90.130 (talk) 16:01, 15 April 2011 (UTC)
- See here how to get more details about errors. Max Semenik 16:42, 15 April 2011 (UTC)
Numbers in upper left corner of page
When changing pages, I get a quick flash of a page with only numbers on it, 0;95;c, which is then replaced with the proper page. On that page the same numbers appear in the upper left corner. It started doing this while I was working on enabling uploads. Any idea what I messed up?
Wiki at [1] 204.249.125.6 (talk) 16:29, 15 April 2011 (UTC)
- Apparently, it was accidentally added while editing some PHP file - at the very begginning of it. LocalSettings.php is the most obvious candidate. Max Semenik 16:44, 15 April 2011 (UTC)
- I have a somewhat similar problem. I have a few random characters (numbers and letters) on the top-left of non-existent pages. I am using 1.17alpha. Hazard-SJ ± 22:01, 16 April 2011 (UTC)
Per-group exemption of CheckUser
Please see request on Wikimedia Bugzilla: https://bugzilla.wikimedia.org/show_bug.cgi?id=28363
This request marked as RESOLVED WONTFIX by Brion Vibber, but Brion wrote that this is not a problem.
Anybody can write a patch with the proposed fixes for CheckUser 1.16.x (r66255)? NomoNest (talk) 11:04, 16 April 2011 (UTC)
Some questions because I need help
- MediaWiki 1.16.2
- PHP 5.2.13
- MySQL 5.0.91-community
- Link: http://sparkleisland.comuf.com/index.php/Main_Page (My own wiki for me and my friends singing group)
I would like to know how I change the navigation and how I add a logo, I set the logo $wgLogo on my logo and added it in the LocalSettings.php
also, my favicon shows up sometimes not always, I added it in the LocalSettings.php after the last " $wgCacheEpoch = max( $wgCacheEpoch, gmdate( 'YmdHis', @filemtime( __FILE__ ) ) );" is that alright?
and, how do I make my account full admin thing... or like my account have administration rights everywhere?
and lastly, how can I add more languages to pages... ?
//Aya 83.226.84.178 (talk) 12:27, 16 April 2011 (UTC)
- You need to set the logo to point to an actual image file, not an image description page. Try
$wgLogo = "/images/4/41/SparkleIslandLogo.png";- You should always add settings to the end of LocalSettings.php. You have your favicon at favicon.ico, so you shouldn't need to set $wgFavicon at all.
- See Manual:FAQ#Initial_user_was_not_created_by_installer_or_it_is_not_an_administrator —Emufarmers(T|C) 21:48, 16 April 2011 (UTC)
- Thanks for the logo thing.... but the logo is to big, what size should the logo be?
- Also, I don't really get the default member thing, where was i supposed to add this: INSERT INTO user_groups ( ug_user, ug_group ) VALUES ( <id>, 'bureaucrat' ), ( <id>, 'sysop' );
- <id> 83.226.84.178 08:43, 17 April 2011 (UTC)
How can optional parameters be forwarded from a proxy template
This is an advanced templating issue which I believe is a limitation in current MediaWiki versions. I'm aware of a number of possible workarounds but none are elegant in the following scenario.
Suppose we have two templates, a proxy template which is called from some other page directly, and another template which is the target of the proxy.
Template:Proxy may be defined as follows:
{{target|{{{1}}}|{{{2|}}}}}
Template:Target may be defined as follows:
[[{{{1}}}|{{{2|My link: {{{1}}}}}}]]
The target template simply outputs a link to page {{{1}}} whos caption matches {{{2}}}, or if parameter two is undefined, the value of {{{1}}} with the string prefix, "My link: ".
The problem is that the proxy template can never take advantage of the behaviour of omitting the second parameter because somehow passing a blank parameter and not defining it are not the same thing. The proxy will always pass either the value it receives in parameter two, or blank, but never undefined. It does not seem possible to pass optional parameters from one template to another. Am I wrong?
Although details of the target template are exposed for the purposes of this example, please treat the target as a black box and do not propose modifications to the target which accommodate the fact that it is being targeted by a proxy; the target must remain unaware of the proxy. Bilge (talk) 23:54, 16 April 2011 (UTC)
- Please read Help:Parser functions in templates. If that's not clear, try translating to English the page Help:Parser functions in templates/pt. Hamilton Abreu 11:40, 17 April 2011 (UTC)
- Thanks! It's a little ugly, I wish there were a better solution than this, but it is adequate for now. Bilge 13:18, 17 April 2011 (UTC)
subst:
Hi. I'm trying to use subst: in a template in the he wikipedia. But when I do it, in the page, I get all the and etc. are showing... Do you know a way to avoid it? Thanks, Ofekalef 05:28, 17 April 2011 (UTC)
- Please clarify what you mean by "I get all the and etc. are showing... " with a clear example. Hamilton Abreu 11:42, 17 April 2011 (UTC)
- Oh, sorry, it is wiki code: {{#if:}} and etc. you can see exampe here (it's in hebrew but you can see this...)
- you can see the original befor the subst: here.
- thanks :) Ofekalef 13:09, 17 April 2011 (UTC)
- Someone knows? Ofekalef 09:24, 20 April 2011 (UTC)
- Well, the behaviour of subst: is documented in Help:Templates#Usage: it *copies* the contents of the substituted page into the page you are saving. In other words the string {{subst:X}} will be *REPLACED* by the contents of page X. Right?
- So, if I understand you correctly, you want it to *interpret* those contents while copying: it does not do that.
- Maybe you're going about this in the wrong way, and would need to do things differently, but I cannot derive any further information about what you're trying to achieve, as I don't understand hebrew. Hamilton Abreu 17:02, 20 April 2011 (UTC)
- Check if this helps: Help:Substitution. Hamilton Abreu 21:57, 20 April 2011 (UTC)
- Well, first, thanks :)
- I tried to read but didn't find answer...
- Do you know there is solution for that? thanks :) Ofekalef 08:03, 21 April 2011 (UTC)
- Unfortunately, I don't. Maybe someone experienced in the use of subst: will come to the rescue. Hamilton Abreu 09:51, 21 April 2011 (UTC)
- Hi, Try to put <onlyinclude></onlyinclude> between the part which you want to "subst". Hope that it helps. Cheers — Tjmoel
bicara 19:46, 23 April 2011 (UTC) - Hi, Try to put <onlyinclude></onlyinclude> between the part which you want to "subst". Hope that it helps. Cheers — Tjmoel
bicara 19:46, 23 April 2011 (UTC)
- yeah :) it works :))
- Thank you very much :) Ofekalef 11:29, 24 April 2011 (UTC)
- Hi, Try to put <onlyinclude></onlyinclude> between the part which you want to "subst". Hope that it helps. Cheers — Tjmoel
- Unfortunately, I don't. Maybe someone experienced in the use of subst: will come to the rescue. Hamilton Abreu 09:51, 21 April 2011 (UTC)
- Someone knows? Ofekalef 09:24, 20 April 2011 (UTC)
Special:WantedFiles with InstantCommons
Hi, we have started using InstantCommons in our e-learning medical project WikiSkripta.eu recently. We realized that used images from Wikimedia Commons are shown properly, but they are also listed in Special:WantedFiles. That is not very useful, because we need this special page to monitor missing images in our articles. Is there any solution of this problem? Could you help us, please?
MediaWiki: v. 1.16.0
PHP: 5.2.6-1+lenny9 (apache2handler)
MySQL: 5.0.51a-24+lenny5-log
url: http://www.wikiskripta.eu
Thank you very much! Slepi (talk) 08:05, 17 April 2011 (UTC)
- This is a known bug - bugzilla:6220 Bawolff 16:53, 19 April 2011 (UTC)
Fehler 310 (net::ERR_TOO_MANY_REDIRECTS): Zu viele Umleitungen.
Nach Server Umzug kommt nun diese Fehlermeldung kann mir jemand helfen? Fehler 310 (net::ERR_TOO_MANY_REDIRECTS): Zu viele Umleitungen. Danke im Voraus 91.10.125.178 (talk) 18:39, 17 April 2011 (UTC)
Upload Family
Hello,
iam using Mediawiki 1.16.4 PHP 5.2.6 and MySQL 5.0.51a.
Iam Tying to set up a language farm for media wiki.
this ist my personal localsettings.php file. $wgServer = "de.wiki.mumb1e.de"; $wgUploadNavigationUrl = 'http://pool.wiki.mumb1e.de/wiki/Special:Upload'; $wgUseSharedUploads = true; $wgSharedUploadPath = 'http://pool.wiki.mumb1e.de/w/images/'; $wgSharedUploadDirectory = '/var/www/vhosts/mumb1e.de/subdomains/pool.wiki/httpdocs/w/images/'; $wgHashedSharedUploadDirectory = true; $wgFetchCommonsDescriptions = true; $wgSharedUploadDBname = 'wiki_pool'; # bzw. den Datenbank-Namen des PoolWikis $wgSharedUploadDBprefix = 'mediawiki_'; # den Datenbank-Präfix des PoolWikis $wgRepositoryBaseUrl = "http://pool.wiki.mumb1e.de/wiki/File:"; # bzw. "Bild:" - je nach Sprachpräfix
But when iam trying to upload a file in my language wiki i get this german error: "Der Webserver hat keine Schreibrechte für das Upload-Verzeichnis (public).".
Is something wrong with the config? 88.134.133.199 (talk) 19:35, 17 April 2011 (UTC)
- I can't read German, but it looks like you're getting the same error I am from a different thread. I've noticed that if I change the $wgUploadDirectory to an absolute path like "D:/hshome/.../images" then I get a different error: Could not find file "C:\WINDOWS\Temp\phpX.tmp" where X is always different. Does this same thing happen to you? Also, are you hosted on a shared server? Miguelag 15:32, 18 April 2011 (UTC)
This post by Revibot was moved on 2015-07-11. You can find it at Project:Village Pump/Flow/2011#h-Extension:YetAnotherTagCloud-2011-04-17T19:09:00.000Z. [[kgh]] (talk) 19:42, 17 April 2011 (UTC)
Extension:Facebook
Hello
Since today the extension doesn't seem to be working. The login with facebook link in the upper right corner has no link.
I already reinstalled the wiki completely with only the fb extension
http://farma.webserver.gretech.be/wi/index.php?title=Main_Page#
kind regards, Gregory Beankens 83.101.68.21 (talk) 16:53, 18 April 2011 (UTC)
Uploading files of any type
I've set up a wiki for my company and it's important to be able to upload files with ANY extension (even restricted types like exe, etc.
In LocalSettings.php, I've set $wgVerifyMimeType to false, $wgCheckFileExtensions to false, and $wgStrictFileExtensions to false. However, the upload form still only allows me to upload files in $wgFileExtensions. If I upload a file of an unknown type the form doesn't give me an error, it simply doesn't allow me to upload it. How can I fix this problem? Ecliptica 22:14, 18 April 2011 (UTC)
- I've set up a wiki for my company and it's important to be able to upload files with ANY extension (even restricted types like exe, etc.
- In LocalSettings.php, I've set $wgVerifyMimeType to false, $wgCheckFileExtensions to false, and $wgStrictFileExtensions to false. However, the upload form still only allows me to upload files in $wgFileExtensions. If I upload a file of an unknown type the form doesn't give me an error, it simply doesn't allow me to upload it. How can I fix this problem? Entropy (talk) 22:14, 18 April 2011 (UTC)
URL in confirmation email contains IP instead my domain name
Hello, im trying my firs installation. Can't find solution for the following: 1. Registering new user. 2. Getting confirmation email. 3. Link in email body for confirmation contains: http://46.x.x.51/wiki/Special:ConfirmEmail/369f4ed3c6933061ee59c1108e1ff685 Question: where from mediawiki takes this IP? I need my domain name here. Wiki is working ok and responding to URL in browser: http://MyWikiName.com/wiki/Main_page 194.226.8.91 (talk) 02:12, 19 April 2011 (UTC)
- You need to set manual:$wgServer in LocalSettings.php (If its not explicitly set its calculated automatically from somewhere, I think based on how your webserver is configured). Bawolff 16:48, 19 April 2011 (UTC)
Shifting from installed to svn
I have MediaWiki 1.16 installed on my computer for testing and development. I initially installed it using the downloadable setup. Now, I want to switch to the svn trunk, but I'm not sure how to do it safely. I'd like to keep my content, settings, and extensions, and not have to backup every time I svn update. How do I switch? Thanks, Manishearth 11:43, 19 April 2011 (UTC)
- The only content thats not in the database is the stuff in the images subdirectory ( if you have uploads on), the extension directory and the LocalSettings.php - You could just back those up, do svn co somewhere, and copy those back over to your mediawiki. (after the initial checkout you should be able to do svn up without worrying about losing anything). Bawolff 16:45, 19 April 2011 (UTC)
- It works! Thanks for the help! Manishearth 00:54, 21 April 2011 (UTC)
- It works! Thanks for the help! Manishearth 00:54, 21 April 2011 (UTC)
Hosted Site installation and management
I am a newbie and have some basic questions to see if this will work for my application. I own a domain with FTP server/directory access: How do I install Mediawiki so that it runs on my website hosted by a vendor? How do I control the url of the wiki? I do not want it to hijack my site. I want it to be a subdomain. Once I have it installed how do I gain shell access since I only have a directory on the server itself?
Will this work in my scenario?
Thank you for your reply, I really could not find these questions in the forum or FAQs.
Chandler 209.203.69.2 (talk) 16:38, 19 April 2011 (UTC)
- How do I install Mediawiki so that it runs on my website hosted by a vendor?
- Please refer to Manual:Installing MediaWiki.
- How do I control the url of the wiki? I do not want it to hijack my site. I want it to be a subdomain.
- Normally MediaWiki will be located in a subdirectory of the domain's root, called "wiki". So the URL of the wiki is http://your_domain/wiki.
- Once I have it installed how do I gain shell access since I only have a directory on the server itself?
- I believe that shell access to your domain of the server is something that you will need to discuss with your host provider. Hamilton Abreu 23:07, 20 April 2011 (UTC)
Updating from 1.15.1 to 1.16.4: no login possible
Hi,
I have a site, http://www.taunusklub-niederreifenberg.de, which is a redirect to http://taunusklub.schmidt-schmitten.com.
After the upgrade, I cannot login anymore, when using the first address. With the second all is well. (Also other links don't do anything...)
Has anybody an idea, what is going on here?!?!
Michael 80.113.5.26 (talk) 17:51, 19 April 2011 (UTC)
- Elaborate on "cannot login". And if it's a redirect, shouldn't it take you to the destination site immediately, before logging in? Max Semenik 05:00, 20 April 2011 (UTC)
- Yes, it does. The URL still reads www.taunusklub-niederreifenberg.de, but all the links on the page are referring to taunusklub-schmidt-schmitten.com.
- That is the strange thing: If I try to login (button "Anmelden" on the upper right), it just does nothing. If I just copy the URL and paste it into the address line of the browser it does, what is expected.
- Btw, it is not only the login button, it is also e.g. "Letzte Änderungen" (recent changes). Perhaps it is caused by havin a "?" in the first and an Umlaut in the second URL?
- Interesting, yesterday I introduced the rewrite commands as recommended in the release notes for 1.16.4. Now I get in IE8:
- This content cannot be displayed in a frame
- To help protect the security of information you enter into this website, the publisher of this content does not allow it to be displayed in a frame.
- I guess, it has something to do with the apache configuration and/or security settings.
- Another strangeness is: I can set $wgServer to whatever I want in LocalSettings.php, it does not changee anything with the links on the page. I would love to have the links on the page refer to www.taunuskluub-niederreifenberg.de instead of taunusklub.schmidt-schmitten.com (which I would like to hide completely.
- Michael 91.192.15.70 06:21, 20 April 2011 (UTC)
- You need to point $wgServer to the new URL. Max Semenik 07:41, 20 April 2011 (UTC)
- Yes, I tried that. But setting wgServer somehow doen not change anything.
- But, that is only a side issue. The mein issue is indeed, that the login URL does not do anything (as the other...).
- Michael 91.192.15.70 10:24, 20 April 2011 (UTC)
- Huuh, just visited your site. You're not actually redirecting from taunusklub-niederreifenberg.de to taunusklub.schmidt-schmitten.com, you're displaying it in a frame, which is the cause of your problems. Use HTTP redirects. Max Semenik 11:15, 20 April 2011 (UTC)
- Yes, will try that. Had set it up so some years ago... Worked with 1.15.1
- Michael 91.192.15.70 09:21, 21 April 2011 (UTC)
- It was a recent security fix to prevent password stealing via frames. Max Semenik 11:55, 22 April 2011 (UTC)
- Huuh, just visited your site. You're not actually redirecting from taunusklub-niederreifenberg.de to taunusklub.schmidt-schmitten.com, you're displaying it in a frame, which is the cause of your problems. Use HTTP redirects. Max Semenik 11:15, 20 April 2011 (UTC)
- You need to point $wgServer to the new URL. Max Semenik 07:41, 20 April 2011 (UTC)
New username
Hello! How can I rename my user? I have name Cary in every Wikipedia. --Latka 18:45, 19 April 2011 (UTC)
- Do anyone know? Latka 17:40, 20 April 2011 (UTC)
- Please contact your wiki's admins. Hamilton Abreu 21:26, 20 April 2011 (UTC)
Installed MediaWiki yesterday, How do I log in?
I just completed the installation of MediaWiki on our Win2008 server with IIS7. How do I login? I've tried every user I know to try (WikiAdmin, wikiuser, root) with variations of caps. They all return that the user is not a valid user. Looks as if the DefaultSettings file is not similar to the LocalSettings file. How do I update the Default file with what I have in the LocalSettings file? Wouldn't the initial webform setup have done that?
Any help is appreciated. 70.61.199.99 (talk) 12:49, 20 April 2011 (UTC)
- You chose the admin account name during installation (pre-1.17 default is WikiSysop). You can check it at Special:ListAdmins. See Manual:Resetting passwords for password recovery. Sometimes it happens that admin account doesn't gets created, in such case use createAndPromote.php. Max Semenik 13:36, 20 April 2011 (UTC)
- I created WikiAdmin user on initial setup. This user isn't located anywhere in DefaultSettings file. It is in LocalSettings file. How do I get to CreateandPromote.php? When I try to navigate there via URL it is just blank. I don't have a ListAdmins page in my special pages. 70.61.199.99 14:25, 20 April 2011 (UTC)
- What you're seeing in LocalSettings are database credentials, you can't log in into wiki using them. Just type Special:ListAdmins into the search bar. Max Semenik 15:44, 20 April 2011 (UTC)
- No users found. 70.61.199.99 15:55, 20 April 2011 (UTC)
- Then follow FAQ#Initial user was not created by installer or it is not an administrator. Max Semenik 16:25, 20 April 2011 (UTC)
- That did it. Thanks. 70.61.199.99 17:21, 20 April 2011 (UTC)
- Then follow FAQ#Initial user was not created by installer or it is not an administrator. Max Semenik 16:25, 20 April 2011 (UTC)
- No users found. 70.61.199.99 15:55, 20 April 2011 (UTC)
- What you're seeing in LocalSettings are database credentials, you can't log in into wiki using them. Just type Special:ListAdmins into the search bar. Max Semenik 15:44, 20 April 2011 (UTC)
- I created WikiAdmin user on initial setup. This user isn't located anywhere in DefaultSettings file. It is in LocalSettings file. How do I get to CreateandPromote.php? When I try to navigate there via URL it is just blank. I don't have a ListAdmins page in my special pages. 70.61.199.99 14:25, 20 April 2011 (UTC)
List of subcategories without prefix category
I just started a new Wiki and want to use a category tree. But the list of the subcategories contains for every entry an Category:. Some years I have done this successfully without this prefix but I do not remember how and do not find any explanation :(
Best Regards
Holger 92.192.31.125 (talk) 17:25, 20 April 2011 (UTC)
Adding new page to index
I was recently handed the responsibility of the office wiki. I have a new document that needs added and I have it typed up, but I can figure out for the life of me how to save it and have it linked with the index listed on the right hand side of the screen. I would more than appreciate some advise to push me in the right direction. Thank you so much! 75.151.220.78 (talk) 19:47, 20 April 2011 (UTC)
- By default, MediaWiki does not have an index on the right hand side of the screen. You should contact the previous wiki admin. Hamilton Abreu 21:33, 20 April 2011 (UTC)
{{subst:xxx}} not working
Hello, I searched and searched but found no answer. In my MediaWiki 1.16.0 the command {{subst:xxx}} is not working. If I use it, the command don't gets replaced by content of "xxx", on the site again "{{subst:xxx}}" is printed.
I only found this site for information to this command: m:Substitution but there is nothing written that I have to do something that it works in my MediaWiki.
So my question: Is there something I must do that it works? If it should work by default: What can I do for debugging?
Thanks, Ticka Ticka knows (talk) 07:18, 21 April 2011 (UTC)
Offering a read only wiki hosted on a MySQL read only database won't work because of SQL delete queries
Hello, we want to host a read only version in Europe of a wiki running on a remote site. For that, the WikiDb gets synced to Europe every morning and we would like to use this read only db (the user does only have read rights for the wiki tables). We are using Fedora12 64 bit, MediaWiki 1.15.4, PHP 5.3.3. and MySql 5.1.47. The Wiki is set to ReadOnly mode using the wgReadOnly option in the LocalSettings.php file. The SQL error is the following: A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:
DELETE FROM `objectcache` WHERE keyname='wiki-Wiki:messages:en'
from within function "MediaWikiBagOStuff::_doquery". Database returned error "1142: DELETE command denied to user 'user'@'192.168.0.25' for table 'objectcache' (192.168.0.25:3307)".
DO I have to grant write access to the cache tables of the wiki and disable the sync for them or is there another possibility? 131.188.163.169 (talk) 08:21, 21 April 2011 (UTC)
MediaWiki assumes that it has full access to all DML functions on its tables. Updater also needs to be able to do more privileged things such as ALTER TABLE, etc.- Sorry, didn't notice $wgReadonly. Max Semenik 11:58, 22 April 2011 (UTC)
- You need to set $wgReadOnly. 83.87.76.163 13:36, 22 April 2011 (UTC)
- Object cache needs to be modifiable at all times. You either need to allow modification of that table or choose a different caching option. Max Semenik 06:46, 23 April 2011 (UTC)
Search Auto Complete not working
I upgraded my wiki install from 1.15.5 to 1.16.4.
For some reason the Auto Complete is not working in the Search box. You can enter a word there and search just fine but it is not giving suggestions based on what is typed.
You can see the site here: http://www.marketswiki.com
MediaWiki 1.16.4 PHP 5.2.6 (apache2handler) MySQL 5.0.45
Local Settings I have (I have tried Ajax being active and commented out...neither makes a difference):
$wgEnableAPI = true;
- $wgUseAjax = true;
$wgEnableMWSuggest = true; $wgOpenSearchTemplate = true;
Any ideas? 66.17.138.3 (talk) 19:54, 21 April 2011 (UTC)
- Firebug is a great tool to investivate front-end problens with websites. In your paticular case it reports:
- GET http://www.marketswiki.com/wiki/api.php?action=opensearch&search=Special%3A&namespace=0&suggest
- 500 Internal Server Error.
- Check server logs to find out what's wrong. Max Semenik 11:54, 22 April 2011 (UTC)
- Thanks for pointing me to that tool.
- Unfortunately I am not sure where you are seeing that error (I am just unused to this tool). What should I be looking at to see that error?
- Thanks again for the help! 66.17.138.3 15:30, 25 April 2011 (UTC)
- Check logs for PHP or webserver errors. Once more, see How to debug. Max Semenik 15:36, 25 April 2011 (UTC)
- Actually, found where the error reports.
- Thanks again! 66.17.138.3 18:05, 25 April 2011 (UTC)
viewing image requires login after locking down * read to false
Greetings, does anyone know how to solve this? I changed True to False on this line $wgGroupPermissions['*']['read'] = false; and now when I go to click on an image in the File List I get "login required" for jpg, png, but not doc or txt files. the link has www.mywiki.com/index.php/File:Gilt_03012011_i.png 209.6.8.134 (talk) 01:22, 22 April 2011 (UTC)
- I get the same problem after moving servers. Everything else seems to be working! Any fix for this? 82.10.110.97 16:58, 16 June 2011 (UTC)
- This sounds like the intended behavior (other than that doc and txt files shouldn't be being exempted). —Emufarmers(T|C) 23:40, 16 June 2011 (UTC)
- To clarify, are you logged in and its still not letting you read? (and if not, how are you reading the file list?).
- If I recall there was a weird bug (bugzilla:27943) on some obscure hosting platform that disabled sessions on pages ending in .png/.gif/.jpg which caused people to be logged out when viewing file description pages. Bawolff 02:47, 17 June 2011 (UTC)
Can't view File:name.jpg after disabling anonymous login
Greetings, does anyone know how to solve this? I changed True to False on this line $wgGroupPermissions['*']['read'] = false; and now when I go to click on an image in the File List I get "login required" for jpg, png, but not doc or txt files. the link has www.mywiki.com/index.php/File:Gilt_03012011_i.png 209.6.8.134 (talk) 01:35, 22 April 2011 (UTC)
Wikipedia Toolbar
I'm attempting to get the Wikipedia Toolbar working for Firefox 4. I don't have much experience with this stuff, but I've determined the buttons that are not working are due to the fact that they use some global variables. From different pages that I've read, and directly from Manual:Interface/JavaScript, window._content.document.location = wgServer + wgScript + "?title=" + wgPageName + "&action=edit"; should work, but it doesn't. If I take out the wgServer, wgScript, and wgPageName, it works. This is using Firefox 4 on Windows 7 x64 on the English Wikipedia, which is running MediaWiki 1.17wmf1 (r86464), PHP 5.2.4-2ubuntu5.12wm1 (apache2handler), and MySQL 5.1.46-facebook-r3489-log. Thanks. MrKIA11 06:37, 22 April 2011 (UTC)
- Any ideas? MrKIA11 23:59, 3 May 2011 (UTC)
- This toolbar is not part of the MediaWiki software, nor is it maintained in the Wikimedia subversion repository.
- Please ask for support on the Wikipedia project page's talk page: Wikipedia talk:Wikipedia Toolbar Krinkle 20:05, 4 May 2011 (UTC)
- But the problem does not have to do with the toolbar, I was just providing some background. My problem is that the magicwords aren't working, so I was hoping to receive some feedback as to what I could check or change that might help. MrKIA11 00:15, 6 May 2011 (UTC)
- I figured out an answer to my problem. Thanks. MrKIA11 00:16, 7 May 2011 (UTC)
- But the problem does not have to do with the toolbar, I was just providing some background. My problem is that the magicwords aren't working, so I was hoping to receive some feedback as to what I could check or change that might help. MrKIA11 00:15, 6 May 2011 (UTC)
No default image caption since update to mediawiki 1.16.4
Since i updated to mediawiki 1.16.4 whenever i insert a image no default caption (or tooltip)is added anymore. Normally the filename was added as caption.
I even can reproduce this in this wiki version (guess 1.17.x)
No Image caption (aka tooltip)
I guess some default has changed, but i can't find anything pointing me into the right direction Tamiimat (talk) 10:44, 22 April 2011 (UTC)
- I found the issue myself, it's in includes/parser/Parser.php
- Following code change fixes the issue
--- includes/parser/Parser.php.orig 2011-04-22 13:09:23.000000000 +0200 +++ includes/parser/Parser.php 2011-04-22 13:07:29.000000000 +0200 @@ -4661,6 +4661,7 @@ # No caption, fall back to using the filename for the # alt text $params['frame']['alt'] = $title->getText(); + $caption = $params['frame']['alt']; } } # Use the "caption" for the tooltip text- I'm unsure if this is the correct place to fix it. Anyway, should i open a bug ? Tamiimat 11:14, 22 April 2011 (UTC)
contacts
Hello! We are Russian telecom company, starting new project of IAAS and SAAS services. We wantto distribute your application MediaWiki for our clients and so we need to get the regular information about your system upgrades and etc. Can you please provide the contact person to discuss it. thanks a lot 213.24.198.192 (talk) 11:25, 22 April 2011 (UTC)
- All support on this site is public. What kind of information do you need? Instructions how to run MediaWiki or information about Wikimedia server infrastructure? Max Semenik 06:50, 23 April 2011 (UTC)
- Максим, добрый день!
- Спасибо за Ваш ответ. Мы хотим узнать как можно получать уведомления о появлении новой версии приложения или формата APS пакета и получить ссылку на новую версию, чтобы обновить ее на нашей платфрме. И так же ссылку на инструкцию к новой версии. 213.24.198.143 07:46, 27 April 2011 (UTC)
- Для этого есть рассылка mediawiki-announce. Max Semenik 20:19, 27 April 2011 (UTC)
Mediaplayer stopped working
Hi I am using:
Mediawiki 1.15.4 PHP/5.3.0 MySQL5.1.36
I would be grateful for any help with this problem. For some reason that I cannot work out my mediaplayer has stopped working. I don't know exactly when it stopped as I only recently revisited the a page where the player was/should have been working. There is a large space where the player should be and the player appears to be attempting to communicate because the little thing at the top of the page keeps spinning as though it is in the process of downloading.
Thank you Ron Barker (talk) 12:37, 23 April 2011 (UTC)
- What mediaplayer, can you provide a link to that page? Max Semenik 13:06, 23 April 2011 (UTC)
- Max
- Thank you for responding. My wiki is on my pc so I am unable to post a link. This is what I downloaded:
- http://www.mediawiki.org/wiki/Extension:MediawikiPlayer version 3
- Cheers Ron Barker 14:07, 23 April 2011 (UTC)
- I would be grateful if anyone could assist:
- If I right click where the mediaplayer should be playing I get the message:
- Movie not loaded…
- About adobe Flash Player
- I uninstalled Adobe Flash Player. I still get the same message.
- In PlayerPointer.php at Line 47 I get:
- return '[no valid media pointer]';
- LocalSettings.php
- require_once("$IP/extensions/Cite/Cite.php");
- require_once("$IP/extensions/MediawikiPlayer/MediawikiPlayer.php"); Ron Barker 19:42, 28 April 2011 (UTC)
pp-protected doesn't work as it should
Hi!
I've created a wiki for a gaming community. However, i'm not that familiar with templates, so i looked around at the english wikipedia, and found a template that i would like on my wiki. It's called pp-protected(w:en:Template:Pp-protected). I exported with the Special:Export utility. It works fine, except when i try to use it on semi-protected pages. "
" shows up after the template text. If i add text below the template }}'s, it shows up inside the template. Link to website: [2]
From my versions page:
Product Version MediaWiki 1.16.4 PHP 5.3.6 (cgi-fcgi) MySQL 5.0.92-community
Special pages ExpandTemplates Renameuser Parser hooks ParserFunctions (Version 1.3.0)
Thanks in advance!
85.228.141.78 13:50, 24 April 2011 (UTC)
PHP error in mediawiki setup
I am trying to setup mediawiki in a mac.
When I click on the setup mediawiki link, it reports this error - "PHP 5.3.1 is not compatible with MediaWiki due to a bug involving reference parameters to __call. Upgrade to PHP 5.3.2 or higher, or downgrade to PHP 5.3.0 to fix this. ABORTING (see http://bugs.php.net/bug.php?id=50394 for details)"
When I type php -v, I get this "PHP 5.3.4 (cli) (built: Dec 15 2010 12:15:07) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies"
I don't understand why the mediawiki setup thinks that I have php 5.3.1. installed. Any help to fix the problem would be appreciated... 75.41.122.18 (talk) 22:55, 24 April 2011 (UTC)
- You're probably running 5.3.4 for the CLI and 5.3.1 through CGI/mod_php/whatever. —Emufarmers(T|C) 02:38, 25 April 2011 (UTC)
What version of MediaWiki?
- I am looking to start my own wiki and I have found the version that psupedia.info uses quite easy to use. I looked all around to see what version it is, yet I haven't had much luck. Could anyone please tell me which version it is and where I can get the files for it? Any help is much appreciated. 75.134.188.115 (talk) 03:34, 25 April 2011 (UTC)
- Hi
- It's Version MediaWiki 1.16.2
- If you go to the main page of the wiki and in the sidebar click on 'special pages' under 'Tools' and then click on 'version' under 'Wiki data and tools' It will give you the version and php etc.
- MediaWiki
- How does MediaWiki work?
- Consult the User's Guide for information on using the wiki software at m:Help:Contents Ron Barker 16:15, 25 April 2011 (UTC)
- Hi,
- Also, note that generally you should use the latest version. So even though they use 1.16.2 you should rather get 1.16.4, which is basically just the same but with some security fixes. Patheticcockroach 12:41, 26 April 2011 (UTC)
- 1.16 is very very old. It is likely there are unfixed security issues. It also probably won't work with modern web server software.
- I reccomend using the latest mediawiki. The stuff that makes it easy to use is probably their extensions and not the specific version. Bawolff (talk) 08:45, 20 February 2023 (UTC)
- It is also possible to search for "Special:Version" in the search engine. Vivaelcelta (talk) 09:54, 19 February 2023 (UTC)
GlobalFunctions.php giving fatal error
Hi, After mediwiki installation, I am getting following error : Fatal error: Maximum execution time of 30 seconds exceeded in /usr/local/apache/htdocs/wiki/includes/GlobalFunctions.php on line 1446
OS : Centos 4.9 32 bit mediwiki : mediawiki-1.10.0rc1.tar.gz URL : http://74.55.85.162/ PHP : php-5.2.0 Databae : postgresql-8.2.3 122.182.28.98 (talk) 08:13, 25 April 2011 (UTC)
- 1.10 is stone age. We neither recommend it nor support it to any extent. Current version is 1.16.4, please upgrade. Max Semenik 10:17, 25 April 2011 (UTC)
Sort, align and column width in simple table
Hi,
I have created a fairly simple wiki site, containing mainly tables with plants. There are 3 things i cannot find, but that would be useful. 1. is it possible to sort on a 2nd header row? 2. is it possible to align text in a table cell, top-left, rather centered (between top and bottom) 3. is it possible to set the column width.
I have been trying this on my www.wikigarden.nl site on the "Test pagina". Content of the page is all in Dutch. MediaWiki 1.15.5-1 PHP 5.3.3-1ubuntu9.3 (apache2handler) MySQL 5.1.49-1ubuntu8.1 217.123.29.177 (talk) 13:25, 25 April 2011 (UTC)
Storage limit?
My company is interested in purchasing a new Wiki that has a larger storage limit. We need one that is 100gb. I looked all over and cannot figure out what the storage limit is for Media Wiki. 68.175.23.212 (talk) 13:54, 25 April 2011 (UTC)
- Infinity. Everything's limited by only database limitations and storage capacity, which can easily be in terabytes. MediaWiki is used by Wikipedia, after all. Max Semenik 13:59, 25 April 2011 (UTC)
How do I redirect a search query?
I'm trying to help this site out by making the search for "role" to redirect to the page for "roles" for example. Right now a search for "role" leaves me very confused and frustrated. That seems silly. Help me help you. 69.137.94.222 (talk) 23:25, 25 April 2011 (UTC)
- I don't know, you'll just have to create that redirect. SEPTActaMTA8235 22:13, 26 April 2011 (UTC)
Uploading pptx files
PHP 5.2 MW 1.15.4 / 1.16
I am trying to upload pptx files. I read how to configure my wiki to do so ($wgFileExtensions, etc ..) but I still have this message : "the file is corrupt or has an incorrect extension". I saw in MimeMagic.php and in the debug log file how it works and it seems that the regular expression is not able to find which kind of mime type my pptx file is. So the function detectZipType always returns 'application/zip'. I tried with a 1.16 version and it is the same (not same message but same reason). What can I do knowing that I don't want to disable the mime type detection for security reasons ?
Thank you in advance and have a nice day. Melliol 08:27, 26 April 2011 (UTC)
Wildcard Query using URL
Product Version MediaWiki 1.15.4 PHP 5.2.12 (apache2handler) MySQL 5.0.89-community
http://www.allianceofavalon.freeiz.com/wiki/index.php
I'm trying to write a script that can search for and delete multiple pages for garbage collection type duties. The problem is that I can't seem to get a wildcard search to return any results, even when I know they are present. An example query is as follows:
http://www.allianceofavalon.freeiz.com/wiki/api.php?action=query&prop=info&format=xml&titles=*(Sy*
The response I get is as follows:
<?xml version="1.0"?><api><query><pages><page ns="0" title="*(Sy*" missing="" /></pages></query></api>
Any help would be greatly appreciated. I've looked around for hours but can find the answer. :( 184.3.201.123 (talk) 05:48, 27 April 2011 (UTC)
- action=query&prop=search Max Semenik 06:04, 27 April 2011 (UTC)
Template Parameter in Extension (url)
Hi,
I am trying to get the value of a Template Parameter {{{xyz}}} to be used in an Extension. The Parameter holds a url which is being set by a Semantic Form. When I use the recursiveTagParse function, I get something like a html formatted link, but what I actually need is the plain url, without any html around it.
Is there a way to get the 'actual' value of the template parameter?
Thank you for any hints! :) StrongBaf (talk) 08:41, 27 April 2011 (UTC)
Per-page Auto-number headings
Is there a magic word that does something like the preference "Auto-number headings", but only on one page? Amir E. Aharoni {{🌎🌍🌏}} 10:13, 27 April 2011 (UTC)
- When following the instructions in TOC#Auto-numbering the auto-numbering is switched of. Then how do I turn it on in only certain speciel cases? Guess we have the same problem? Ribe (talk) 23:38, 28 February 2013 (UTC)
- You need to do that with CSS or JavaScript. See an example: [3]
- Then depending on the solution you want, if it's CSS, see Manual:Interface/CSS to where to put that code, and be sure to limit the CSS selectors to the page where you want it displayed. Each page has a distinct body css class, so use it to limit to that page. For example, for this page each selector will need to have the
body.page-Project_Support_deskbefore each CSS selector. - If it's JS, see Manual:Interface/JavaScript, and execute the code inside a conditional code like this:
- Ciencia Al Poder (talk) 10:17, 1 March 2013 (UTC)
if (mw.config.get('wgPageName') == 'Project:Support_desk') { // Your code here }
LDAP Authentication problem
This post by Revibot was moved on 2015-07-11. You can find it at Extension talk:LDAP Authentication/2011/04#h-LDAP_Authentication_problem-2011-04-27T08:06:00.000Z. Max Semenik (talk) 10:42, 27 April 2011 (UTC)
latex parsing error on RHEL 6 - PNG conversion failed
When putting the following formula into a wiki page , I get the following error
Failed to parse (PNG conversion failed; check for correct installation of latex and dvipng (or dvips + gs + convert)): y=x+12
I read the FAQ, and the root user has all needed programs on its path Running texvc from the command line works. I am running RHEL 6. The apache user is not chrooted.
Are there any other suggestions on how to solve this issue?
Thank you 209.145.84.222 (talk) 17:33, 27 April 2011 (UTC)
Background Colour of Tables in the main.css or where ?
I want to change the background colours of this table, all tables in general. I was able to edit e everything via monobook main.css but i cant change the background colours of the table. What file do ive to edit!? 87.183.39.214 (talk) 21:36, 27 April 2011 (UTC)
- Don't edit files like
mail.cssin /skins. - Instead navigate to "MediaWiki:Common.css" on your wiki from the browser and add or overwrite any styles you wish.
- For example MediaWiki:Common.css:
table { background: #E8F2F8; } table.wikitable th { background: #A7D7F9; font-weight: normal; }
- Will make the following:
{| | Foo || Bar |} {| class="wikitable" ! Head ! Top |- | Cont | ent |}- look like:
| Foo | Bar |
| Head | Top |
|---|---|
| Cont | ent |
Krinkle 22:39, 27 April 2011 (UTC)
#switch isn't working?
MediaWiki 1.16.0 PHP 5.2.15 (cgi-fcgi) MySQL 5.1.53-log
I've been trying to do an update to one of my infoboxes today. Basically, I'm trying to add in a switch parser that takes one of the inputs (active vs inactive) and uses that to change the class of the template, so that I can switch its colors. Unfortunately, I'm only ever getting the default value that I enter and I'm not quite sure what I'm doing wrong.
This is a portion of my infobox code:
{| class="infobox {{#switch: {{{status}}}
| Active = infobox_active
| active = infobox_active
| inactive = infobox_inactive
| Inactive = infobox_inactive
| infobox_active}}" style="font-size: 89%; width: 300px;"
|-
! class="infobox_header" colspan="2" style="font-size: 120%; padding: 1em;" | {{{Character Name|{{PAGENAME}}}}}
|- style="text-align: center;"
| colspan="2" style="padding: 0.5em;" | {{#if: {{{external profile image|}}} | {{{external profile image|}}} | [[{{{uploaded profile image|image:Placeholder_person.png }}}|{{{uploaded profile image width|200}}}px]] }}<br>''{{{image caption| }}}''
|-
! colspan="2" class="infobox_header" | [[race::Marked]]
|-
| style="width: 30%;" | '''Created By'''
| style="width: 70%;" | [[author::{{{created by|}}}]]
|-
| style="width: 30%;" | '''Group'''
| style="width: 70%;" | [[membergroup::{{{membergroup|}}}]]
|-
| style="width: 30%;" | '''Status'''
| style="width: 70%;" | [[status::{{{status|}}}]]
I've tried entering in default values for that 'status' parameter, but nothing has made a difference and the switch always goes to its default setting. I am also using semantic mediawiki if that makes a different.
I'd love any input. Ranimara (talk) 01:09, 29 April 2011 (UTC)
- Try replacing
{{{status}}}by{{{status|}}}. Hamilton Abreu 22:01, 29 April 2011 (UTC)- That worked, thanks! Gossamer 13:16, 30 April 2011 (UTC)
Logical problems with: $wgLogo & DefaultSettings.php
I have currently installed mediawiki, I did not find any administration panel and wanted to update the logo. I have found an article explaining how this is done: Manual:FAQ (Topic: How do I change the logo?) as pasted in below (Bottom).
The article says not to simply change the logo.png as it will be overwritten when the upgrade is committed, and to do the upgrade through the DefaultSettings.php file. Which is known now as LocalSettings.php as I have asumed due to the search keeps going to this article: DefaultSettings.php.
First thing you notice is a big warning on that page that says Warning: Don't edit this file with Notepad or other text editor that adds byte order marks to files, or you will break your wiki. Well, further to this I have found this page: http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/DefaultSettings.php?view=markup which has a warning of below:
5 * NEVER EDIT THIS FILE
6 *
7 *
8 * To customize your installation, edit "LocalSettings.php". If you make
9 * changes here, they will be lost on next upgrade of MediaWiki!
So what is one to do? Just to update the logo...
Below was copied from: Manual:FAQ (Topic: How do I change the logo?)
How do I change the logo?
The logo that appears in the top left of each page is determined by the $wgLogo configuration line in the LocalSettings.php file.
There are two ways to change the logo:
Upload a picture to your wiki using the normal file uploading interface. This allows the logo to be replaced easily, so you may want to protect the page if you use this method.
Then add the $wgLogo line to LocalSettings.php, for example:
$wgLogo = 'http://www.example.com/wiki/images/6/62/photoname.jpg';
Or upload an image to your server by other means (such as FTP). Add the $wgLogo line to LocalSettings.php, for example:
$wgLogo = "{$wgScriptPath}/photoname.jpg";
In this example, the photo is in the same folder as the LocalSettings.php file.
Caution: Do not simply overwrite the default logo installed with MediaWiki (/skins/common/images/wiki.png); this file will be overwritten when you upgrade.
Tip: The logo image should be 135 x 135 pixels.
and I wanted to update the logo to my personal one, though in the documentation to configure the logo I have to update the DefaultSettings.php though it also 120.19.237.215 (talk) 09:35, 29 April 2011 (UTC)
- Never does this FAQ entry mention DefaultSettings. You must never edit this file, nor should you ever need to edit it. Change it in LocalSettings.php. Max Semenik 13:43, 29 April 2011 (UTC)
- If you do a search on mediawiki.org using DefaultSettings.php OR LocalSettings.php you will be redirected to: http://www.mediawiki.org/wiki/DefaultSettings.php 120.21.246.50 03:42, 3 May 2011 (UTC)
- Yes, that redirects to Manual:LocalSettings.php. The first sentence of the article explains the purpose of both files. Reach Out to the Truth 20:43, 21 May 2011 (UTC)
- If you do a search on mediawiki.org using DefaultSettings.php OR LocalSettings.php you will be redirected to: http://www.mediawiki.org/wiki/DefaultSettings.php 120.21.246.50 03:42, 3 May 2011 (UTC)
Adding at mw-usertoollinks
I want to add a link at the Recent Changes page in the "mw-usertoollinks" section. So, I want something like this: (Talk | contribs | block | check), where "check" is the part that should be added between those hooks. How can I do that? Should there be some kind of javascript code into my personal monobook.js page? I have been looked around, but I only found a code to remove it.
Thank you for helping! Roye7777777~mediawikiwiki (talk) 12:53, 29 April 2011 (UTC)
Specials Templates
Hello,
You know that there are some predefined templates like {{PAGENAME}} ...
I would like to know if exist any template which display the name of the user who created the article ?
And any template which like {{REVISIONMONTH}} but which display not the number of the month but the name of the month like {{CURRENTMONTHNAME}} for Revision. 213.30.149.52 (talk) 14:29, 29 April 2011 (UTC)
- Hi, just a short answer here:
- They are not predefined templates, they are Help:Magic words
- The first revision of an article is variable due to systems like:
- Importing revisions
- Deleting revisions
- Hiding revisions
- Deleting / Restoring / Undeleting pages.
- Therefor the definition of the 'first revision' and thus the 'article creator' is hard to determine. (is the creation the first edit to that title counted by revision number, or by revision time (if 2 days after creation an old revision is imported, this revision will have a fresh revision id, yet an old timestamp). Untill things like this are figured, it will not be possible. Aside from that there's also effeciency/performance issues.
- See also ticket 23427 in Wikimedia's bug tracker for the MediaWiki software. Krinkle 18:02, 29 April 2011 (UTC)
Template automaticly at top of every page
Hello there, i got a template and i want to edit main.css or something to add this template to the top of every site on the wiki. its a menu bar. Where shall i do that and what variables parameters do i need?
| Content | Category Index | Page Index | Colonization | Buildings | Commoditys | Resources | Design Studio |Galaxy Viewer | Science | Empires | Politics | Support | Index |
|---|
87.183.30.236 (talk) 18:08, 29 April 2011 (UTC)
- MediaWiki:Sitenotice may be an option. Krinkle 12:44, 1 May 2011 (UTC)
Is there a way to place one image on top of another?
I've been racking my brain trying to figure out a way to do it. Is it even possible? 118.210.194.240 (talk) 08:08, 30 April 2011 (UTC)
- Lookup "CSS z-index". Hamilton Abreu 11:47, 30 April 2011 (UTC)