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

The skeleton installer fails in the post-update-cmd phase #162

Open
settermjd opened this issue Nov 20, 2024 · 1 comment
Open

The skeleton installer fails in the post-update-cmd phase #162

settermjd opened this issue Nov 20, 2024 · 1 comment
Assignees
Labels
Bug Something isn't working

Comments

@settermjd
Copy link

Bug Report

Q A
Version(s) 3.15.0

Summary

After providing responses to all of the skeleton installer's questions, the install fails because Mezzio\Helper\ConfigProvider is registered more than once.

Current behavior

In the post-update-cmd phase of the installation, output such as the example below is printed to the terminal, showing that Mezzio\Helper\ConfigProvider is registered more than once, breaking the call to php bin/clear-config-cache.php.

> php bin/clear-config-cache.php
PHP Fatal error:  Uncaught Laminas\ConfigAggregator\InvalidConfigProviderException: Mezzio\Helper\ConfigProvider is registered more than once. Config providers should be unique. In case a specific order is required, please double check before deleting the duplicate(s). in /home/dev/projects/mezzio//stock-valuation-tracker/vendor/laminas/laminas-config-aggregator/src/InvalidConfigProviderException.php:15
Stack trace:
#0 /home/dev/projects/mezzio//stock-valuation-tracker/vendor/laminas/laminas-config-aggregator/src/ConfigAggregator.php(118): Laminas\ConfigAggregator\InvalidConfigProviderException::fromDuplicateProvider()
#1 /home/dev/projects/mezzio//stock-valuation-tracker/vendor/laminas/laminas-config-aggregator/src/ConfigAggregator.php(85): Laminas\ConfigAggregator\ConfigAggregator->validateNoDuplicateProviders()
#2 /home/dev/projects/mezzio//stock-valuation-tracker/config/config.php(49): Laminas\ConfigAggregator\ConfigAggregator->__construct()
#3 /home/dev/projects/mezzio//stock-valuation-tracker/bin/clear-config-cache.php(9): include('...')
#4 {main}
  thrown in /home/dev/projects/mezzio/stock-valuation-tracker/vendor/laminas/laminas-config-aggregator/src/InvalidConfigProviderException.php on line 15
Script php bin/clear-config-cache.php handling the clear-config-cache event returned with error code 255
Script @clear-config-cache was called via post-update-cmd

How to reproduce

  • Start off by running composer create-project mezzio/mezzio-skeleton <package name>, where <package name> is a name of your choosing
  • Answer the prompts as you prefer
  • After the final question is answered, the installer will fail with output similar to the example provided above

Expected behavior

The installer should complete without errors or failures.

@settermjd settermjd added the Bug Something isn't working label Nov 20, 2024
@settermjd settermjd self-assigned this Nov 20, 2024
@froschdesign
Copy link
Member

Duplicate of #161

@froschdesign froschdesign marked this as a duplicate of #161 Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants