Theme not loaded in browser
Hello -
I have created a custom Shopware theme that I am compiling with theme:compile. I can see that the two expected theme folders are created under /var/www/html/public/theme:
I can confirm that my Storefront sales channel is using this theme:
However, when I load the site, only the 9bf1323b98bdec27166ca597bfbcdaea folder is being loaded, and only its CSS file (no JS):
In contrast, when running Dockware with the same theme, both folders and all associated CSS and JS are loaded (disregard different GUIDs for the theme folders as this is a different installation):
Is there some step I'm missing in getting both themes to appear when using this Docker image?
An update on this - I have discovered that removing this line https://github.com/shopware/docker/blob/c89dd1d351bf8d1c96fc98c64f12bfd3eb83495f/fpm/rootfs/usr/local/etc/php-fpm.d/docker.conf#L10 makes my theme load properly. Obviously though that breaks environment variables - is there a known way to work around this?
How does your compose / k8s config look like. Do you use s3 for storage or just mounts?
Hi I have the same problem as @evanjamesjackson. I am using the example compose config from the README with only volumes, not s3. Is there any solution to this problem?
How does your compose / k8s config look like. Do you use s3 for storage or just mounts?
Sorry for the delay @shyim. I'm using Docker Compose volume mounts same as @JOPA159 above.
Im hitting the same problem. docker compose with local volume mounts on my end. for now there is no s3 or k8s involved.
Try installing the custom Shopware theme using composer. It solved the problem for me.
Can someone setup a example repository as a reproducer?
I'm not entirely sure if my problem is really related to this issue, but I'm getting the same behavior with the theme:compile command in my image.
My problems seems to be persist in the database. When I use the container image with a blank database, everything works fine. However, problems arise when using our existing database.
Timeline:
- We started using version 6.6.2.0 in late July.
- We have since upgraded sequentially: 6.6.2.0 → 6.6.3.0 → 6.6.4.0 → 6.6.4.1.
Current State:
After trying various solutions, uninstalling and reinstalling themes, adding the deployment-helper or introducing store.shopware.com/swagelletheme via composer, I seem to have ended up in a semi-broken state:
- It seems that some migrations for the snippets (textbausteine) are missing in the database?
- Logos appear multiple times.
- It feels like some parts of the theme's CSS are missing.
I would also say it's not relatable to that.
This is fixed by #101