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 |
Is that at all possible? If not, would it be possible to restrict reading of individual pages like can be done with whole wikis? (Or... users seeing pages depending on rights?)
I'm having a problem where pages show up a HTML code. When editing pages, they are showing fine. wgRawHtml doesn't do anything. Any ideas what could be the problem?
- 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
correcting (the test) DB doesn't seem to be a good idea :|
I'm lost. And I have no idea why There is problem.
When accessing DB with PHP, the data are show without error. But MW as a problem with the title name in pages.
AANNNDDDD : SOLVED :D
<?php
namespace ForceUTF8;
error_reporting( -1 );
ini_set( 'display_errors', 1 );
ini_set('default_charset', 'utf-8');
require_once('Encoding.php');
$handle = opendir('./sql/');
$dirIgnore = array ('.','..');
while ($file = readdir($handle)) {
if (!in_array($file, $dirIgnore)) {
echo 'Encoding '. $file ."\n";
file_put_contents('./sql_utf8/'. $file, Encoding::fixUTF8(file_get_contents('./sql/'. $file)));
}
}
?>
You need : https://github.com/neitanod/forceutf8
The source .sql files should be in ./sql/ and the encoded files in ./sql_utf8/
I reccomand to use one file per table.
Please, note that this is MY solution, it's not the most powerfull ... it can kill cats, burn your computer ...
I can't access my wiki after applying the changes needed for short urls. In my .htaccess file, I added:
RewriteEngine On
RewriteRule ^/?guides(/.*)?$ %{DOCUMENT_ROOT}/guides/index.php [L]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?guides/images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/guides/thumb.php?f=$1&width=$2 [L,QSA,B]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?guides/images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/guides/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B]
and in my LocalSettings.php file, I added this code:
$wgArticlePath = "{$wgScriptPath}/$1";
$wgUsePathInfo = true;
Here's the link to my wiki: http://kingdomhearts7.com/guides/Kingdom_Hearts_7. My MediaWiki version is 1.20.4. My PHP version is 5.3.23, and my MySQL version is 5.5.23-55.
hi how do I get extension Echo to work on my website ive installed it and it has the link at the top of my website but just a plain link I would like the look like Wikipedia Echo
How does it not look like the Echo installed on Wikipedias? Do you have a screenshot or a link or something?
I think you want to set $wgEchoShowFullNotificationsLink to false. (false is the default, just remove the override from your config.)
Hi all
I have 2 Issues
1) Unable to edit: When I try to add new things to my wiki I consistently get an error
(Error 101 (net::ERR_CONNECTION_RESET): The connection was reset.)
I am not sure what is going on. I had to luck in trying to find something in the technical and enduser help sections. I used to be able to update it earlier. I dont remember anything changing, except for the installing the regular updates on ubuntu. I am guessing somethings changed which might be causing this. Please help figure this out.
2) Logo : I tried to use a logo file for my wiki. The logo file is an png image file (size 135x135 px). I did as it was described in the help (option 2) However, the image doesnt show up. It is currently hosted on the same dir as LocalSettings.php. Could this be a file permissions problem ?
MediaWiki 1.19.2-2 PHP 5.4.6-1ubuntu1 (apache2handler) MySQL 5.5.28-0ubuntu0.12.10.1
Wiki URL : http://myownwiki.dyndns-wiki.com/mediawiki/
Thanks R
To number 2: Can you view the logo file when you point your browser to its URL?
Thanks your suggestions helped. I had put the png file in the /usr/share/mediawiki/ directory while the apache2 configuration file is pointing to /var/lib/mediawiki. The logo issue is resolved.
Thanks Raja
Fine. :-)
To number 1: I just tested editing your wiki. You get the error, when you click "Save" after editing a page (and the content is not saved in the DB). Do the error logs (PHP, Apache) contain more information?
Thanks
This suggestion too helped. I found these in the apache error log
[Thu Nov 29 20:05:56 2012] [notice] child pid 24270 exit signal Segmentation fault (11) [Thu Nov 29 20:05:56 2012] [notice] child pid 24526 exit signal Segmentation fault (11) [Thu Nov 29 20:13:59 2012] [notice] child pid 24540 exit signal Segmentation fault (11) [Thu Nov 29 20:13:59 2012] [notice] child pid 25193 exit signal Segmentation fault (11)
The php error log is not turned on. I will figure out how tyo do it and get back here.
Thanks RI
That's interesting. This sounds more like an apache problem then anything else.
>You get the error, when you click "Save" after editing a page
Also on preview and view changes button from edit pages. Normally diffing and normal parsing however do not seem to cause the error. POST actions also don't trigger the segfault.
Given that you have editing the Main Page of your wiki, it couldn't have always segfaulted. Did anything change?
One approach might be to try just installing a different version of apache and seeing if that changes anything
To truely debug this, what you would have to do is enable mediawiki logging (See How to debug) and add wfDebug() lines basically after everyline of EditPage.php (and maybe even Article.php) to try and figure out which line triggers the segfault (Since at that point the debug messages will stop)
Have a look at
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=694473
that bug seems to be what you are experiencing. Have you tried to stop and restart Apache? As far as I understand, using
apachectl restart
breaks thinks,
/etc/init.d/apache restart
fixes the problem temporarily.
After installing to the latest version of mediawiki, I am unable to upload text files, and get the following messege: Could not open lock file for "mwstore://local-backend/local-public/d/dc"
How can I fix this?
I fixed it. chmod 777 images directory.
Hi,
I've got the same problem but it is not fixed by chmod 777 images.
Ive just upgraded to 1.19 and
- I cannot upload image files - getting the message Could not create directory "mwstore://local-backend/local-public/archive/d/d8".
- I have made the mediawiki/images directory and all sub-directories writeable
- I had added $wgFileExtensions = {'gif', 'png'); to LocalSettings.php
- I have tried incuding $wgUploadPath = '/mediawiki/images'; to LocalSetting.php
- Current images files stored in the wiki
- are displayed correctly using
[[Image:pic.gif]], - but not if resized e.g.
[[Image:pic.gif|640px]]
- are displayed correctly using
Amy suggestions appreciated
Kirby
le dossier mediawiki et tout son contenu devrait apartenir au même usager que celui utilisé par le service Apache... Dans mon cas, www-data... Alors j'ai fait "chown -R www-data: mediawiki" pour régler mon problème.
... En passant, je ne pense pas que ce soit une bonne idée de tout le mettre en 777, ça peut causer une brèche de sécurité.
My french is rusty, but I think that I agree with you.
Setting 777 permissions is really a bad idea.
On my system, I had this problem too. I got here by googling the error message.
I fixed the problem by setting the image directory's owner to apache. And since nothing but a readme was in that directory, I didn't even need a recursive chown.
chown apache. /var/www/mediawiki119/images
That was the path on my CentOS 6.3 system.
I wonder if there is an even less crude solution.
There is. Read Manual:Configuring file uploads
check your "$wgFileExtensions = {'gif', 'png');" entry
you need to create an array, something like this:
$wgFileExtensions = array('gif','png');
For me chmoding uploads, uploads/*, uploads/*/* uploads/*/*/* to 777 helped (but please check with someone mor wiki-security aware that this doesn't imply any threats). For you it may be images, images/*, ... as it seems our wiki has some special settings.
Making things 777 means any user can write to the directory, which means if anyone somehow gets access to your server (aka security vulnrability in something else), or if there are other users of your server, they can write stuff to the images directory. A better approach is to make the images folder either owned by the apache user, or in the apache's user's group, and only let the apache user have said permissions.
Mi sukcesis per
# chown apache -R /path/to/your/wiki/ # chgrp apache -R /path/to/your/wiki/
Our wiki has two problems that seem to have come up at the same time. The first: The edit button is visible at the top of the page, but not above any of the page titles. We have a specific page that everyone is trained to just click the edit above the title.
The other issue is that if you do manage to get into the edit view for a page, the windows is only a couple lines tall.
I can't provide a link to it as it's an internal, company specific wiki. Here's the wiki info though.
MediaWiki: 1.11.0
PHP: 5.2.6-3ubuntu4.6 (apache2handler)
MySQL: 5.1.63-log
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.
Hi guys,
I have pages, in which I am using certain tags like so <bug>123</bug>.
How can I get a list of all pages, which contain such a "<bug>" tag?
I know that I could just search the DB table "text", but that will also bring up old revisions. Or is there maybe an extension?
Cheers!
I found the extension ReplaceText, which offers that kind of functionality.
Hi guys!
I upgrade mediawiki 1.17 to 1.20.5 and all articles and pictures works fine, but editors don't work. I tried to upgrade and install last versions of: - FCKEditor - CKEditor - VisualEditor - Wysiwyg Any work. Sometimes don't editor doesn't work and other I can't see my wiki.
I can't see any error in logs files. What could be the problem? Any idea ?
Thanks
Product Versions
MediaWiki 1.21alpha (35f559d)
PHP 5.3.17 (apache2handler)
MySQL 5.1.50-MariaDB-log
Wiki: elinux.org
Occasionally, I see a massive slow down of my wiki due to SQL queries such as:
3049.511 s Time:26,600 ms Call count:1379
SELECT /* JobQueueDB::claimRandom Wmat */ * FROM `job` WHERE job_cmd = ? AND job_token = ? AND (job_random >= ?) ORDER BY job_random ASC LIMIT ?
3468.882 s Time:10,100 ms Call count:618
UPDATE /* JobQueueDB::claimRandom Wmat */ `job` SET job_token = ?, job_token_timestamp = ?, job_attempts = job_attempts+? WHERE job_cmd = ? AND job_id = ? AND job_token = ?
I can't seem to find any references to this anywhere. Any thoughts on how to fix this?
Thanks Bill
Hi how do I enable merger count across all my wikis there is no extension for it
I don't understand what you mean by "enable merger count". Do you mean that you want some statistics (which ones?) counted across your different wikis?
What I mean how do I merge your account on multiple wikis
Third-party wikis have to install Extension:CentralAuth, although Manual:$wgSharedDB may be simpler.
Ok will it work with different MySQL databases
CentralAuth, in my opinion, works best when you don't use database prefixes and you use separate databases.
I want to delete all information posted before the 1th of Januari 2011 on a wiki site. In the standard criteria of Nuke DPL I don't find the possibility to select on date. In the DPL manual I find the possibility to select for instance 'Last revisions before....) That would help me if it would work.. but it does not. The standard criteria which are in the page tool field do work well. Can somebody help me out? Thanks, Akke
Some information about the wiki version we use: - Product Version MediaWiki 1.22wmf4 (646544a) PHP 5.3.10-1ubuntu3.6+wmf1 (apache2handler) MySQL 5.5.30-MariaDB-mariadb1~precise-log LuaSandbox 1.6-1 Lua 5.1.4
Hi.
A few days ago I've been searching how to get notified whenever people comment on my pages.
I will be very greatful if somebody could help me.
Regards.
By default, MediaWiki saves a full copy of every version of every page on the wiki. Is it possible to switch off saves every version. I need only last version of page? This will let me avoid DB size growth.
It there is no oportunity to switch it off. Is there posibility to remove (not compress) old versions of pages? Thanks in advance.
YS
Hi!
It is not possible to stop MediaWiki from saving a complete copy of each page each time when saving the page. But what you can do is use the maintenance script DeleteOldRevisions.php, possibly as a cron job, to remove all old revisions.
We inslalled extention EmailToWiki. We are beginners. We followed instruction on extention page. But emails didn't appear in wiki. Сontents of EmailToWiki.conf file are next:
# Name of the wiki which the emails will populate (must be running on the same host) $::wiki = "https://192.***.2.7/"; # The wiki template to wrap the email paramaters in $::template = "Email"; # Extract just the email address portion of the FROM and TO fields $::emailonly = 1; # Don't import emails into the wiki if the From address isn't registered in the wiki $::fromfilter = 0; # If there's HTML formatting in the email don't also add <pre> sections for non-HTML versions of the content $::html_only = 0; # Details of the POP or IMAP server to check for messages $::type = "IMAP"; $::host = "192.***.2.210"; $::user = "mediawiki@navi*****.com"; $::pass = "mwnavis2013"; # Delete messages after processing them $::remove = 0; # Maximum amount of message to download $::limit = 20000000; # Format of the title for the corresponding article in the wiki $::format = "Email:\$id (\$subject)"; # The user the webserver runs as $::owner = "www-data";
1; We created template Template:Email which contains: {| style="background-color:#eee;border: solid 1px black; padding: 5px" |- !align=left|From: |{{{from}}} |- !align=left|To: |{{{to}}} |- !align=left|Date: |{{{date}}} |- !align=left|Subject: |{{{subject}}} |} Could anybody help us?
Kate 23.05.2013
Hi
I think that a lot of extensions on my wiki are just installed and never used. I'm trying to know which extensions are really used but I don't know how ? Someone can help me ?
Thanks in advance
Heiya, have a look at WikiAPIary. This wiki collects all sorts of useful information on wikis running MediaWiki including extensions and their usage. Also, when looking at the extension's pages on this wiki you will see a little info at the bottom of the box displaying infos on the extension which says "Check usage and version matrix". Just click on it and it will bring you where some music is. :) Cheers
![]() First page |
![]() Previous page |
![]() Next page |
![]() Last page |



