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 224 Posts
  • Grav CMS - Package Updates

    Pinned Locked
    143
    0 Votes
    143 Posts
    90k Views
    Package UpdatesP
    [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 with spl_object_id(), replaced is_a() on possible strings with instanceof ArrayAccess, guarded parse_str() and Uri::pathExists() against NUL-byte ValueError exceptions, handled preg_grep() and Collator::asort() error fallbacks, normalized Page::taxonomy() input before array_walk(), and cleaned up remaining PHP 8.5+ deprecations (finfo_close(), Reflection*::setAccessible(), case ...;, null array offset in Job, and imagedestroy() 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 dateRange and type/types collection 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 a 2022/09 upload 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.json came out as /blog/ber-uns.) Uri::post() with a filter no longer logs a PHP deprecation on every call. It compared against the deprecated FILTER_SANITIZE_STRING constant, which PHP 9 removes Removed a call to ArrayAdapter::setNamespace(), which doesn't exist in Symfony Cache 7, from the array cache driver, plus a few smaller static-analysis cleanups
  • Grav 2.0 - copying a page is slow

    24
    2 Votes
    24 Posts
    2k 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
    460 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
    485 Views
    M
    @girish Hello. The updates did solve it and the banner disappeared. Thx.
  • Updating to beta version?

    4
    1 Votes
    4 Posts
    987 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
    7k 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: image.png] Thanks to everyone for the assistance!
  • Theme development workflow ?

    3
    0 Votes
    3 Posts
    2k 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
    964 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: 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
    2k 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
    5k 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.