How to resolve this error:
Cannot use string offset as an array
A clue here.
But it doesn't resolve the problem…