Closed gramakri closed 2 years ago
I think the issue started happening after https://github.com/getgrav/grav-plugin-login/commit/05e7003faf7ea8547295d51bea597ee3c372e9fe
confirmed, we'll take a look at this.
If it helps, this is easily reproduced using a vanilla cms installation (using docker) like so:
$ docker run -ti cloudron/base:3.0.0 /bin/bash
root@a1e17735d9cf:/# export VERSION=1.7.20
root@a1e17735d9cf:/# mkdir -p /app/code
root@a1e17735d9cf:/# cd /app/code
root@a1e17735d9cf:/app/code# curl -sL https://github.com/getgrav/grav/archive/${VERSION}.tar.gz | tar -xz --strip-components 1 -f -
root@a1e17735d9cf:/app/code# chown -R www-data:www-data /app/code
root@a1e17735d9cf:/app/code# gosu www-data:www-data composer install --no-dev -o
root@a1e17735d9cf:/app/code# gosu www-data:www-data bin/grav install
root@a1e17735d9cf:/app/code# gosu www-data:www-data bin/gpm install admin
root@e9620f3a92af:/app/code# gosu www-data:www-data bin/plugin
Usage:
bin/plugin [slug] [command] [arguments]
Example:
bin/plugin error log -l 1 --trace
Plugins with CLI available:
01. email bin/plugin email list
02. error bin/plugin error list
03. flex-objects bin/plugin flex-objects list
04. problems bin/plugin problems list
root@e9620f3a92af:/app/code# gosu www-data:www-data bin/plugin login
In Container.php line 101:
Identifier "login" is not defined.
If you want the full command output of the above - https://paste.cloudron.io/xucivifapu.rb
Above commit should fix the issue.
Thanks for getting onto this so fast. What is the best way to verify the fix for us prior to a plugin release?
I tried looking into a way through gpm direct-install
but didn't spot any way.
You can try the fix by manually copying/modifying the plugin file.
@mahagr @rhukster Can confirm the fix works. Tested with https://git.cloudron.io/cloudron/grav-app/-/commit/de390a3925b9b9879e0436ee68a8bbafc7001d49
I am trying to update the GravCMS Cloudron package to the latest release 1.7.19. With recent releases of the admin plugin, I found that
bin/plugin login new-user
does not work anymore. It fails withIdentifier "login" is not defined.
Digging deeper, I found that the CLI is having trouble loading the login plugin. As you can see below, the
login
plugin is not even listed anymore.Digging even deeper, I logged the exception in Plugins.php::all() :