-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GPM Uninstall script stops working after upgrade to 1.7 #3172
Comments
@mahagr, I've noticed before that if any plugin fails after upgrade, the CLI will not work anymore and throws an Exception. For example:
Here is the code for CadPHP: https://github.com/cadjou/grav-plugin-cadphp/blob/master/cadphp.php |
I think it’s just the type not generic enough, should be expecting any BasePackage not just RemotePackage types. |
Yeah, fixing... |
Can you try if the fixed code works for you? |
|
Ok, that was unexpected. I fixed clearcache already elsewhere, but looks like I need to do it here, too. |
@mahagr your fix worked for me as well, as I could successfully uninstall the Problems plugin. @pamtbaau already noticed the issue that arose afterwards, which also happens for me with said plugin. Just fyi
|
That error should be fixed, too. |
Thanks for your effort @mahagr! Unfortunately, I am still getting the same error as before after uninstalling the plugin problems. Tried at 1.7.5 and verified that your latest commit was present in my build. The errors differ though, for different plugins. The plugin error didn't return any issues, but git-sync did return the following. Not sure if it is related.
On a side note; my IDE (intelephense) seems to point at the lines 205 and 214 with the following notice for
|
Should be fixed in #3207 |
I've searched around some time but can't seem to find clues to solving this puzzle. After upgrading my GRAV installation to 1.7 through CLI, the
bin/gpm uninstall
command seems to be broken.I've tested the command with two plugins: mobile-detect and problems, with the same result for both plugins.
To see what caused the issue, I rolled back some updates of composer packages and GRAV to v1.6. I tested the script after each step and found that it only stopped working after upgrading GRAV to v1.7. I hope someone could point me in the right direction, since it doesn't seem to be a common issue.
The text was updated successfully, but these errors were encountered: