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, Wikimedia Developer Support, Q&A, mwusers (unofficial forum) 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".

PHP deprecated error after adding Lockdown extension

2 (talkcontribs)

I'm trying to force users to login to view special pages and recent changes. I added the Lockdown extension directory to /w/extensions/Lockdown. I then added these lines to my LocalSettings.php file.

require_once "$IP/extensions/Lockdown/Lockdown.php";
$wgSpecialPageLockdown['Export'] = array('user');
$wgSpecialPageLockdown['Recentchanges'] = array('user');
$wgSpecialPageLockdown['Specialpages'] = array('user');
$wgSpecialPageLockdown['Recentchangeslinked'] = array('user');

When I go to my wiki and click special pages I get a "500 - Internal server error". When I log in I'm able to go to special pages. I checked my error log and it says

"[error] [dddf1fc1ccccd7df34f2ec09] /index.php?title=Special:SpecialPages   ErrorException from line 309 of C:\inetpub\wwwroot\TestWiki\w\includes\debug\MWDebug.php: PHP Deprecated: Use of User::makeGroupLinkWiki was deprecated in MediaWiki 1.29. [Called from array_map in (internal function)]"

This did work in MediaWiki 1.26.

I'm now using 1.30 that was a fresh install not an upgrade. I'm also using PHP 7 and MySQL 5.7.

MarkAHershberger (talkcontribs)

Thanks for reporting this. I've created a phabricator task: T185105

Reply to "PHP deprecated error after adding Lockdown extension"
PSIDWiki (talkcontribs)


I had a huge requirement change so I had to start my site all over with the following software versions:

-Python 3.4 64-bit

-MySql 5.7.21 64-bit

-PHP 7.0.21

-MediaWiki 1.30

I create 2 accounts with the option to send the user the temporary password, but neither email account has received anything. In LocalSettings.php I have the following:

$wgEnableEmail = True;

$wgEnableUserEmail = True; # UPO

$wgEmailAuthentication = True;

