Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSG with multisite is displaying the wrong localized field with grid of localized entries #177

Open
freshjones opened this issue Oct 17, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@freshjones
Copy link

freshjones commented Oct 17, 2024

We are having an issue where we are trying to get our site working as a static site, but everytime we run ssg:generate a portion of our english pages get populated with the japanese data. We are using multisite and have 3 language sites en, cn, jp

The area thats failing is admittedly a pretty tricky setup... we have a fieldset using a GRID block, the grid is pulling in ENTRIES from a collection that has its fields localized. And that then gets added to a page via a "page builder" fieldset that uses a REPLICATOR field type for users to pull in different blocks to build pages.

so somewhere in there there is a bug with SSG because it works fine otherwise... e.g. static cache with full strategy and a php please static:warm generates pages correctly.

Video showing the issue
https://www.loom.com/share/7a463017b8b94943ae8e86aeaf4421e1

Repository the reproduces the problem
https://github.com/ChromaTechnology/testssg

Environment
Application Name: Statamic
Laravel Version: 11.23.5
PHP Version: 8.2.19
Composer Version: 2.7.1
Environment: local
Debug Mode: ENABLED
URL: testmultisitessg.test
Maintenance Mode: OFF
Timezone: UTC
Locale: en

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / single
Mail: log
Queue: sync
Session: file

Statamic
Addons: 1
Sites: 3 (us, cn, jp)
Stache Watcher: Enabled (auto)
Static Caching: full
Version: 5.31.0 PRO

Statamic Addons
statamic/ssg: 3.0.1

@joshuablum joshuablum added the bug Something isn't working label Oct 17, 2024
@o1y
Copy link
Contributor

o1y commented Oct 22, 2024

I'd give PR #172 a try since I had similar issues with it before. Flushing the Blink cache fixed those problems. This is already included in ssg v3.0.2 (you are using 3.0.1).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants