Project:Support desk
Welcome to MediaWiki.org's Support desk, the central on-wiki place to ask MediaWiki questions!
The greater purpose of this page is to make our Manual and other available help so good that you do not have to come here to ask questions, or making them easier to find.
There are other ways for of communication as well (IRC, Mailing lists etc.), read more here.
Before you post
- Please read through our technical manual and end-user help.
- Project:Current issues is where you should discuss issues about the mediawiki.org website itself.
- If your question is about an extension, consider posting your question at that extension's talk page instead.
- Project:Sandbox: Test wiki editing.
Post a new question
1. To help us answer your questions, please always indicate which versions you are using:
-
- MediaWiki (reported by your wiki's Special:Version page)
- PHP (likewise)
- Database (likewise, e.g. MySQL 4.1)
2. Please include the URL of your wiki unless you absolutely can't. It's often a lot easier for us to identify the source of the problem if we can look for ourselves.
3. To start a new thread, click "Start a new discussion".
Archiving topics
Topics are automatically archived when they have been inactive for three weeks. If a question you have asked is approaching this limit and still has not been answered, please 'bump' it to prevent it being archived. However do not 'bump' for other reasons.
Contents
![]() First page |
![]() Previous page |
![]() Next page |
![]() Last page |
This is my wiki
I have MediaWiki 1.16.0
PHP 5.3.6 (cgi-fcgi)
MySQL 5.5.17
Does anyone know of a quick way to do multiple blocks on spambot accounts? Everyday I block the new day's crop of spambots but this needs be to block every account individually, including setting block time etc. Is there a way to block a number of accounts in one go. Martin Hogbin 15:51, 2 February 2012 (UTC)
Hi Martin,
I know there are several extensions which allow you to block single users, but I don't know an extension, which could block multiple users at a time.
I would try to solve the problem by preventing those spammers to register: Use ConfirmEdit to display a captcha on registration (and maybe also on editing pages, if they still should get through). --88.130.67.28 18:33, 2 February 2012 (UTC)
Thanks for that. perhaps I should make clear that I am happy to block the accounts individually, I normally do this from the recent changes page, but I do not want to have to set up the expiry time etc every time. Is there any way that I can just click the 'block' link and it would perform a default block. Martin Hogbin 00:03, 3 February 2012 (UTC)
Hi ho,
no, I do not know of a possibility to preset these values. (Well you could hack the MediaWiki soure code, so that the page always shows up with these values preselected, but 1. you don't want to do this and 2. this will only cure the symptoms and not the cause of your problem.)
According to your recent changes you currently spend 5 minutes a day in blocking spammers. This makes around 24 hours a year.
If I were you I would set up ConfirmEdit, which does not only solve the root of the problem, but also only needs a fraction of this time. --88.130.93.156 02:47, 4 February 2012 (UTC)
Fatal error: Call to a member function addWikiMsg() on a non-object in /home/username/public_html/wiki/includes/specials/SpecialLinkSearch.php on line 82
Hi
Today I installed media wiki for private use and every thing seems to be OK but when I click on the External links search in special page I get this error
- Have you edited it before?
- Check any code errors on LocalSettings.php.
Hi , I did not change any thing in localsettings.php. This is a new installation. please see my localsettings.php here
http://paste.ubuntu.com/805960/
Can't it be because of my server tight security?
Hmm... well it isn't LocalSettings? Are you sure you did not change anything? Sometimes notepad will add BOMs.
Note, BOM's cause a different type of error. (headers already sent error)
This type of error would be caused if the relavent OutputPage wasn't being returned properly from the SpecialPage's context. I have no idea how that can happen (and furthermore, no idea how that could happen without many other massive errors popping up everywhere on your wiki) [This is probably a bug in MediaWiki]
Could you test temporarily disabling all extensions (just comment out the require_once lines near the bottom of LocalSettings.php) just to check if its being caused by one of those extensions (seems unlikely, but good to check).
p.s. You may want to change the value of $wgSecretKey and $wgUpgradeKey afterwards since they were left in your LocalSettings.php
You said " You may want to change the value of $wgSecretKey and $wgUpgradeKey afterwards since they were left in your LocalSettings.php
How to do it? for test I just addes abc at the end of $wgSecretKey and $wgUpgradeKey but got the same error. What can I do now? Amy body can help?
OK Jeff not sure, Is there any original file I can replace it with what I have? but when I try to add the data base info in there what should I do? what is the right way or editor to make the changes?
Use a text editor other then notepad. See BOM. However, if that was the issue you would be getting a different error message. See Manual:Errors_and_symptoms#Warning:_Cannot_modify_header_information_-_headers_already_sent_by_.28....29
Thanks Jeff but I have already filled it with more than 100 entries . Any better suggestion? or an Idea on how to re install without loosing my data?
I have this same error on my wiki when I click on the Special page for the link search (the search page doesnt load and it gives an error). Its 1.18.0 (correctly updated from previous MW, deleted old files, everything else works). "Fatal error: Call to a member function addWikiMsg() on a non-object in /home/[user] ... /includes/specials/SpecialLinkSearch.php on line 82". I can turn on debugging and stuff to get some more detail messages and post them here. Whats the best way to do that?
Hello all, Our office MediaWiki is currently operating: MediaWiki 1.17.0 PHP 5.3.3 (apache2handler) MySQL 5.0.77-log
The perl script we've used to upload images in earlier versions of MediaWiki is now encountering a cookies issue with v1.17.0 - When the script attempts to log in to the wiki, the error states: "CAGNWiki uses cookies to log in users. You have cookies disabled. Please enable them and try again." No changes have been made to the upload script. I've searched for similar posts on the MediaWiki support pages and have searched for different methods of using cookies in perl but haven't found a solution. I've included the commands used to use cookies in our script, if it helps. Thanks in advance for any tips!
use LWP; use HTTP::Request::Common; use HTTP::Cookies; my $ua = LWP::UserAgent->new; $ua->cookie_jar(HTTP::Cookies->new);
I am sorry for asking such a trivial question, but I barely understand what is going on as a categorical novice. Anyhow, I learned how to download templates such as Template: Cite web and some others but get these weird boxes. I sniffed around looking for an easy answer to avoid having to burden this forum, but cannot convey the write keywords. What do these boxes mean and what do I do to avoid all of them in the future for all template downloads?
http://glps2.org/wiki/index.php?title=Test_page
Thank you Snowfalcon cu 01:59, 1 February 2012 (UTC)
Sorry;;; forgot to mention the essentials: Mediawiki 1.18, PHP 5.3.8, MySQL5.0.
First of all, you need to install extension:ParserFunctions. Let us know if they're still there after doing that.
Wait, no, I got it, thanks much! After the upload I sifted through the REFERENCES and noticed I forgot to add this thing, '|' preceding archivedate. I put it in and everything appears okay, other than the now really slow refresh rate of the Wiki(?).
Thank you.
Media Wiki: 1.16.0 PHP: 5.2.12 MySQL: 5.0.67-log
Hey, I installed the wiki on a local server and configured all settings, but when i wanted to log in with my admin account, i got this error message: "There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Go back to the previous page, reload that page and then try again" I tried it again and again, but the result was equal, the same problem when I try to register a new account.
I'm having the same problem on the new clean installation when trying login or create a new account - any solution for it?..
Probably something is wrong with your sessions; most likely PHP is not able to write to your sessions directory. Check your php.ini for the sessions directory and if PHP can write to those files.
I got the same problem since soon, but not for all the installations on the same server (same version). Apparently the cookies are not good. It seems to come from the repertory of installation...
I have the exact same issue now, fresh install. Anyone going to help with this??
I found this solution:
go in your LocalSettings.php and at the end add the following code of line :
session_save_path("tmp");
Create a folder "tmp" in your wiki installation directory. give rights 777 (permissions)
Which worked for me.... also, check to make sure your disk has space
Same problem, can't even register or login as admin. Enough space is present.
Looks like it was caused by using $wgMainCacheType two times in LocalSettings.php, now it's solved.
Hi also have the same problem where the IP address work perfectly yet the hostname fails.
Would love some kind of explanation?
The problem i'm experiencing just seems to be Internet Explorer only. Firefox and chrome are un-affected either by the hostname or IP address.
Although I can login using IE6/IE8 with the IP address,
Example: http://180.10.66.4/mediawiki
The problem occurs using the hostname.
Example: http://myserver/mediawiki
If I goto the login page a 'sess_xxxx' in the /tmp folder is created. If I attempt to login, or just refresh the login page this seems to set brand new a sess_xxxx everytime.
I have checked the apache logs and the client IP address is always the same regardless if i used the hostname of IP address.
Its not a permission issue.
I have also tried the following which was suggested with no success. $wgUseSquid = true;
Some suggestion would be greatly appreciated.
[SOLVED: My issue was caused by having an 'underscore' in the hostname example http://my_server - IE looks though it doesn't handle the underscore in the hostname as well as FF or Chrome does. Hope this helps anyone else using Mediawiki within their local intranet]
Hi!
I would like to know if it is possible to change the width of the edit window in MediaWiki. The issue I'm having is that the navigation block covers the part of the article when editing. I suspect that it should be done via the skin's css file, but cannot find the exact value to change.
Can someone please help me?
hi there, i have a question about list o new pages. If i create new page, it will display in log of new pages like this:
2. 2. 2012, 14:28 New page name (history) [1,492 bytes] Creator (talk | contribs) (starting text of the new page...)
Is there any way, how to delete that starting text from the log, so if someone create new page, there will be no starting text?
thx for answer
MediaWiki 1.17.0 PHP 5.3.8 MySQL 5.0.51
Hello,
I am novice and get this message when attempting to template upload an XML file: "Import failed: Loss of session data. Please try again." Surprisingly there are few clues. I have come across some instances to fix such as "switch to 'sign-in' not 'log-in'" or "upload in pieces of 1.8 megabytes." Another error is "Error 500 - Internal server error. An internal server error has occured! Please try again later."
What can I do to correct? Thank you and sorry [for such question].
MediaWiki 1.18.0 PHP 5.2.17 MySql 5.0.91
Hi folks,
PHP-Version: 5.2.10-2ubuntu6.5
Wiki Media: 1.18.1
MySQL: 5.1.41
Example-Site with bug: http://wiki.antamar.eu/index.php/Kategorie:Antamar
After the update from 1.16 did not really work out yesterday, I made a clean installation of version 1.18.1. Afterwards I dumped the old database (charset: latin1) and imported it into the new database (charset: binary). It took some time but I finally figured it out that all umlauts are displayed correctly.
But now I recognized something completly different: In a Category view (see link above), suddenly all titles are named "2". What is that, how can I fix it?
Chris
I know it`s off topic, but it has to do with Mediawiki.
I have some problems after moving wiki to another server. Seems I can`t change the old server adress to the new one in all directions....
Is a tool out there which tells me for a link in Firefox web console who accesses the link?
Thanks in advance!!!!
Just change $wgServer in LocalSettings.php if given. Otherwise, learn to explain because I don't know what you want to do.
Learn to read what I`m writing....
I asked for a tool... Nothing to understand!
But I`ll explain it for you:
Imagine I`m a link.
I want to know, which link or file requested me. I think this can be understood ;)
Then, just program an extension. I don't know if there is an extension which provides this.
Ok thanks.
In the meantime I thought about too and am searching through them.
Found one extension, that meets my requirements (FileLinkExtension) but when I use it the user logins disappears --> Every user account isn`t reachable from this moment on - says it doesn`t exist...?!
Searching for another atm.
I have a wiki used as a medical dictionary. I need that some articles display a different skin than default.
As I have no active users (only anonymous readers), I can set default skin and nobody else can change it, but I need some articles to show other skin. Is that possible?
www.portalesmedicos.com/diccionario_medico
Mediawiki 1.17, PHP 5.3.8, MySQL5.0.
Hi,
I have a problem:
I have installed my Wiki on another Server, but when I open the new site, it takes a lot of time to open it. Only appears, when old server is shut down. If he is up it`s extreme fast...
Where can i define the exact server names?
Thanks in advance
€: The new site directs to the old server...
[11:36:49.127] GET http://.../wiki/index.php?title=Benutzer:JavaScript/extraeditbuttons.js&action=raw&ctype=text/javascript&dontcountme=s [HTTP/1.1 200 OK 828ms]
[11:36:49.979] GET http://.../wiki/index.php?title=Benutzer:JavaScript/XEB/live.css&action=raw&ctype=text/css&dontcountme=s [HTTP/1.1 200 OK 500ms]
This appears in Firefox web console
You can define it in LocalSettings.php ( $wgServer specificly, but that's often auto-detected, but there's other server related things in that file). Taking super long time to load could indicate its using the old server as a memcache server.
I have figured out the problem...
But I´m not able to understand it...
In the Web Console is the following entry:
http://old server adress/wiki/index.php?title=Benutzer:JavaScript/extraeditbuttons.js&action=raw&ctype=text/javascript&dontcountme=s
in further informations:
Request-URL: http://old server adress/wiki/index.php?title=Benutzer:JavaScript/extraeditbuttons.js&action=raw&ctype=text/javascript&dontcountme=s
Request-Methode: GET
Status-Code: HTTP/1.1 200 OK
Request-Headers 15:14:37.346
Accept:*/* Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.7 Accept-Encoding:gzip, deflate Accept-Language:de-de,de;q=0.8,en-us;q=0.5,en;q=0.3 Connection:keep-alive Host: old server adress Referer: http://new server adress/wiki/index.php/Hauptseite User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1
Response-Header Δ578ms
Cache-Control:public, s-maxage=300, max-age=18000 Connection: Keep-Alive Content-Encoding:gzip Content-Type:text/javascript; charset=utf-8 Date:Thu, 26 Jan 2012 14:14:37 GMT Keep-Alive:timeout=5, max=100 Last-Modified:Thu, 30 Aug 2007 11:16:14 GMT Server:Apache/2.2.14 (Win32) DAV/2 mod_autoindex_color PHP/5.3.1 Transfer-Encoding:chunked Vary:Accept-Encoding X-Powered-By:PHP/5.3.1
I don`t need the extraeditbuttons but can`t delete it. (Deleted from database tables causes database crashes)
Hope you can help me....
Hi,
I have a strange manner with my mediawiki. first of all we have two different versions of the mediawiki installed. the internal, only for development use the wiki version 1.16.0. And the external, for customers only, use the 1.14.0 version. we have a daily ex-/import of some sites from the development. the problem is now. the customer call the wiki over a second plattform to authorized automatically into the wiki. after an import the main page doesn't include the graphics. all other pages are ok. what can be the reason? When i login in with the super user, there is no problem. the customers only have the read-right.
When i save the page with the super user, the site for the customers are fine.
if you want i can show you a video or picures with the problem.. Thanks for help
Hi,
I use the mediawiki version 1.16.0. I implement a special page for a export. the problem that i have is, that on the special page only the <SpeicalExtensionName< is shown and not the description.
What do i wrong?
global $wgMessageCache;
require_once( 'SpecialPage.php' ); SpecialPage::addPage( new SpecialPage( 'SpecialExport') ); $wgMessageCache->addMessages(array('SpecialExport'=>'Export tool'));
First of all don't use $wgMessageCache->addMessages() (ever. It will break in 1.18, and it wasn't meant to be used like that at really any point).
Second, you shouldn't be requre_once'ing any mediawiki files (mediawiki does that for you)
Third, your special page should have its own class that subclasses SpecialPage (It shouldn't be done via new SpecialPage).
See Manual:Special_pages#Basic_special_page_template for the proper way to do it (Mostly just the Basic special page template part of that page. The rest of that page is really rambely and not all that well written).
Hi, I am trying the 1.18.1 version on a WAMP emulator (simulating PHP 5.3.0 MySQL 5.1.36 APACHE 2.2.11) I have have installaed Hebrew, looks good, but I cannot edit the navigation sidebar. when I am using the link I am getting an edittable sidebar page, but it is NOT the sidebar which appears on the pages. when I am installing the English version, I can edit the actual sidebar. Can you advise me what is the problem with the hebrew version? Thanks
Hi everyone - thanks for the hard work you do answering all of these questions!
- MediaWiki 1.16.5
- PHP 5.1.6 (apache2handler)
- MySQL 5.0.77-log
http://www.cookipedia.co.uk/wiki
I run a pretty large MediaWiki and I would like to change the way the sub-categories are displayed. For example: one of the categories, 'Cheeses' contains 119 sub-categories comprising of around 2000 pages. When viewing this top-level category I would really like visitors to be able to view all of its subcategories from the first page of the top-level category, whereas currently one can only see sub-cats from A to B. A visitor has to click the (next 200) link 9 times to see a sub-category starting with T.
I recall finding the way to adjust the amount of pages displayed from the category view, but not the number of sub-categories.
Is there a config option I have missed or do I need a plugin to alter this behaviour?
$wgCategoryPagingLimit controls the limit for all the sections of the category (subcats, normal pages, and images). If you want to have just one section have a higher limit, you'd need to write an extension (I'm not aware of any already existing).
PrefSwitch: Impossible to make running PrefSwitch on brand new mediawiki installation, both local or hosted
Product Version MediaWiki 1.18.1 PHP 5.3.3 (cgi-fcgi) MySQL 5.0.51a-24+lenny5-log PrefSwitch (Version 0.1.2) $wgDefaultSkin = "vector";
Installation instruction followed: http://www.mediawiki.org/wiki/Extension:PrefSwitch http://www.mediawiki.org/wiki/Manual:Update.php
Problem: Although the extension is installed, and php restarted (locally with a terminal, and hosted via web process), the extension does not appear at all. Only the standard vector MediaWiki 1.18.1 edit tool is present when editing.
I'm blocked with this. I really do not know how to solve it. I've read dozens of pages about.
Thanks for your help
Probably help if you told us how you had it configured (like do you have $wgPrefSwitchShowLinks = true;
at the very bottom of your LocalSettings.php - which is needed to enable the link at the top of the page)
Note, that extension was mostly a 1 time thing needed by Wikipedia. I don't think anyone is currently maintaining it, so there could be some bit-rot with the extension itself.
MediaWiki 1.18.0 PHP 5.2.9 (apache2handler) MySQL 5.1.33-community
We have recently experienced difficulties with uploading images. Nothing has changed with LocalSettings file, uploads just ceased to work. Additionally when we go through Special Pages and click on the File List or Gallery of new files links it returns a blank page.
Help?
Permitted File Types : Permitted file types: png, gif, jpg, jpeg, pdf.
Blank page often means php fatal error - please enable php errors in order to find the exact error (from there we can probably help you better) - see manual:How to debug
I was trying to find the "email new password button" on my login page at http://game-soundtracks.com but it's not there. Any idea why?
![]() First page |
![]() Previous page |
![]() Next page |
![]() Last page |