Undefined index error for state when app deployed to GCP #226
Closed
duyn-stanford
started this conversation in
Bugs
Replies: 2 comments
-
This was resolved by downgrading PHP version from 8.0 to 7.4 and manually registering states. Not sure if downgrading PHP was necessary.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Hey @duyn-stanford we just released a fix for this in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am getting this very frustrating undefined index error that only occurs when my app is deployed to GCP. Works fine locally (of course) but, in GCP, a state I have defined cannot be found and I get an undefined index error. For some reason, I have to modify the abstract state class, e.g.,
touch app/states/Idea/IdeaState.php
(see code below). Then go into tinker to fetch the registered states, i.e., runphp artisan tinker
and then callIdea::getStates()
to resolve the undefined index error. Anyone have any clue what is going on?Beta Was this translation helpful? Give feedback.
All reactions