Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin compose install not working #64

Open
AleksandarDev opened this issue Oct 24, 2024 · 1 comment
Open

Plugin compose install not working #64

AleksandarDev opened this issue Oct 24, 2024 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@AleksandarDev
Copy link
Member

Following this step:

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)
@AleksandarDev AleksandarDev added bug Something isn't working help wanted Extra attention is needed labels Oct 24, 2024
@fmarencic
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants