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
While execuing vendor/bin/oe-console oe:module:deploy for more than the first time, the oxid process throws an exception:
Activating molliepayment
An exception occurred: OxidEsales\EshopCommunity\Internal\Framework\Module\Setup\Exception\ControllersDuplicationModuleConfigurationException Controller namespace duplication: Mollie\Payment\Application\Controller\MollieWebhook
This is caused by vendor/oxid-esales/oxideshop-ce/source/Internal/Framework/Module/Setup/Validator/ControllersValidator.php
It always check against a lower case controller name, but adds it "as is" to the config. That way, after the module config was deployed the first time, there will be a Controller with 'MollieWebhook' =>Mollie\Payment\Application\Controller\MollieWebhook::class in the config, it check against molliewebhook which is not present, and afterwards tries to add the namespace Mollie\Payment\Application\Controller\MollieWebhook to the config, which is already present and fails.
This causes the activation of the mollie module to fail, which then causes that the Events and therefor all SQLs inside cant run. Since OXID will also convert frontend-calls to controllers to lowercase, there is no benefit in having them in camelCase in the metadata.
My suggestion would be to change all controller configurations in the metatdata to lowercase like
While execuing
vendor/bin/oe-console oe:module:deploy
for more than the first time, the oxid process throws an exception:This is caused by
vendor/oxid-esales/oxideshop-ce/source/Internal/Framework/Module/Setup/Validator/ControllersValidator.php
It always check against a lower case controller name, but adds it "as is" to the config. That way, after the module config was deployed the first time, there will be a Controller with
'MollieWebhook' =>Mollie\Payment\Application\Controller\MollieWebhook::class
in the config, it check againstmolliewebhook
which is not present, and afterwards tries to add the namespaceMollie\Payment\Application\Controller\MollieWebhook
to the config, which is already present and fails.This causes the activation of the mollie module to fail, which then causes that the Events and therefor all SQLs inside cant run. Since OXID will also convert frontend-calls to controllers to lowercase, there is no benefit in having them in camelCase in the metadata.
My suggestion would be to change all controller configurations in the metatdata to lowercase like
Tested on OXID 7.1 & PHP 8.2
The text was updated successfully, but these errors were encountered: