Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content

Grav CMS

15 Topics 180 Posts
  • Grav CMS - Package Updates

    Pinned Locked
    99
    0 Votes
    99 Posts
    72k Views
    Package UpdatesP
    [1.10.15] Update grav to 2.0.15 Full Changelog A plugin's blueprints can use the data providers that plugin ships again, instead of having every one of them refused by a check that only recognised the providers core itself registers (getgrav/grav-plugin-email#193). Fields defined in page frontmatter are held to the stricter rule instead, which is where the risk actually was. [security] A configuration admin can no longer reach an unvetted built-in routine by writing a blueprint field's data provider as a plain function name, a spelling that was still being checked against a list of known-bad names rather than the list of approved ones (GHSA-f8wv-xp27-6gq7). [security] The content security scan now reads an unpaired quote inside an unquoted attribute value the way a browser does, closing another way a page editor could hide a script from it (GHSA-vfmf-q6x9-cw96). [security] The media URL in an audio or video tag is now escaped, so a filename carrying markup can no longer add its own attributes to the player (GHSA-6qw9-4vv5-jr97). JSON responses no longer fail outright when the data contains invalid UTF-8. json_encode() returns false on malformed bytes, and the PSR-7 response body is type-hinted string|resource|StreamInterface, so that false came back out as an unhandled TypeError from inside the vendor stream rather than as a response. Affected createJsonResponse() and both JSON error responses in ControllerResponseTrait, where an exception message carrying a bad byte would take out the error handler itself, plus the Clockwork data endpoint in Debugger. Bad bytes are now substituted, and the remaining structural failures (recursion depth, INF/NAN) raise a catchable JsonException instead of a silent false. Output for valid data is unchanged. [security] The fast static asset server now keeps a request inside the directory the site published, instead of also allowing any neighbouring directory whose name starts with the same letters (GHSA-4v9q-p283-qc2m). [security] File uploads now reject a few more extensions that browsers run script from, or that a server may hand to PHP: xhtml, xht, svgz, php7, php8, pht, phtm and phps (GHSA-66xf-ggf4-6hmc). [security] The bundled Caddyfile protections did nothing. They were written as nginx-style regexes, which Caddy reads as literal paths that never match, and the respond they redirected to ran after the catch-all rewrite had already claimed the request. A site served with this config handed out user/accounts/, user/config/, logs/, composer.lock, page files, and the system/ and vendor/ folders to anyone who asked. The rules are now named path_regexp matchers answering 403 directly, inside a route block so they run before the rewrite, and they were checked request by request against the .htaccess behaviour.
  • Grav 2.0 - copying a page is slow

    24
    2 Votes
    24 Posts
    860 Views
    robiR
    @superhua good to verify. Find an issue upstream or file one?
  • Grav 2.0 - migration recommended, but may not be possible (?)

    3
    0 Votes
    3 Posts
    204 Views
    S
    True, but Admin 1 does not look to be compatible with Grav 2 (which was made to work with Admin 2). Further, at least from my understanding, there are other issues that arose for our site that would have been mitigated through the migration process.
  • Login Security Warning

    5
    1
    2 Votes
    5 Posts
    248 Views
    M
    @girish Hello. The updates did solve it and the banner disappeared. Thx.
  • Updating to beta version?

    4
    1 Votes
    4 Posts
    712 Views
    girishG
    @superhua whoops yes, my mistake. I put a wrong regexp. But I also found that all that 1.7.50.x releases have been removed upstream - https://discourse.getgrav.org/t/upgrade-to-grav-v1-7-50-9-not-working/29222/4 . I will revoke all the packages .
  • Grav Git sync

    12
    1 Votes
    12 Posts
    6k Views
    C
    I have this working in both directions now! The key was : 14 su www-data -c 'git config --global user.name ReachableCEO' 15 su www-data -c 'git config --global user.email charles@turnsys.com' And I then created a page in grav and it synced up to my repo: [image: 1751809993049-d33c2657-6655-4fa5-a197-c06bce068c7b-image-resized.png] Thanks to everyone for the assistance!
  • Theme development workflow ?

    3
    0 Votes
    3 Posts
    1k Views
    M
    Yes indeed, that's how I proceeded in the end. It worked fairly well. BTW, I just came across the remote development feature of the Zed editor (https://zed.dev/docs/remote-development). Don't know if that could work in an app/code/ directory but if, it will make coding Grav easier.
  • Excessive backup size

    2
    1 Votes
    2 Posts
    821 Views
    J
    @martinv It looks like Grav creates it's own backups by default there. You can change this in /admin/tools The default is 5GB which matches your size! Technically, Cloudron already takes backups , so these backups are sort of redundant [image: 1730918895452-4495d127-a027-4345-b484-69906f865019-image.png]
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Multisite Support

    3
    1 Votes
    3 Posts
    2k Views
    J
    @girish said in Multisite Support: @JLX89 not yet! I think when the Grav CLI is updated, it would be easier to test things out a bit more. That sounds great, thank you!
  • Admin plugin update

    3
    0 Votes
    3 Posts
    1k Views
    A
    @girish Thank you!
  • Logos has been removed after app restart

    6
    2
    0 Votes
    6 Posts
    3k Views
    theompmT
    @girish good job. it works
  • Grav LDAP login plugin

    2
    0 Votes
    2 Posts
    1k Views
    girishG
    The package was initially made by @jimcavoli . It seems he initially packaged with LDAP but subsequently removed it - https://git.cloudron.io/cloudron/grav-app/-/commit/94f656384e6c808e5a2bbc59e944f587f5362382 . @jimcavoli do you remember why?
  • Cron for Backups

    Solved
    5
    1
    0 Votes
    5 Posts
    3k Views
    ?
    Oh yes, i just realized that it actually is already setup. Sorry - works fine
  • Plugins do not work well

    Solved
    8
    0 Votes
    8 Posts
    4k Views
    nebulonN
    In my case I was installing the plugin via the webinterface. To reset the permissions usually in all apps an app restart does this already. So maybe indeed a simply app restart fixes that.