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 doesn't seem to be able to find a template when using template: '@blueprint' using multisite #167

Open
JayGeorge opened this issue May 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@JayGeorge
Copy link

SSG doesn't seem to be able to find a template when using template: '@blueprint' using multisite (note: this could also be a problem without using multisite—I haven't tested).

Switching to an explicit template solves this.

How to Replicate

Go into the page in the CP, choose a page from the second site e.g. the home page, and select Map to Blueprint from the dropdown.
e.g. if the blueprint is called 'Home', then this should look for the template in secondsite/pages/home.antlers.html

This indeed works fine if you're running the site as normal, but when running php please ssg:generate it returns the error /second_domain (View [pages.home] not found.)

Support Details:

Environment
Laravel Version: 10.48.11
PHP Version: 8.2.16
Composer Version: 2.7.6
Environment: local
Debug Mode: ENABLED
URL: site.test
Maintenance Mode: OFF

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

Drivers
Broadcasting: log
Cache: statamic
Database: mysql
Logs: stack / single
Mail: smtp
Queue: sync
Session: file

Livewire
Livewire: v3.5.0

Sentry
Enabled: MISSING DSN
Environment: local
Laravel SDK Version: 3.8.2
PHP SDK Version: 3.22.1
Release: NOT SET
Sample Rate Errors: 100%
Sample Rate Performance Monitoring: NOT SET
Sample Rate Profiling: NOT SET
Send Default PII: DISABLED

Statamic
Addons: 7
Sites: 2 (Site One, Site Two)
Stache Watcher: Enabled
Static Caching: Disabled
Version: 5.5.0 PRO

Statamic Addons
aerni/advanced-seo: 2.5.1
jonassiewertsen/statamic-live-search: 2.1.1
jonassiewertsen/statamic-livewire: 3.3.1
rias/statamic-redirect: 3.7.1
statamic/collaboration: 1.0.0
statamic/ssg: 3.0.1
stefangalescu/statamic-heroicons: 3.0
@duncanmcclean duncanmcclean added the bug Something isn't working label Jun 21, 2024
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

2 participants