Shopware reports this error when it cannot find a theme it needs while saving or compiling. This happens when a theme that another theme builds on is no longer installed or not active, or when the database entry of a theme is missing.
Description
In the administration, for example when saving the theme configuration or assigning a theme, you receive a message with the title "Bad Request":
Unable to find the theme "{themeName}"
In current Shopware versions the same message reads:
Could not find theme with name "{themeName}"
Note: This error is very rare.
Cause
The message contains the technical name of the theme Shopware is missing. There are two reasons for this:
- A theme builds on another theme that is missing. A theme duplicate, a custom theme or an extension refers to a theme that has been uninstalled or deactivated.
- The entry of the theme is missing in the database. The theme is assigned to a sales channel, but Shopware no longer knows it.
Solution
- Open "Extensions" => "My extensions" and switch to the "Themes" tab. Check whether the theme named in the message is installed and active. Install or activate it: Installing ThemeWare®
- If the theme is active and the error remains, refresh and compile the themes. To do this, run these commands in the root directory of your Shopware installation:
bin/console theme:refresh
bin/console theme:compile
- Assign the theme to your sales channel again and save: Assigning ThemeWare®
Note: If you do not have access to the command line, contact your hosting provider or your agency. The Shopware Cloud has no command line access, please contact the Shopware support there.
