api: Update QueryFilearchive to provide information to everyone
[lhc/web/wiklou.git] / RELEASE-NOTES-1.34
1 = MediaWiki 1.34 =
2
3 == MediaWiki 1.34.0-PRERELEASE ==
4
5 THIS IS NOT A RELEASE YET
6
7 MediaWiki 1.34 is an alpha-quality development branch, and is not recommended
8 for use in production.
9
10 == Upgrading notes for 1.34 ==
11 1.34 has several database changes since 1.33, and will not work without schema
12 updates. Note that due to changes to some very large tables like the revision
13 table, the schema update may take quite long (minutes on a medium sized site,
14 many hours on a large site).
15
16 Don't forget to always back up your database before upgrading!
17
18 See the file UPGRADE for more detailed upgrade instructions, including
19 important information when upgrading from versions prior to 1.11.
20
21 Some specific notes for MediaWiki 1.34 upgrades are below:
22
23 * …
24
25 For notes on 1.33.x and older releases, see HISTORY.
26
27 === Configuration changes for system administrators in 1.34 ===
28
29 In an effort to enforce best practices for passwords, MediaWiki will now warn
30 users, and suggest that they change their password, if it is in the list of
31 100,000 commonly used passwords that are considered bad passwords. If you want
32 to disable this for your users, please add the following to your local settings:
33
34 $wgPasswordPolicy['policies']['default']['PasswordNotInLargeBlacklist'] = false;
35
36 ==== New configuration ====
37 * $wgAllowExternalReqID (T201409) - This configuration setting controls whether
38 Mediawiki accepts the request ID set by the incoming request via the
39 `X-Request-Id` header. If set to `true`, that value will be used throughout
40 the code as the request identificator. Otherwise, the sent header will be
41 ignored and the request ID will either be taken from Apache's mod_unique
42 module or will be generated by Mediawiki itself (depending on the set-up).
43 * $wgEnableSpecialMute (T218265) - This configuration controls whether
44 Special:Mute is available and whether to include a link to it on emails
45 originating from Special:Email.
46 * editmyuserjsredirect user right – users without this right now cannot edit JS
47 redirects in their userspace unless the target of the redirect is also in
48 their userspace. By default, this right is given to everyone.
49 * (T226733) Add rate limiter to Special:ConfirmEmail.
50
51 ==== Changed configuration ====
52 * $wgUseCdn, $wgCdnServers, $wgCdnServersNoPurge, and $wgCdnMaxAge – These four
53 CDN-related config variables have been renamed from being specific to Squid –
54 they were previously $wgUseSquid, $wgSquidServers, $wgSquidServersNoPurge, and
55 $wgSquidMaxage respectively. This aligns them with the related existing
56 variable $wgCdnMaxageLagged. The previous configuration variable names are
57 deprecated, but will be used as the fall back if they are still set.
58 Note that wgSquidPurgeUseHostHeader has not been renamed, as it is deprecated.
59 * (T27707) File type checks for image uploads have been relaxed to allow files
60 containing some HTML markup in metadata. As a result, the $wgAllowTitlesInSVG
61 setting is no longer applied and is now always true. Note that MSIE 7 may
62 still be able to misinterpret certain malformed PNG files as HTML.
63 * Introduced $wgVerifyMimeTypeIE to allow disabling the MSIE 6/7 file type
64 detection heuristic on upload, which is more conservative than the checks
65 that were changed above.
66 * $wgSkipSkin — Setting this instead of $wgSkipSkins, deprecated in 1.23, is now
67 hard-deprecated.
68 * $wgLocalInterwiki — Setting this instead of $wgLocalInterwikis, deprecated in
69 1.23, is now hard-deprecated.
70 * $wgProfileOnly — Setting this, deprecated in 1.23, is now hard-deprecated.
71 Instead, set the log file in $wgDebugLogGroups['profileoutput'].
72 * $wgProxyList — Setting this to an array with IP addresses in the array keys,
73 which was deprecated in 1.30, no longer works. Instead, $wgProxyList should be
74 an array with IP addresses as the values, or a string path to a file
75 containing one IP address per line.
76 * $wgCookieSetOnAutoblock and $wgCookieSetOnIpBlock are now enabled by default.
77 * …
78
79 ==== Removed configuration ====
80 * $wgWikiDiff2MovedParagraphDetectionCutoff — If you still want a custom change
81 size threshold, please specify in php.ini, using the configuration variable
82 wikidiff2.moved_paragraph_detection_cutoff.
83 * $wgDebugPrintHttpHeaders - The default of including HTTP headers in the
84 debug log channel is no longer configurable. The debug log itself remains
85 configurable via $wgDebugLogFile.
86 * $wgMsgCacheExpiry - The MessageCache uses 24 hours as the expiry for values
87 stored in WANObjectCache. This is no longer configurable.
88 * $wgPasswordSalt – This setting, used for migrating exceptionally old, insecure
89 password setups and deprecated since 1.24, is now removed.
90 * $wgDBOracleDRCP - If you must use persistent connections, set DBO_PERSISTENT
91 in the 'flags' field for servers in $wgDBServers (or $wgLBFactoryConf).
92 * $wgMemCachedDebug - Set the cache "debug" field in $wgObjectCaches instead.
93
94 === New user-facing features in 1.34 ===
95 * Special:Mute has been added as a quick way for users to block unwanted emails
96 from other users originating from Special:EmailUser.
97 * (T207577) Special:NewSection has been created as a shortcut to creating a new
98 section on a page. When linked to, its subpage is used as the target
99 ([[Special:NewSection/Test]] redirects to creating a new section in "Test").
100 Otherwise, it displays a basic interface to allow the end user to specify
101 the target manually.
102 * (T220447) Special:Contributions/newbies has been removed for performance and
103 usefulness reasons. Use Special:RecentChanges?userExpLevel=newcomer instead.
104 * Special:NewFiles/newbies has been removed for performance and usefulness
105 reasons. Use Special:RecentChanges?userExpLevel=newcomer&namespace=6 instead.
106
107 === New developer features in 1.34 ===
108 * The ImgAuthModifyHeaders hook was added to img_auth.php to allow modification
109 of headers in private wikis.
110 * Language::formatTimePeriod now supports the new 'avoidhours' option to output
111 strings like "5 days ago" instead of "5 days 13 hours ago".
112 * (T220163) Added SpecialMuteModifyFormFields hook to allow extensions
113 to add fields to Special:Mute.
114 * (T100896) Skin authors can define custom OOUI themes using OOUIThemePaths.
115 See <https://www.mediawiki.org/wiki/OOUI/Themes> for details.
116 * (T229035) The GetUserBlock hook was added. Use this instead of
117 GetBlockedStatus.
118 * ObjectFactory is available as a service. When used as a service, the object
119 specs can now specify needed DI services.
120
121 === External library changes in 1.34 ===
122
123 ==== New external libraries ====
124 * …
125
126 ==== Changed external libraries ====
127 * Updated Mustache from 1.0.0 to v3.0.1.
128 * Updated OOUI from v0.31.3 to v0.34.0.
129 * Updated OOjs from v2.2.2 to v3.0.0.
130 * Updated composer/semver from 1.4.2 to 1.5.0.
131 * Updated composer/spdx-licenses from 1.4.0 to 1.5.1 (dev-only).
132 * Updated mediawiki/codesniffer from 25.0.0 to 26.0.0 (dev-only).
133 * Updated cssjanus/cssjanus from 1.2.1 to 1.3.0.
134 * Updated wikimedia/at-ease from 1.2.0 to 2.0.0.
135 * Updated wikimedia/remex-html from 2.0.1 to 2.0.3.
136 * Updated monolog/monolog from 1.22.1 to 1.24.0 (dev-only).
137 * Updated wikimedia/object-factory from 1.0.0 to 2.1.0.
138 * Updated wikimedia/timestamp from 2.2.0 to 3.0.0.
139 * Updated wikimedia/xmp-reader from 0.6.2 to 0.6.3.
140 * Updated mediawiki/mediawiki-phan-config from 0.6.0 to 0.6.1 (dev-only).
141 * …
142
143 ==== Removed external libraries ====
144 * The jquery.async module, deprecated in 1.33, was removed.
145 * …
146
147 === Bug fixes in 1.34 ===
148 * (T222529) If a log entry or page revision is recorded in the database with an
149 empty username, attempting to display it will log an error and return a "no
150 username available" to the user instead of silently displaying nothing or
151 invalid links.
152
153 === Action API changes in 1.34 ===
154 * The 'recenteditcount' response property from action=query list=allusers,
155 deprecated in 1.25, has been removed.
156 * (T60993) action=query list=filearchive no longer requires the 'deletedhistory'
157 user right.
158
159 === Action API internal changes in 1.34 ===
160 * …
161
162 === Languages updated in 1.34 ===
163 MediaWiki supports over 350 languages. Many localisations are updated regularly.
164 Below only new and removed languages are listed, as well as changes to languages
165 because of Phabricator reports.
166
167 * (T152908) Added language support for N'Ko (nqo).
168
169 === Breaking changes in 1.34 ===
170 * The global functions wfSuppressWarnings and wfRestoreWarnings, deprecated in
171 1.26, have been removed. Use Wikimedia\AtEase\AtEase::suppressWarnings() and
172 Wikimedia\AtEase\AtEase::restoreWarnings() directly.
173 * Preferences class, deprecated in 1.31, has been removed.
174 * The following parts of code, deprecated in 1.32, were removed in favor of
175 built-in PHP functions:
176 * CryptRand class
177 * CryptRand service
178 * Functions of the MWCryptRand class: singleton(), wasStrong() and generate().
179 * Language::setCode, deprecated in 1.32, was removed. Use Language::factory to
180 create a new Language object with a different language code.
181 * MWNamespace::clearCaches() has been removed. So has the $rebuild parameter
182 to MWNamespace::getCanonicalNamespaces(), which was deprecated since 1.31.
183 Instead, reset services, such as by calling $this->overrideMwServices() (if
184 your test extends MediaWikiTestCase). Services will generally not pick up
185 configuration changes from after they were created, so you must reset
186 services after any configuration change. Even if your code works now, it is
187 likely to break in future versions as more code is moved to services.
188 * The ill-defined "DatabaseOraclePostInit" hook has been removed.
189 * PreferencesFormLegacy and PreferencesForm classes, deprecated in 1.32, have
190 been removed.
191 * ObjectFactory class, deprecated in 1.31, has been removed.
192 * HWLDFWordAccumudlator class, deprecated in 1.28, has been removed.
193 * XMPInfo, XMPReader and XMPValidate, deprecated in 1.32, have been removed.
194 * The RedirectSpecialPage::execute method could sometimes return a Title object.
195 This behavior was removed, and the method now matches the parent signature
196 (SpecialPage::execute) which is to return HTML string or void.
197 To obtain the destination title, use RedirectSpecialPage::getRedirect.
198 * The 'recenteditcount' response property from action API action=query
199 list=allusers, deprecated in 1.25, has been removed.
200 * SearchEngine::userNamespaces(), SearchEngine::namespacesAsText(),
201 SearchEngine::create(), SearchEngine::getSearchTypes() and
202 SearchEngine::getNearMatch(), methods deprecated in 1.27, have been removed.
203 * FileRepo::streamFile(), deprecated in 1.26, has been removed.
204 * User::randomPassword() method, deprecated in 1.27, have been removed.
205 * MWNamespace::canTalk(), deprecated in 1.30, have been removed.
206 * Parser class property $mUniqPrefix, deprecated in 1.26, has been removed.
207 * wfArrayFilter() and wfArrayFilterByKey(), deprecated in 1.32, have been
208 removed.
209 * wfMakeUrlIndexes() function, deprecated in 1.33, have been removed.
210 * Method signatures in WatchedItemQueryServiceExtension have changed from taking
211 User objects to taking UserIdentity objects. Extensions implementing this
212 interface need to be changed accordingly.
213 * User::getGroupPage() and ::makeGroupLinkHTML(), deprecated in 1.29, have been
214 removed. Use UserGroupMembership::getGroupPage and ::getLink instead.
215 * User::makeGroupLinkWiki(), deprecated in 1.29, has been removed. Use
216 UserGroupMembership::getLink() instead.
217 * SavepointPostgres, deprecated in 1.31, has been removed.
218 * OutputPage::enableSectionEditLinks(), OutputPage::sectionEditLinksEnabled(),
219 ParserOptions::getEditSection(), ParserOptions::setEditSection(), and
220 ParserOutput::getEditSectionTokens, ::getTOCEnabled, ::setEditSectionTokens,
221 and ::setTOCEnabled, deprecated in 1.31, have been removed.
222 * EditPage::safeUnicodeInput() and ::safeUnicodeOutput(), deprecated in 1.30,
223 have been removed.
224 * Four methods in OutputPage, deprecated in 1.32, have been removed. You should
225 use OutputPage::showFatalError or throw a FatalError instead. The methods are
226 ::showFileCopyError(), ::showFileRenameError(), ::showFileDeleteError(), and
227 ::showFileNotFoundError().
228 * ApiBase::truncateArray(), deprecated in 1.32, has been removed.
229 * IcuCollation::getICUVersion(), deprecated in 1.32, has been removed. Use PHP's
230 INTL_ICU_VERSION constant directly.
231 * HTMLForm::setSubmitProgressive(), deprecated in 1.32, has been removed.
232 * ResourceLoaderStartUpModules::getStartupModules() and ::getLegacyModules(),
233 both deprecated in 1.32, have been removed.
234 * BaseTemplate::msgHtml() and QuickTemplate::msgHtml(), deprecated in 1.32, have
235 been removed. Use ->msg() or ->getMsg() instead.
236 * WatchAction::getUnwatchToken(), deprecated in 1.32, has been removed. Instead,
237 use WatchAction::getWatchToken() with action 'unwatch' directly.
238 * Language::initEncoding(), ::recodeForEdit(), and recodeInput(), deprecated in
239 1.28, have been removed.
240 * PageArchive::getTextFromRow(), ::listAllPages(), and ::getLastRevisionText(),
241 deprecated in 1.32, have been removed.
242 * OutputPage::getModuleScripts(), ParserOutput::getModuleScripts(), deprecated
243 in 1.33, have been removed.
244 * User::getPasswordValidity(), deprecated in 1.33, has been removed.
245 * ApiQueryBase::prepareUrlQuerySearchString(), deprecated in 1.33, has been
246 removed.
247 * ChangeTags::purgeTagUsageCache(), deprecated in 1.33, has been removed.
248 * JobQueueGroup::pushLazyJobs(), deprecated in 1.33, has been removed.
249 * MediaWikiTestCase::stashMwGlobals(), deprecated in 1.32, has been removed.
250 * SearchEngine::transformSearchTerm(), deprecated in 1.32, has been removed.
251 * The Block typehint only refers to blocks stored in the database. It should be
252 updated to AbstractBlock in cases where any type of block could be expected.
253 * FileRepoStatus, deprecated in 1.25, has been removed.
254 * The LegacyHookPreAuthenticationProvider class, deprecated since its creation
255 in 1.27, has been removed.
256 * IP::isValidBlock(), deprecated in 1.30, has been removed.
257 * WikiPage::prepareContentForEdit now doesn't accept an integer for $revision,
258 was deprecated in 1.25.
259 * The jquery.byteLength module, deprecated in 1.31, was removed.
260 Use the mediawiki.String module instead.
261 * mw.language.specialCharacters, deprecated in 1.33, has been removed.
262 Use require( 'mediawiki.language.specialCharacters' ) instead.
263 * EditPage::submit(), deprecated in 1.29, has been removed. Use $this->edit()
264 directly.
265 * HTMLForm::getErrors(), deprecated in 1.28, has been removed. Use
266 getErrorsOrWarnings() instead.
267 * SpecialPage::getTitle(), deprecated in 1.23, has been removed. Use
268 SpecialPage::getPageTitle() instead.
269 * jquery.ui.effect-bounce, jquery.ui.effect-explode, jquery.ui.effect-fold
270 jquery.ui.effect-pulsate, jquery.ui.effect-slide, jquery.ui.effect-transfer,
271 which are no longer used, have now been removed.
272 * SpecialEmailUser::validateTarget(), ::getTarget() without a sender/user
273 specified, deprecated in 1.30, have been removed.
274 * BufferingStatsdDataFactory::getBuffer(), deprecated in 1.30, has been removed.
275 * The constant DB_SLAVE, deprecated in 1.28, has been removed. Use DB_REPLICA.
276 * The constants NS_IMAGE and NS_IMAGE_TALK, deprecated in 1.14, have been
277 removed. Use NS_FILE and NS_FILE_TALK respectively.
278 * Replacer, DoubleReplacer, HashtableReplacer and RegexlikeReplacer
279 (deprecated in 1.32) have been removed. Closures should be used instead.
280 * OutputPage::addWikiText(), ::addWikiTextWithTitle(), ::addWikiTextTitleTidy(),
281 ::addWikiTextTidy(), ::addWikiTextTitle(), deprecated in 1.32, have been
282 removed.
283 * The $wgUseKeyHeader configuration option and the OutputPage::getKeyHeader()
284 method, deprecated in 1.32, have been removed.
285 * WebInstallerOutput::addWikiText(), deprecated in 1.32, has been removed.
286 * Parser::fetchFile(), deprecated in 1.32, has been removed. Use the method
287 Parser::fetchFileAndTitle() instead.
288 * The global function wfBCP47, deprecated in 1.31, has been removed.
289 * wfCountDown() function, deprecated in 1.31, has been removed. Use
290 \Maintenance::countDown() method instead.
291 * OutputPage::wrapWikiMsg() no longer accepts an options parameter. This was
292 deprecated since 1.20.
293 * Skin::outputPage() no longer accepts a context. This was deprecated in 1.20.
294 * Linker::link() no longer accepts a string for the query array, as was
295 deprecated in 1.20.
296 * PrefixSearch::titleSearch(), deprecated in 1.23, has been removed. Use the
297 SearchEngine::defaultPrefixSearch or ::completionSearch() methods instead.
298 * The UserRights hook, deprecated in 1.26, has been removed. Instead, use the
299 UserGroupsChanged hook.
300 * Skin::getDefaultInstance(), deprecated in 1.27, has been removed. Get the
301 instance from MediaWikiServices instead.
302 * The UserLoadFromSession hook, deprecated in 1.27, has been removed.
303 * The wfResetSessionID global function, deprecated in 1.27, has been removed.
304 Use MediaWiki\Session\SessionManager instead.
305 * The wfGetLBFactory global function, deprecated in 1.27, has been removed.
306 Use MediaWikiServices::getInstance()->getDBLoadBalancerFactory().
307 * The internal method OutputPage->addScriptFile() will no longer silently drop
308 calls that use an invalid path (i.e., something other than an absolute path,
309 protocol-relative URL, or full scheme URL), and will instead pass them to the
310 client where they will likely 404. This usage was deprecated in 1.24.
311 * Database::reportConnectionError, deprecated in 1.32, has been removed.
312 * APIEditBeforeSave hook, deprecated in 1.28, has been removed. Please see
313 EditFilterMergedContent hook for an alternative way to use this feature.
314 * API module methods getDescription(), getParamDescription(), & getExamples(),
315 all deprecated in 1.25 and ignored, have been removed.
316 * The API module method getDescriptionMessage(), deprecated in 1.30, has been
317 removed.
318 * The JavaScript global variable wgLoadScript has been removed. Use
319 mw.util.wikiScript( 'load' ) instead.
320 * ResourceLoader no longer creates the 'mw.legacy' placeholder object. It has
321 been unused since 1.16 and was deprecated in 1.22. To deprecate a property
322 in JavaScript, use mw.log.deprecate() instead.
323 * The 'user.groups' module, deprecated in 1.28, was removed.
324 Use the 'user' module instead.
325 * The ResourceLoaderContext::expandModuleNames method, deprecated in 1.33, was
326 removed. Use ResourceLoader::expandModuleNames instead.
327 * The ability to override User::$mRights has been removed. Use
328 PermissionManager::addTemporaryUserRights() instead.
329 * Previously, when iterating ResultWrapper with foreach() or a similar
330 construct, the range of the index was 1..numRows. This has been fixed to be
331 0..(numRows-1).
332 * The ChangePasswordForm hook, deprecated in 1.27, has been removed. Use the
333 AuthChangeFormFields hook or security levels instead.
334 * WikiMap::getWikiIdFromDomain(), deprecated in 1.33, has been removed.
335 Use WikiMap::getWikiIdFromDbDomain() instead.
336 * The config variables $wgHtml5, $wgJsMimeType, and $wgXhtmlDefaultNamespace,
337 which were deprecated and ignored by core since 1.22, are no longer set to any
338 value, and SkinTemplate no longer emits a 'jsmimetype' key. Any extensions not
339 updated since 2013 to cope with this deprecation may now break.
340 * (T222637) Passing ResourceLoaderModule objects to ResourceLoader::register()
341 or $wgResourceModules is no longer supported.
342 Use the 'class' or 'factory' option of the array format instead.
343 * The parameter $lang of the functions generateTOC and tocList in Linker and
344 DummyLinker must be in type Language when present. Other types are
345 deprecated since 1.33.
346 * The static properties mw.Api.errors and mw.Api.warnings, deprecated in 1.29,
347 have been removed.
348 * ParserOption::getSpeculativeRevIdCallback(), deprecated in 1.28, has been
349 removed.
350 * The UploadVerification hook, deprecated in 1.28, has been removed. Instead,
351 use the UploadVerifyFile hook.
352 * UploadBase:: and UploadFromChunks::stashFileGetKey() and stashSession(),
353 deprecated in 1.28, have been removed. Instead, please use the getFileKey()
354 method on the response from doStashFile().
355 * LBFactory::setDomainPrefix() and LoadBalancer::setDomainPrefix(), deprecated
356 in 1.33, have been removed. Use setLocalDomainPrefix() instead.
357 * IDatabase::implicitGroupby(), deprecated in 1.30, has been removed.
358 * IDatabase::doneWrites(), deprecated in 1.31, has been removed.
359 Use IDatabase::lastDoneWrites() instead.
360 * Database::reportConnectionError(), deprecated in 1.32, has been removed.
361 * LoadBalancer::laggedSlaveUsed(), deprecated in 1.28, has been removed.
362 Use LoadBalancer::laggedReplicaUsed() instead.
363 * Database::getProperty(), deprecated in 1.28, has been removed.
364 * IDatabase::getWikiId(), deprecated in 1.30, has been removed.
365 Use IDatabase::getDomainID() instead.
366 * (T191231) Support for using Oracle or MSSQL as database backends has been
367 dropped.
368 * MessageCache::destroyInstance() has been removed. Instead, call
369 MediaWikiTestCase::resetServices().
370 * SearchResult protected field $searchEngine is removed and no longer
371 initialized after calling SearchResult::initFromTitle().
372 * The UserIsBlockedFrom hook is only called if a block is found first, and
373 should only be used to unblock a blocked user.
374 * Parameters for index.php from PATH_INFO, such as the title, are no longer
375 written to $_GET.
376 * …
377
378 === Deprecations in 1.34 ===
379 * The MWNamespace class is deprecated. Use NamespaceInfo.
380 * ExtensionRegistry->load() is deprecated, as it breaks dependency checking.
381 Instead, use ->queue().
382 * User::isBlocked() is deprecated since it does not tell you if the user is
383 blocked from editing a particular page. Use User::getBlock() or
384 PermissionManager::isBlockedFrom() or PermissionManager::userCan() instead.
385 * User::isLocallyBlockedProxy and User::inDnsBlacklist are deprecated and moved
386 to the BlockManager as private helper methods.
387 * User::isDnsBlacklisted is deprecated. Use BlockManager::isDnsBlacklisted
388 instead.
389 * The Config argument to ChangesListSpecialPage::checkStructuredFilterUiEnabled
390 is deprecated. Pass only the User argument.
391 * WatchedItem::getUser is deprecated. Use getUserIdentity.
392 * Passing a Title as the first parameter to the getTimestampById method of
393 RevisionStore is deprecated. Omit it, passing only the remaining parameters.
394 * Title::getPreviousRevisionId and Title::getNextRevisionId are deprecated. Use
395 RevisionLookup::getPreviousRevision and RevisionLookup::getNextRevision.
396 * The Title parameter to RevisionLookup::getPreviousRevision and
397 RevisionLookup::getNextRevision is deprecated and should be omitted.
398 * MWHttpRequest::factory is deprecated. Use HttpRequestFactory.
399 * The Http class is deprecated. For the request, get, and post methods, use
400 HttpRequestFactory. For isValidURI, use MWHttpRequest::isValidURI. For
401 getProxy, use (string)$wgHTTPProxy. For createMultiClient, construct a
402 MultiHttpClient directly.
403 * Http::$httpEngine is deprecated and has no replacement. The default 'guzzle'
404 engine will eventually be made the only engine for HTTP requests.
405 * RepoGroup::singleton(), RepoGroup::destroySingleton(),
406 RepoGroup::setSingleton(), wfFindFile(), and wfLocalFile() are all
407 deprecated. Use MediaWikiServices instead.
408 * The getSubjectPage, getTalkPage, and getOtherPage of Title are deprecated.
409 Use NamespaceInfo's getSubjectPage, getTalkPage, and getAssociatedPage.
410 * MWMessagePack class, no longer used, has been deprecated in 1.34.
411 * The Block class is separated into DatabaseBlock (for blocks stored in the
412 database), and SystemBlock (for temporary blocks created by the system).
413 SystemBlock should be used when creating any temporary blocks. Block is
414 a deprecated alias for DatabaseBlock.
415 * Parser::$mConf is deprecated. It will be removed entirely in a later version.
416 Some context can be found at T224165.
417 * Constructing Parser directly is deprecated. Obtain one from ParserFactory.
418 * Title::moveSubpages is deprecated. Use MovePage::moveSubpages or
419 MovePage::moveSubpagesIfAllowed.
420 * The MWNamespace class is deprecated. Use MediaWikiServices::getNamespaceInfo.
421 * (T62260) Hard deprecate Language::getExtraUserToggles() method.
422 * Language::viewPrevNext function is deprecated, use
423 PrevNextNavigationRenderer::buildPrevNextNavigation instead
424 * User::trackBlockWithCookie and DatabaseBlock::clearCookie are deprecated. Use
425 BlockManager::trackBlockWithCookie and BlockManager::clearCookie instead.
426 * DatabaseBlock::setCookie, DatabaseBlock::getCookieValue,
427 DatabaseBlock::getIdFromCookieValue and AbstractBlock::shouldTrackWithCookie
428 are moved to internal helper methods for BlockManager::trackBlockWithCookie.
429 * ResourceLoaderContext::getConfig and ResourceLoaderContext::getLogger have
430 been deprecated. Inside ResourceLoaderModule subclasses, use the local methods
431 instead. Elsewhere, use the methods from the ResourceLoader class.
432 * The 'jquery.accessKeyLabel' module has been deprecated. This jQuery
433 plugin is now ships as part of the 'mediawiki.util' module bundle.
434 * The Profiler::setTemplated and Profiler::getTemplated methods have been
435 deprecated. Use Profiler::setAllowOutput and Profiler::getAllowOutput
436 instead.
437 * The Preprocessor_DOM implementation has been deprecated. It will be
438 removed in a future release. Use the Preprocessor_Hash implementation
439 instead.
440 * Sanitizer::attributeWhitelist() and Sanitizer::setupAttributeWhitelist()
441 have been deprecated; they will be made private in the future.
442 * SearchResult::termMatches() method is deprecated. It was unreliable because
443 only populated by few search engine implementations. Use
444 SqlSearchResult::getTermMatches() if really needed.
445 * SearchResult::getTextSnippet( $terms ) the $terms param is being deprecated
446 and should no longer be passed. Search engine implemenations should be
447 responsible for carrying relevant information needed for highlighting with
448 their own SearchResultSet/SearchResult sub-classes.
449 * SearchResultSet::free() method is deprecated.
450 * SearchEngine::$searchTerms protected field is deprecated. Moved to
451 SearchDatabase.
452 * The use of the $terms param in the ShowSearchHit and ShowSearchHitTitle
453 hooks is highly discouraged as it's only populated by SearchDatabase search
454 engines.
455 * Skin::escapeSearchLink() is deprecated. Use Skin::getSearchLink() or the skin
456 template option 'searchaction' instead.
457 * Skin::getRevisionId() and Skin::isRevisionCurrent() have been deprecated.
458 Use OutputPage::getRevisionId() and OutputPage::isRevisionCurrent() instead.
459 * LoadBalancer::haveIndex() and LoadBalancer::isNonZeroLoad() have
460 been deprecated.
461 * FileBackend::getWikiId() has been deprecated.
462 Use FileBackend::getDomainId() instead.
463 * User::getRights() and User::$mRights have been deprecated. Use
464 PermissionManager::getUserPermissions() instead.
465 * The LocalisationCacheRecache hook no longer allows purging of message blobs
466 to be prevented. Modifying the $purgeBlobs parameter now has no effect.
467 * SVGMetadataExtractor::getMetadata has been deprecated. Instead, you should
468 use SVGReader->getMetadata() directly.
469 * The following public properties on AbstractBlock are deprecated: $mReason,
470 $mTimestamp, $mExpiry, $mHideName. Use the getters/setters instead.
471 * The following public properties on DatabaseBlock are deprecated: $mAuto,
472 $mParentBlockId. To check for an autoblock use DatabaseBlock::getType; to
473 check for the parent ID, use DatabaseBlock::getParentBlockId.
474 * SearchEngine::userHighlightPrefs() is deprecated, simply stop passing
475 $contextlines and $contextchars to the SearchHighlighter methods, they will
476 use proper defaults defined in SearchHighlighter::DEFAULT_CONTEXT_LINES and
477 DEFAULT_CONTEXT_CHARS.
478 * SearchUpdate constructor: passing a string as the title param and or a boolean
479 or a string as the content will produce a deprecation warning.
480 * SearchEngine::getTextFromContent() is deprecated, use getTextForSearchIndex()
481 directly from the Content object.
482 * SearchEngine::textAlreadyUpdatedForIndex() is deprecated, given the
483 deprecation above this method is no longer needed/called and should not be
484 implemented by SearchEngine implementation.
485 * IDatabase::bufferResults() has been deprecated. Use query batching instead.
486 * MessageCache::singleton() is deprecated. Use
487 MediaWikiServices::getMessageCache().
488 * Constructing MovePage directly is deprecated. Use MovePageFactory.
489 * TempFSFile::factory() has been deprecated. Use TempFSFileFactory instead.
490 * wfIsBadImage() is deprecated. Use the BadFileLookup service instead.
491 * Building a new SearchResult is hard-deprecated, always call
492 SearchResult::newFromTitle(). This class is being refactored into an abstract
493 class. If you extend this class please be sure to override all its methods
494 or extend RevisionSearchResult.
495 * Skin::getSkinNameMessages() is deprecated and no longer used.
496
497 === Other changes in 1.34 ===
498 * …
499
500 == Compatibility ==
501 MediaWiki 1.34 requires PHP 7.0.13 or later. Although HHVM 3.18.5 or later is
502 supported, it is generally advised to use PHP 7.0.13 or later for long term
503 support. It also requires the following PHP extensions:
504
505 * ctype
506 * dom
507 * fileinfo
508 * iconv
509 * json
510 * mbstring
511 * xml
512
513 MySQL/MariaDB is the recommended DBMS. PostgreSQL or SQLite can also be used,
514 but support for them is somewhat less mature.
515
516 The supported versions are:
517
518 * MySQL 5.5.8 or later
519 * PostgreSQL 9.2 or later
520 * SQLite 3.8.0 or later
521
522 == Online documentation ==
523 Documentation for both end-users and site administrators is available on
524 MediaWiki.org, and is covered under the GNU Free Documentation License (except
525 for pages that explicitly state that their contents are in the public domain):
526
527 https://www.mediawiki.org/wiki/Special:MyLanguage/Documentation
528
529 == Mailing list ==
530 A mailing list is available for MediaWiki user support and discussion:
531
532 https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
533
534 A low-traffic announcements-only list is also available:
535
536 https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
537
538 It's highly recommended that you sign up for one of these lists if you're
539 going to run a public MediaWiki, so you can be notified of security fixes.
540
541 == IRC help ==
542 There's usually someone online in #mediawiki on irc.freenode.net.