I am not sure if the is the right place to post this error, but I am getting it on panels content

Notice: Array to string conversion in drupal_validate_utf8() (line 1587 of /home/site/public_html/site/includes/bootstrap.inc).

Warning: preg_match() expects parameter 2 to be string, array given in drupal_validate_utf8() (line 1593 of /home/site/public_html/site/includes/bootstrap.inc).

I cannot figure out what to do at this point..

Comments

xbrianx’s picture

I seem to have narrowed the problem down to adding content of a Menu to the page layout

bblancha’s picture

Got the same error. Happens when I click on the gear Icon an click Edit Panel.
The panel edit screen comes up with the error:

•Notice: Array to string conversion in drupal_validate_utf8() (line 1587 of /homepages/7/xxxxxxx/htdocs/Website/includes/bootstrap.inc).
•Warning: preg_match() expects parameter 2 to be string, array given in drupal_validate_utf8() (line 1593 of /homepages/7/dxxxxxxx/htdocs/Website/includes/bootstrap.inc).
•Notice: Array to string conversion in drupal_validate_utf8() (line 1587 of /homepages/7/dxxxxxxx/htdocs/Website/includes/bootstrap.inc).
•Warning: preg_match() expects parameter 2 to be string, array given in drupal_validate_utf8() (line 1593 of /homepages/7/dxxxxxxx/htdocs/Website/includes/bootstrap.inc).

I too have Menu content included in the Panel.
Any ideas? I have all up-to-date modules as of April 13, 2013 (version 7.22 of core) and no dev versions.

xbrianx’s picture

Category: support » bug
kamasplice’s picture

Component: Miscellaneous » Panel nodes

I'm experiencing this problem after adding a Views block to a panel node's content and saving. Thereafter visiting the Panel Content tab produces the following errors:

Notice: Array to string conversion in drupal_validate_utf8() (line 1587 of /mysite/includes/bootstrap.inc).
Warning: preg_match() expects parameter 2 to be string, array given in drupal_validate_utf8() (line 1593 of /mysite/includes/bootstrap.inc).

Also confirming that it occurs with menu items. Running D7.22.

merlinofchaos’s picture

Can you try the -dev version?

xbrianx’s picture

I just installed the dev version, ran updates and cleared caches, and am still receiving the error.

kamasplice’s picture

Version: 7.x-3.3 » 7.x-3.x-dev
Component: Panel nodes » Miscellaneous

Tested Panels 7.x.3.x-dev with Chaos Tools 7.x.1.3 on a fresh D7 install.

To replicate the problem, create a Panel Page then add a menu to its content. Upon updating, two instances of the following errors occur. Upon viewing the content thereafter, one instance occurs.

Notice: Array to string conversion in drupal_validate_utf8() (line 1587 of mysite\includes\bootstrap.inc).
Warning: preg_match() expects parameter 2 to be string, array given in drupal_validate_utf8() (line 1593 of mysite\includes\bootstrap.inc).

Switching component back to misc. since it's not just panel nodes.

merlinofchaos’s picture

I'm sorry, the patch I was thinking hasn't been committed yet. See #1925018: Adding a renderable-array block to a page gives errors in the admin UI -- I am 99% certain this solves your problem.

jegaudin’s picture

Same error here. With a panel page also.

willvincent’s picture

Switching to the latest ctools dev that includes #1925018: Adding a renderable-array block to a page gives errors in the admin UI resolves this issue for me.

merlinofchaos’s picture

Status: Active » Fixed

Excellent to hear. Marking fixed based on #10.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

drupal_roadie’s picture

Version: 7.x-3.x-dev » 7.x-3.3
Status: Closed (fixed) » Needs review

When saving panel pages, I'm receiving these types of warnings and notices. The happens mainly when adding menus and views to panels with the warnings varying based on content being added. Not sure whether to use the ctools dev or patch. From postings, dev may be the solution, but this newbie assumes that he should uninstall the existing core version before installing the dev. After a failed search, how do I properly install the dev with an existing core ctools module? Sorry if this is considered spam and part of the wrong post.

  • Warning: strlen() expects parameter 1 to be string, array given in drupal_validate_utf8() (line 1599 of C:\drupal\includes\bootstrap.inc).
  • Notice: Array to string conversion in filter_xss() (line 1442 of C:\drupal\includes\common.inc).
  • Notice: Array to string conversion in filter_xss() (line 1442 of C:\drupal\includes\common.inc).
  • Notice: Array to string conversion in filter_xss() (line 1442 of C:\drupal\includes\common.inc).
  • Notice: Array to string conversion in filter_xss() (line 1442 of C:\drupal\includes\common.inc).
  • Notice: Array to string conversion in filter_xss() (line 1442 of C:\drupal\includes\common.inc).
  • Notice: Array to string conversion in filter_xss() (line 1442 of C:\drupal\includes\common.inc).
  • Warning: Invalid argument supplied for foreach() in drupal_render() (line 5886 of C:\drupal\includes\common.inc).
merlinofchaos’s picture

Status: Needs review » Closed (fixed)

1) 'needs review' means a patch is attached.
2) Did you try the latest CTools -dev as per #10, or the patch linked in #10? Either one should work. Installing a -dev module is the same as installing any other module. CTools does very little in terms of creating database tables, so it probably won't hurt to try out -dev and switch back if it doesn't fix the problem. (Back up your database first, just in case).

Returning to previous status.

drupal_roadie’s picture

