- Issue created by @dmundra
- Merge request !26Updated ddev config to include DRUPAL_CORE env variable. β (Merged) created by dmundra
- πΊπΈUnited States dmundra Eugene, OR
Tested locally by comparing ddev config in https://www.drupal.org/project/tragedy_commons β to this module and tested it locally. Changes in https://git.drupalcode.org/project/alt_text_validation/-/merge_requests/26. The test is to check out the branch and run the commands from CONTRIBUTING.md to see if you can spin up the site locally.
- πΊπΈUnited States swirt Florida
I am running into this error on running 'ddev poser'
17:29:51 Β» ddev poser % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 8538 100 8538 0 0 27324 0 --:--:-- --:--:-- --:--:-- 27365 drupalConstraint = ^10.3 core_version=10.3 Writing output to composer.contrib.json PHP Fatal error: Uncaught Error: Class "Composer\XdebugHandler\XdebugHandler" not found in /var/www/html/vendor/composer/composer/bin/composer:29 Stack trace: #0 /var/www/html/vendor/bin/composer(119): include() #1 {main} thrown in /var/www/html/vendor/composer/composer/bin/composer on line 29 Fatal error: Uncaught Error: Class "Composer\XdebugHandler\XdebugHandler" not found in /var/www/html/vendor/composer/composer/bin/composer:29 Stack trace: #0 /var/www/html/vendor/bin/composer(119): include() #1 {main} thrown in /var/www/html/vendor/composer/composer/bin/composer on line 29 touch: cannot touch 'web/core/.env': No such file or directory Failed to run poser : exit status 1
- πΊπΈUnited States dmundra Eugene, OR
@swirt try it now. I think the minimum-stability and other composer values is likely what caused the issue so I switched those values and removed some.
- πΊπΈUnited States dmundra Eugene, OR
FYI here is example https://git.drupalcode.org/project/svg_image_field/-/merge_requests/26/d... I followed for the contributing file.
- πΊπΈUnited States swirt Florida
@dmundra thank you for working on this again.
If do the following:
- git pull (to pull your new changes
- ddev delete (to make sure I have a blank slate)
- ddev start
I get the following error
PHP Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.2.0". You are running 8.1.30. in /var/www/html/vendor/composer/platform_check.php on line 24
I just pushed up a commit to resolve the php version.
Repeating the steps above results in a success for 'ddev start'
However, running `ddev poser` again fails with the same error as I started withWriting output to composer.contrib.json PHP Fatal error: Uncaught Error: Class "Composer\XdebugHandler\XdebugHandler" not found in /var/www/html/vendor/composer/composer/bin/composer:29
- πΊπΈUnited States dmundra Eugene, OR
Ya Steve still baffling why you are getting this error. I pulled down your changes, did ddev deleted and was able to get it to work. FYI what is your composer version? Here is mine:
dmundra in ~/workspace/community/alt_text_validation on branch 3503655-get-ddev-working > composer --version Composer version 2.8.4 2024-12-11 11:57:47
- πΊπΈUnited States swirt Florida
Mine seems to match yours exactly
ddev composer -V Composer version 2.8.5 2025-01-21 15:23:40 PHP version 8.2.27 (/usr/bin/php8.2)
- πΊπΈUnited States swirt Florida
Thank you @dmundra for taking this on. This is all up and running now.
- πΊπΈUnited States swirt Florida
Other than a couple minor tweaks in that last commit, the solution for me was to
- ddev delete
- delete the entire clone
- git clone the repo again.