You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Navigate to plugin folder ($ROOT/wp-content/plugins/<plugin_name>) and install composer dependencies:
composer install
I'm getting following error:
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.
Problem 1
- phar-io/manifest is locked to version 2.0.3 and an update of this package was not requested.
- phar-io/manifest 2.0.3 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
Problem 2
- phpunit/php-code-coverage is locked to version 9.2.30 and an update of this package was not requested.
- phpunit/php-code-coverage 9.2.30 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
Problem 3
- phpunit/phpunit is locked to version 9.6.15 and an update of this package was not requested.
- phpunit/phpunit 9.6.15 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
Problem 4
- theseer/tokenizer is locked to version 1.2.2 and an update of this package was not requested.
- theseer/tokenizer 1.2.2 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
Problem 5
- yoast/phpunit-polyfills is locked to version 1.1.0 and an update of this package was not requested.
- phpunit/phpunit 9.6.15 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
- yoast/phpunit-polyfills 1.1.0 requires phpunit/phpunit ^4.8.36 || ^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.0 -> satisfiable by phpunit/phpunit[9.6.15].
To enable extensions, verify that they are enabled in your .ini files:
- /etc/php/8.3/cli/php.ini
- /etc/php/8.3/cli/conf.d/10-opcache.ini
- /etc/php/8.3/cli/conf.d/10-pdo.ini
- /etc/php/8.3/cli/conf.d/20-calendar.ini
- /etc/php/8.3/cli/conf.d/20-ctype.ini
- /etc/php/8.3/cli/conf.d/20-curl.ini
- /etc/php/8.3/cli/conf.d/20-exif.ini
- /etc/php/8.3/cli/conf.d/20-ffi.ini
- /etc/php/8.3/cli/conf.d/20-fileinfo.ini
- /etc/php/8.3/cli/conf.d/20-ftp.ini
- /etc/php/8.3/cli/conf.d/20-gettext.ini
- /etc/php/8.3/cli/conf.d/20-iconv.ini
- /etc/php/8.3/cli/conf.d/20-phar.ini
- /etc/php/8.3/cli/conf.d/20-posix.ini
- /etc/php/8.3/cli/conf.d/20-readline.ini
- /etc/php/8.3/cli/conf.d/20-shmop.ini
- /etc/php/8.3/cli/conf.d/20-sockets.ini
- /etc/php/8.3/cli/conf.d/20-sysvmsg.ini
- /etc/php/8.3/cli/conf.d/20-sysvsem.ini
- /etc/php/8.3/cli/conf.d/20-sysvshm.ini
- /etc/php/8.3/cli/conf.d/20-tokenizer.ini
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-dom` to temporarily ignore these required extensions.
System:
Ubuntu 24.04.1 LTS (GNU/Linux 5.15.133.1-microsoft-standard-WSL2 x86_64)
Composer version 2.8.1 2024-10-04 11:31:01
PHP version 8.3.6 (/usr/bin/php8.3)
The text was updated successfully, but these errors were encountered:
This starter assumes you have set up your LEMP stack (as per README.md Requirements section). If you have some problems with Nginx, PHP, networking etc. in your environment, this should be solved separately from this project.
In your case, this error descriptively explains that you have some missing PHP extensions in your environment. Please take a look at official WP documentation about required extensions.
We are planning to prepare a Docker file which would prepare the stack in a controlled Docker container that would require you to only have a working Docker installed, apart from the whole LEMP stack.
Following this step:
I'm getting following error:
System:
The text was updated successfully, but these errors were encountered: