Semantic MediaWiki 7.4.0
| Semantic MediaWiki 7.4.0 | |
|---|---|
| Release date: | November 2, 2026 |
| Previous version: | Semantic MediaWiki 7.3.1 |
| Next version: | Semantic MediaWiki 7.4.1 |
| Compatible with: | MW 1.43.x - 1.46.x |
| Current version: | |
| SMW 7.4.1 | |
Version 7.4.0 of Semantic MediaWiki is a minor release. It contains new features and bug fixes, no breaking changes, and is compatible with the same MediaWiki (1.43 to 1.46) and PHP (8.1 to 8.5) versions as SMW 7.3.1. It adds the {{#property_search_link:}} parser function and job-queue rebuilds for the full-text search index, and fixes three security vulnerabilities (two cross-site scripting and one missing-authorization) reported through GitHub security advisories, along with several bug fixes. Some of the security fixes tighten input handling and may reject requests that previously succeeded. See the English language RELEASE NOTES below on this page for further information.
Please refer to the help pages on installing or upgrading Semantic MediaWiki for detailed instructions on how to do this.
Semantic MediaWiki 7.4.0
Released on November 2, 2026.
This is a minor release. Thus, it contains no breaking changes, only new features and fixes. Some of the security fixes tighten input handling and may reject requests that previously succeeded.
Like SMW 7.3.1, this version is compatible with MediaWiki 1.43 up to 1.46 and PHP 8.1 up to 8.5. For more detailed information, see the compatibility matrix.
New features and enhancements
- Added chunked and job queue rebuilds to
rebuildFulltextSearchTable.php, so the full-text search index can be rebuilt on hosts that stop long-running scripts (#7133) - Added the
{{#property_search_link:}}parser function for linking toSpecial:SearchByPropertywith any value, including values with characters such as/,#or[that a hand-written subpage link cannot carry:{{#property_search_link:Has text|AC/DC #1}}and{{#property_search_link:Has text|AC/DC #1|custom label}}(#7179)
Security fixes
- Fixed a cross-site scripting (XSS) vulnerability in
Special:Askwhere file-export and raw-mode results fetched throughrequest_typewere served as HTML, so a user-supplied CSV or DSV separator, or a stored property value, could execute; these responses are now served as plain text (GHSA-54fg-5p78-mhg8) - Fixed a cross-site scripting (XSS) vulnerability in
Special:Browsewhere anAllows patternproperty value was rendered without HTML escaping (GHSA-x29v-5v76-f3xg) - Fixed a missing authorization check in the
smwtaskAPI where thecheck-querytask authorized against the wiki-wide edit right instead of the caller's permission to edit the requested page, completing the earlier fix for GHSA-rjqv-6r83-pg8v (GHSA-qhqw-xc5w-pp27)
Bug fixes
- Fixed
Special:Versionlisting the Elasticsearch server twice on wikis that also run CirrusSearch (#7143) - Fixed flag settings such as
$smwgDVFeaturesbeing unable to switch off a default flag. If you add a single flag, as in$smwgDVFeatures[] = 'wpv-pipetrick';, now also list the default flags you want to keep (#7135) - Fixed an
ArgumentCountErrorsince 7.3.1 in extensions such as the listwidget format of Semantic Result Formats (#7137) - Fixed OpenSearch being taken for Elasticsearch 7.10.2 when it runs in the compatibility mode that CirrusSearch on MediaWiki 1.43 requires (#7142)
- Fixed page content jumping while the entity examiner checks a page; its indicator now shows only when a check finds an issue (#7150)
- Fixed editing schemas with the Page Schemas extension, broken since 7.0.0 (#7154)
- Fixed URL values containing a space linking to a different URL:
http://example.org/Foo barandhttp://example.org/Foo%20barnow link tohttp://example.org/Foo%20bar, nothttp://example.org/Foo_bar.Foo barandFoo_barare now different values, so a query for one no longer finds the other. Link text now shows an underscore as an underscore, not as a space (#7139) - Fixed the help links of the maintenance scripts on
Special:SemanticMediaWiki(#7151) - Fixed pages with
#askqueries being parsed twice for each user language or other parser cache variant first viewed after one of their query dependencies changed, on wikis with$smwgEnabledQueryDependencyLinksStoreenabled (#7155) - Fixed a
DataItemHandlerExceptionstopping page rendering andrebuildData.phpwhen a query prints a stored value that can no longer be read; such values are now left out of the result (#7161) - Fixed page views and maintenance scripts failing with a
TypeErroron MediaWiki 1.47, which removed$wgCachePrefix(#7163) - Fixed
rebuildFulltextSearchTable.phprunning slower since 7.0.0: it made a cache lookup for every stored value, which is a database query on most wikis when run from the command line, and now makes one per property (#7165) - Fixed
Special:Asklinks and stored query strings wrapping anORquery in redundant<q>tags, which could push it past$smwgQMaxDepthand break its link. Existing links keep working.[[A::1]] OR [[B::2]]now stays as typed, so to append a condition to both sides of a copied query, enclose theORpart in<q>…</q>(#7173) - Fixed query results showing the namespace on pages whose display title repeats it;
Help:Bar (inactive)is now listed asBar (inactive)unlessprefixasks for the long form (#7169) - Fixed a slowdown since 7.0.0: reading a property's type, a page's display title or other cached page data ran a database query every time on wikis that cache in the database, which includes maintenance scripts such as
rebuildData.phpby default (#7168) - Fixed a "further results" link being added to the page when an inline query with a
searchlabelthat holds only an HTML comment, such assearchlabel=<!-- -->, is substituted withsubst:(#7171) - Fixed valid language tags that MediaWiki has no name for being rejected, such as
ja-Latn-hepburnin theMonolingual textvalueRashōmon@ja-Latn-hepburn. A tag is now also accepted when it is well-formed and MediaWiki knows its primary language (#7172) - Fixed
setupStore.phpandupdate.phpcrashing on SQLite withnear "_temp": syntax errorwhen a table has an obsolete column, such as after changing the type of a property in$smwgFixedProperties(#7178) - Fixed
rebuildData.phpfailing withUnknown column 'o_blob'(or another column) for a property in$smwgFixedPropertieswhose page declares a type other than the one its table was created with, such as aftersetupStore.phpon an empty store; a full rebuild now updates these tables after rebuilding the property pages if they hold no values, and a table with values still needssetupStore.php(#7175)
Upgrading
No need to run "update.php" or any other migration scripts.
However, if your wiki uses properties of type URL or Annotation URI, run php maintenance/run.php SemanticMediaWiki:rebuildData after upgrading. Until then, queries on values containing a space may return wrong results.
Get the new version via Composer:
- Step 1: if you are upgrading from SMW older than 7.0.0, ensure the SMW version in
composer.local.jsonis^7.4.0 - Step 2: run composer in your MediaWiki directory:
composer update --no-dev --optimize-autoloader
Get the new version via Git:
This is only for those who have installed SMW via Git.
- Step 1: do a
git pullin the SemanticMediaWiki directory - Step 2: run
composer update --no-dev --optimize-autoloaderin the MediaWiki directory