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

Second time Grav fails to update

admin

Started by Karmalakas 5 years ago · 4 replies · 868 views
5 years ago

The first time I tried to update from 1.7.3 to 1.7.5 via Admin by clicking a button to upgrade, it failed without any error message and after refreshed the page, I've got

TXT
Please run: bin/grav install

Ran it and page was live again. Don't remember the command output though.

Now tried to update from 1.7.5 to 1.7.7, but with console open. I've got same run: bin/grav install on refresh, but also in console:

PHP
admin.min.js?b56df61666:845  at 

Fatal error:  Uncaught Whoops\Exception\ErrorException: include(G:\<...>\vendor\composer/../filp/whoops/src/Whoops/Exception/Formatter.php): failed to open stream: No such file or directory in G:\<...>\vendor\composer\ClassLoader.php:476
Stack trace:
#0 G:\<...>\system\src\Grav\Common\Debugger.php(843): Whoops\Run->handleError(2, 'include(G:\\___D...', 'G:\\___DEV___\\la...', 476)
#1 G:\<...>\vendor\composer\ClassLoader.php(476): Grav\Common\Debugger->deprecatedErrorHandler(2, 'include(G:\\___D...', 'G:\\___DEV___\\la...', 476, Array)
#2 G:\<...>\vendor\composer\ClassLoader.php(476): include()
#3 G:\<...>\vendor\composer\ClassLoader.php(344): Composer\Autoload\includeFile('G:\\___DEV___\\la...')
#4 [internal function]: Composer\Autoload\ClassLoader->loadClass('Whoops\\Exceptio...')
#5 G:\<...>\vendor\filp\whoops\src\Whoops\Handler\JsonResponseH in G:\<...>\vendor\composer\ClassLoader.php on line 476

Fatal error:  Uncaught Error: Class 'Whoops\Exception\Formatter' not found in G:\<...>\vendor\filp\whoops\src\Whoops\Handler\JsonResponseHandler.php:69
Stack trace:
#0 G:\<...>\vendor\filp\whoops\src\Whoops\Run.php(340): Whoops\Handler\JsonResponseHandler->handle(Object(Whoops\Exception\ErrorException))
#1 G:\<...>\vendor\filp\whoops\src\Whoops\Run.php(422): Whoops\Run->handleException(Object(Whoops\Exception\ErrorException))
#2 G:\<...>\system\src\Grav\Common\Debugger.php(843): Whoops\Run->handleError(2, 'include(G:\\___D...', 'G:\\___DEV___\\la...', 476)
#3 G:\<...>\vendor\composer\ClassLoader.php(476): Grav\Common\Debugger->deprecatedErrorHandler(2, 'include(G:\\___D...', 'G:\\___DEV___\\la...', 476, Array)
#4 G:\<...>\vendor\composer\ClassLoader.php(476): include()
#5 G:\<...>\vendor\composer\ClassLoader.php(344): Composer\Autoload\includeF in G:\<...>\vendor\filp\whoops\src\Whoops\Handler\JsonResponseHandler.php on line 69

Ran the command, it installed a lot of stuff and at the end got this:

TXT
Generating optimized autoload files
Class ParsedownExtraTest located in G:/<...>/vendor/erusev/parsedown-extra\test\ParsedownExtraTest.php does not comply with psr-0 autoloading standard. Skipping.
23 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

ERROR Missing .dependencies file in user/ folder
HINT Are you trying to install Grav? Grav is already installed. You need to run this command only if you download a skeleton from GitHub directly.

Anything I can do to avoid this and make upgrade via Admin smooth as it once was?

5 years ago

hm, yes, the HINT seems right: bin/grav install is not the correct command for update, but
bin/gpm update or bin/gpm selfupdate
did you try that ?

5 years ago

@hoernerfranz:
bin/gpm update or bin/gpm selfupdate
did you try that ?

I did not. But after running bin/grav install Grav is updated and everything seems to be working.

5 years ago

that seems strange, as 'bin/grav install' is really not intended for update.
anyway - if that solved the issue, ok.

5 years ago

It solved last time too, but now issue was back again, so not sure it really solves the core issue

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
3 94 4 hours ago
Support · by Anna, 3 days ago
2 94 1 day ago
Support · by Justin Young, 1 day ago
1 64 1 day ago
Support · by Duc , 1 week ago
2 100 6 days ago
Support · by Colin Hume, 1 week ago
2 91 6 days ago