Thanks Merlin, all is well with ctools dev. A third MODULES folder when using dev desktop and found ctools in the following directory.
C:\acquia-drupal\profiles\acquia\modules The existing ctools folder was deleted and replaced with dev.

dvandusen’s picture

Issue summary: View changes

Received:

Warning: strlen() expects parameter 1 to be string, array given in drupal_validate_utf8() (line 1594 of /Users/davandusen1/Library/Containers/com.bitnami.drupal/Data/app-7_19/apps/drupal/htdocs/includes/bootstrap.inc).
Notice: Array to string conversion in format_string() (line 1546 of /Users/davandusen1/Library/Containers/com.bitnami.drupal/Data/app-7_19/apps/drupal/htdocs/includes/bootstrap.inc).
Warning: strlen() expects parameter 1 to be string, array given in drupal_validate_utf8() (line 1594 of /Users/davandusen1/Library/Containers/com.bitnami.drupal/Data/app-7_19/apps/drupal/htdocs/includes/bootstrap.inc).
Notice: Array to string conversion in format_string() (line 1546 of /Users/davandusen1/Library/Containers/com.bitnami.drupal/Data/app-7_19/apps/drupal/htdocs/includes/bootstrap.inc).
Warning: strlen() expects parameter 1 to be string, array given in drupal_validate_utf8() (line 1594 of /Users/davandusen1/Library/Containers/com.bitnami.drupal/Data/app-7_19/apps/drupal/htdocs/includes/bootstrap.inc).
Notice: Array to string conversion in format_string() (line 1546 of /Users/davandusen1/Library/Containers/com.bitnami.drupal/Data/app-7_19/apps/drupal/htdocs/includes/bootstrap.inc).
Warning: strlen() expects parameter 1 to be string, array given in drupal_validate_utf8() (line 1594 of /Users/davandusen1/Library/Containers/com.bitnami.drupal/Data/app-7_19/apps/drupal/htdocs/includes/bootstrap.inc).
Notice: Array to string conversion in format_string() (line 1546 of /Users/davandusen1/Library/Containers/com.bitnami.drupal/Data/app-7_19/apps/drupal/htdocs/includes/bootstrap.inc).
Warning: strlen() expects parameter 1 to be string, array given in drupal_validate_utf8() (line 1594 of /Users/davandusen1/Library/Containers/com.bitnami.drupal/Data/app-7_19/apps/drupal/htdocs/includes/bootstrap.inc).
Notice: Array to string conversion in format_string() (line 1546 of /Users/davandusen1/Library/Containers/com.bitnami.drupal/Data/app-7_19/apps/drupal/htdocs/includes/bootstrap.inc).
Warning: strlen() expects parameter 1 to be string, array given in drupal_validate_utf8() (line 1594 of /Users/davandusen1/Library/Containers/com.bitnami.drupal/Data/app-7_19/apps/drupal/htdocs/includes/bootstrap.inc).
Notice: Array to string conversion in format_string() (line 1546 of /Users/davandusen1/Library/Containers/com.bitnami.drupal/Data/app-7_19/apps/drupal/htdocs/includes/bootstrap.inc).
Warning: strlen() expects parameter 1 to be string, array given in drupal_validate_utf8() (line 1594 of /Users/davandusen1/Library/Containers/com.bitnami.drupal/Data/app-7_19/apps/drupal/htdocs/includes/bootstrap.inc).
Notice: Array to string conversion in format_string() (line 1546 of /Users/davandusen1/Library/Containers/com.bitnami.drupal/Data/app-7_19/apps/drupal/htdocs/includes/bootstrap.inc).
Warning: strlen() expects parameter 1 to be string, array given in drupal_validate_utf8() (line 1594 of /Users/davandusen1/Library/Containers/com.bitnami.drupal/Data/app-7_19/apps/drupal/htdocs/includes/bootstrap.inc).
Notice: Array to string conversion in format_string() (line 1546 of /Users/davandusen1/Library/Containers/com.bitnami.drupal/Data/app-7_19/apps/drupal/htdocs/includes/bootstrap.inc).
Warning: strlen() expects parameter 1 to be string, array given in drupal_validate_utf8() (line 1594 of /Users/davandusen1/Library/Containers/com.bitnami.drupal/Data/app-7_19/apps/drupal/htdocs/includes/bootstrap.inc).
Notice: Array to string conversion in format_string() (line 1546 of /Users/davandusen1/Library/Containers/com.bitnami.drupal/Data/app-7_19/apps/drupal/htdocs/includes/bootstrap.inc).
Warning: strlen() expects parameter 1 to be string, array given in drupal_validate_utf8() (line 1594 of /Users/davandusen1/Library/Containers/com.bitnami.drupal/Data/app-7_19/apps/drupal/htdocs/includes/bootstrap.inc).
Notice: Array to string conversion in format_string() (line 1546 of /Users/davandusen1/Library/Containers/com.bitnami.drupal/Data/app-7_19/apps/drupal/htdocs/includes/bootstrap.inc).

When creating a context based upon existence of a certain node type as underlying a page. The context was given a name with an "_", and no

Using core 7.26 showing Panels-7.x-3.4

No Reactions were set. Condition is node_type set on one type of node.

If Debug reaction is set, same result.

In bootstrap.inc
Line 1592 appears to require a non-zero length string.
line 1546 is a return.

dvandusen’s picture

ReL 16

Problem repeated in Modules page!!! Moved to plan B

Disabled betterselect-7.x-1.x-dev and problem disappeared. May be conflict between betterselect-7.x-1.x-dev and context modules.