Grav CMS - Package Updates
-
[2.3.3]
- Update grav to 2.2.14
- Full Changelog
- Disabled plugins are no longer loaded, so a disabled plugin with code that doesn't work on this version of Grav can't take the site down, and requests do less work. A disabled plugin is still listed with its settings, and its class still loads if another plugin asks for it. Thanks @NoNoNo #4374
- CSS with a long quoted string or comment (such as an inlined data: URI) minifies again instead of failing with a PCRE error, and a very large data: URI no longer empties the whole stylesheet from the bundle. Thanks @NoNoNo #4372
- Inline JavaScript added with
loading: 'inline'no longer renders a strayinlineattribute on its script tag, and an inline JS module keeps its code when the pipeline is off. Thanks @NoNoNo #4373
-
[2.3.4]
- Update grav to 2.2.15
- Full Changelog
- Page ids: a page folder can carry a hidden
.page-idfile holding a permanent id (a UUID) that stays with the folder however it is renamed, reordered or moved, in Admin, with git or over FTP. Read it with$page->uuid()and find a page by it with$pages->findByUuid();Grav\Common\Page\PageIdentitywrites ids, finds a folder by its id after a move, and decides which folder keeps an id that a copy made outside Grav duplicated (the older.page-idwins). Ids are off unless a plugin needs them: it callsPageIdentity::enable()inonPluginsInitialized, or a site setssystem.pages.uuid: true, and then saving or creating a page gives its folder an id and a copied page gets its own.bin/grav page-idsgives every page folder an id and reports duplicates, and tells the pages cache so the next request finds the new ids. The file is hidden, so it never shows as a page file or as media, and a page folder moved to another disk (where Grav copies it instead of renaming it) takes its ids with it. Two requests saving one new page at the same moment give it one id, not two - A scheduler custom job or backup profile added in the admin and saved without being filled in no longer breaks the scheduler: it is skipped, so the other jobs still run and the job list, health check and webhook keep working getgrav/grav-plugin-scheduler-webhook#10
- A new backup profile's default schedule runs once at 3:00 instead of every minute from 3:00 to 3:59, and a job whose Extra Arguments field is saved empty no longer fails
- The scheduler's custom job placeholders read as examples (
e.g. bin/grav) instead of looking like values already filled in, and Run At saves the every-minute schedule it shows when left as is
-
[2.3.5]
- Update grav to 2.2.16
- Full Changelog
- [security] The
string()Twig function now applies the same sandbox checks as the|stringfilter. Thanks @dagighost
-
[2.3.6]
- Update grav to 2.2.17
- Full Changelog
- With
system.absolute_urlsand asset SRI both on, Grav looked for asset files at the web root plus the full URL, so nointegritywas added and sites withopen_basedirgot a fatal error. It now finds the real file, also in subfolders whose name has characters like.or+#4377
-
[2.3.7]
- Update grav to 2.2.21
- Full Changelog
- A plugin that adds a scheduler job as a class method (such as
[$this, 'method']) without an id, or with its id where the job's arguments go, no longer crashes every scheduler run and empties the admin's job list #4380 - Updating or reinstalling a plugin swaps the new copy in all at once, so the site never runs with the plugin missing or half copied, and the old copy is put back if the new one cannot be moved in
- JSON sent to the site is now checked against size limits before it is read, so an oversized request is turned away quickly instead of tying up the server (limits are under
request.jsoninsystem.yaml) - Sites behind a proxy that ends HTTPS (such as Cloudflare in front of a server on port 80) no longer redirect visitors to the address with
:80added, for example when reloading the admin - A number field given a value too large for an integer no longer causes a warning on PHP 8.5
- [security] The Apache
.htaccessexception for/.well-known/now covers that folder only, so other hidden files and folders whose names start withwell-knownstay blocked. Upgrading updates existing.htaccessfiles - [security] The security fixes below were found by Anthropic's OSS Scanner
- [security] Twig in page content can only read an account's name, username, e-mail, language and login state, and account secrets such as password hashes, 2FA secrets and reset tokens are no longer included in form values or in an account's array and JSON output
- [security] Twig in page content can no longer use
page.path,page.filepathor{% autoescape %}, page methods it calls only change that one page for the current request, andarray_key_value()andsort_by_keyonly work with data content Twig may read - [security] Settings hidden from content Twig by
security.twig_sandbox.config_denied_pathsnow stay hidden through loops, theme helpers, plugin page settings, theme aliases, unusual path separators and full config listings
-
[2.3.8]
- Update grav to 2.2.22
- Full Changelog
- On servers with the PHP
yamlextension, a YAML file with a plainy,yes,on,off,nornokey keeps that key instead of turning it into1or0, so settings such as an image'sy:size and theYES/NOlanguage strings load the same as on servers without the extension - An asset added by the site's own full URL, such as
url('theme://css/custom.css', true), or by a link that starts with the site's subfolder, no longer renders with the host or subfolder twice
-
[2.3.9]
- Update grav to 2.2.23
- Full Changelog
- When a cache file can't be deleted, the cache purge job and
bin/grav clearnow name the file and the reason (such as "Permission denied") instead of "Unknown error", and carry on with the rest of the cache instead of stopping at the first one (#4384) - [security] The
svg_image()Twig function now escapes the classes it adds to the SVG. Thanks @manus-pi - [security] The
svg_image()Twig function only inlines real.svgfiles, so a theme that takes the image path from a page header can no longer be pointed at other files on the server
-
[2.3.10]
- Update grav to 2.2.24
- Full Changelog
- Running a plugin's test suite against a Grav checkout no longer leaves a
user/config/security-private.phpin the plugin's folder, where agit add -Acould commit it into the plugin's release. Grav now creates the key file only in a real Grav install, and code that loads Grav's classes from anywhere else gets a key that lasts for that process
-
[2.3.11]
- Update grav to 2.2.27
- Full Changelog
- Showing the same image twice with different
derivatives()ranges, for example in two modules on one page, no longer stretches the second set of responsive images, and the second set can now go up to the full width of the original #4389 - Cropping or resizing an image after
derivatives(), such asderivatives(400, 800, 400).cropZoom(300, 300), scales its responsive images down with it instead of making them larger than the image itself - Links and images to media files with
#,?or%in their names work again, written percent-encoded (Invoice%20%2312.pdf) or in angle brackets. Media URLs now come out percent-encoded too, so a space is%20#4388
-
[2.3.12]
- Update grav to 2.2.29
- Full Changelog
- Log files in
logs/now rotate when they reach 10 MB:grav.logbecomesgrav.log.1, older copies are gzipped (grav.log.2.gzand on), and five are kept.grav.log,security.logandscheduler.logrotate as they are written, an hourlylog-rotatescheduler job catches plugin logs, andbin/grav logrotateruns it by hand. Change or turn it off undersystem.log.rotate(Configuration System Error handler) - A page can unpublish everything below it along with itself. Set
cascade_unpublish: trueon a page (Options "Unpublish child pages too"), and while that page is unpublished, bypublished: falseor by itspublish_date/unpublish_date, every page below it is unpublished too: left out of menus, collections, the sitemap and search, and not served. The pages below keep their ownpublishedsetting, so they are back as they were once the parent is published again, and a section given apublish_dategoes live all at once.system.pages.cascade_unpublish(Configuration System Content) sets the default for every page, and is off.$page->unpublishedBy()returns the route of the page that hides a page - A backup profile's Scheduled Backup switch now decides on its own whether the backup runs. An old Enabled or Disabled entry for the backup job in
user/config/scheduler.yaml, which classic admin wrote whenever its Scheduler page was saved, used to override it, so backups could stop with the switch on #4397 - A scheduler job that fails now keeps what it printed to standard output as well as its error output, so the reason shows in the job's history,
user/data/scheduler/status.yamland the output file. Most console commands print their errors to standard output, so a failed run used to be recorded with no output at all - A page with a link or image whose address is longer than any file path, such as an inline image written as
/data:image/png;base64,..., no longer turns into an error page on servers withopen_basedirset - Several Grav sites on one server no longer try to load each other's files. The class loader's APCu cache is now kept separate for each site, so a class found in one site's
vendor/folder is never looked up at another site's path #4392 - The Page IDs option and the GFM and table Markdown options in Configuration System use translation keys instead of English written into the blueprint, so they can be translated. The English comes from Admin2 2.2.13 and Admin 1.10.63
-
[2.3.13]
- Update grav to 2.2.30
- Full Changelog
- Added Maltese (
mt, Malti) to the language codes #4408 - A scheduler run started from the admin on a host where PHP's
proc_openis disabled skips the command jobs it can't start instead of recording them as failed, and still runs the jobs that call PHP, such as backups.Scheduler::canRun($job)tells the two apart #4397 - Retina images up to
@10xare grouped with their base image again, as on 1.7, instead of@5xand higher showing up as separate media. Missing steps are still only generated up to@4x, and deleting the base image no longer removes files above the limit that are listed on their own admin2#214 - A
summary:setting left empty inuser/config/site.yaml, such as one whose lines are all commented out, no longer stops page summaries with an "Undefined array key" error (seen on simplesearch results). Summaries fall back to the shipped settings instead simplesearch#211
-
[2.3.14]
- Update php-base | final to 8.5-20261119
- Fixes CVE-2026-115560
-
[2.3.15]
- Update grav to 2.2.31
- Full Changelog
- Media of an unpublished page, including a page unpublished by a parent with
cascade_unpublish, is no longer served through the page route. Thanks @MAYASEVEN and @fazilsubair
-
[2.3.16]
- Update grav to 2.2.32
- Full Changelog
- Images referenced through a stream such as
media://now get asrcsetfrom their@2x/@3xsiblings, the same as page media admin2#222 - The Template select on a page's Advanced tab in classic admin follows the "Hide page types" and "Hide module types" settings, and keeps a page's own template when it is hidden admin#2244
-
[2.3.17]
- Update grav to 2.2.33
- Full Changelog
- Added PHP 8.6 compatibility (while keeping PHP 8.3+ support): replaced deprecated
spl_object_hash()calls withspl_object_id(), replacedis_a()on possible strings withinstanceof ArrayAccess, guardedparse_str()andUri::pathExists()against NUL-byteValueErrorexceptions, handledpreg_grep()andCollator::asort()error fallbacks, normalizedPage::taxonomy()input beforearray_walk(), and cleaned up remaining PHP 8.5+ deprecations (finfo_close(),Reflection*::setAccessible(),case ...;, null array offset inJob, andimagedestroy()in tests) - Faster page rendering on large sites: navigation menus work out the current page's parents once per request instead of once per menu item, and
active()/activeChild()and absolute URLs look up a single route instead of loading every route from the lazy page index - Sorting a collection no longer encodes every page's metadata as JSON to build its cache key, which took about 1 ms per sort on a 2,000-page blog
dateRangeandtype/typescollection filters read page dates and templates from the page index instead of loading every page in the collection (2025% faster on a 2,000-page blog)- The Redis and Memcached cache drivers share one connection per request instead of opening one for each cache
- Smaller savings: linked CSS/JS pipeline bundles aren't read from disk on every request, the summary-divider regex only runs when the content has a divider, and
Collection::isFirst()/isLast()no longer copy the item list - A
media://(or other stream) image in a folder whose name starts with a number, such as a2022/09upload folder, rendered with a broken//media:2022//09/...address. Images with resize or crop actions and HTML<img>tags in content were affected too #4417 Utils::replaceLastOccurrence()no longer cuts in the wrong place when the text has multibyte characters before the match (/blog/ber-uns.jsoncame out as/blog/ber-uns.)Uri::post()with a filter no longer logs a PHP deprecation on every call. It compared against the deprecatedFILTER_SANITIZE_STRINGconstant, which PHP 9 removes- Removed a call to
ArrayAdapter::setNamespace(), which doesn't exist in Symfony Cache 7, from thearraycache driver, plus a few smaller static-analysis cleanups
-
[2.3.18]
- Update grav to 2.2.35
- Full Changelog
bin/grav install --devandbin/grav composer --devkeep Composer's dev dependencies. Both commands always ran Composer with--no-dev, so runningbin/grav installafter a plaincomposer installremoved the dev packages again #4422- The scheduler no longer forgets a job's last run when a slow run overlaps the next minute's run, which made hourly jobs that ran on time show as never having run
- A browser that was signed in when its account was deleted is now signed out on its next request. Thanks to @inanna-malick for the report
- [security] The security fixes below were found by Anthropic's OSS Scanner
- [security] Page and taxonomy setters called from Twig in page content keep only plain data, and the session options in system configuration can't be read from page content
- [security] Page content can only change the page being rendered: setter methods called with arguments on any other page are refused
- [security] Saving a Flex group or account no longer drops a permission that overrides the one above it, such as a denied backup under allowed system access
- [security] The Twig
constanttest follows the content sandbox's function allowlist, a collection'ssort_flagsonly accepts sort flag names, andmedia_directory()only opens local media folders - [security] The asset pipeline and inline asset loader only read stylesheets and scripts inside the Grav folder, and asset lists that can't be encoded get a bundle of their own
- [security] Folders named like configuration files are no longer loaded as configuration (run
bin/grav clearonce after updating)
-
[2.3.19]
- Update grav to 2.2.36
- Full Changelog
- Form emails and save actions whose body includes
forms/default/data.txt.twig,forms/default/data.html.twigorforms/default/data.save.txt.twigrender again with the Twig sandbox on. Only theforms/data.*names were trusted partials, so the{% autoescape %}tag in the default templates was refused and the email went out with the raw Twig as its body. Theforms/data.*templates only extend thedefault/ones, so trusting both names grants nothing new - Collections sorted with different
sort_flagsin the same request each get their own order instead of reusing the first one's, andPages::sort()with explicit flags no longer replaces the folder's stored order. Thanks @​ZainnQureshii #​4431
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login