Closed indigoxela closed 7 months ago
Same error here running multi-site. Some sites were ported from Drupal but others were built on Backdrop. Same error on all sites.
Hm. So, it's not just my site. Pinging @docwilmot to get some maintainer attention.
I'm not very familiar with mini_layouts. In fact, that is was still installed on my site was an oversight.
Looking at the commit that added that update hook, it seems that previously this "region name" used to be a string, but is now an array. So, if it's an array already, there's nothing to update, anyway. Caution: lots of assumptions on my side. :wink:
My PR just skips over that region, then.
Thanks indigoxela, works for all my sites.
Works for me. @docwilmot - this probably needs releasing so other people don't encounter when updating
What I get:
And the update fails with message:
The problematic line in the update:
The problem is, that backdrop_html_class() expects a string, but region name at that point (on my site) is an array.
Debug:
Changing it to
backdrop_html_class($region_name['name'])
fixed it for me. Not sure, if this$region_name
is always an array, though, or just some special case (old stuff) on my site (no production site, btw, so no big problem for me, but might be for others).