Can't reproduce. What are your PHP, EE and LV versions?
Also, does this error occur when you're creating a new Grid var, or only when editing one? Other vars are fine? What about just an Assets var (as I see you're using that, too)?
Testing on php ver 7.1.2, EE 4.0.1 and LV ver 3.1.0. Getting errors when accessing variables via Manage Variables...happens on all variable types. And when trying to create a variable.
If you disable the Grid variable type in LV, the error goes away. I've debugged the file mentioned in the error to output the non-array value it was tripping on, and got:
Replies
Low 9 Dec 2017 08:42
Can't reproduce. What are your PHP, EE and LV versions?
Also, does this error occur when you're creating a new Grid var, or only when editing one? Other vars are fine? What about just an Assets var (as I see you're using that, too)?
Josh Brodleit 9 Dec 2017 18:50
Testing on php ver 7.1.2, EE 4.0.1 and LV ver 3.1.0. Getting errors when accessing variables via Manage Variables...happens on all variable types. And when trying to create a variable.
Low 9 Dec 2017 19:04
In the LV settings, can you try and disable all non-LV and non-native variable types (like Assets) and see if the problem persists?
Any vars of those types will not have any data loss; they will just be displayed as textareas until you re-enable them.
Josh Brodleit 9 Dec 2017 19:21
Still getting those errors after disabling non-native fields:
Low 9 Dec 2017 19:24
I'll need to take a look myself. Please send SuperAdmin and FTP login credentials to hi at gotolow dot com if you can.
Josh Brodleit 9 Dec 2017 19:25
And I should note: on frontend only issues are grid fields not showing up correctly.
Josh Brodleit 9 Dec 2017 19:27
Ok, it's on local dev right now so I'll throw up early next week. Appreciate it!
Low 9 Dec 2017 19:33
The Grid var not parsing correctly in the templates looks like an EE issue. Will file a bug report with them.
Low 9 Dec 2017 20:01
Check my comment in the bug report for a fix in EE's code (re: Grid var not rendering correctly).
Josh Brodleit 13 Dec 2017 22:07
Still throwing same error after update from 4.0.1 to 4.0.2. I've included note in Bug report here: https://expressionengine.com/support/...
Josh Brodleit 14 Dec 2017 17:38
No problem. I emailed you access to staging server where you can replicate error. Look forward to hearing back. Thank you!
Low 15 Dec 2017 07:49
It's Structure.
If you disable the Grid variable type in LV, the error goes away. I've debugged the file mentioned in the error to output the non-array value it was tripping on, and got:
...which looks like a Structure setting. Should be in an array, but is a string.
If you create a new Grid field and then select the Structure type, you'll see the same error, but inline with the page, rather than on top.
I'd ask the Structure guys for support. Can't fix it from LV.