Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When I add a bean to a Panels page, using the block that's automatically provided, the following errors are displayed in the Panels admin UI:
Notice: Array to string conversion in drupal_validate_utf8() (line 1573 of includes/bootstrap.inc).
Warning: preg_match() expects parameter 2 to be string, array given in drupal_validate_utf8() (line 1579 of includes/bootstrap.inc).
Comments
Comment #1
DamienMcKennaFYI the above happens with CTools v7.x-1.2+43-dev and Panels 7.x-3.3.
Comment #2
DamienMcKennaThis is a bug in CTools: #1925018: Adding a renderable-array block to a page gives errors in the admin UI
Comment #3
DamienMcKennaA preliminary patch is available in the other issue that at least stops the error from happening though merlinofchaos might want it further improved.
Comment #4
DamienMcKennaLeaving this as Postponed until the CTools patch is in.
Comment #5
arithmetric CreditAttribution: arithmetric commentedI confirm that this warning is resolved by updating to the dev version of ctools, which has the patch Damien mentioned above.