Project:Support desk

Jump to: navigation, search

About this board

vde   Welcome to's Support desk, where you can ask MediaWiki questions!

There are also other places where to askCommunication: IRCCommunication#Chat, mailing listsMailing lists, Q&A etc.

Before you post

Post a new question

  1. To help us answer your questions, please always indicate which versions you are using (reported by your wiki's Special:Version page):
    • MediaWiki
    • PHP
    • Database
  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 topic".
Language: English  español
By clicking "Add topic", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 3.0 License and GFDL
2804:431:D708:C313:AC6F:48BD:4325:DC88 (talkcontribs)

sair da página.

Reply to "linving-tradução -"
Pjoona11 (talkcontribs)

Why am I getting the following message? How can I fix it? I just installed MediaWiki again after some time, this has never happened to me before.

Warning: rename(/tmp/l10n_cache-en.cdb.tmp.1541950862,/tmp/l10n_cache-en.cdb): Operation not permitted in /home/u849803034/public_html/vendor/wikimedia/cdb/src/Writer/DBA.php on line 59

[V@7fWB@qpBAAAE@ii8sAAADH] 2016-09-30 21:55:37: Fatal exception of type MWException

Warning: dba_close(): 167 is not a valid DBA identifier resource in /home/u849803034/public_html/vendor/wikimedia/cdb/src/Writer/DBA.php on line 54

Warning: rename(/tmp/l10n_cache-en.cdb.tmp.1541950862,/tmp/l10n_cache-en.cdb): Operation not permitted in /home/u849803034/public_html/vendor/wikimedia/cdb/src/Writer/DBA.php on line 59

Fatal error: Uncaught exception 'Cdb\Exception' with message 'Unable to move the new CDB file into place.' in /home/u849803034/public_html/vendor/wikimedia/cdb/src/Writer/DBA.php:60 Stack trace: #0 /home/u849803034/public_html/vendor/wikimedia/cdb/src/Writer.php(88): Cdb\Writer\DBA->close() #1 [internal function]: Cdb\Writer->__destruct() #2 {main} thrown in /home/u849803034/public_html/vendor/wikimedia/cdb/src/Writer/DBA.php on line 60

Reply to ""Internal error"?"
Ashni rai (talkcontribs)

Need “navigational templates” installed, such as Navbox or InfoBox

To display top toolbar & left navigation path.How to implement this?

AhmadF.Cheema (talkcontribs)

See: Manual:Importing Wikipedia infoboxes tutorial

Ashni rai (talkcontribs)

how to automatically import infoboxes in media wiki and implement tool bar?

AhmadF.Cheema (talkcontribs)

The steps in the manual, I believe, is as "automatic" as is possible right now. Are their any particular steps you are having a problem with?

Reply to "Navigational templates"
Ashni rai (talkcontribs)

we have wysiwyg as a default editor .How to make wiki editor as default as we have both the editors.

AhmadF.Cheema (talkcontribs)

Shouldn't this practically work for your purposes: Extension:WYSIWYG#Disable for some namespaces

Ashni rai (talkcontribs)

We have 2 editors(wysiwyg and rich text editor).when i click on edit button i get wysiwyg editor by default for every page i want to edit.However i want to disable wysiwyg editor by default and make wiki editor enable by default at page level.On click of rich text editor wysiwyg should be editable.(Basically i want wiki editor to load first).

AhmadF.Cheema (talkcontribs)

Sorry, I misunderstood.

Regarding "wiki editor" by any chance do you mean Extension:WikiEditor? In which case, "WikiEditor" can possibly be made default by Configuration. See if this works.

Reply to "WYSIWYG"

Session Hijacking error after Update 1.19.14

11 (talkcontribs)


after updating my Intranet-Wiki to Mediawiki 1.19.14 I receive an error on every Password Reset. This can be reproduced by all users: 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 already tried different things, but can't find a solutiong. My /tmp is writeable. I am using Mediawiki 1.19.14, PHP 5.3.10, MySQL 5.5.35 on an Ubuntu 12.04 LTS. Can anybody please help on this issue?

Thanks in Advance.

AKlapper (WMF) (talkcontribs)

Who triggers that error? MediaWiki itself? Your browser? (talkcontribs)

The error ist triggered by Mediawiki. I commented out the Diffs which came with MW 1.19.14 to includes/special/SpecialChangePassword.php and the errors dissapear.

AKlapper (WMF) (talkcontribs) lists bugzilla:62497 as the culprit. You might want to provide browser information and bring it up there.

Grunny (talkcontribs)

This was a mistake in the backport to MW 1.19.14. I already sent a patch for it to Markus to see if we can get the fix released. If you want to fix it in the mean time, open up includes/specials/SpecialChangePassword.php go to line 154 which should be:

			$loginOnChangeToken = LoginForm::getLoginToken();

And change it to:

			$loginOnChangeToken = Html::hidden( 'wpLoginOnChangeToken', LoginForm::getLoginToken() ); (talkcontribs)

This fix works, thank you very much! (talkcontribs)

The error here occurred in a MediaWiki v1.16.5 install in BlueOnyx server. The Apache error log exceeded 3.2GB was corrected by purging it with:

Zzmonty (talkcontribs)

I just tried to install 1.27, clean install, and I also got this error. What I did notice was that at one point the installer asks "End now" or "ask more questions." If I tried to install through the whole installer, I would get this error. If I stopped the installation after the "End now", I would not get this session error. It is really annoying that this problem still exists in version 1.27. (talkcontribs)

I was having the exact same problem with 1.27.1 and comparing the resulting setting files showed the difference to be in $wgMainCacheType. Logins worked when caching was disabled, and after a bit more poking around it seems to be a problem with APCu session caching not working. The following is what did it for me:

$wgMainCacheType = CACHE_ACCEL;

$wgSessionCacheType = CACHE_DB; (talkcontribs)

This correction worked for me, also.

Malyacko (talkcontribs)

The problem does not still exist in 1.27. It's a different problem (likely due to AuthManager code changes) with the same message displayed.

Reply to "Session Hijacking error after Update 1.19.14"

Error creating thumbnail: convert: memory allocation failed

Dark T Zeratul (talkcontribs)

So I was attempting to upload an image last night when I believe my host had some network issues. The result of all this is that this image, as well as the past few revisions, will no longer display a thumbnail. Instead, it gives me the following error where the thumbnail would be:

Error creating thumbnail: convert: memory allocation failed `/hermes/bosweb/web169/b1696/nf.colton3d/public_html/[0]' @ error/cache.c/AcquireCacheNexusPixels/565. convert: memory allocation failed `/hermes/bosweb/web169/b1696/nf.colton3d/public_html/[0]' @ error/cache.c/AcquireCacheNexusPixels/565. convert: Insufficient memory (case 4) `/hermes/bosweb/web169/b1696/nf.colton3d/public_html/' @ error/jpeg.c/EmitMessage/233.

The past few revisions have similar errors:

  • Error creating thumbnail: convert: Memory allocation failed `' @ fatal/exception.c/AcquireExceptionInfo/108.
  • Error creating thumbnail: convert: UnableToAcquireString `' @ fatal/string.c/AcquireString/126.

When attempting to view the image page while logged in, it hangs for several minutes before either timing out or returning a 500 error. It also does the same thing when attempting to view any other page on the wiki, until I clear my cache. When viewing the image directly, or its past revisions, it loads properly. All other images and thumbnails load properly.

Does anyone know how I can solve this problem? I do have FTP access.

Update: Just uploaded a new image, and got the following error: Error creating thumbnail: convert: MemoryAllocationFailed `' @ fatal/exception.c/AcquireExceptionInfo/108. convert: MemoryAllocationFailed `�� �p_���^��\�@�' @ fatal/hashmap.c/NewLinkedList/1411.

Emufarmers (talkcontribs)

It sounds like your host changed a memory limit. You should talk to them.

Emufarmers (talkcontribs)

Now I'm seeing errors like
(Can't contact the database server: User u70717484 already has more than 'max_user_connections' active connections (
It sounds like your host is pretty messed up.

Bawolff (talkcontribs)

Try also increasing $wgMaxShellMemory (for the original issue with convert)

Dark T Zeratul (talkcontribs)

Which file is that in? The page doesn't say and I didn't see it in either LocalSettings.php or AdminSettings.php.

Bawolff (talkcontribs)

Add it to the bottom of your LocalSettings.php

Seanchen (talkcontribs)

Increasing $wgMaxShellMemory helped solve this error in my wiki instance. I did increased it from default 307200 to 512000, which is 500MB.

Reply to "Error creating thumbnail: convert: memory allocation failed" (talkcontribs)

Category are not created when added to a page, rows are not added to the category database.

I've set $wgJobRunRate = 1;

$wgRunJobsAsync = false;

But still the same thing.

I am unable to generate categories on my wiki ... (talkcontribs)

See Manual:$wgRunJobsAsync!

It is recommended to set $wgJobRunRate to something higher than 1 - and depending on how your wiki is used, it may still take some time until all jobs got done, especially if you don't use the runJobs.php script. (talkcontribs)

Yeah but i said i 've already put that to false but still nothing goes into category. And i cannot launch maintenance script :( (talkcontribs)


$wgJobRunRate = 2;
This comment was hidden by (history) (talkcontribs)

I finally tried a rebuildAll.php and got that :

Refreshing links tables.

Starting from page_id 1 of 606.

Une erreur de requête de base de données s’est produite.

Requête : INSERT  INTO `wiki_job` (job_cmd,job_namespace,job_title,job_params,job_id,job_timestamp,job_sha1,job_random) VALUES ('refreshLinks','6','Affiche-film-avengers-ere-ultron.jpg','a:6:{s:5:\"table\";s:10:\"imagelinks\";s:9:\"recursive\";b:1;s:13:\"rootJobIsSelf\";b:1;s:16:\"rootJobSignature\";s:40:\"4a22e2e8e64e9fee8cd62ff97bee0a4403f6f140\";s:16:\"rootJobTimestamp\";s:14:\"20160930113140\";s:9:\"requestId\";s:24:\"a2875439b3b26dc757610d12\";}',NULL,'20160930113140','s1xl8sj4m8jipt34u190snclc3dvzcm','2051415256')

Fonction : JobQueueDB::doBatchPush

Erreur : 1048 Column 'job_id' cannot be null (10.0.*.*) (talkcontribs)

Oki so if i put 'job_id' as not null in MySQL i have an exception when editing the page but the category is created. Someone has a idea ? (talkcontribs)

Please make sure that your database columns have the correct format!

E.g. for the column job_id of the job table, this is

| Field               | Type             | Null | Key | Default | Extra          |
| job_id              | int(10) unsigned | NO   | PRI | NULL    | auto_increment | (talkcontribs)

My database was different i have made the changes not it is working !

I am gonna quote V for Vendetta as a thanks ! You have saved my projeft !!!

"I don't know who you are. Or whether you're a man or a woman. I may never see you or cry with you or get drunk with you. But I love you. I hope that you escape this place. I hope that the world turns and that things get better, and that one day people have roses again. I wish I could kiss you."

Reply to "Categories are not created."
HappyLarry (talkcontribs)

MW:1.23.5 PHP 5.5.37 DB 10-0-20 MAriaDB

I would like to install the StatCounter extension but I have read the installation instructions and I don't understand what to do when it says

"Fill in [[MediaWiki:Statcounter-project-id]] and [[MediaWiki:Statcounter-security]] with the values of the JavaScript variables sc_project and sc_security, respectively, as provided to you by"

Suppose my statcounter project id (sc-project) was 123456 - what do I type and where? (talkcontribs)

The value from sc_project, in your case 123456, belongs into the wiki page MediaWiki:Statcounter-project-id in your wiki and the value of sc_security (whatever that is) belongs into the page MediaWiki:Statcounter-security.

HappyLarry (talkcontribs)

Thanks for replying so soon.

  1. I don't have a page Mediawiki:Statcounter-project-id. Is this created automatically when the extension is installed or do I need to create it?
  2. When you say 'belongs to' does that mean I just write the number on the page or is it part of some mediawiki instruction - it says it is a javascript variable.
HappyLarry (talkcontribs)

I tried installing the Statcounter extension anyway on Mediawiki 1.23.5 but it didn't install.The instructions given result in the error

"Warning: require_once(extensions/StatCounter/StatCounter.php): failed to open stream:"

I checked and there is no StatCounter.php file in the folder. According to the instructions it should work with 1.23.5 however.

Ciencia Al Poder (talkcontribs)

It should work, but only if you download the extension for MediaWiki 1.23 and not the latest one. And yes, you should create/edit those pages adding those values

HappyLarry (talkcontribs)


  1. When you click on the download link on the StatCounter extension page, there are options to download the extension for 1.27 and 1.26 but not for 1.23. It also says that if you have an earlier version that 1.26 then you should download the latest version and it will work.
  2. So on the page (if I can get the extension installed) I would just write a single number - 123456 - (it's not embedded in a line of code?) (talkcontribs)

1. Ok, then use the version for MediaWiki 1.26. The error "failed to open stream" can be avoided, if you use this line:

require_once "$IP/extensions/StatCounter/StatCounter.php";

2. The page should only contain the value of the JavaScript variable, that is: The number, that is all.

Reply to "mediawiki and StatCounter"
2601:6C4:C100:53D0:A871:8FA4:30A5:4E9B (talkcontribs)

Hi, I'm having an issue were any css or js put into Common.js/css is not showing for 1-3 for any user. I've done a Hard Reset even used a live cd of linux so there is defiantly nothing cached and when I goto load.php?debug=false&lang=en&modules=site&only=styles&skin=vector&* it is showing the old code if I change the url by adding anything to the end example: load.php?debug=false&lang=en&modules=site&only=styles&skin=vector&version=(random#here) it will show my latest changes but that doesn't help me.

Using MW: 1.24.1 & PHP: 5.6.2

Reply to "CSS/JS Not updating for 1-3 days."

How to use Hook (UserCreateForm), $wgHooks['UserCreateForm'][] = 'customUserCreateForm';

1 (talkcontribs)

I want to Add Date of Birth field on user signup form, how can i add by hooks $wgHooks['UserCreateForm'][] = 'customUserCreateForm';

Please somebody explain me.



Reply to "How to use Hook (UserCreateForm), $wgHooks['UserCreateForm'][] = 'customUserCreateForm';"