Troubleshooting 404 Errors After a Shopware Update: A Case Study
Resolving Theme 404 Errors After a Shopware Update
This community discussion on the Shopware forum highlights a common issue encountered after updating a Shopware store: a 404 error related to the all.js file. The original poster, code.bach, reported receiving a theme/4dfab05e0110e4a3ee63c438d92e87d0/js/all.js net::ERR_ABORTED 404 (Not Found) error after updating their Shopware instance and running ./bin/build-storefront.sh. They also suspected that their custom JavaScript files were not functioning correctly due to this problem.
Max_Shop responded, pointing out that all.js should not exist in Shopware 6.6+ versions. They suggested that the file might be hardcoded within the theme being used. Max_Shop provided a link to the Shopware changelog, specifically referencing the removal of all.js in Shopware 6.6.0.0, which introduced asynchronous JavaScript loading.
The relevant section of the changelog states:
title: Async JavaScript and all.js removal
issue: NEXT-30176
---
# Storefront
* Deprecated `all.js` inside `Resources/views/storefront/layout/meta.html.twig`. Each app/plugin will get its own JavaScript served by a separate `