nextjs-headless-wordpress
nextjs-headless-wordpress copied to clipboard
Composer version conflicts with wordpress SEO plugin base requirement
Current docker file pull composer with PHP version 8 which conflicting with Wordpress SEO plugin.
Can you please elaborate on the situation, with screenshots if possible?
Composer error when try to install wordpres-seo plugin:
composer_1 | Problem 1
composer_1 | - yoast/wordpress-seo[15.1-RC1, ..., 15.9.3-RC1] require php ^5.6.20||^7.0 -> your php version (8.0.5) does not satisfy that requirement.
backend_composer_1 exited with code 2
The latest Composer docker image use:
ENV PHP_VERSION=8.0.5
ENV PHP_URL=https://www.php.net/distributions/php-8.0.5.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.0.5.tar.xz.asc
I temporarily fix this problem using the "prooph/composer:7.3" image instead of the "composer:latest" one for the composer service in the "docker-compose.yml" file.