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 5.5)
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.
- [View source↑]
- [History↑]
Contents
![]() First page |
![]() Previous page |
![]() Next page |
![]() Last page |
Hello
how to use the sign #in a sentence. I want to see the sign # appeared in the sentence
Hi!
Is that a MediaWiki problem?
"#" can be used like so: King Georg is # 3 in the succession to the throne.
yes when i used # in the sentence mediawiki translates it in number
I upgraded MediaWiki to version 1.21.2, and I can no longer use the search function. Trying to search for something results in the browser getting back "no data received." If I type in an exact page name, I'm still redirected to that specific page. This happens on multiple machines with the same configuration.
My PHP and MySQL versions are:
- PHP 5.5.2-pl0-gentoo (apache2handler)
- MySQL 5.1.67-log
sometimes when I reload the page in the browser, it happens that the css does not get load...any idea why this happens?
I have installed the version 1.20.6
This is the address of the wiki: www.codegaia.com
I'd start checking the output of the Java Script console of your browser for potential errors. There is also http://www.mediawiki.org/wiki/Manual:How_to_debug providing some pointers.
Thanks for the reply, but still I can not find the problem.
my browser console brand me the following problem:
GET http://www.codegaia.com/load.php?debug=false&lang=es&modules=mediawiki.legacy.commonPrint%2Cshared%7Cskins.vector&only=styles&skin=vector&* 500 (Internal Server Error) index.php:12
GET http://www.codegaia.com/load.php?debug=false&lang=es&modules=startup&only=scripts&skin=vector&* 500 (Internal Server Error) index.php:17
i have my wiki hosted in ipage, I don't know if the real problem is the hosting, i have tried installing previous versions but i had the same problems.
Hi Saeros,
I have exactly the same problem. I have visited your website, but you have no reload problems anymore.
What did you change?
Jos
Jos, 500 errors can be produced by various issues. Without knowing which exact error do you have, you can't assure you have the exactly the same problem. Read Manual:How to debug and come back with the detailed PHP error you get
Jos, 500 errors can be produced by various issues. Without knowing which exact error do you have, you can't assure you have the exactly the same problem. Read Manual:How to debug and come back with the detailed PHP error you get
Hi, I accidentally deleted all wiki files on the server, the only thing I could save was my db. So, I reinstalled wiki on the server and connected it with the db from old wiki, I can see all pages and users in db but cannot see any of them in wiki. Although when I create a new page on wiki I can see it on db and the ID is right. Everything is right in LocalSettings.php, I've run rebuildapp.php and update.php scripts and still cannot find what's wrong.
Is there any way for me to watch the pages on wiki?
Wiki: wiki.vpopulus.net - mediawiki version: 1.21.1 PHP version: 3.3.7deb7 MySQL version: 5.1.49
Thanks, Klavh
Hi!
I think you took an old page name, which is in the DB and typed the according URL in the address bar of the browser. If you then do not get the according page shown, my guess would be that something is wrong with the DB as well.
Apart from that you will still run into other problems due to the missing files.
Anyway, if it was me, I would do this: Take the newest, working backup - files and database - and replace your stuff with that. This is the only chance to be sure that it's working again afterwards.
I can see several pages on your wiki [1]
What I can see also is that you had a custom namespace and you haven't recreated it on this new installation. For example, I can see you had a namespace with id 100 that's now missing (for example [2]). You should define those namespaces again in LocalSettings.php so those pages become accessible.
Hello,
My Infobox templates were working fine until I uploaded Template:Listen (without realizing that it made changes to my Infoboxes).
Now, where it's supposed to show my infobox, it shows just " Script error".
Help?
Sorry about the script error thing. Here's what I meant to say:
" { { # invoke:Infobox|infobox } }" without spaces or quotes
Hi,
Did you install Scribunto ?
Negative. When I tried it didn't even work.
The { { # invoke: ...}} syntaxe is a call to Scribunto extension, so you need to make Scribunto work.
Hi this has been updated for 17 hours https://toolserver.org/~krinkle/mwSnapshots/#!/mediawiki-core/master while it says it will be updated every hour and yesterday's any Mediawiki 1.22 Wmf 16 was released and I would like to download it but I carnt because it hasent been updated and added on this https://toolserver.org/~krinkle/mwSnapshots/#!/mediawiki-core/master
I want to implement Wikipedia images per api in my website. There is no problem to find the images and to get the license, but I don't find any way to get the author (not the uploader) of the image?
Can anybody help?
Unfortunately right now both author and license information is not stored in a structured way that would allow fetching it from the API.
Edit: I've moved this to a write-up that I imagine I'll link to more often: Current structure on Commons.
I already thought aboout that before, but I thought there would be "a right way" to do things (but obviously there is not).
If everything else does not help, you can get the content of the associated page and extract the information from there. Maybe there even is a template used, which would make it even easier for you to identify that part of information, which you need.
The extension page lists this as the content for .htaccess
# (c) 2011-2012 by Stephan Jauernick (http://stejau.org) # Distributed under ISC license RewriteEngine on # crazy magic: # this piece checks if we have mess with wiki stuff RewriteCond %{REQUEST_FILENAME} wiki$ # next rule sets a env var to a value which can be used to check if files are in shared code base RewriteRule ^/?wiki/(.*)$ - [E=REQUEST_FILENAME_W:%{DOCUMENT_ROOT}/w/$1] # check if file is existent in shared code base RewriteCond %{ENV:REQUEST_FILENAME_W} -d [OR] RewriteCond %{ENV:REQUEST_FILENAME_W} -f # if so: rewrite RewriteRule ^/?wiki/(.*)$ /w/$1 [PT,L,QSA] # standard rewrite magic: RewriteRule ^/?wiki/[Ii]ndex\.php/(.*)$ /w/index.php?title=$1 [PT,L,QSA,B] RewriteRule ^/?wiki/(.*)$ /w/index.php?title=$1 [PT,L,QSA,B] RewriteRule ^/?wiki$ /w/index.php [PT,L,QSA,B] RewriteRule ^/?images/(.*)$ /w/images/$1 [PT,L,QSA,B] RewriteRule ^wiki/images/(.*)$ /w/images/$1 [PT,L,QSA,B] RewriteCond %{REQUEST_URI} ^/$ RewriteRule ^/?$ /w/index.php
And I have the domain.tld/pagename setup. (yourwiki.mywiki.ssu.lt)
I changed it to this but it doesn't work.
# (c) 2011-2012 by Stephan Jauernick (http://stejau.org) # Distributed under ISC license RewriteEngine on # crazy magic: # this piece checks if we have mess with wiki stuff RewriteCond %{REQUEST_FILENAME} wiki$ # next rule sets a env var to a value which can be used to check if files are in shared code base RewriteRule ^/?(.*)$ - [E=REQUEST_FILENAME_W:%{DOCUMENT_ROOT}/$1] # check if file is existent in shared code base RewriteCond %{ENV:REQUEST_FILENAME_W} -d [OR] RewriteCond %{ENV:REQUEST_FILENAME_W} -f # if so: rewrite RewriteRule ^/?(.*)$ /$1 [PT,L,QSA] # standard rewrite magic: RewriteRule ^/?[Ii]ndex\.php/(.*)$ /index.php?title=$1 [PT,L,QSA,B] RewriteRule ^/?(.*)$ /index.php?title=$1 [PT,L,QSA,B] RewriteRule ^/?$ /index.php [PT,L,QSA,B] RewriteRule ^/?images/(.*)$ /images/$1 [PT,L,QSA,B] RewriteRule ^wiki/images/(.*)$ /images/$1 [PT,L,QSA,B] RewriteCond %{REQUEST_URI} ^/$ RewriteRule ^/?$ /index.php
Do you know what I should change it to?
Hello,
where do I find the security release of MediaWiki 1.22.2 which the news on the main page is announcing?
I think it's a typo. But as an ordinary user it's a little bit difficult for correction at this point without the proper rights...
I'm totally new to wikis, and I've just installed one on my siteground hosted website. I've been fighting with this for a week, and I cannot get my infoboxes to work.
I've had a number of troubles with it, but using the other questions asked here, I fixed them, but now I'm stuck. I'm trying to put in an infobox person and this is what I get on the page I have the infobox on:
Script error
{{#switch: {{#if: | {{{demospace}}} | {{#ifeq:| | main | other }} }} | main = {{#if:|{{#ifeq:||}}}}{{#if:|}}{{#if:|{{#if:|}}}}{{#if:|}}{{#if:|}}{{#if:|}} | other | #default = }}
and the Script Error says "Lua error: Internal error: The interpreter exited with status 1." when i click on it.
All the files in my Scribunto extention is set at 755, i'm fairly certain I have all the templates that are needed (Infobox, infobox person, module infobox, main other) but I just can't figure it out.
Any suggestions? I'm very new to this and any kind of programming at all, so if you can talk to me like i'm a total newbie, that would be great. Thanks in advance (hopefully!)
Same here. Mediawiki noob, 755 for all files, followed online instructions, have all working extensions (so it seems) and have all templates. I too am trying to ilstall Infoboxes. I get the same "Lua error: Internal error: The interpreter exited with status 1." error message, along with this log:
- 0 /home/username/public_html/wiki/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php(454): ScribuntoEngineBase->newException('scribunto-luast...', Array)
- 1 /home/username/public_html/wiki/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php(324): Scribunto_LuaStandaloneInterpreter->checkStatus()
- 2 /home/username/public_html/wiki/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php(287): Scribunto_LuaStandaloneInterpreter->receiveMessage()
- 3 /home/username/public_html/wiki/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php(213): Scribunto_LuaStandaloneInterpreter->dispatch(Array)
- 4 /home/username/public_html/wiki/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(114): Scribunto_LuaStandaloneInterpreter->registerLibrary('mw_interface', Array)
- 5 /home/username/public_html/wiki/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(89): Scribunto_LuaEngine->registerInterface('mw.lua', Array, Array)
- 6 /home/username/public_html/wiki/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php(8): Scribunto_LuaEngine->load()
- 7 /home/username/public_html/wiki/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(158): Scribunto_LuaStandaloneEngine->load()
- 8 /home/username/public_html/wiki/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(549): Scribunto_LuaEngine->getInterpreter()
- 9 /home/username/public_html/wiki/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(533): Scribunto_LuaModule->getInitChunk()
- 10 /home/username/public_html/wiki/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(561): Scribunto_LuaModule->execute()
- 11 /home/username/public_html/wiki/extensions/Scribunto/common/Hooks.php(96): Scribunto_LuaModule->invoke('infobox', Object(PPTemplateFrame_DOM))
- 12 [internal function]: ScribuntoHooks::invokeHook(Object(Parser), Object(PPTemplateFrame_DOM), Array)
- 13 /home/username/public_html/wiki/includes/parser/Parser.php(3532): call_user_func_array('ScribuntoHooks:...', Array)
- 14 /home/username/public_html/wiki/includes/parser/Parser.php(3251): Parser->callParserFunction(Object(PPTemplateFrame_DOM), '#invoke', Array)
- 15 /home/username/public_html/wiki/includes/parser/Preprocessor_DOM.php(1077): Parser->braceSubstitution(Array, Object(PPTemplateFrame_DOM))
- 16 /home/username/public_html/wiki/includes/parser/Parser.php(3404): PPFrame_DOM->expand(Object(PPNode_DOM))
- 17 /home/username/public_html/wiki/includes/parser/Preprocessor_DOM.php(1077): Parser->braceSubstitution(Array, Object(PPFrame_DOM))
- 18 /home/username/public_html/wiki/includes/parser/Parser.php(3073): PPFrame_DOM->expand(Object(PPNode_DOM), 0)
- 19 /home/username/public_html/wiki/includes/parser/Parser.php(1153): Parser->replaceVariables('{{documentation...')
- 20 /home/username/public_html/wiki/includes/parser/Parser.php(383): Parser->internalParse('{{documentation...')
- 21 /home/username/public_html/wiki/includes/content/WikitextContent.php(299): Parser->parse('{{documentation...', Object(Title), Object(ParserOptions), true, true, 34)
- 22 /home/username/public_html/wiki/includes/job/jobs/RefreshLinksJob.php(100): WikitextContent->getParserOutput(Object(Title), 34, NULL, false)
- 23 /home/username/public_html/wiki/includes/job/jobs/RefreshLinksJob.php(66): RefreshLinksJob::runForTitleInternal(Object(Title), Object(Revision), 'RefreshLinksJob...')
- 24 /home/username/public_html/wiki/includes/Wiki.php(624): RefreshLinksJob->run()
- 25 /home/username/public_html/wiki/includes/Wiki.php(585): MediaWiki->doJobs()
- 26 /home/username/public_html/wiki/includes/Wiki.php(459): MediaWiki->restInPeace()
- 27 /home/username/public_html/wiki/index.php(59): MediaWiki->run()
- 28 {main}
I'm wondering if Arvixe servers have limitations or if I should not have used Softaculous to install Mediawiki. Answers to the OP would be appreciated. There's got to be a reason we get the same problem attempting the same thing...
If you add the following
$wgScribuntoEngineConf['luastandalone']['errorFile'] = "$IP/images/tmp/lua-error.log";
to your LocalSettings.php, do you see anything in that file?
Hello,
I installed a MediaWiki 1.21.2 running with PHP 5.3.10 (cgi-fcgi) and MySQL 5.1.59-community under OS Windows Server 2003 R2. Most pages are displayed correctly, but some like "Special Pages" can not be displayed. Instead I just get an error message of IIS Webserver:
FastCGI Error The FastCGI Handler was unable to process the request. Error Details: The FastCGI process exited unexpectedly Error Number: -2147467259 (0x80004005). Error Description: unknown error HTTP Error 500 - Server Error. Internet Information Services (IIS)
How can I get more information about this error? This error occours only with mediwiki versions of the 1.21-tree, the 1.20-versions are working fine.
- MediaWiki 1.15.4
- PHP 5.3.0 (apache2handler)
- MySQL 5.1.36-community-log
I am hoping that someone may be able to assist me. I have been using the ‘SiteGround’ method of backing-up my wiki, unfortunately, there is a problem with the memory size shown in apache faults:
Tue May 24 10:09:35 2011] [error] [client 127.0.0.1] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 128368641 bytes) in C:\\wamp\\apps\\phpmyadmin3.2.0.1\\export.php on line 190, referer: http://localhost/phpmyadmin/db_export.php?db=mediawiki&server....
I have checked line 190 of export.php as below, which does not make any sense to me at all!
189 // We export as file - output normally
190 echo $line;
191 }
Kind regards
I have just made things worse. I did some research and came up with changing the memory limit in php.ini from 128M to 150M and now I am unable to export anything, even after changing back to 128M
I would be grateful if anyone can help.
Unchecked memory use is probably a given for that method. Increase the memory limit or find a better method (which might involve finding a better host).
Thank you for your response. I have tried increasing the memory to no avail. I am using media wiki on my pc so I cannot change to a better host. Regards
If increasing the memory limit isn't working, you're probably doing it incorrectly.
Since you're on your own machine, though, you don't actually have to use phpMyAdmin for your export.
I think that you are probably correct in that I must be doing something incorrectly.
Many thanks for directing me to the discussion page which led me to:
However, the information did not take me any further. One problem I have had is determining which php.ini should be edited! There are two php.ini files one under the PHP directory and the other under Apache/bin. Of course, there is another php.ini file that can be accessed from the taskbar. RJ45 Technologies was of some assistance but following their instructions did not help:
http://www.rj45tech.com/increasing_php_memory_limit_and_file_upload_size_wamp
I am not alone. There are many more people with the same problem as a quick Google of '134217728 bytes exhausted' shows.
I have looked at the mediawiki backup page. The instructions are fine if you know what they mean. You need to have more than a basic understanding of mediawiki to be able to follow the instructions. I could get into more trouble than I am already in if I tried to follow the instructions. To be honest I would not know where to start.
http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki
Many thanks though for at least responding.
Hi All,
I am using media wiki version 1.20.5 and i need to enable the confirm account extension, so i add the following 3 lines in the file "LocalSettings.php":
require_once ("extensions/ConfirmAccount/SpecialConfirmAccount.php"); $wgAccountRequestMinWords = 0; $wgConfirmAccountContact = '[email protected]';
Now when i request to create a new user . . . I got this error:
Fatal error: Call to undefined function wfOpenElement() in /data/apache/htdocs/mtiwiki/w/extensions/ConfirmAccount/RequestAccount_body.php on line 104
Hi!
Please check that you have not installed the newest version of ConfirmAccount. Make sure that when you check the Git repository of ConfirmAccount, you download a snapshot from the branch for MediaWiki 1.20 (and not one from branch "master").
This version should then be compatible with MediaWiki 1.20.
Sorry i did not get you . . . Please tell me what to do now to solve this issue.
You must download the extension ConfirmAccount. When you view the Git repository, do not take a snapshot from the branch called "master", but one from the branch "REL1_20" like this one.
Hi!
Is it possible to use Mediawiki (1.21.2) with MSSQL 2008? How can I install this server? Thank you for you help!
My web host recently prompted me to upgrade to MW 1.21.1, so I did. Now several of my pages are broken. The error message is:
Fatal error: Call to undefined function wfLoadExtensionMessages() in [path to one of my installed extensions]
Was this function removed, or do I just need to re-enable it somehow?
You need to upgrade your extensions, too.
The extension that's giving me problems isn't very well maintained. I've fixed a few bugs in it myself, and I'm probably capable of fixing this. But in order to do so, I need to know why wfLoadExtensionMessages() was removed, and what replaced it.
You may simply remove the call to wfLoadExtensionMessages()
and it will continue to work, you don't need to replace it by something else.
I have the same problem. This may fix the problem, but it doesn't answer Mark's question.
Nick
It was removed. wfLoadExtensionMessages()
used to load messages from the given extension so that they could be used. Since the addition of the "localisation cache" in 1.16 messages are always loaded and thus calling wfLoadExtensionMessages()
was useless (for more details see r52503).
That was the point of the last part of my previous post.
I have downloaded the correct version for my MediaWiki installation, as well as added the proper lines in LocalSettings.php (as seen here: http://puu.sh/4ibMh.png)
But it doesn't seem to be working, and I am still getting a bunch of spam. Am I supposed to enable it via the wiki somehow?
Wild guessing: What are the skipcaptcha group permissions and how are $wgCaptchaTriggers configured?
I have figured it out. Even though my $wgCaptchaTriggers were configured like the page says, it wasn't working. I did however find someone else having this issue and copied/pasted their configuration and got it working.
# ConfirmEdit require_once "$IP/extensions/ConfirmEdit/ReCaptcha.php"; $wgCaptchaClass = 'ReCaptcha'; $wgReCaptchaPublicKey = '-----'; $wgReCaptchaPrivateKey = '----'; $wgGroupPermissions['*' ]['skipcaptcha'] = false; $wgGroupPermissions['user' ]['skipcaptcha'] = false; $wgGroupPermissions['autoconfirmed']['skipcaptcha'] = false; $wgGroupPermissions['bot' ]['skipcaptcha'] = false; // registered bots $wgGroupPermissions['sysop' ]['skipcaptcha'] = false; $wgCaptchaTriggers['edit'] = true; $wgCaptchaTriggers['create'] = true; $wgCaptchaTriggers['addurl'] = true; $wgCaptchaTriggers['createaccount'] = true; $wgCaptchaTriggers['badlogin'] = true;
What of these settings is missing in Extension:ConfirmEdit?
Please add the missing bits!
I changed my username and password on lines:
$wgDBname $wgDBuser $wgDBpassword
And now I cannot access my wiki. I could not remember the user and name I changed it from, but found it in /var/lib/mysql/. I changed back the user and the name, but I still am having the same problem. Any ideas on what I could do?
Thank you
Use update.php script
I ran it. This is error I receive:
DB connection error: Access denied for user 'xxx'@'localhost' (using password: YES) (localhost)
Fix your database credentials in LocalSettings.php; the variables you quoted are still set incorrectly. Make sure to use the MySQL username and this user's password.
You might get the username and password from a customer menu of your hoster or maybe your hoster can tell you via mail. Another option would be to check in the mysql database; this should at least tell you the username. Logged in as root user you can change this user's password.
Hi,
I need to use namespaces to partition my wiki on different projects. Is it possible to create a new category namespace for each projetcs ?
Thanks,
No. The category namespace is a special one, and there's only one.
But you can have a special convention for naming your categories, like [[Category:Project A/Category 1]]
, [[Category:Project B/Category 2]]
, or [[Category:Project A:Category 1]]
, [[Category:Project B:Category 2]]
The aim was to provide a categoryspace for administrator which can be protected like a namespace. It's that global protection that interested me.
I would like to give my tables a nice looking "outset" outer border.
It's easy to format regular text this way by using
sdgsdfg
(I can't get either "nowiki" or "code" to work here, so you'll have to click edit to view the source, sorry.)
But I can't get it to work in a table. I've tried:
hjklh
hjkhj hjlk |
But that doesn't work, as you can see.
What am I doing wrong?
![]() First page |
![]() Previous page |
![]() Next page |
![]() Last page |