I\'m trying to simulate this error with a sample php code but haven\'t been successful. Any help would be great.
\"Cannot use string offset as an array\"
When you directly print print_r(($value['']->)); then it shows this fatal error Cannot use string offset as an object in. If you print like this
print_r(($value['']->));
Cannot use string offset as an object in
$var = $value['#node']->; print_r($var);
You won't get the error!!