-
Notifications
You must be signed in to change notification settings - Fork 11
Undefined variable $page #1
Comments
What's your root page called? It should be |
I'm not sure which page you're referring to...? in (that index.php file is the one that comes packaged with Laravel) The base view for this site is using What am I missing? |
No, your Inertia root template. See https://inertiajs.com/server-side-setup |
So it needs to be |
Shoot sorry, no. It should be |
Ok cool, so yes that’s already set up…I’m pretty sure I’ve followed all the directions so it’s confusing for sure. When that condition in this library is noted out, the page loads with the initial data attribute populated, and I assume it would work from there as expected… |
@skylennard Did you ever work this out? |
Hi Adam, Think I've at least managed to recreate this one, or something similar. Steps to recreate:
For whatever reason, Statamic was saving with template 'home' and template_field 'app'. Updating it in the .md file seemed to work. |
I'm trying to implement this connector (v0.1.2) in my Statamic v3.1.23 site and I'm getting this
undefined variable $page
error.When troubleshooting, I've discovered it's happening due to
$page->augmentedValue('template') === 'app'
beingfalse
(in InertiaStatamic.php), so the Inertia render isn't triggered. If I note out this conditional statement, then the page seems to load!From what I can tell now, there's no template value being augmented anymore that indicates which template is rendering the requested path?
This is definitely confusing...
Help?
Thanks so much!
The text was updated successfully, but these errors were encountered: