From 4.1 to 4.2¶
Stash replaced with Phpfastcache¶
The internal caching library Stash has been replaced with Phpfastcache.
Phpfastcache is better maintained, provides more cachedrivers and adds more features to the cache implementation.
This change should cause no issues on any existing installation.
If you have Memcache or Redis configured in your
elgg-config/settings.php you might need to update your configuration.
Metadata and Annotation boolean values¶
The database model has been changed to keep boolean values intact between saving and retrieving. Before this change if you saved a boolean value it would be returned as an integer. Now it will remain a boolean.
If you saved boolean values previously they will still be integers in the database (until saved again).
System message functions¶
register_error() have been replaced by
The new functions have the ability to pass extra options to the system messages registry.
If you use
If you use
ElggUser & ElggEntity¶
ElggEntity should no longer be used. The logged in user entity should no longer be referenced in
elgg.session.user page data. You can find its attributes in
elgg.user as an array.
output/url now has added security features to help prevent malicious user generated output.
The view supports
$vars['allowed_schemes'] which contains a list of allowed URL schemes. The provided
$vars['href'] will be
matched against the allowed list. If the URL doesn’t have an allowed scheme the URL will be prefixed with
This will help to prevent user input like
By default the following schemes are allowed:
http, https, ftp, sftp, ssh, file
If you use the pattern
The menu name for the tabs on the group members page has been replaced to use the default filter menu logic. Rewrite your plugin hooks
menu:filter:groups/members. Since this is a different menu the current group entity is now available
in the hook parameter
elgg_view('navigation/menu/elements/item/url', ['item' => $myMenuItem])