shopware / paas

PaaS template based on production template
MIT License
10 stars 14 forks source link

Theme compilation fails for custom themes during deployment #16

Open maciej-powallo-spyro opened 1 year ago

maciej-powallo-spyro commented 1 year ago

PHP Version

8.1

Shopware Version

6.4.18.0

Expected behaviour

Release to the environment in platform.sh will be possible

Actual behaviour

The system returns an error message: Unable to find the theme "XXXX".

How to reproduce

Theme compilation fails for the child of a custom theme via a plugin during releasing changes on shopware PASS (platform.sh). Currently, theme:compile returns the error message "Unable to find the theme "XXX"" but the plugin is added in the composer. There are no problems in the local environment

  1. Instal the purchased theme by the composer
  2. Turn on and activate the plugin
  3. Create a child theme as a composer package
  4. Turn on and activate the plugin
  5. Dump theme configuration
  6. Push changes to GitHub
  7. Platform.sh CI/CD returns an error 15:06:30 CRITICAL [console] Error thrown while running command "theme:compile". Message: "Unable to find the theme "XXX" ["exception" => Shopware\Storefront\Theme\Exception\InvalidThemeException { …},"command" => "theme:compile","message" => "Unable to find the theme "XXX""]