Closed (fixed)
Project:
Panels
Version:
7.x-3.3
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Apr 2013 at 16:05 UTC
Updated:
16 Mar 2014 at 00:39 UTC
Jump to comment: Most recent
Comments
Comment #1
xbrianx commentedI seem to have narrowed the problem down to adding content of a Menu to the page layout
Comment #2
bblancha commentedGot 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.
Comment #3
xbrianx commentedComment #4
kamasplice commentedI'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.
Comment #5
merlinofchaos commentedCan you try the -dev version?
Comment #6
xbrianx commentedI just installed the dev version, ran updates and cleared caches, and am still receiving the error.
Comment #7
kamasplice commentedTested 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.
Comment #8
merlinofchaos commentedI'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.
Comment #9
jegaudin commentedSame error here. With a panel page also.
Comment #10
willvincent commentedSwitching 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.
Comment #11
merlinofchaos commentedExcellent to hear. Marking fixed based on #10.
Comment #13
drupal_roadie commentedWhen 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.
Comment #14
merlinofchaos commented1) '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.
Comment #15
drupal_roadie commentedThanks 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.
Comment #16
dvandusen commentedReceived:
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.
Comment #17
dvandusen commentedReL 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.