SpecialContributions: Use PoolCounter to limit concurrency
[lhc/web/wiklou.git] / RELEASE-NOTES-1.34
1 = MediaWiki 1.34 =
2
3 == MediaWiki 1.34.2 ==
4
5 THIS IS NOT A RELEASE YET
6
7 === Changes since MediaWiki 1.34.1 ===
8 * The MultiHttpClient code will fallover to non-curl if curl_multi* is blocked.
9 * Per-user concurrency in SpecialContributions can now be limited by setting
10 $wgPoolCounterConf['SpecialContributions'] appropriately.
11
12 == MediaWiki 1.34.1 ==
13
14 This is a security and maintenance release of the MediaWiki 1.34 branch.
15
16 === Changes since MediaWiki 1.34.0 ===
17 * (T211450) User: better error message when getActorId fails.
18 * (T241340) Don't redefine MW_ENTRY_POINT in thumb.php if already defined.
19 * (T236444) User: Allow newSystemUser() to create over anonymous actors.
20 * (T238483) Fix NewPagesPager "hide registered users" option.
21 * (T245072) mediawiki.language: Rename languageData back to languageNames.
22 * Use proper SemVer comparison in CheckComposerLockUpToDate.
23 * (T212738) Add the MW_VERSION constant, global $wgVersion is soft deprecated.
24 * (T246127) Fix error when initialising updateCollation.php.
25 * Update comment about PHP versions supported by The PHP Group.
26 * (T247215) Fix output of RecountCategories::doWork().
27 * Add check for page existence to view.php maintenance script.
28 * (T245149) Fix fetching login token from action=query&meta=tokens on private
29 wikis.
30 * (T236509) SECURITY: Fix HTML escaping in UserGroupMembership::getLink().
31 * (T232932) SECURITY: User content can redirect the logout button to different
32 URL.
33 * (T246602) SECURITY: jquery.makeCollapsible allows applying event handler to
34 any CSS selector.
35
36 == MediaWiki 1.34.0 ==
37
38 === Changes since MediaWiki 1.34.0-rc.1 ===
39 * $wgDiffEngine (T237049) – This configuration can be used to specify which
40 difference engine to use. MediaWiki continues to default to automatically
41 choosing the first of $wgExternalDiffEngine, wikidiff2, or php that is
42 usable.
43 * (T231866) SqlBlobStore no longer needs Language object.
44 * (T236735) WikiExporter: Remove unnecessary check for SCHEMA_COMPAT_WRITE_OLD
45 flag.
46 * (T231673) Set MCR migration stage to SCHEMA_COMPAT_NEW.
47 * (T229601) Make sure DBLoadBalancerFactory service is not disabled.
48 * (T232866) Fix support for HTTP/2 in MultiHttpClient.
49 * (T231866) LocalisationCache: Don't instantiate ResourceLoader.
50 * (T227461) Stop calling deprecated Redis delete functions.
51 * (T239561) Mark options as requiring parameters in addSite.php.
52 * (T232866) Mimic CURLOPT_POST in GuzzleHttpRequest.
53 * (T239734) Replace deprecated lSize with lLen in Redis code.
54 * (T192134) SECURITY: Do not allow user scripts on Special:PasswordReset.
55 * (T239428) ApiEditPage: Test for bad redirect targets.
56 * (T233342) rdbms: Log debug message traces as 'exception.trace' instead of
57 'trace'.
58 * (T226751) media: Log and fail gracefully on invalid EXIF coordinates.
59 * (T240924) NewPagesPager: Fix namespace query conditions.
60 * (T212067) Tests for an old PHP bug in parse_url.
61
62 == MediaWiki 1.34.0-rc.1 ==
63
64 === Changes since MediaWiki 1.34.0-rc.0 ===
65 * (T231742) rdbms: Restore debug toolbar "Queries" feature.
66 * (T231366) The ProfilerOutputDb class, 'profiling' table, and profileinfo.php
67 entry point had been deprecated.
68 * (T234361) localisation: Add debug message for backend of MessageCache.
69 * (T234361) session: Add debug message for the used store class.
70 * (T235559) Fix example Kask configuration in RESTBagOStuff class comment.
71 * (T235137) Don't apply styling for Special:Contributions on other pages.
72 * Upgrade mediawiki-codesniffer from 26.0.0 to 28.0.0 (dev-only).
73 * (T219604) The "jquery.ui.*" and "jquery.effects.*" modules are now
74 deprecated as aliases for the "jquery.ui" module.
75 * (T235392) Deprecate setting Parser::mTitle to null.
76 * Supporting commits for T235392 were also backported to prevent divergence
77 from master (MediaWiki 1.35).
78 * (T234581) The 'jquery.tabIndex' module is deprecated.
79 * Fix docs for GetUserBlock hooks.
80 * Parser: Hard deprecate getConverterLanguage.
81 * (T236810) A number of public methods of Parser were exposed only for
82 historical reasons and have been deprecated: doMagicLinks,
83 doDoubleUnderscore, doHeadings, doAllQuotes, replaceExternalLinks,
84 replaceInternalLinks, replaceInternalLinks2, getVariableValue,
85 initialiseVariables, formatHeadings, testPst, testPreprocess, testSrvus,
86 areSubpagesAllowed, maybeDoSubpageLink, splitWhitespace, createAssocArgs,
87 armorLinks, makeKnownLinkHolder, getImageParams, parseLinkParameter,
88 stripAltText, replaceLinkHolders, replaceLinkHoldersText, armorLinks,
89 makeKnownLinkHolder, getImageParams, parseLinkParameter, stripAltText.
90 * (T30798) $wgServer must now always be set in LocalSettings.php. This is most
91 likely the case already for any wiki installed after 1.18. The autodetection
92 system was informally deprecated since 1.18 and vulnerable to cache poisoning
93 attacks. Older wikis may need to update their LocalSettings.php file.
94 * (T232169) Hard deprecate $wgSysopEmailBans.
95 * (T236628) Fix for ArticleRevisionViewCustom hook in DifferenceEngine.php.
96 * (T181658) Do not insert page titles into querycache.qc_value.
97 * ParamValidator has been flagged as unstable.
98 * Hard deprecate Parser::disableCache().
99
100 == MediaWiki 1.34.0-rc.0 ==
101
102 == Upgrading notes for 1.34 ==
103 1.34 has several database changes since 1.33, and will not work without schema
104 updates. Note that due to changes to some very large tables like the revision
105 table, the schema update may take quite long (minutes on a medium sized site,
106 many hours on a large site).
107
108 Don't forget to always back up your database before upgrading!
109
110 See the file UPGRADE for more detailed upgrade instructions, including
111 important information when upgrading from versions prior to 1.11.
112
113 Some specific notes for MediaWiki 1.34 upgrades are below:
114
115 * MediaWiki now requires PHP 7.2.9 or above.
116 * MediaWiki no longer supports HHVM.
117
118 For notes on 1.33.x and older releases, see HISTORY.
119
120 === Configuration changes for system administrators in 1.34 ===
121
122 In an effort to enforce best practices for passwords, MediaWiki will now warn
123 users, and suggest that they change their password, if it is in the list of
124 100,000 commonly used passwords that are considered bad passwords. If you want
125 to disable this for your users, please add the following to your local settings:
126
127 $wgPasswordPolicy['policies']['default']['PasswordNotInLargeBlacklist'] = false;
128
129 ==== New configuration ====
130 * $wgAllowExternalReqID (T201409) - This configuration setting controls whether
131 Mediawiki accepts the request ID set by the incoming request via the
132 `X-Request-Id` header. If set to `true`, that value will be used throughout
133 the code as the request identificator. Otherwise, the sent header will be
134 ignored and the request ID will either be taken from Apache's mod_unique
135 module or will be generated by Mediawiki itself (depending on the set-up).
136 * $wgEnableSpecialMute (T218265) - This configuration controls whether
137 Special:Mute is available and whether to include a link to it on emails
138 originating from Special:Email.
139 * editmyuserjsredirect user right – users without this right now cannot edit JS
140 redirects in their userspace unless the target of the redirect is also in
141 their userspace. By default, this right is given to everyone.
142 * (T226733) Add rate limiter to Special:ConfirmEmail.
143 * $wgDiffEngine (T237049) – This configuration can be used to specify which
144 difference engine to use. MediaWiki continues to default to automatically
145 choosing the first of $wgExternalDiffEngine, wikidiff2, or php that is
146 usable.
147
148 ==== Changed configuration ====
149 * $wgUseCdn, $wgCdnServers, $wgCdnServersNoPurge, and $wgCdnMaxAge – These four
150 CDN-related config variables have been renamed from being specific to Squid –
151 they were previously $wgUseSquid, $wgSquidServers, $wgSquidServersNoPurge, and
152 $wgSquidMaxage respectively. This aligns them with the related existing
153 variable $wgCdnMaxageLagged. The previous configuration variable names are
154 deprecated, but will be used as the fall back if they are still set.
155 Note that wgSquidPurgeUseHostHeader has not been renamed, as it is deprecated.
156 * (T27707) File type checks for image uploads have been relaxed to allow files
157 containing some HTML markup in metadata. As a result, the $wgAllowTitlesInSVG
158 setting is no longer applied and is now always true. Note that MSIE 7 may
159 still be able to misinterpret certain malformed PNG files as HTML.
160 * (T30798) $wgServer must now always be set in LocalSettings.php. This is most
161 likely the case already for any wiki installed after 1.18. The autodetection
162 system was informally deprecated since 1.18 and vulnerable to cache poisoning
163 attacks. Older wikis may need to update their LocalSettings.php file.
164 * Introduced $wgVerifyMimeTypeIE to allow disabling the MSIE 6/7 file type
165 detection heuristic on upload, which is more conservative than the checks
166 that were changed above.
167 * $wgExternalDiffEngine — Setting this to a string value of 'wikidiff',
168 'wikidiff2', or 'wikidiff3' will no longer work. This legacy behaviour was
169 deprecated in MediaWiki 1.27, 1.32, and 1.27, respectively.
170 * $wgSkipSkin — Setting this instead of $wgSkipSkins, deprecated in 1.23, is now
171 hard-deprecated.
172 * $wgLocalInterwiki — Setting this instead of $wgLocalInterwikis, deprecated in
173 1.23, is now hard-deprecated.
174 * $wgProfileOnly — Setting this, deprecated in 1.23, is now hard-deprecated.
175 Instead, set the log file in $wgDebugLogGroups['profileoutput'].
176 * $wgProxyList — Setting this to an array with IP addresses in the array keys,
177 which was deprecated in 1.30, no longer works. Instead, $wgProxyList should be
178 an array with IP addresses as the values, or a string path to a file
179 containing one IP address per line.
180 * $wgCookieSetOnAutoblock and $wgCookieSetOnIpBlock are now enabled by default.
181
182 ==== Removed configuration ====
183 * $wgWikiDiff2MovedParagraphDetectionCutoff — If you still want a custom change
184 size threshold, please specify in php.ini, using the configuration variable
185 wikidiff2.moved_paragraph_detection_cutoff.
186 * $wgUseESI - This experimental setting, deprecated in 1.33, is now removed.
187 * $wgDebugPrintHttpHeaders - The default of including HTTP headers in the
188 debug log channel is no longer configurable. The debug log itself remains
189 configurable via $wgDebugLogFile.
190 * $wgMsgCacheExpiry - The MessageCache uses 24 hours as the expiry for values
191 stored in WANObjectCache. This is no longer configurable.
192 * $wgPasswordSalt – This setting, used for migrating exceptionally old, insecure
193 password setups and deprecated since 1.24, is now removed.
194 * $wgDBOracleDRCP - If you must use persistent connections, set DBO_PERSISTENT
195 in the 'flags' field for servers in $wgDBServers (or $wgLBFactoryConf).
196 * $wgMemCachedDebug - Set the cache "debug" field in $wgObjectCaches instead.
197 * $wgActorTableSchemaMigrationStage has been removed. Extension code for
198 MediaWiki 1.31+ finding it unset should treat it as being SCHEMA_COMPAT_NEW.
199
200 === New user-facing features in 1.34 ===
201 * Special:Mute has been added as a quick way for users to block unwanted emails
202 from other users originating from Special:EmailUser.
203 * (T207577) Special:NewSection has been created as a shortcut to creating a new
204 section on a page. When linked to, its subpage is used as the target
205 ([[Special:NewSection/Test]] redirects to creating a new section in "Test").
206 Otherwise, it displays a basic interface to allow the end user to specify
207 the target manually.
208 * (T220447) Special:Contributions/newbies has been removed for performance and
209 usefulness reasons. Use Special:RecentChanges?userExpLevel=newcomer instead.
210 * Special:NewFiles/newbies has been removed for performance and usefulness
211 reasons. Use Special:RecentChanges?userExpLevel=newcomer&namespace=6 instead.
212
213 === New developer features in 1.34 ===
214 * The ImgAuthModifyHeaders hook was added to img_auth.php to allow modification
215 of headers in private wikis.
216 * Language::formatTimePeriod now supports the new 'avoidhours' option to output
217 strings like "5 days ago" instead of "5 days 13 hours ago".
218 * (T220163) Added SpecialMuteModifyFormFields hook to allow extensions
219 to add fields to Special:Mute.
220 * (T100896) Skin authors can define custom OOUI themes using OOUIThemePaths.
221 See <https://www.mediawiki.org/wiki/OOUI/Themes> for details.
222 * (T229035) The GetUserBlock hook was added. Use this instead of
223 GetBlockedStatus.
224 * ObjectFactory is available as a service. When used as a service, the object
225 specs can now specify needed DI services.
226 * (T222388) Special pages can now be specified as an ObjectFactory spec,
227 allowing the construction of special pages that require services to be
228 injected in their constructor.
229 * (T222388) API modules can now be specified as an ObjectFactory spec,
230 allowing the construction of modules that require services to be injected
231 in their constructor.
232 * (T117736) The function signature of SpecialContributions::getForm::filters
233 has changed. It now expects definitions of additional filter fields as array
234 rather than string.
235
236 === External library changes in 1.34 ===
237
238 ==== Changed external libraries ====
239 * Updated Mustache from 1.0.0 to v3.0.1.
240 * Updated OOUI from v0.31.3 to v0.34.0.
241 * Updated OOjs from v2.2.2 to v3.0.0.
242 * Updated composer/semver from 1.4.2 to 1.5.0.
243 * Updated composer/spdx-licenses from 1.4.0 to 1.5.1 (dev-only).
244 * Updated mediawiki/codesniffer from 25.0.0 to 28.0.0 (dev-only).
245 * Updated cssjanus/cssjanus from 1.2.1 to 1.3.0.
246 * Updated wikimedia/at-ease from 1.2.0 to 2.0.0.
247 * Updated wikimedia/remex-html from 2.0.1 to 2.1.0.
248 * Updated monolog/monolog from 1.22.1 to 1.24.0 (dev-only).
249 * Updated wikimedia/object-factory from 1.0.0 to 2.1.0.
250 * Updated wikimedia/timestamp from 2.2.0 to 3.0.0.
251 * Updated wikimedia/xmp-reader from 0.6.2 to 0.6.3.
252 * Updated mediawiki/mediawiki-phan-config from 0.6.0 to 0.6.1 (dev-only).
253 * Updated wikimedia/avro from 1.8.0 to 1.9.0 (dev-only).
254
255 ==== Removed external libraries ====
256 * The jquery.async module, deprecated in 1.33, was removed.
257
258 === Bug fixes in 1.34 ===
259 * (T222529) If a log entry or page revision is recorded in the database with an
260 empty username, attempting to display it will log an error and return a "no
261 username available" to the user instead of silently displaying nothing or
262 invalid links.
263
264 === Action API changes in 1.34 ===
265 * The 'recenteditcount' response property from action=query list=allusers,
266 deprecated in 1.25, has been removed.
267 * (T60993) action=query list=filearchive, list=alldeletedrevisions and
268 prop=deletedrevisions no longer require the 'deletedhistory' user right.
269 * In the response to queries that use 'prop=imageinfo', entries for
270 non-existing files (indicated by the 'filemissing' field) now omit the
271 following fields, since they are meaningless in this context:
272 'timestamp', 'userhidden', 'user', 'userid', 'anon', 'size', 'width',
273 'height', 'pagecount', 'duration', 'commenthidden', 'parsedcomment',
274 'comment', 'thumburl', 'thumbwidth', 'thumbheight', 'thumbmime',
275 'thumberror', 'url', 'sha1', 'metadata', 'extmetadata', 'commonmetadata',
276 'mime', 'mediadtype', 'bitdepth'.
277 Clients that process these fields should first check if 'filemissing' is
278 set. Fields that are supported even if the file is missing include:
279 'canonicaltitle', 'archivename' (deleted files only), 'descriptionurl',
280 'descriptionshorturl'.
281 * The 'blockexpiry' result property in list=users and list=allusers will now be
282 returned in the same format used by the rest of the API: ISO 8601 for
283 expiring blocks, and "infinite" for non-expiring blocks.
284
285 === Action API internal changes in 1.34 ===
286 * The exception thrown in ApiModuleManager::getModule has been changed
287 from an MWException to an UnexpectedValueException, thrown by ObjectFactory.
288 ApiModuleManager::getModule now also throws InvalidArgumentExceptions when
289 ObjectFactory is presented with an invalid spec or incorrectly constructed
290 objects.
291 * Added ApiQueryBlockInfoTrait.
292
293 === Languages updated in 1.34 ===
294 MediaWiki supports over 350 languages. Many localisations are updated regularly.
295 Below only new and removed languages are listed, as well as changes to languages
296 because of Phabricator reports.
297
298 * (T152908) Added language support for N'Ko (nqo).
299
300 === Breaking changes in 1.34 ===
301 * The global functions wfSuppressWarnings and wfRestoreWarnings, deprecated in
302 1.26, have been removed. Use Wikimedia\AtEase\AtEase::suppressWarnings() and
303 Wikimedia\AtEase\AtEase::restoreWarnings() directly.
304 * Preferences class, deprecated in 1.31, has been removed.
305 * The following parts of code, deprecated in 1.32, were removed in favor of
306 built-in PHP functions:
307 * CryptRand class
308 * CryptRand service
309 * Functions of the MWCryptRand class: singleton(), wasStrong() and generate().
310 * Various Special Page PHP Classes were renamed (mostly casing changes):
311 * SpecialAncientpages => SpecialAncientPages
312 * SpecialConfirmemail => SpecialConfirmEmail
313 * SpecialDeadendpages => SpecialDeadendPages
314 * SpecialFewestrevisions => SpecialFewestRevisions
315 * SpecialListredirects => SpecialListRedirects
316 * SpecialLonelypages => SpecialLonelyPages
317 * SpecialLongpages => SpecialLongPages
318 * SpecialMIMEsearch => SpecialMIMESearch
319 * SpecialMostcategories => SpecialMostCategories
320 * SpecialMostinterwikis => SpecialMostInterwikis
321 * SpecialMostlinked => SpecialMostLinked
322 * SpecialMostlinkedcategories => SpecialMostLinkedCategories
323 * SpecialMostlinkedtemplates => SpecialMostLinkedTemplates
324 * SpecialMostrevisions => SpecialMostRevisions
325 * SpecialNewimages => SpecialNewFiles
326 * SpecialShortpages => SpecialShortPages
327 * SpecialUncategorizedcategories => SpecialUncategorizedCategories
328 * SpecialUncategorizedimages => SpecialUncategorizedImages
329 * SpecialUncategorizedpages => SpecialUncategorizedPages
330 * SpecialUncategorizedtemplates => SpecialUncategorizedTemplates
331 * SpecialUnusedcategories => SpecialUnusedCategories
332 * SpecialUnusedimages => SpecialUnusedImages
333 * SpecialUnusedtemplates => SpecialUnusedTemplates
334 * SpecialUnwatchedpages => SpecialUnwatchedPages
335 * SpecialWantedcategories => SpecialWantedCategories
336 * SpecialWantedtemplates => SpecialWantedTemplates
337 * SpecialWithoutinterwiki => SpecialWithoutInterwiki
338 * Language::setCode, deprecated in 1.32, was removed. Use Language::factory to
339 create a new Language object with a different language code.
340 * MWNamespace::clearCaches() has been removed. So has the $rebuild parameter
341 to MWNamespace::getCanonicalNamespaces(), which was deprecated since 1.31.
342 Instead, reset services, such as by calling $this->overrideMwServices() (if
343 your test extends MediaWikiTestCase). Services will generally not pick up
344 configuration changes from after they were created, so you must reset
345 services after any configuration change. Even if your code works now, it is
346 likely to break in future versions as more code is moved to services.
347 * The ill-defined "DatabaseOraclePostInit" hook has been removed.
348 * PreferencesFormLegacy and PreferencesForm classes, deprecated in 1.32, have
349 been removed.
350 * ObjectFactory class, deprecated in 1.31, has been removed.
351 * HWLDFWordAccumudlator class, deprecated in 1.28, has been removed.
352 * XMPInfo, XMPReader and XMPValidate, deprecated in 1.32, have been removed.
353 * The RedirectSpecialPage::execute method could sometimes return a Title object.
354 This behavior was removed, and the method now matches the parent signature
355 (SpecialPage::execute) which is to return HTML string or void.
356 To obtain the destination title, use RedirectSpecialPage::getRedirect.
357 * The 'recenteditcount' response property from action API action=query
358 list=allusers, deprecated in 1.25, has been removed.
359 * SearchEngine::userNamespaces(), SearchEngine::namespacesAsText(),
360 SearchEngine::create(), SearchEngine::getSearchTypes() and
361 SearchEngine::getNearMatch(), methods deprecated in 1.27, have been removed.
362 * FileRepo::streamFile(), deprecated in 1.26, has been removed.
363 * User::randomPassword() method, deprecated in 1.27, have been removed.
364 * MWNamespace::canTalk(), deprecated in 1.30, have been removed.
365 * Parser class property $mUniqPrefix, deprecated in 1.26, has been removed.
366 * wfArrayFilter() and wfArrayFilterByKey(), deprecated in 1.32, have been
367 removed.
368 * wfMakeUrlIndexes() function, deprecated in 1.33, have been removed.
369 * Method signatures in WatchedItemQueryServiceExtension have changed from taking
370 User objects to taking UserIdentity objects. Extensions implementing this
371 interface need to be changed accordingly.
372 * User::getGroupPage() and ::makeGroupLinkHTML(), deprecated in 1.29, have been
373 removed. Use UserGroupMembership::getGroupPage and ::getLink instead.
374 * User::makeGroupLinkWiki(), deprecated in 1.29, has been removed. Use
375 UserGroupMembership::getLink() instead.
376 * SavepointPostgres, deprecated in 1.31, has been removed.
377 * OutputPage::enableSectionEditLinks(), OutputPage::sectionEditLinksEnabled(),
378 ParserOptions::getEditSection(), ParserOptions::setEditSection(), and
379 ParserOutput::getEditSectionTokens, ::getTOCEnabled, ::setEditSectionTokens,
380 and ::setTOCEnabled, deprecated in 1.31, have been removed.
381 * EditPage::safeUnicodeInput() and ::safeUnicodeOutput(), deprecated in 1.30,
382 have been removed.
383 * Four methods in OutputPage, deprecated in 1.32, have been removed. You should
384 use OutputPage::showFatalError or throw a FatalError instead. The methods are
385 ::showFileCopyError(), ::showFileRenameError(), ::showFileDeleteError(), and
386 ::showFileNotFoundError().
387 * ApiBase::truncateArray(), deprecated in 1.32, has been removed.
388 * IcuCollation::getICUVersion(), deprecated in 1.32, has been removed. Use PHP's
389 INTL_ICU_VERSION constant directly.
390 * HTMLForm::setSubmitProgressive(), deprecated in 1.32, has been removed.
391 * ResourceLoaderStartUpModules::getStartupModules() and ::getLegacyModules(),
392 both deprecated in 1.32, have been removed.
393 * BaseTemplate::msgHtml() and QuickTemplate::msgHtml(), deprecated in 1.32, have
394 been removed. Use ->msg() or ->getMsg() instead.
395 * WatchAction::getUnwatchToken(), deprecated in 1.32, has been removed. Instead,
396 use WatchAction::getWatchToken() with action 'unwatch' directly.
397 * Language::initEncoding(), ::recodeForEdit(), and recodeInput(), deprecated in
398 1.28, have been removed.
399 * PageArchive::getTextFromRow(), ::listAllPages(), and ::getLastRevisionText(),
400 deprecated in 1.32, have been removed.
401 * OutputPage::getModuleScripts(), ParserOutput::getModuleScripts(), deprecated
402 in 1.33, have been removed.
403 * User::getPasswordValidity(), deprecated in 1.33, has been removed.
404 * ApiQueryBase::prepareUrlQuerySearchString(), deprecated in 1.33, has been
405 removed.
406 * ChangeTags::purgeTagUsageCache(), deprecated in 1.33, has been removed.
407 * JobQueueGroup::pushLazyJobs(), deprecated in 1.33, has been removed.
408 * MediaWikiTestCase::stashMwGlobals(), deprecated in 1.32, has been removed.
409 * SearchEngine::transformSearchTerm(), deprecated in 1.32, has been removed.
410 * The Block typehint only refers to blocks stored in the database. It should be
411 updated to AbstractBlock in cases where any type of block could be expected.
412 * FileRepoStatus, deprecated in 1.25, has been removed.
413 * The LegacyHookPreAuthenticationProvider class, deprecated since its creation
414 in 1.27, has been removed.
415 * IP::isValidBlock(), deprecated in 1.30, has been removed.
416 * WikiPage::prepareContentForEdit now doesn't accept an integer for $revision,
417 was deprecated in 1.25.
418 * The jquery.byteLength module, deprecated in 1.31, was removed.
419 Use the mediawiki.String module instead.
420 * mw.language.specialCharacters, deprecated in 1.33, has been removed.
421 Use require( 'mediawiki.language.specialCharacters' ) instead.
422 * The jquery.colorUtil module was removed. Use jquery.color instead.
423 * The jquery.checkboxShiftClick module was removed. The functionality
424 is provided by mediawiki.page.ready instead (T232688).
425 * The 'jquery.accessKeyLabel' module has been removed. This jQuery
426 plugin now ships as part of the 'mediawiki.util' module bundle.
427 * EditPage::submit(), deprecated in 1.29, has been removed. Use $this->edit()
428 directly.
429 * HTMLForm::getErrors(), deprecated in 1.28, has been removed. Use
430 getErrorsOrWarnings() instead.
431 * SpecialPage::getTitle(), deprecated in 1.23, has been removed. Use
432 SpecialPage::getPageTitle() instead.
433 * jquery.ui.effect-bounce, jquery.ui.effect-explode, jquery.ui.effect-fold
434 jquery.ui.effect-pulsate, jquery.ui.effect-slide, jquery.ui.effect-transfer,
435 which are no longer used, have now been removed.
436 * SpecialEmailUser::validateTarget(), ::getTarget() without a sender/user
437 specified, deprecated in 1.30, have been removed.
438 * BufferingStatsdDataFactory::getBuffer(), deprecated in 1.30, has been removed.
439 * The constant DB_SLAVE, deprecated in 1.28, has been removed. Use DB_REPLICA.
440 * The constants NS_IMAGE and NS_IMAGE_TALK, deprecated in 1.14, have been
441 removed. Use NS_FILE and NS_FILE_TALK respectively.
442 * Replacer, DoubleReplacer, HashtableReplacer and RegexlikeReplacer
443 (deprecated in 1.32) have been removed. Closures should be used instead.
444 * OutputPage::addWikiText(), ::addWikiTextWithTitle(), ::addWikiTextTitleTidy(),
445 ::addWikiTextTidy(), ::addWikiTextTitle(), deprecated in 1.32, have been
446 removed.
447 * The $wgUseKeyHeader configuration option and the OutputPage::getKeyHeader()
448 method, deprecated in 1.32, have been removed.
449 * WebInstallerOutput::addWikiText(), deprecated in 1.32, has been removed.
450 * Parser::fetchFile(), deprecated in 1.32, has been removed. Use the method
451 Parser::fetchFileAndTitle() instead.
452 * The global function wfBCP47, deprecated in 1.31, has been removed.
453 * wfCountDown() function, deprecated in 1.31, has been removed. Use
454 \Maintenance::countDown() method instead.
455 * OutputPage::wrapWikiMsg() no longer accepts an options parameter. This was
456 deprecated since 1.20.
457 * Skin::outputPage() no longer accepts a context. This was deprecated in 1.20.
458 * Linker::link() no longer accepts a string for the query array, as was
459 deprecated in 1.20.
460 * PrefixSearch::titleSearch(), deprecated in 1.23, has been removed. Use the
461 SearchEngine::defaultPrefixSearch or ::completionSearch() methods instead.
462 * The UserRights hook, deprecated in 1.26, has been removed. Instead, use the
463 UserGroupsChanged hook.
464 * Skin::getDefaultInstance(), deprecated in 1.27, has been removed. Get the
465 instance from MediaWikiServices instead.
466 * The UserLoadFromSession hook, deprecated in 1.27, has been removed.
467 * The wfResetSessionID global function, deprecated in 1.27, has been removed.
468 Use MediaWiki\Session\SessionManager instead.
469 * The wfGetLBFactory global function, deprecated in 1.27, has been removed.
470 Use MediaWikiServices::getInstance()->getDBLoadBalancerFactory().
471 * The internal method OutputPage->addScriptFile() will no longer silently drop
472 calls that use an invalid path (i.e., something other than an absolute path,
473 protocol-relative URL, or full scheme URL), and will instead pass them to the
474 client where they will likely 404. This usage was deprecated in 1.24.
475 * Database::reportConnectionError, deprecated in 1.32, has been removed.
476 * APIEditBeforeSave hook, deprecated in 1.28, has been removed. Please see
477 EditFilterMergedContent hook for an alternative way to use this feature.
478 * API module methods getDescription(), getParamDescription(), & getExamples(),
479 all deprecated in 1.25 and ignored, have been removed.
480 * The API module method getDescriptionMessage(), deprecated in 1.30, has been
481 removed.
482 * The JavaScript global variable wgLoadScript has been removed. Use
483 mw.util.wikiScript( 'load' ) instead.
484 * ResourceLoader no longer creates the 'mw.legacy' placeholder object. It has
485 been unused since 1.16 and was deprecated in 1.22. To deprecate a property
486 in JavaScript, use mw.log.deprecate() instead.
487 * The 'user.groups' module, deprecated in 1.28, was removed.
488 Use the 'user' module instead.
489 * The ResourceLoaderContext::expandModuleNames method, deprecated in 1.33, was
490 removed. Use ResourceLoader::expandModuleNames instead.
491 * The ability to override User::$mRights has been removed. Use
492 PermissionManager::addTemporaryUserRights() instead.
493 * Previously, when iterating ResultWrapper with foreach() or a similar
494 construct, the range of the index was 1..numRows. This has been fixed to be
495 0..(numRows-1).
496 * The ChangePasswordForm hook, deprecated in 1.27, has been removed. Use the
497 AuthChangeFormFields hook or security levels instead.
498 * WikiMap::getWikiIdFromDomain(), deprecated in 1.33, has been removed.
499 Use WikiMap::getWikiIdFromDbDomain() instead.
500 * The config variables $wgHtml5, $wgJsMimeType, and $wgXhtmlDefaultNamespace,
501 which were deprecated and ignored by core since 1.22, are no longer set to any
502 value, and SkinTemplate no longer emits a 'jsmimetype' key. Any extensions not
503 updated since 2013 to cope with this deprecation may now break.
504 * (T222637) Passing ResourceLoaderModule objects to ResourceLoader::register()
505 or $wgResourceModules is no longer supported.
506 Use the 'class' or 'factory' option of the array format instead.
507 * The parameter $lang of the functions generateTOC and tocList in Linker and
508 DummyLinker must be in type Language when present. Other types are
509 deprecated since 1.33.
510 * The static properties mw.Api.errors and mw.Api.warnings, deprecated in 1.29,
511 have been removed.
512 * ParserOption::getSpeculativeRevIdCallback(), deprecated in 1.28, has been
513 removed.
514 * The UploadVerification hook, deprecated in 1.28, has been removed. Instead,
515 use the UploadVerifyFile hook.
516 * UploadBase:: and UploadFromChunks::stashFileGetKey() and stashSession(),
517 deprecated in 1.28, have been removed. Instead, please use the getFileKey()
518 method on the response from doStashFile().
519 * LBFactory::setDomainPrefix() and LoadBalancer::setDomainPrefix(), deprecated
520 in 1.33, have been removed. Use setLocalDomainPrefix() instead.
521 * IDatabase::implicitGroupby(), deprecated in 1.30, has been removed.
522 * IDatabase::doneWrites(), deprecated in 1.31, has been removed.
523 Use IDatabase::lastDoneWrites() instead.
524 * Database::reportConnectionError(), deprecated in 1.32, has been removed.
525 * LoadBalancer::laggedSlaveUsed(), deprecated in 1.28, has been removed.
526 Use LoadBalancer::laggedReplicaUsed() instead.
527 * Database::getProperty(), deprecated in 1.28, has been removed.
528 * IDatabase::getWikiId(), deprecated in 1.30, has been removed.
529 Use IDatabase::getDomainID() instead.
530 * (T191231) Support for using Oracle or MSSQL as database backends has been
531 dropped.
532 * MessageCache::destroyInstance() has been removed. Instead, call
533 MediaWikiTestCase::resetServices().
534 * SearchResult protected field $searchEngine is removed and no longer
535 initialized after calling SearchResult::initFromTitle().
536 * The UserIsBlockedFrom hook is only called if a block is found first, and
537 should only be used to unblock a blocked user.
538 * Parameters for index.php from PATH_INFO, such as the title, are no longer
539 written to $_GET.
540 * The selectFields() methods on classes LocalFile, ArchivedFile, OldLocalFile,
541 DatabaseBlock, and RecentChange, deprecated in 1.31, have been removed. Use
542 the corresponding getQueryInfo() methods instead.
543 * The following methods on Revision, deprecated since 1.31, have been removed.
544 Use RevisionStore::getQueryInfo() or RevisionStore::getArchiveQueryInfo()
545 instead.
546 * Revision::userJoinCond()
547 * Revision::pageJoinCond()
548 * Revision::selectFields()
549 * Revision::selectArchiveFields()
550 * Revision::selectTextFields()
551 * Revision::selectPageFields()
552 * Revision::selectUserFields()
553 * User::setNewpassword(), deprecated in 1.27 has been removed.
554 * The ObjectCache::getMainWANInstance and ObjectCache::getMainStashInstance
555 functions, deprecated since 1.28, have been removed.
556 * Language::$dataCache has been removed (without prior deprecation, for
557 practical reasons). Use MediaWikiServices instead to get a LocalisationCache.
558
559 === Deprecations in 1.34 ===
560 * The MWNamespace class is deprecated. Use NamespaceInfo.
561 * ExtensionRegistry->load() is deprecated, as it breaks dependency checking.
562 Instead, use ->queue().
563 * User::isBlocked() is deprecated since it does not tell you if the user is
564 blocked from editing a particular page. Use User::getBlock() or
565 PermissionManager::isBlockedFrom() or PermissionManager::userCan() instead.
566 * User::isLocallyBlockedProxy and User::inDnsBlacklist are deprecated and moved
567 to the BlockManager as private helper methods.
568 * User::isDnsBlacklisted is deprecated. Use BlockManager::isDnsBlacklisted
569 instead.
570 * The Config argument to ChangesListSpecialPage::checkStructuredFilterUiEnabled
571 is deprecated. Pass only the User argument.
572 * WatchedItem::getUser is deprecated. Use getUserIdentity.
573 * Passing a Title as the first parameter to the getTimestampById method of
574 RevisionStore is deprecated. Omit it, passing only the remaining parameters.
575 * Title::getPreviousRevisionId and Title::getNextRevisionId are deprecated. Use
576 RevisionLookup::getPreviousRevision and RevisionLookup::getNextRevision.
577 * The Title parameter to RevisionLookup::getPreviousRevision and
578 RevisionLookup::getNextRevision is deprecated and should be omitted.
579 * MWHttpRequest::factory is deprecated. Use HttpRequestFactory.
580 * The Http class is deprecated. For the request, get, and post methods, use
581 HttpRequestFactory. For isValidURI, use MWHttpRequest::isValidURI. For
582 getProxy, use (string)$wgHTTPProxy. For createMultiClient, construct a
583 MultiHttpClient directly.
584 * Http::$httpEngine is deprecated and has no replacement. The default 'guzzle'
585 engine will eventually be made the only engine for HTTP requests.
586 * RepoGroup::singleton(), RepoGroup::destroySingleton(),
587 RepoGroup::setSingleton(), wfFindFile(), and wfLocalFile() are all
588 deprecated. Use MediaWikiServices instead.
589 * The getSubjectPage, getTalkPage, and getOtherPage of Title are deprecated.
590 Use NamespaceInfo's getSubjectPage, getTalkPage, and getAssociatedPage.
591 * MWMessagePack class, no longer used, has been deprecated in 1.34.
592 * The Block class is separated into DatabaseBlock (for blocks stored in the
593 database), and SystemBlock (for temporary blocks created by the system).
594 SystemBlock should be used when creating any temporary blocks. Block is
595 a deprecated alias for DatabaseBlock.
596 * Parser::$mConf is deprecated. It will be removed entirely in a later version.
597 Some context can be found at T224165.
598 * Constructing Parser directly is deprecated. Obtain one from ParserFactory.
599 * Title::moveSubpages is deprecated. Use MovePage::moveSubpages or
600 MovePage::moveSubpagesIfAllowed.
601 * The MWNamespace class is deprecated. Use MediaWikiServices::getNamespaceInfo.
602 * (T62260) Hard deprecate Language::getExtraUserToggles() method.
603 * Language::viewPrevNext function is deprecated, use
604 PrevNextNavigationRenderer::buildPrevNextNavigation instead
605 * User::trackBlockWithCookie and DatabaseBlock::clearCookie are deprecated. Use
606 BlockManager::trackBlockWithCookie and BlockManager::clearCookie instead.
607 * DatabaseBlock::setCookie, DatabaseBlock::getCookieValue,
608 DatabaseBlock::getIdFromCookieValue and AbstractBlock::shouldTrackWithCookie
609 are moved to internal helper methods for BlockManager::trackBlockWithCookie.
610 * ResourceLoaderContext::getConfig and ResourceLoaderContext::getLogger have
611 been deprecated. Inside ResourceLoaderModule subclasses, use the local methods
612 instead. Elsewhere, use the methods from the ResourceLoader class.
613 * The Profiler::setTemplated and Profiler::getTemplated methods have been
614 deprecated. Use Profiler::setAllowOutput and Profiler::getAllowOutput
615 instead.
616 * The ProfilerOutputDb class, 'profiling' table, and profileinfo.php entry
617 point had been deprecated (T231366).
618 * The Preprocessor_DOM implementation has been deprecated. It will be
619 removed in a future release. Use the Preprocessor_Hash implementation
620 instead.
621 * Sanitizer::attributeWhitelist() and Sanitizer::setupAttributeWhitelist()
622 have been deprecated; they will be made private in the future.
623 * SearchResult::termMatches() method is deprecated. It was unreliable because
624 only populated by few search engine implementations. Use
625 SqlSearchResult::getTermMatches() if really needed.
626 * SearchResult::getTextSnippet( $terms ) the $terms param is being deprecated
627 and should no longer be passed. Search engine implemenations should be
628 responsible for carrying relevant information needed for highlighting with
629 their own SearchResultSet/SearchResult sub-classes.
630 * SearchResultSet::free() method is deprecated.
631 * SearchEngine::$searchTerms protected field is deprecated. Moved to
632 SearchDatabase.
633 * The use of the $terms param in the ShowSearchHit and ShowSearchHitTitle
634 hooks is highly discouraged as it's only populated by SearchDatabase search
635 engines.
636 * Skin::escapeSearchLink() is deprecated. Use Skin::getSearchLink() or the skin
637 template option 'searchaction' instead.
638 * Skin::getRevisionId() and Skin::isRevisionCurrent() have been deprecated.
639 Use OutputPage::getRevisionId() and OutputPage::isRevisionCurrent() instead.
640 * LoadBalancer::haveIndex() and LoadBalancer::isNonZeroLoad() have
641 been deprecated.
642 * FileBackend::getWikiId() has been deprecated.
643 Use FileBackend::getDomainId() instead.
644 * User::getRights() and User::$mRights have been deprecated. Use
645 PermissionManager::getUserPermissions() instead.
646 * The LocalisationCacheRecache hook no longer allows purging of message blobs
647 to be prevented. Modifying the $purgeBlobs parameter now has no effect.
648 * SVGMetadataExtractor::getMetadata has been deprecated. Instead, you should
649 use SVGReader->getMetadata() directly.
650 * The following public properties on AbstractBlock are deprecated: $mReason,
651 $mTimestamp, $mExpiry, $mHideName. Use the getters/setters instead.
652 * The following public properties on DatabaseBlock are deprecated: $mAuto,
653 $mParentBlockId. To check for an autoblock use DatabaseBlock::getType; to
654 check for the parent ID, use DatabaseBlock::getParentBlockId.
655 * SearchEngine::userHighlightPrefs() is deprecated, simply stop passing
656 $contextlines and $contextchars to the SearchHighlighter methods, they will
657 use proper defaults defined in SearchHighlighter::DEFAULT_CONTEXT_LINES and
658 DEFAULT_CONTEXT_CHARS.
659 * SearchUpdate constructor: passing a string as the title param and or a boolean
660 or a string as the content will produce a deprecation warning.
661 * SearchEngine::getTextFromContent() is deprecated, use getTextForSearchIndex()
662 directly from the Content object.
663 * SearchEngine::textAlreadyUpdatedForIndex() is deprecated, given the
664 deprecation above this method is no longer needed/called and should not be
665 implemented by SearchEngine implementation.
666 * IDatabase::bufferResults() has been deprecated. Use query batching instead.
667 * MessageCache::singleton() is deprecated. Use
668 MediaWikiServices::getMessageCache().
669 * ObjectCache::getWANInstance() is deprecated. Use
670 MediaWikiServices::getMainWANObjectCache() instead.
671 * ObjectCache::newWANCacheFromParams() is deprecated. Use
672 MediaWikiServices::getMainWANObjectCache() instead.
673 * Constructing MovePage directly is deprecated. Use MovePageFactory.
674 * TempFSFile::factory() has been deprecated. Use TempFSFileFactory instead.
675 * wfIsBadImage() is deprecated. Use the BadFileLookup service instead.
676 * Building a new SearchResult is hard-deprecated, always call
677 SearchResult::newFromTitle(). This class is being refactored into an abstract
678 class. If you extend this class please be sure to override all its methods
679 or extend RevisionSearchResult.
680 * Skin::getSkinNameMessages() is deprecated and no longer used.
681 * The mediawiki.RegExp module is deprecated; use mw.util.escapeRegExp() instead.
682 * Specifying a SpecialPage object for the list of special pages (either through
683 the SpecialPage_initList hook or by adding to $wgSpecialPages) is now
684 deprecated.
685 * The 'jquery.tabIndex' module is deprecated.
686 * WebInstaller::getInfoBox(), getWarningBox() and getErrorBox() are deprecated.
687 Use Html::errorBox() or Html::warningBox() instead.
688 * Use of ActorMigration with 'ar_user', 'img_user', 'oi_user', 'fa_user',
689 'rc_user', 'log_user', and 'ipb_by' is deprecated. Queries should be adjusted
690 to use the corresponding actor fields directly. Note that use with
691 'rev_user' is *not* deprecated at this time.
692 * Specifying both the class and factory parameters for
693 ApiModuleManager::addModule is now deprecated. The ObjectFactory spec should
694 be used instead.
695 * The UserIsHidden hook is deprecated. Use GetUserBlock instead, and add a
696 system block that hides the user.
697 * The GetBlockedStatus hook is deprecated. Use GetUserBlock instead, to add or
698 remove a block.
699 * $wgContentHandlerUseDB is deprecated and should always be true.
700 * StreamFile::send404Message() and StreamFile::parseRange() are now deprecated.
701 Use HTTPFileStreamer::send404Message() and HTTPFileStreamer::parseRange()
702 respectively instead.
703 * Global variable $wgSysopEmailBans is deprecated; to allow sysops to ban
704 users from sending emails, use
705 $wgGroupPermissions['sysop']['blockemail'] = true;
706 * ApiQueryBase::showHiddenUsersAddBlockInfo() is deprecated. Use
707 ApiQueryBlockInfoTrait instead.
708 * PasswordReset is now a service, its direct instantiation is deprecated.
709 * RESTBagOStuff users should specify either "JSON" or "PHP" serialization type.
710 * The global function wfIsHHVM() is deprecated and will now always return false
711 regardless of the runtime environment. This is part of the continuing work to
712 remove HHVM support from MediaWiki, which started in MediaWiki 1.31.
713 * Language::getLocalisationCache() is deprecated. Use MediaWikiServices
714 instead.
715 * The following Language methods are deprecated: isSupportedLanguage,
716 isValidCode, isValidBuiltInCode, isKnownLanguageTag, fetchLanguageNames,
717 fetchLanguageName, getFileName, getMessagesFileName, getJsonMessagesFileName.
718 Use the new LanguageNameUtils class instead. (Note that fetchLanguageName(s)
719 are called getLanguageName(s) in the new class.)
720 * Using the Parser without initializing its $mTitle property to non-null has
721 been deprecated. In a future release Parser::getTitle() will throw a
722 TypeError if $mTitle is uninitialized.
723 * A number of public methods of Parser were exposed only for historical
724 reasons and have been deprecated: doMagicLinks, doDoubleUnderscore,
725 doHeadings, doAllQuotes, replaceExternalLinks, replaceInternalLinks,
726 replaceInternalLinks2, getVariableValue, initialiseVariables, formatHeadings,
727 testPst, testPreprocess, testSrvus, areSubpagesAllowed, maybeDoSubpageLink,
728 splitWhitespace, createAssocArgs, armorLinks, makeKnownLinkHolder,
729 getImageParams, parseLinkParameter, stripAltText, replaceLinkHolders,
730 replaceLinkHoldersText, armorLinks, makeKnownLinkHolder, getImageParams,
731 parseLinkParameter, stripAltText.
732
733 === Other changes in 1.34 ===
734 * Added option to specify "Various authors" as author in extension credits using
735 "..." as the only author name. If the "author" array contains more than one
736 entry and "..." is one of the entries in the array, "..." will be parsed as
737 "others" (version-poweredby-others i18n message) like previously.
738 * (T232563) Browser support ("Grade C") for Internet Explorer 6 and 7
739 was discontinued. Basic content and security features may no longer
740 work correctly in these browsers.
741
742 == Compatibility ==
743 MediaWiki 1.34 requires PHP 7.2.9 or later, and the following PHP extensions:
744
745 * ctype
746 * dom
747 * fileinfo
748 * iconv
749 * json
750 * mbstring
751 * xml
752
753 MySQL/MariaDB is the recommended DBMS. PostgreSQL or SQLite can also be used,
754 but support for them is somewhat less mature.
755
756 The supported versions are:
757
758 * MySQL 5.5.8 or later
759 * PostgreSQL 9.2 or later
760 * SQLite 3.8.0 or later
761
762 == Online documentation ==
763 Documentation for both end-users and site administrators is available on
764 MediaWiki.org, and is covered under the GNU Free Documentation License (except
765 for pages that explicitly state that their contents are in the public domain):
766
767 https://www.mediawiki.org/wiki/Special:MyLanguage/Documentation
768
769 == Mailing list ==
770 A mailing list is available for MediaWiki user support and discussion:
771
772 https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
773
774 A low-traffic announcements-only list is also available:
775
776 https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
777
778 It's highly recommended that you sign up for one of these lists if you're
779 going to run a public MediaWiki, so you can be notified of security fixes.
780
781 == IRC help ==
782 There's usually someone online in #mediawiki on irc.freenode.net.