getgrav / getgrav/grav-plugin-admin
Grav fails to update through GUI admin or CLI if you are using =>php 8 and any Built in Server (development)
- Dominant language
- PHP
- Stars
- 377
- Forks
- 225
- Avg merge
- 11h 51m
- Merged PRs (30d)
- 4
Description
Whilst updating the last couple of version of Grav through admin, the update will fail if you are running the symphony / grav built in server ( bin/grav -server )
workaround, is to run php's server command before doing the update ( php -S localhost system/router.php ) to carry out the process through the gui or manually update the install via a zip file to replace the bin\grav folder
I am not sure at how it stands for the other files which have been updated and if the priority of the update and the removal / addition of files / point of error occurring is at the top of the priority list or at the end (after update is completed)
But if the update fails, due to the file being present in the bin\ directory where the other file have been removed, the install fails because the bin\grav is in use . This will then produce an sfetch error.
Grav 1.7.28 and 1.7.29 & PHP 8.1.0
Tested . Downloaded 1.7.28
Expanding to directory R:\grav-test
Started server at command line
PHP bin\grav server
Created admin user and login in to panel
Notification of update available (17.29)
Clicked update now
States that it is downloading update
Error appears straight away (Sfetch rmdir r:/grav-test/bin - Directory not empty)

The only line the web server reports is
[Web Server ] Jan 30 22:46:12 |INFO | SERVER GET (200) /admin/update.json/task:updategrav/admin-nonce:35bb47ddb29edd41693973ce70bad1ed
Contributor guide
Assessment
This issue has not been assessed yet.