Upgrading from 2.0 to 3.0 -Block Editor $groups issue

Hello! I'm getting a strange error (see picture). I've tried clearing all caches. It only happens on one of my modules (name "Pages" module). I suspect this might be due to some now-deprecated style of handling blocks, but I'd really rather not update all unnecessary code yet and want to get my production site up and running first, lol. When I dig into the cached view it references in that error, I see this: <x-twill::block_editor :groups='$groups' /> Also, this error goes away if I comment out this from the affected-module's form page:
@formField('block_editor', [
'groups' => 'page'
])
@formField('block_editor', [
'groups' => 'page'
])
Any hints ya'll can think of?
No description
2 Replies
KyleAF
KyleAFOP10mo ago
HAHA, I spent about an hour trying to figure this out before bed, and figured it out RIGHT after I posted this For anyone else who has this issue: You can't be lazy with the "groups" variable in the blade template. It HAS to be an array now, and can't be a string anymore. That error message seems pretty obvious in hindsight now, lol
ifox
ifox10mo ago
glad you figured it out. I'll make sure this is called out in the upgrade guide.
Want results from more Discord servers?
Add your server