$wgSMTP = array(

'host'     => "", // could also be an IP address. Where the SMTP server is located

'IDHost'   => "",      // Generally this will be the domain name of your website (aka

'port'     => 25,                 // Port to use when connecting to the SMTP server

'auth'     => True,               // Should we use SMTP authentication (true or false)

'username' => "SMTPUser",     // Username to use for SMTP authentication (if being used)

'password' => "SMTPPassword"       // Password to use for SMTP authentication (if being used)


I'm not sure how to test it other then to create more accounts.

Ciencia Al Poder (talkcontribs)

Once an account is created, if it has a configured mail, you can request a new password by email (talkcontribs)

How is it possible to request a new password?

Reply to "How to test email function"
Deluge Lights (talkcontribs)

Hi, is there a built-in way to store user uploaded images on object storage instead of directly to the local drive? I was thinking of using a service such as DigitalOcean Spaces, Backblaze B2, or Amazon S3 buckets due to scalability and other concerns. I see there's an extension for Amazon S3, but is there something for the other services? If I was to create an extension for this, could someone please point me in the right direction as to what documentation I should be looking at? Thanks.

Osnard (talkcontribs)

There are extensions for "Amazon S3" (Extension:LocalS3Repo), "Windows Azure" (Extension:WindowsAzureStorage). "Swift" is supported natively.

If you want to implement your own backend, have a look at the code of the extensions or the FileBackend design considerations.

Reply to "Storing images on object storage"

VisualEditor 1.30 truncates data and repeats them

Summary by Czech.Fox

Caused by bug in curl (fixed in libcurl 7.56.1) in Windows binaries of PHP (any version). We have to wait for future versions.

Czech.Fox (talkcontribs)

Last version of VisualEditor for MW 1.30 truncates data. When I create or edit a page which contains long code (can be just Lorem ipsum), which is more than ~10kB (size is changing around this size), it truncates data after this size. Instead of the subsequent data, it prints the following code (I present only part because of this editor limitation) followed by the first 10kB of code from page (Lorem ipsum text), and again and again until it reaches the original size of code.

... <meta charset="utf-8" /> <meta property="mw:pageNamespace" content="0" /> <meta property="mw:pageId" content="1" /> <meta property="dc:modified" content="2017-12-19T11:43:54.000Z" /> <meta property="mw:revisionSHA1" content="52037c2060186c3b757682d49c79c681de3a92b6" /> <meta property="isMainPage" content="true" /> <meta property="mw:html:version" content="1.5.0" /> <title>Main_Page</title><base href="" />[//domai ...

It looks to me like some timeout problem. I use MW 1.30 on Windows Server with IIS 7.5 and PHP 7.0.

Czech.Fox (talkcontribs)

Command line "node bin/server.js" returns these messages when this issue occurs:

{"name":"lib/index.js","hostname":"DEVELOPER","pid":6324,"level":50,"logType":"error/html2wt/link","wiki":"wiki$0","title":"Main_Page","oldId":"31","reqId":null,"userAgent":"VisualEditor-MediaWiki/1.30.0","msg":"Encountered <link rel=\"dc:replaces\" resource=\"mwr:revision/30\"> -- serializing as extlink and dropping <a> attributes unsupported in wikitext.","longMsg":"Encountered\n<link rel=\"dc:replaces\" resource=\"mwr:revision/30\">\n-- serializing as extlink and dropping <a> attributes unsupported in wikitext.","levelPath":"error/html2wt/link","time":"2017-12-21T09:07:50.488Z","v":0}


{"name":"lib/index.js","hostname":"DEVELOPER","pid":6324,"level":30,"logType":"info/html2wt","wiki":"wiki$0","title":"Main_Page","oldId":"27","reqId":null,"userAgent":"VisualEditor-MediaWiki/1.30.0","msg":"Incompatible constraints (merge): {\"a\":{},\"b\":{\"min\":0,\"max\":1},\"min\":1,\"max\":1} {\"a\":{},\"b\":{\"min\":2,\"max\":2},\"min\":2,\"max\":2,\"constraintInfo\":{\"onSOL\":false,\"sepType\":\"sibling\",\"nodeA\":\"P\",\"nodeB\":\"P\"}} {\"a\":{\"min\":1,\"max\":2},\"b\":{\"min\":0,\"max\":1},\"min\":1,\"max\":1}","longMsg":"Incompatible constraints (merge):\n{\"a\":{},\"b\":{\"min\":0,\"max\":1},\"min\":1,\"max\":1}\n{\"a\":{},\"b\":{\"min\":2,\"max\":2},\"min\":2,\"max\":2,\"constraintInfo\":{\"onSOL\":false,\"sepType\":\"sibling\",\"nodeA\":\"P\",\"nodeB\":\"P\"}}\n{\"a\":{\"min\":1,\"max\":2},\"b\":{\"min\":0,\"max\":1},\"min\":1,\"max\":1}","levelPath":"info/html2wt","time":"2017-12-21T09:05:57.474Z","v":0}

Pankaj79kumar (talkcontribs)

Hi Czech,

Did you find any solution to this problem?

Czech.Fox (talkcontribs)

Trying to find the problem with others in task ticket . If you experience the same problem, join the discussion please.

Czech.Fox (talkcontribs)

We found the problem. It's caused by bug in curl in Windows binaries of PHP (any version). We have to wait for future versions of PHP.

Pankaj79kumar (talkcontribs)

Thanks for your help!

I have build the curl-7.57.0 with PHP Version 7.0.27 and that is working fine.

Please find the URL to create a build of php_cul.dll.




Reply to "VisualEditor 1.30 truncates data and repeats them"

Is licensing notice required for third-party websites using MediaWiki?

George Ho (talkcontribs)

I went to and could not find the terms "GNU", "General Public", "GPL" or anything related. Is licensing notice of the GNU General Public License required for certain third-party sites using MediaWiki? If so, whom can I contact about this?

Malyacko (talkcontribs)

The content of the GPL itself should tell you whether a licensing notice is required. Whether that's for MediaWiki or any other software under GPL. How does "certain sites" make sense here?

George Ho (talkcontribs)

Well... The legal codes of ver 2 and of ver 3 are very long, so I don't know whether a notice is required. As for "certain sites", well... I should have said "third-party" sites earlier for clarity.

Reply to "Is licensing notice required for third-party websites using MediaWiki?"

PHP Warning: Error while sending QUERY packet. PID=29477 in includes/libs/rdbms/database/DatabaseMysqli.php on line 47

2A04:2413:8300:8480:308A:4942:A17:DA31 (talkcontribs)

[13-Jan-2018 16:58:09 Europe/ ]PHP Warning:  Error while sending QUERY packet. PID=29477 in /includes/libs/rdbms/database/DatabaseMysqli.php on line 47

Mediawiki 1.30.0

I had the same warnings in 1.23

2A04:2413:8300:8480:308A:4942:A17:DA31 (talkcontribs)

No one has a clue from where this is happening?

2001:16B8:10D4:9000:E9F1:6908:75B4:4232 (talkcontribs)

MySQL has limitation for the size of data. You either need to break your query in small groups of records or you can change your max_allowed_packet in MySQL. I would opt for the second.

2A04:2413:8300:8480:308A:4942:A17:DA31 (talkcontribs)

Thank you. I asked my host provider about that value because I don't have it in php ini or user.ini.

2A04:2413:8300:8480:88B1:1FC1:FFB5:ED5C (talkcontribs)

16 Mb was the answer. Is that enough for mediawiki 1.30? (talkcontribs)

Or what is the recomended value for mediawiki 1.30?

Reply to "PHP Warning: Error while sending QUERY packet. PID=29477 in includes/libs/rdbms/database/DatabaseMysqli.php on line 47"
Bttfvgo (talkcontribs)

Hi! I have MySQL 5.7.20 and I think I messed up terribly. I noticed my database was in latin1 and so I followed the instructions on this page ( to change it into utf8. Well that didn't work. And now half of my information is gone! I've tried restoring multiple times and even reversing the steps. Is the info gone for good or can I get it back!?

Ciencia Al Poder (talkcontribs)

If you have the original SQL script, that's your backup and restoring it should work, but the --default-character-set=latin1 --skip-set-charset options may skip some importan information from the original database. If the original data was really latin1, importin it with --default-character-set=latin1 should work. However, I doubt MediaWiki would use latin1 for database even in the more older versions. Maybe it wasn't in latin1 at all, or even if the database default was latin1, tables were created as utf8 (the charset can be specified for each table).

If you made any modification to MediaWiki configuration like Manual:$wgDBTableOptions you'll need to restore them as well.

Reply to "Restoring a backup"

Is it possible to set some pages to update later?

Banaticus (talkcontribs)

We have some changes to some pages on our wiki that we'd like to push out later, but they can't go live yet. Is there some sort of delayed update extension?

Fokebox (talkcontribs)

May be you can make some template for such reasons

Banaticus (talkcontribs)

Well, we could create template X, Y, Z, and then edit pages a, b, c to add those templates, but we want to actually edit the pages so that it's shown in the page edit history.

Reply to "Is it possible to set some pages to update later?"

Automatically redirect external links

Andrewschlussel (talkcontribs)

Our wiki is not connected to the internet, it is internal only.

Any URL on our wiki is therefore a broken link.

I was wondering if there was a way to automatically redirect any link to an external page to a page that describes that they will need to copy the link and put it into an internet enabled browser.

So for example, if a page on the wiki had a link to and you clicked on that, it would take you to a page that said:

" is an external link and cannot be viewed on this browser. Click here to copy the link, then paste it into your internet enabled browser."

星耀晨曦 (talkcontribs)

You can add the js for the behavior to MediaWiki:common.js

Krayfishkarl (talkcontribs)

I've been getting some complaints from the users of my site about error messages regarding account creation. Specifically, when trying to create an account, they get "Forbidden. Please submit form again. " or a variant that says "You submitted too quickly." I tested this out myself and it's been fairly inconsistent. Sometimes, I'm able to create an account after one try, but other times I can't at all after five or more tries.

After doing some digging, I found that temporarily disabling CleanTalk (from the Antispam plugin) allows one to register their account with no further hindrances. I don't quite understand why CleanTalk has to do it with it though because to my knowledge, a different error message regarding blacklisting appears if a spambot tries to register. However, I am hesitant to turn CleanTalk off in the long term because it actually does its job really well at blocking spam. It blocks about 300 - 400 attacks per week with only one or two misses every now and then.

I haven't been able to find any other topics regarding similar issues, so I was wondering what I could do to be able to fix this.

Reply to "Forbidden. Please submit form again."