Remove support for wgUseESI
[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 * $wgUseESI - This experimental setting, deprecated in 1.33, is now removed.
84 * $wgDebugPrintHttpHeaders - The default of including HTTP headers in the
85 debug log channel is no longer configurable. The debug log itself remains
86 configurable via $wgDebugLogFile.
87 * $wgMsgCacheExpiry - The MessageCache uses 24 hours as the expiry for values
88 stored in WANObjectCache. This is no longer configurable.
89 * $wgPasswordSalt – This setting, used for migrating exceptionally old, insecure
90 password setups and deprecated since 1.24, is now removed.
91 * $wgDBOracleDRCP - If you must use persistent connections, set DBO_PERSISTENT
92 in the 'flags' field for servers in $wgDBServers (or $wgLBFactoryConf).
93 * $wgMemCachedDebug - Set the cache "debug" field in $wgObjectCaches instead.
94
95 === New user-facing features in 1.34 ===
96 * Special:Mute has been added as a quick way for users to block unwanted emails
97 from other users originating from Special:EmailUser.
98 * (T207577) Special:NewSection has been created as a shortcut to creating a new
99 section on a page. When linked to, its subpage is used as the target
100 ([[Special:NewSection/Test]] redirects to creating a new section in "Test").
101 Otherwise, it displays a basic interface to allow the end user to specify
102 the target manually.
103 * (T220447) Special:Contributions/newbies has been removed for performance and
104 usefulness reasons. Use Special:RecentChanges?userExpLevel=newcomer instead.
105 * Special:NewFiles/newbies has been removed for performance and usefulness
106 reasons. Use Special:RecentChanges?userExpLevel=newcomer&namespace=6 instead.
107
108 === New developer features in 1.34 ===
109 * The ImgAuthModifyHeaders hook was added to img_auth.php to allow modification
110 of headers in private wikis.
111 * Language::formatTimePeriod now supports the new 'avoidhours' option to output
112 strings like "5 days ago" instead of "5 days 13 hours ago".
113 * (T220163) Added SpecialMuteModifyFormFields hook to allow extensions
114 to add fields to Special:Mute.
115 * (T100896) Skin authors can define custom OOUI themes using OOUIThemePaths.
116 See <https://www.mediawiki.org/wiki/OOUI/Themes> for details.
117 * (T229035) The GetUserBlock hook was added. Use this instead of
118 GetBlockedStatus.
119 * ObjectFactory is available as a service. When used as a service, the object
120 specs can now specify needed DI services.
121
122 === External library changes in 1.34 ===
123
124 ==== New external libraries ====
125 * …
126
127 ==== Changed external libraries ====
128 * Updated Mustache from 1.0.0 to v3.0.1.
129 * Updated OOUI from v0.31.3 to v0.34.0.
130 * Updated OOjs from v2.2.2 to v3.0.0.
131 * Updated composer/semver from 1.4.2 to 1.5.0.
132 * Updated composer/spdx-licenses from 1.4.0 to 1.5.1 (dev-only).
133 * Updated mediawiki/codesniffer from 25.0.0 to 26.0.0 (dev-only).
134 * Updated cssjanus/cssjanus from 1.2.1 to 1.3.0.
135 * Updated wikimedia/at-ease from 1.2.0 to 2.0.0.
136 * Updated wikimedia/remex-html from 2.0.1 to 2.0.3.
137 * Updated monolog/monolog from 1.22.1 to 1.24.0 (dev-only).
138 * Updated wikimedia/object-factory from 1.0.0 to 2.1.0.
139 * Updated wikimedia/timestamp from 2.2.0 to 3.0.0.
140 * Updated wikimedia/xmp-reader from 0.6.2 to 0.6.3.
141 * Updated mediawiki/mediawiki-phan-config from 0.6.0 to 0.6.1 (dev-only).
142 * …
143
144 ==== Removed external libraries ====
145 * The jquery.async module, deprecated in 1.33, was removed.
146 * …
147
148 === Bug fixes in 1.34 ===
149 * (T222529) If a log entry or page revision is recorded in the database with an
150 empty username, attempting to display it will log an error and return a "no
151 username available" to the user instead of silently displaying nothing or
152 invalid links.
153
154 === Action API changes in 1.34 ===
155 * The 'recenteditcount' response property from action=query list=allusers,
156 deprecated in 1.25, has been removed.
157
158 === Action API internal changes in 1.34 ===
159 * …
160
161 === Languages updated in 1.34 ===
162 MediaWiki supports over 350 languages. Many localisations are updated regularly.
163 Below only new and removed languages are listed, as well as changes to languages
164 because of Phabricator reports.
165
166 * (T152908) Added language support for N'Ko (nqo).
167
168 === Breaking changes in 1.34 ===
169 * The global functions wfSuppressWarnings and wfRestoreWarnings, deprecated in
170 1.26, have been removed. Use Wikimedia\AtEase\AtEase::suppressWarnings() and
171 Wikimedia\AtEase\AtEase::restoreWarnings() directly.
172 * Preferences class, deprecated in 1.31, has been removed.
173 * The following parts of code, deprecated in 1.32, were removed in favor of
174 built-in PHP functions:
175 * CryptRand class
176 * CryptRand service
177 * Functions of the MWCryptRand class: singleton(), wasStrong() and generate().
178 * Language::setCode, deprecated in 1.32, was removed. Use Language::factory to
179 create a new Language object with a different language code.
180 * MWNamespace::clearCaches() has been removed. So has the $rebuild parameter
181 to MWNamespace::getCanonicalNamespaces(), which was deprecated since 1.31.
182 Instead, reset services, such as by calling $this->overrideMwServices() (if
183 your test extends MediaWikiTestCase). Services will generally not pick up
184 configuration changes from after they were created, so you must reset
185 services after any configuration change. Even if your code works now, it is
186 likely to break in future versions as more code is moved to services.
187 * The ill-defined "DatabaseOraclePostInit" hook has been removed.
188 * PreferencesFormLegacy and PreferencesForm classes, deprecated in 1.32, have
189 been removed.
190 * ObjectFactory class, deprecated in 1.31, has been removed.
191 * HWLDFWordAccumudlator class, deprecated in 1.28, has been removed.
192 * XMPInfo, XMPReader and XMPValidate, deprecated in 1.32, have been removed.
193 * The RedirectSpecialPage::execute method could sometimes return a Title object.
194 This behavior was removed, and the method now matches the parent signature
195 (SpecialPage::execute) which is to return HTML string or void.
196 To obtain the destination title, use RedirectSpecialPage::getRedirect.
197 * The 'recenteditcount' response property from action API action=query
198 list=allusers, deprecated in 1.25, has been removed.
199 * SearchEngine::userNamespaces(), SearchEngine::namespacesAsText(),
200 SearchEngine::create(), SearchEngine::getSearchTypes() and
201 SearchEngine::getNearMatch(), methods deprecated in 1.27, have been removed.
202 * FileRepo::streamFile(), deprecated in 1.26, has been removed.
203 * User::randomPassword() method, deprecated in 1.27, have been removed.
204 * MWNamespace::canTalk(), deprecated in 1.30, have been removed.
205 * Parser class property $mUniqPrefix, deprecated in 1.26, has been removed.
206 * wfArrayFilter() and wfArrayFilterByKey(), deprecated in 1.32, have been
207 removed.
208 * wfMakeUrlIndexes() function, deprecated in 1.33, have been removed.
209 * Method signatures in WatchedItemQueryServiceExtension have changed from taking
210 User objects to taking UserIdentity objects. Extensions implementing this
211 interface need to be changed accordingly.
212 * User::getGroupPage() and ::makeGroupLinkHTML(), deprecated in 1.29, have been
213 removed. Use UserGroupMembership::getGroupPage and ::getLink instead.
214 * User::makeGroupLinkWiki(), deprecated in 1.29, has been removed. Use
215 UserGroupMembership::getLink() instead.
216 * SavepointPostgres, deprecated in 1.31, has been removed.
217 * OutputPage::enableSectionEditLinks(), OutputPage::sectionEditLinksEnabled(),
218 ParserOptions::getEditSection(), ParserOptions::setEditSection(), and
219 ParserOutput::getEditSectionTokens, ::getTOCEnabled, ::setEditSectionTokens,
220 and ::setTOCEnabled, deprecated in 1.31, have been removed.
221 * EditPage::safeUnicodeInput() and ::safeUnicodeOutput(), deprecated in 1.30,
222 have been removed.
223 * Four methods in OutputPage, deprecated in 1.32, have been removed. You should
224 use OutputPage::showFatalError or throw a FatalError instead. The methods are
225 ::showFileCopyError(), ::showFileRenameError(), ::showFileDeleteError(), and
226 ::showFileNotFoundError().
227 * ApiBase::truncateArray(), deprecated in 1.32, has been removed.
228 * IcuCollation::getICUVersion(), deprecated in 1.32, has been removed. Use PHP's
229 INTL_ICU_VERSION constant directly.
230 * HTMLForm::setSubmitProgressive(), deprecated in 1.32, has been removed.
231 * ResourceLoaderStartUpModules::getStartupModules() and ::getLegacyModules(),
232 both deprecated in 1.32, have been removed.
233 * BaseTemplate::msgHtml() and QuickTemplate::msgHtml(), deprecated in 1.32, have
234 been removed. Use ->msg() or ->getMsg() instead.
235 * WatchAction::getUnwatchToken(), deprecated in 1.32, has been removed. Instead,
236 use WatchAction::getWatchToken() with action 'unwatch' directly.
237 * Language::initEncoding(), ::recodeForEdit(), and recodeInput(), deprecated in
238 1.28, have been removed.
239 * PageArchive::getTextFromRow(), ::listAllPages(), and ::getLastRevisionText(),
240 deprecated in 1.32, have been removed.
241 * OutputPage::getModuleScripts(), ParserOutput::getModuleScripts(), deprecated
242 in 1.33, have been removed.
243 * User::getPasswordValidity(), deprecated in 1.33, has been removed.
244 * ApiQueryBase::prepareUrlQuerySearchString(), deprecated in 1.33, has been
245 removed.
246 * ChangeTags::purgeTagUsageCache(), deprecated in 1.33, has been removed.
247 * JobQueueGroup::pushLazyJobs(), deprecated in 1.33, has been removed.
248 * MediaWikiTestCase::stashMwGlobals(), deprecated in 1.32, has been removed.
249 * SearchEngine::transformSearchTerm(), deprecated in 1.32, has been removed.
250 * The Block typehint only refers to blocks stored in the database. It should be
251 updated to AbstractBlock in cases where any type of block could be expected.
252 * FileRepoStatus, deprecated in 1.25, has been removed.
253 * The LegacyHookPreAuthenticationProvider class, deprecated since its creation
254 in 1.27, has been removed.
255 * IP::isValidBlock(), deprecated in 1.30, has been removed.
256 * WikiPage::prepareContentForEdit now doesn't accept an integer for $revision,
257 was deprecated in 1.25.
258 * The jquery.byteLength module, deprecated in 1.31, was removed.
259 Use the mediawiki.String module instead.
260 * mw.language.specialCharacters, deprecated in 1.33, has been removed.
261 Use require( 'mediawiki.language.specialCharacters' ) instead.
262 * EditPage::submit(), deprecated in 1.29, has been removed. Use $this->edit()
263 directly.
264 * HTMLForm::getErrors(), deprecated in 1.28, has been removed. Use
265 getErrorsOrWarnings() instead.
266 * SpecialPage::getTitle(), deprecated in 1.23, has been removed. Use
267 SpecialPage::getPageTitle() instead.
268 * jquery.ui.effect-bounce, jquery.ui.effect-explode, jquery.ui.effect-fold
269 jquery.ui.effect-pulsate, jquery.ui.effect-slide, jquery.ui.effect-transfer,
270 which are no longer used, have now been removed.
271 * SpecialEmailUser::validateTarget(), ::getTarget() without a sender/user
272 specified, deprecated in 1.30, have been removed.
273 * BufferingStatsdDataFactory::getBuffer(), deprecated in 1.30, has been removed.
274 * The constant DB_SLAVE, deprecated in 1.28, has been removed. Use DB_REPLICA.
275 * The constants NS_IMAGE and NS_IMAGE_TALK, deprecated in 1.14, have been
276 removed. Use NS_FILE and NS_FILE_TALK respectively.
277 * Replacer, DoubleReplacer, HashtableReplacer and RegexlikeReplacer
278 (deprecated in 1.32) have been removed. Closures should be used instead.
279 * OutputPage::addWikiText(), ::addWikiTextWithTitle(), ::addWikiTextTitleTidy(),
280 ::addWikiTextTidy(), ::addWikiTextTitle(), deprecated in 1.32, have been
281 removed.
282 * The $wgUseKeyHeader configuration option and the OutputPage::getKeyHeader()
283 method, deprecated in 1.32, have been removed.
284 * WebInstallerOutput::addWikiText(), deprecated in 1.32, has been removed.
285 * Parser::fetchFile(), deprecated in 1.32, has been removed. Use the method
286 Parser::fetchFileAndTitle() instead.
287 * The global function wfBCP47, deprecated in 1.31, has been removed.
288 * wfCountDown() function, deprecated in 1.31, has been removed. Use
289 \Maintenance::countDown() method instead.
290 * OutputPage::wrapWikiMsg() no longer accepts an options parameter. This was
291 deprecated since 1.20.
292 * Skin::outputPage() no longer accepts a context. This was deprecated in 1.20.
293 * Linker::link() no longer accepts a string for the query array, as was
294 deprecated in 1.20.
295 * PrefixSearch::titleSearch(), deprecated in 1.23, has been removed. Use the
296 SearchEngine::defaultPrefixSearch or ::completionSearch() methods instead.
297 * The UserRights hook, deprecated in 1.26, has been removed. Instead, use the
298 UserGroupsChanged hook.
299 * Skin::getDefaultInstance(), deprecated in 1.27, has been removed. Get the
300 instance from MediaWikiServices instead.
301 * The UserLoadFromSession hook, deprecated in 1.27, has been removed.
302 * The wfResetSessionID global function, deprecated in 1.27, has been removed.
303 Use MediaWiki\Session\SessionManager instead.
304 * The wfGetLBFactory global function, deprecated in 1.27, has been removed.
305 Use MediaWikiServices::getInstance()->getDBLoadBalancerFactory().
306 * The internal method OutputPage->addScriptFile() will no longer silently drop
307 calls that use an invalid path (i.e., something other than an absolute path,
308 protocol-relative URL, or full scheme URL), and will instead pass them to the
309 client where they will likely 404. This usage was deprecated in 1.24.
310 * Database::reportConnectionError, deprecated in 1.32, has been removed.
311 * APIEditBeforeSave hook, deprecated in 1.28, has been removed. Please see
312 EditFilterMergedContent hook for an alternative way to use this feature.
313 * API module methods getDescription(), getParamDescription(), & getExamples(),
314 all deprecated in 1.25 and ignored, have been removed.
315 * The API module method getDescriptionMessage(), deprecated in 1.30, has been
316 removed.
317 * The JavaScript global variable wgLoadScript has been removed. Use
318 mw.util.wikiScript( 'load' ) instead.
319 * ResourceLoader no longer creates the 'mw.legacy' placeholder object. It has
320 been unused since 1.16 and was deprecated in 1.22. To deprecate a property
321 in JavaScript, use mw.log.deprecate() instead.
322 * The 'user.groups' module, deprecated in 1.28, was removed.
323 Use the 'user' module instead.
324 * The ResourceLoaderContext::expandModuleNames method, deprecated in 1.33, was
325 removed. Use ResourceLoader::expandModuleNames instead.
326 * The ability to override User::$mRights has been removed. Use
327 PermissionManager::addTemporaryUserRights() instead.
328 * Previously, when iterating ResultWrapper with foreach() or a similar
329 construct, the range of the index was 1..numRows. This has been fixed to be
330 0..(numRows-1).
331 * The ChangePasswordForm hook, deprecated in 1.27, has been removed. Use the
332 AuthChangeFormFields hook or security levels instead.
333 * WikiMap::getWikiIdFromDomain(), deprecated in 1.33, has been removed.
334 Use WikiMap::getWikiIdFromDbDomain() instead.
335 * The config variables $wgHtml5, $wgJsMimeType, and $wgXhtmlDefaultNamespace,
336 which were deprecated and ignored by core since 1.22, are no longer set to any
337 value, and SkinTemplate no longer emits a 'jsmimetype' key. Any extensions not
338 updated since 2013 to cope with this deprecation may now break.
339 * (T222637) Passing ResourceLoaderModule objects to ResourceLoader::register()
340 or $wgResourceModules is no longer supported.
341 Use the 'class' or 'factory' option of the array format instead.
342 * The parameter $lang of the functions generateTOC and tocList in Linker and
343 DummyLinker must be in type Language when present. Other types are
344 deprecated since 1.33.
345 * The static properties mw.Api.errors and mw.Api.warnings, deprecated in 1.29,
346 have been removed.
347 * ParserOption::getSpeculativeRevIdCallback(), deprecated in 1.28, has been
348 removed.
349 * The UploadVerification hook, deprecated in 1.28, has been removed. Instead,
350 use the UploadVerifyFile hook.
351 * UploadBase:: and UploadFromChunks::stashFileGetKey() and stashSession(),
352 deprecated in 1.28, have been removed. Instead, please use the getFileKey()
353 method on the response from doStashFile().
354 * LBFactory::setDomainPrefix() and LoadBalancer::setDomainPrefix(), deprecated
355 in 1.33, have been removed. Use setLocalDomainPrefix() instead.
356 * IDatabase::implicitGroupby(), deprecated in 1.30, has been removed.
357 * IDatabase::doneWrites(), deprecated in 1.31, has been removed.
358 Use IDatabase::lastDoneWrites() instead.
359 * Database::reportConnectionError(), deprecated in 1.32, has been removed.
360 * LoadBalancer::laggedSlaveUsed(), deprecated in 1.28, has been removed.
361 Use LoadBalancer::laggedReplicaUsed() instead.
362 * Database::getProperty(), deprecated in 1.28, has been removed.
363 * IDatabase::getWikiId(), deprecated in 1.30, has been removed.
364 Use IDatabase::getDomainID() instead.
365 * (T191231) Support for using Oracle or MSSQL as database backends has been
366 dropped.
367 * MessageCache::destroyInstance() has been removed. Instead, call
368 MediaWikiTestCase::resetServices().
369 * SearchResult protected field $searchEngine is removed and no longer
370 initialized after calling SearchResult::initFromTitle().
371 * The UserIsBlockedFrom hook is only called if a block is found first, and
372 should only be used to unblock a blocked user.
373 * Parameters for index.php from PATH_INFO, such as the title, are no longer
374 written to $_GET.
375 * …
376
377 === Deprecations in 1.34 ===
378 * The MWNamespace class is deprecated. Use NamespaceInfo.
379 * ExtensionRegistry->load() is deprecated, as it breaks dependency checking.
380 Instead, use ->queue().
381 * User::isBlocked() is deprecated since it does not tell you if the user is
382 blocked from editing a particular page. Use User::getBlock() or
383 PermissionManager::isBlockedFrom() or PermissionManager::userCan() instead.
384 * User::isLocallyBlockedProxy and User::inDnsBlacklist are deprecated and moved
385 to the BlockManager as private helper methods.
386 * User::isDnsBlacklisted is deprecated. Use BlockManager::isDnsBlacklisted
387 instead.
388 * The Config argument to ChangesListSpecialPage::checkStructuredFilterUiEnabled
389 is deprecated. Pass only the User argument.
390 * WatchedItem::getUser is deprecated. Use getUserIdentity.
391 * Passing a Title as the first parameter to the getTimestampById method of
392 RevisionStore is deprecated. Omit it, passing only the remaining parameters.
393 * Title::getPreviousRevisionId and Title::getNextRevisionId are deprecated. Use
394 RevisionLookup::getPreviousRevision and RevisionLookup::getNextRevision.
395 * The Title parameter to RevisionLookup::getPreviousRevision and
396 RevisionLookup::getNextRevision is deprecated and should be omitted.
397 * MWHttpRequest::factory is deprecated. Use HttpRequestFactory.
398 * The Http class is deprecated. For the request, get, and post methods, use
399 HttpRequestFactory. For isValidURI, use MWHttpRequest::isValidURI. For
400 getProxy, use (string)$wgHTTPProxy. For createMultiClient, construct a
401 MultiHttpClient directly.
402 * Http::$httpEngine is deprecated and has no replacement. The default 'guzzle'
403 engine will eventually be made the only engine for HTTP requests.
404 * RepoGroup::singleton(), RepoGroup::destroySingleton(),
405 RepoGroup::setSingleton(), wfFindFile(), and wfLocalFile() are all
406 deprecated. Use MediaWikiServices instead.
407 * The getSubjectPage, getTalkPage, and getOtherPage of Title are deprecated.
408 Use NamespaceInfo's getSubjectPage, getTalkPage, and getAssociatedPage.
409 * MWMessagePack class, no longer used, has been deprecated in 1.34.
410 * The Block class is separated into DatabaseBlock (for blocks stored in the
411 database), and SystemBlock (for temporary blocks created by the system).
412 SystemBlock should be used when creating any temporary blocks. Block is
413 a deprecated alias for DatabaseBlock.
414 * Parser::$mConf is deprecated. It will be removed entirely in a later version.
415 Some context can be found at T224165.
416 * Constructing Parser directly is deprecated. Obtain one from ParserFactory.
417 * Title::moveSubpages is deprecated. Use MovePage::moveSubpages or
418 MovePage::moveSubpagesIfAllowed.
419 * The MWNamespace class is deprecated. Use MediaWikiServices::getNamespaceInfo.
420 * (T62260) Hard deprecate Language::getExtraUserToggles() method.
421 * Language::viewPrevNext function is deprecated, use
422 PrevNextNavigationRenderer::buildPrevNextNavigation instead
423 * User::trackBlockWithCookie and DatabaseBlock::clearCookie are deprecated. Use
424 BlockManager::trackBlockWithCookie and BlockManager::clearCookie instead.
425 * DatabaseBlock::setCookie, DatabaseBlock::getCookieValue,
426 DatabaseBlock::getIdFromCookieValue and AbstractBlock::shouldTrackWithCookie
427 are moved to internal helper methods for BlockManager::trackBlockWithCookie.
428 * ResourceLoaderContext::getConfig and ResourceLoaderContext::getLogger have
429 been deprecated. Inside ResourceLoaderModule subclasses, use the local methods
430 instead. Elsewhere, use the methods from the ResourceLoader class.
431 * The 'jquery.accessKeyLabel' module has been deprecated. This jQuery
432 plugin is now ships as part of the 'mediawiki.util' module bundle.
433 * The Profiler::setTemplated and Profiler::getTemplated methods have been
434 deprecated. Use Profiler::setAllowOutput and Profiler::getAllowOutput
435 instead.
436 * The Preprocessor_DOM implementation has been deprecated. It will be
437 removed in a future release. Use the Preprocessor_Hash implementation
438 instead.
439 * Sanitizer::attributeWhitelist() and Sanitizer::setupAttributeWhitelist()
440 have been deprecated; they will be made private in the future.
441 * SearchResult::termMatches() method is deprecated. It was unreliable because
442 only populated by few search engine implementations. Use
443 SqlSearchResult::getTermMatches() if really needed.
444 * SearchResult::getTextSnippet( $terms ) the $terms param is being deprecated
445 and should no longer be passed. Search engine implemenations should be
446 responsible for carrying relevant information needed for highlighting with
447 their own SearchResultSet/SearchResult sub-classes.
448 * SearchResultSet::free() method is deprecated.
449 * SearchEngine::$searchTerms protected field is deprecated. Moved to
450 SearchDatabase.
451 * The use of the $terms param in the ShowSearchHit and ShowSearchHitTitle
452 hooks is highly discouraged as it's only populated by SearchDatabase search
453 engines.
454 * Skin::escapeSearchLink() is deprecated. Use Skin::getSearchLink() or the skin
455 template option 'searchaction' instead.
456 * Skin::getRevisionId() and Skin::isRevisionCurrent() have been deprecated.
457 Use OutputPage::getRevisionId() and OutputPage::isRevisionCurrent() instead.
458 * LoadBalancer::haveIndex() and LoadBalancer::isNonZeroLoad() have
459 been deprecated.
460 * FileBackend::getWikiId() has been deprecated.
461 Use FileBackend::getDomainId() instead.
462 * User::getRights() and User::$mRights have been deprecated. Use
463 PermissionManager::getUserPermissions() instead.
464 * The LocalisationCacheRecache hook no longer allows purging of message blobs
465 to be prevented. Modifying the $purgeBlobs parameter now has no effect.
466 * SVGMetadataExtractor::getMetadata has been deprecated. Instead, you should
467 use SVGReader->getMetadata() directly.
468 * The following public properties on AbstractBlock are deprecated: $mReason,
469 $mTimestamp, $mExpiry, $mHideName. Use the getters/setters instead.
470 * The following public properties on DatabaseBlock are deprecated: $mAuto,
471 $mParentBlockId. To check for an autoblock use DatabaseBlock::getType; to
472 check for the parent ID, use DatabaseBlock::getParentBlockId.
473 * SearchEngine::userHighlightPrefs() is deprecated, simply stop passing
474 $contextlines and $contextchars to the SearchHighlighter methods, they will
475 use proper defaults defined in SearchHighlighter::DEFAULT_CONTEXT_LINES and
476 DEFAULT_CONTEXT_CHARS.
477 * SearchUpdate constructor: passing a string as the title param and or a boolean
478 or a string as the content will produce a deprecation warning.
479 * SearchEngine::getTextFromContent() is deprecated, use getTextForSearchIndex()
480 directly from the Content object.
481 * SearchEngine::textAlreadyUpdatedForIndex() is deprecated, given the
482 deprecation above this method is no longer needed/called and should not be
483 implemented by SearchEngine implementation.
484 * IDatabase::bufferResults() has been deprecated. Use query batching instead.
485 * MessageCache::singleton() is deprecated. Use
486 MediaWikiServices::getMessageCache().
487 * Constructing MovePage directly is deprecated. Use MovePageFactory.
488 * TempFSFile::factory() has been deprecated. Use TempFSFileFactory instead.
489 * wfIsBadImage() is deprecated. Use the BadFileLookup service instead.
490 * Building a new SearchResult is hard-deprecated, always call
491 SearchResult::newFromTitle(). This class is being refactored into an abstract
492 class. If you extend this class please be sure to override all its methods
493 or extend RevisionSearchResult.
494 * Skin::getSkinNameMessages() is deprecated and no longer used.
495 * The mediawiki.RegExp module is deprecated; use mw.util.escapeRegExp() instead.
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.