Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Upgrade Grav to a specific version

Solved by P. Mergey View solution

Started by P. Mergey 5 years ago · 7 replies · 850 views
5 years ago

I can't find if Grav can be upgraded specifically to a definite version. For version 1.6, the documentation only says that "self-upgrade (...) allows (...) to update Grav to the latest available version", but I would like to be able to explicitly state a version and not use automatically the latest available one.

Indeed, due to the numerous successive recent changes, I would like to check plugins interoperability and themes compatibility step by step on a local installation and not directly have to deal with the most recent release.

5 years ago

Doesn't upgrading with a script from 1.6. to 1.7 run some tasks to make it work? Or /user folder is still left untouched and it doesn't matter how you upgrade?

5 years ago

Indeed, I was aware that it is still possible to update directly from an archive, but thank you for calling it back to improve this thread.

My idea was rather to know if it was possible to use the command line interface, like what exists for Composer. For example, after the version 2 was released, it was still possible to continue updating the old version by executing composer self-update --1.

5 years ago

@Karmalakas, Indeed, it does run some tasks. E.g. when upgrading from 1.6 to 1.7 the upgrade process will enable Twig compatibility settings in 'system.yaml' to prevent breaking changes when using older themes/plugins:

YAML
twig:
  autoescape: false
strict_mode:
  twig_compat: true

However, IMHO, this defies the 'autoescaping' in Twig which was implemented for security reasons. I think Grav 1.7 should have been named 2.0 and positioned as a major upgrade because of the breaking changes.

Now people upgrade without hesitation with auto-switched off security measures in Twig.

👍 1
5 years ago

@gizmecano, You might consider writing a good use-case and request a new feature for bin/gpm at github.

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 56 13 hours ago
Support · by Anna, 3 days ago
2 61 16 hours ago
Support · by Justin Young, 17 hours ago
1 32 17 hours ago
Support · by Duc , 1 week ago
2 66 5 days ago
Support · by Colin Hume, 1 week ago
2 59 5 days ago