How Do I Fix Shop ID Conflicts in Shopware 6?
When working with staging or development environments in Shopware 6, you may encounter unexpected app behavior. One common cause is a conflict with the Shop ID. This issue arises after cloning a live database into a staging setup, resulting in both environments sharing the same unique Shop ID.
Problem: Shop ID Conflict
In Shopware 6, every shop is assigned a unique Shop ID (core.app.shopId) stored in the system_config table. When staging shares the same ID as live, it causes:
- App installation failures.
- License validation errors.
- Staging is being incorrectly treated as live.
This disrupts app functionality and makes testing unreliable.
Solution: Reset Shop ID
To resolve the issue and restore proper app behavior, follow these steps:
- Uninstall the affected app(s) from your staging shop.
- Remove the Shop ID from the database:
1DELETE FROM system_config WHERE configuration_key = 'core.app.shopId'; - Reinstall the app → Shopware will automatically generate a new, unique Shop ID.
Note: Other Shopware apps (not plugins) depend on the Shop ID. After deletion, you may need to reinstall them as well. Always reset the Shop ID after cloning your live database to staging to keep environments isolated.
Conclusion
Resolving Shop ID conflicts ensures that your staging and live environments stay independent, preventing license errors and app malfunctions. By resetting the Shop ID, you create a reliable testing environment for updates and new features.
Looking for expert assistance with Shopware migration, staging setup, or app troubleshooting? Explore our Shopware development services and let our specialists help you keep your store running smoothly.
Recent help desk articles

Greetings! I'm Aneesh Sreedharan, CEO of 2Hats Logic Solutions. At 2Hats Logic Solutions, we are dedicated to providing technical expertise and resolving your concerns in the world of technology. Our blog page serves as a resource where we share insights and experiences, offering valuable perspectives on your queries.
