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.
- [History↑]
Contents
![]() First page |
![]() Previous page |
![]() Next page |
![]() Last page |
Dear all I have tried looking for this and am surprised by my lack of luck/competence finding anything :-) We have a mediawiki
Product Version
MediaWiki 1.20.5
PHP 5.4.14 (apache2handler)
MySQL 5.5.31
The server can use https but if I try to use https the style sheet seems to be missing as everything is in a single column. The line below shows why.
<link rel="stylesheet" href="http://wiki.humanities.manchester.ac.uk/ECLR/load.php?
Clicking on load unsafe script displays the site fine but with the https icon crossed out. You can see this at:
https://wiki.humanities.manchester.ac.uk/ECLR/index.php/RobInf
How can I force the site to use https, I know about the performance hit but that can take a back seat to "security".
Cheers Paul
Hi what time is Mediawiki 1.21.0 coming out today
Despite the my intention to release 1.21 today, I have to delay it until May 18. Yesterday someone pointed out a blocker to me.
While we have a work-around for this, I don't have time to integrate it right now, so the release needs to be delayed until Saturday.
Oh ok
Is Mediawiki 1.21.0 coming out today if it is what time would it be coming out today
I had given a time for making the release today, but I'm running into a problem of logistics. It will probably have to wait until Monday.
My details: User Name: Rsmn
- User id: 5877 on ta.wikipedia.org
- MediaWiki 1.22wmf3 (c773203)
- PHP 5.3.10-1ubuntu3.6+wmf1 (apache2handler)
- MySQL 5.5.30-MariaDB-mariadb1~precise-log
- LuaSandbox 1.6-1
- Lua 5.1.4
For the last few days there was no edit option for leading paragraphs for me. When I browsed my preferences page, I found on my user profile, Member of group was mutilated as well as on gadjets tab, there were nothing against Appearance. Hence my option of add edit link to the leading paragraphs was not working. I dont know why my Preferences page got mutilated and I seek your help in setting things right. From the discussions on this page I undrstand this problem exists for other users also.
- This issue seems to be resolved in my wiki by
Sorry for my bad English.
The page http://www.mediawiki.org/wiki/Manual:Developing_extensions contains this note info:
- "While developing, you may want to disable caching by setting
$wgMainCacheType = CACHE_NONEand$wgCacheDirectory = false, otherwise system message and other changes may not show up."
Localization cache still enabled in Database, or not? I think that this will not affect on Localization cache because in "includes/DefaultSettings.php(1844)":
/**
* Localisation cache configuration. Associative array with keys:
* class: The class to use. May be overridden by extensions.
*
* store: The location to store cache data. May be 'files', 'db' or
* 'detect'. If set to "files", data will be in CDB files. If set
* to "db", data will be stored to the database. If set to
* "detect", files will be used if $wgCacheDirectory is set,
* otherwise the database will be used.
*
* storeClass: The class name for the underlying storage. If set to a class
* name, it overrides the "store" setting.
*
* storeDirectory: If the store class puts its data in files, this is the
* directory it will use. If this is false, $wgCacheDirectory
* will be used.
*
* manualRecache: Set this to true to disable cache updates on web requests.
* Use maintenance/rebuildLocalisationCache.php instead.
*/
$wgLocalisationCacheConf = array(
'class' => 'LocalisationCache',
'store' => 'detect',
'storeClass' => false,
'storeDirectory' => false,
'manualRecache' => false,
);
We can see that also on $wgLocalisationCacheConf page.
As I understand it, initially Localization cache store only in file system, and $wgCacheDirectory used as trigger for disable/enable Localization cache. But than by adding future for storing localization cache in database and by mistake continue use $wgCacheDirectory as trigger. Therefore currently with parameters $wgMainCacheType = CACHE_NONE and $wgCacheDirectory = false Localisation Cache is still enebled and use datebase.
Currently is no way to disable localization cache? Am I right?
Is it a bug of mediawiki?
But in $wgCacheDirectory "Set this to false to not use any local caches." - Its mistake, because in this case localization cache still enabled and use datebase as storage?
And in Localization caching "After finding out that a large number of the cached objects above were interface messages, the bits of text that are not content, an advanced localisation cache was introduced. Set $wgCacheDirectory in LocalSettings.php to a valid path to use." - Its mistake too?
If I'm right, this may confuse extensions developers. (Its confuse me when I set hook $wgHooks['MessagesPreLoad'][] that not work, thanx debugging i find table with cache and modify expire column, for row with cached messages). I think its necessary to add in Developing extensions a note about it, somthing like this: "For rebuild Localization cache, you also should to set 'manualRecache' to true in $wgLocalisationCacheConf" and use "maintenance/rebuildLocalisationCache.php."
MediaWiki has lots of caches. I think that you are confusing the two separate caches for translations:
- Nowdays, the localisation cache caches messages from core and extension i18n php files. It can store the cache on the disk or in the database. It is managed via $wgLocalisationCacheConf.
- The second cache is called message cache, it caches messages defined in MediaWiki namespace inside the wiki itself. It can store the cache on memcached, apc, on the database etc. This cache is managed via $wgMessageCacheType.
Hi, I have a mediawiki install and I'm getting this problem fairly frequently. A user uploads a file, but the resulting page says "No file by this name exists, but you can upload it." at the top, even though there's an entry for the file in the database and the file exists under the image directories like the others. I've tried deleting the page, deleting the file, re-uploading, but nothing works. Any suggestions? Here's an example of the problem: http://php.med.unsw.edu.au/cellbiology/index.php?title=File:CYK4_in_Central_Spindle_Formation.jpg
Thanks!
I just realized my previous post includes little to no information for people to help. so I am re-posting with details. . I am using MediaWIKI 1.20.5. PHP version: 5.3.25 MYSQL version: 5.2.0 . I tried to setup WIKI manually for about 2 times. although the installation was successfully, my WIKI site does not respond to any clicks or actions. . you can try it your self if you want. . here is my WIKI site: . http://mabi.thelongnight.net/ .
(its Chinese, but the point is. it does not respond to any click/actions)
. after using different browser I get error message regarding to the file: includes\objectcache\SqlBagOStuff.php . I am out of ideas now. . any help will be appreciated. .
Update, the site often cancels the loading automatically for no reason. . I really need help on this...
I seriously have no idea about how and why. PHP Notice: unserialize(): Error at offset 1209 of 2469 bytes in E:\Inetpub\MabiWIKI\includes\objectcache\SqlBagOStuff.php on line 430 PHP Notice: unserialize(): Error at offset 1749 of 1767 bytes in E:\Inetpub\MabiWIKI\includes\objectcache\SqlBagOStuff.php on line 430
. . . my other forum site which is on the same server worked totally fine.
I do not see a PHP error. When you call a wiki page, e.g. the main page at http://mabi.thelongnight.net/index.php?title=Main_Page, you get a server error 500. Check the server logs to see what's happening!
the server log only said a person visited this site, nothing else...
if you turn off the "Show friendly HTTP error messages" in your internet options, you will see the actual error by then.
All I see is a white page. You might also look at Manual:How to debug for some settings to put in your php.ini.
Facinating. Content-Length is sent, but no Content-Type, so Firefox doesn't show the content? Chrome does, though. Bug reported.
After reinstalling for about 10 times, I noticed an interesting phenomenon. . every time after installation, the wiki displays the correct main page. . however, the second after I click an internal link on the main page(e.g: click login / register) . The whole site becomes not accessible(e.g: display error or simply display a blank page). . Please do let me know if anything else can be done.
Could you enable the debug log after you install it but before you hit the main page for the first time?
That is, when you save the LocalSettings.php file, add
$wgDebugLogFile = "C:/temp/{$wgSitename}-debug_log.txt";
to the end of the file before you load the wiki for the first time.
Then reproduce the error and post the log file here or file a bug with the log file attached.
Where to ask improvement for a specific gadget ?
- https://bugzilla.wikimedia.org do not have topic for this.
- talk page of the gadget script do not seems to be the place for a quick response.
Interesting. I use that gadget on enwiki but not here. Reading your comments, I wonder if decreasing the size of the timeout as you suggest would cause problems. I'm willing to make the changes you request if I can get someone with more JS knowledge than me to say they're ok.
Gadgets are maintained on the wiki, including the source code itself. The appropriate place to report issues is therefor on the wiki. Within the wiki, I believe authors most commonly expect feedback to be placed on the talk page of the gadget script page.
Krinkle has updated the gadget here. Does it work better now?
how do i run You will need to run the populateSitesTable.php maintenance script in Wikibase Lib: I have no access to ssh and my freehost for my website is 2freehost
You would have to set up a web page to call the script. If you don't know how to do this, you should hire someone to work on it for you.
Oh ok do they have the guid on how to do it on mediawiki
Wikibase is pretty new, not a lot of documentation has been written for it yet.
Hi all-
We're currently running 1.16.5 at my work, and were hoping to update to 1.20 soon for various reasons (one being the CKEditor extension for our many, many Wikitext-hatin' users).
Unfortunately, statistics show that the vast majority of our users are running Internet Explorer 7. They're slowly deploying IE8 (srsly), but it'll be another year or more before everyone has that version. Since we have no control over what browsers our users use (for example, Chrome is installed on every desktop but not everyone uses it), we have to make our products backwards-compatible.
I've upgraded our staging version to 1.20, and it seems to run OK on IE7, but the big issue is that anything jQuery-related doesn't want to play nicely -- for example, switching between tabs on the Preferences pages just doesn't work at ALL.
Are there any tips/tricks on what areas of the newer MediaWiki versions that can be altered to work with IE7? If there are only a few things I could fix, then it'd be a huge help toward pushing the upgrade so we're no longer in the stone ages.
Info
MediaWiki: 1.16.5
PHP: 5.3.24 (FastCGI)
MySQL: 5.1.58
I don't know anything offhand. Try MW 1.19? It is the LTS version and will supported for a while.
- MediaWiki : 1.16.2 ([1]) -> 1.20.3
- PHP : 5.3.3-7+squeeze15 (cgi-fcgi)
- Database : MySQL 5.1.66-0+squeeze1
Hi,
I'm working on the upgrade of es.vikida.org and I have some problems. The DB (here is a screen of phpmyadmin) as some encoding "problems" but it's working with MW:1.16.2. When upgradding to MW:1.20.3 all the pagetitle with special characters aren't accessible File:Index es before migration.png - File:Index es after migration.png. Anyone as an idea to correct the problem ?
Hi!
I have once fixed that kind of error; it is a tidysome work. :-(
The result, which you must have in the end is: Your database uses UTF-8 or binary encoding and the data in your database is (in any case) UTF-8-encoded.
First you need to know what kind of encoding your system uses:
- What is the encoding of the database, of the different tables and of all columns, which have an encoding (that means of columns holding "text" and so on as opposed to "integers")?
- Are all these encodings identical?
- They should all be either "utf8_general_ci" or "binary" - and all the same.
- What you see in the screenshot is that the data in the column, which you posted, does in fact not use the encoding, which you provide as "encoding declaration" for that column.
- So what you need to do is: If the column's content in fact is already UTF-8 encoded, then convert the encoding declaration for that column (not the content in it!) to UTF-8. That worked in some way by temporarily making the column a BLOB, then converting it (MySQL does not change the content of blobs when you convert the charset) and then set the column back to the type it had before.
- If the content in the column in fact is not UTF-8-encoded, you need to convert the encoding of the content to UTF-8. I think that worked same as above, but without changing the affected columns to blob before.
I know there also are some scripts around
Hello,
So, I'm not on my main computer, so, can't test it on my test instalation :(
Interclassments are on utf8_bin or utf8_general_ci or ... latin1_swedish_ci, latin1_bin I (or maybe another dev who can try it faster than me) will try your solution. (I can try tomorrow only ^^)
Hi,
I have try this :
ALTER TABLE `archive` CHANGE `ar_title` `ar_title` BLOB; ALTER TABLE `archive` CHANGE `ar_title` `ar_title` TEXT CHARACTER SET utf8 COLLATE utf8_bin;
And MySQL respond:
#1170 - BLOB/TEXT column 'ar_title' used in key specification without a key length
- (
Hi,
I am not really a MySQL expert, but maybe the script here helps you. It shows you the logic, which you have to go through. That should be a help to understand, what is needed. The script is written for a database, which is used by TYPO3; this explains the first few lines, in which the script tries to get the MySQL credentials. These first lines cannot be transferred 1:1 to your situation, but for your needs, you could try setting the variables in the script directly. Maybe it then even works for you without the need of doing much additional manual work. :-)
echo utf8_decode($data);
I feel stupid.
I'm making a script to correct all the affected collumns in the DB.
If you have any problem, have a look to : https://github.com/neitanod/forceutf8
I want to receive e-mail notifications about talk pages whenever possible. That's why is very uncomfortable having to press the "Mark all pages visited" all the time with the goal I can receive those notifications. How can I automate the process?
Thanks a lot.
Seems like something you could write some javascript for.
Despite selecting the all requested cats I am unable to submit an addition.
Could you clarify where you are having this problem? More details would also be good.
Sorry for my bad English.
On page http://www.mediawiki.org/wiki/Manual:Developing_extensions "If you want to make your extension user configurable, you need to define and document some configuration parameters and your users setup should look something like this:
require_once( "$IP/extensions/MyExtension/MyExtension.php" );
$wgMyExtensionConfigThis = 1;
$wgMyExtensionConfigThat = false;"
Some extention may use configuration parameters in setup time (ie be used in "$IP/extensions/MyExtension/MyExtension.php") and therefore extention configs must be defined before including MyExtension.php:
$wgMyExtensionConfigThis = 1;
$wgMyExtensionConfigThat = false;
require_once( "$IP/extensions/MyExtension/MyExtension.php" );
Or I'm wrong?
In general, extensions don't use those configuration variables at setup time, but when they should do actions (for example, on page rendering, page save, log action, etc). In such cases, the extension uses a Hook, so those variables are already defined when needed.
Thanx for answer. I understand it. But extension could set or not set some hooks according values of config variables. Currenty call wfRunHooks() for some hooks is idle. Therefore I think, that set extention variable values before require_once() would be logical. Why not?
- extension could set or not set some hooks according values of config variables
You should set those hooks anyway, and the function that runs on those hooks should then read the value of the configuration variables to decide if it should perform an action inside the hook or not.
If you think your extension needs a variable set before the require_once(), specify that in the installation instructions, but this seems a bad practice, and I haven't seen any example where this is needed.
The placement of configuration variables shouldn't matter in general for an extension. Several that I've seen do depend on the configuration variables being specified after the require_once() is executed, though. If your users need to specify them before the require_once() is loaded, though, that is unusual, so make sure your installation instructions make that clear.
i dont find out to limit modification, creation only for users registred. I have many spams
For your initial question (although you should read the page given by Ciencia Al Poder): add in your LocalSettings.php file:
$wgGroupPermissions['*']['edit'] = false;
The wiki handles not correctly templates, it shows system characters. See example here http://www.antifahahaha.com/fawiki/index.php?title=Jean-Pierre_Demol
Enable Extension:ParserFunctions
hi please can I have some help to install it because ive downloaded the files but it isent letting m install it
Please, elaborate. The description of your problem is very vague.
Well I have installed both of the extension but when I click on create new labe in special pages and type for example wiki and click create it says this error
A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: (SQL query hidden) from within function "DatabaseBase::selectRow". Database returned error "1146: Table 'u719470057_my.wb_id_counters' doesn't exist (mysql.2freehosting.com)".
I doint have access to ssh
Ok, Extension:Wikibase needs database changes to work (for example, creation of new tables). You must run update.php after installing the extension. If you don't have shell access, see the section about Web updater on that same page.
i have installed maintence shell on my wiki but it keeps saying for security reason you must have javascript enabled but i have it enabled please help
Extension:MaintenanceShell is not needed to perform an upgrade. See Manual:Upgrading#Web_updater.
[RESOLVED] MediaWiki 1.20.5 LocalSettings.php not found (Mysql installation option not displayed)
I have copied MediaWiki 1.20.5 files to my linux (RHEL 6) server. Mysql database is also created. But when I try to start MediaWiki site by typing the MediaWiki URL in the browser, it shows "LocalSettings.php not found. Please set up the wiki first." When I start following the instructions by clicking the link "set up the wiki first",Mysql option is not displayed although Sqlite option is displayed.
Hi is there a template on Mediawiki which you can put on pages to ask for that page to be translated
Our wiki has about 600,000 rows in our revision table, but somehow has gotten to a point where our max(rev_id) is 1.7b which makes the php scripts for updating links etc very, very, very slow and sort of discourages the update process. we are running MW 1.20
I'm just curious if there is a safe fix for this of if I need to grin and bear it.
What do you mean with "our max(rev_id) is 1.7b"?
You can remove old revisions from the table by using the deleteOldRevisions.php script. However, this will influence page history (as these revisions will then no longer be there). Maybe you could also compress the content in that table, however, this will not reduce the number of rows.
If all doesn't help you can update your links via a cron job, e.g. every Friday at 2 a.m. The performance decrease during that time should not hurt your users much. ;-)
We have only 600,000 actual revisions in the table, but for some reason the max(rev_id) = 1,700,000,000
Running update links with a max rev_id that high takes about 10 hours because it is going from 0 to 1,700,000,000 by 1,000's.
I see. The unused revion numbers can have several reasons: Maybe a script like deleteOldRevisions.php has been used in the past, which left these holes. Or you had spam and mass-deleted those entries permanently or or or. However, I don't know of a way to reduce the values of rev_id without loosing referential integrity.
Thanks, that is what I was afraid of. A quicker route I guess might be to revise the update scripts to handle these cases.
Hi, my site http://wecheck.org is a fact check site and each page is a question. For example: Did Mitt Romney ever work as a garbage collector?
http://wecheck.org/wiki/Did_Mitt_Romney_ever_work_as_a_garbage_collector%3F
The problem is that when I paste the URL for the page into most comment boxes the %3F gets stripped and the url becomes invalid. I guess there may be two approaches to fixing it
1. Wiki Answers pages simply don't use the question mark in the URL
http://wiki.answers.com/Q/How_can_a_kid_learn_computer_programming
It would look strange if the top header text did not have a "?" so they must add it programmatically. Is there an easy way to do this using something like {{pagetitle}} +"?" Although how would it know it was the correct type of page and not apply it to other pages that are not questions? Maybe I could use a pre-built form for the question.
2. Do something with the URL encoding, possibly with mod.rewrite. I am no expert at this so any guidance is most appreciated.
I would really appreciate any help. Thank you for your time
I am no mod_rewrite expert either, but I would definitely do that with mod_rewrite.
You need a rule which adds a questionmark at the end of the URL, if it does not yet end with one. And you need to exclude all pages, which are not in the main namespace (like Special:Version and so).
I think it's the other way round. I'll need to strip the %3F from the url (so that I can copy and past the Url into a comment box) while still allowing the "?" to appear in the page. Unless the page header text is dynamically populated with the URL:
Any mode-rewrite experts who think it's possible and know how to do this? My current rules are:
RewriteEngine On
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]
RewriteRule ^/?$ %{DOCUMENT_ROOT}/w/index.php [L]
![]() First page |
![]() Previous page |
![]() Next page |
![]() Last page |



