I’m running octobercms 2.1.27 (PHP 8.0.6) in a docker container. When running the cli command to install the blog package:
php artisan plugin:install rainlab.blog
I am getting the following error at the end:
97/99 [===========================>] 97%
98/99 [===========================>] 98%
99/99 [============================] 100%PHP Fatal error: Uncaught Error: Call to undefined method Composer\Util\Platform::getEnv() in /var/www/vendor/composer/composer/src/Composer/Console/GithubActionError.php:39
Stack trace:
#0 /var/www/vendor/composer/composer/src/Composer/Console/Application.php(345): Composer\Console\GithubActionError->emit(‘file_get_conten…’)
#1 /var/www/vendor/symfony/console/Application.php(149): Composer\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#2 /var/www/vendor/composer/composer/src/Composer/Console/Application.php(128): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /var/www/vendor/composer/composer/bin/composer(74): Composer\Console\Application->run()
#4 {main}
thrown in /var/www/vendor/composer/composer/src/Composer/Console/GithubActionError.php on line 39Fatal error: Uncaught Error: Call to undefined method Composer\Util\Platform::getEnv() in /var/www/vendor/composer/composer/src/Composer/Console/GithubActionError.php:39
Stack trace:
#0 /var/www/vendor/composer/composer/src/Composer/Console/Application.php(345): Composer\Console\GithubActionError->emit(‘file_get_conten…’)
I have checked and my .env file is in the container.
Any help much appreciated.
PS: Does anyone know of the blogging package uses the DB for blog content? (or is it file-based, as with the cms content by default?) I am looking for DB-driven blog package