(I am guessing this is not a core issue + it is a single issue and not two separate ones.)

I get these upon opening a node creation page where the content type's Multilingual support is set to 'Enabled, with content translation':

* Warning: strlen() expects parameter 1 to be string, array given in drupal_validate_utf8() (line 1503 of /var/www/d7test/includes/bootstrap.inc).
* Notice: Array to string conversion in filter_xss() (line 1335 of /var/www/d7test/includes/common.inc).

I don't know if this helps at all, but in other warnings I used to receive in the past (concerning completely different issues), instead of the server path of the file I used to get a URL with the site's address.

The help text under the node's Title text field is simply 'Array' (see attached screenshot).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

klonos’s picture

...oops! wrong screenie, sorry;)

Someone with issue description edit rights, please correct the link to this one instead.

MFox’s picture

Assigned: Unassigned » MFox

Hi Klonos,
I believe the root cause in field.form.inc of field module.
To fix it you can replace field.form.inc at string 156:

  $description = field_filter_xss(t($instance['description']));

with:

  $description = (strlen($instance['description'])>0?field_filter_xss(t($instance['description'])):"");

It should help.
Good luck,
Mikhail

MFox’s picture

Assigned: MFox » Unassigned
MFox’s picture

Assigned: Unassigned » MFox
Status: Active » Needs review
FileSize
791 bytes

Status: Needs review » Needs work

The last submitted patch, field.form_.inc_.patch, failed testing.

klonos’s picture

Status: Needs work » Closed (cannot reproduce)

Hey Mikhail, this used to happen back in December when using latest dev versions of D7 and older dev versions of Content translation. Now, using D7 final and Content translation's dev from 2011-Jan-20 I cannot reproduce the issue any more (I am pretty sure that I did not change any settings in my content types). This is good news, but thanx anyways for taking the time to investigate this.

So, I am closing the issue and I'll re-visit if it happens again in order to test your patch and report back. Unless of course you are aware of any steps I need to take in order to 'force' the issue to happen again, then I'd be more than happy to help test this. Thanx for your time once again Mikhail ;)

Anonymous’s picture

Status: Closed (cannot reproduce) » Needs review

Trying to access "admin/config/people/accounts/display" in Drupal 7.22.

Getting same error when trying to access user account page admin display:

Warning: strlen() expects parameter 1 to be string, array given in drupal_validate_utf8() (line 1587 of /var/www/html/includes/bootstrap.inc).

Along with this error:

Recoverable fatal error: Object of class RelationsActivity could not be converted to string in filter_xss() (line 1442 of /var/www/html/includes/common.inc).

awesini’s picture

FYI. Received this error also when trying to access:

(Home » Administration » Structure » Pages » node_view » Variant xxx)
/admin/structure/pages/nojs/operation/node_view/handlers/node_view_panel_context_2/content

Warning: strlen() expects parameter 1 to be string, array given in drupal_validate_utf8() (line 1587 of /var/www/html/includes/bootstrap.inc). (Dr.Drupal 7.22)

klonos’s picture

This project was deprecated over Entity translation. Please use that one instead. If you are still having this problem with it as well, then perhaps we should switch this issue to that project.

Anonymous’s picture

Hi klonos.

My mistake, I don't actually have this module installed, I am using the core content translation and entity translation. I am getting the error message. Where do you think this issue should be assigned?

antoinetooley’s picture

I was getting this error when I updated to the latest ctools dev version. Not using any translation modules on my site. In the end I reinstalled the previous version of ctools and this fixed the problem for the time being. Hope this helps

Anonymous’s picture

Hi saintslash:

I downgraded my ctools to the 7.x-1.3 module but still no joy. I am getting the following error when trying to access "admin/config/people/accounts/display":

Warning: strlen() expects parameter 1 to be string, array given in drupal_validate_utf8() (line 1587 of /var/www/html/includes/bootstrap.inc).

I think we need to first decide where to report this error, any suggestions welcome as this is probably not the right place.

klonos’s picture

...well, I'm not sure but drupal_validate_utf8 is a core function and bootstrap.inc is a core file.

stubull05’s picture

Also would like to know this, have the same:

* Warning: strlen() expects parameter 1 to be string, array given in drupal_validate_utf8() (line 1503 of /var/www/d7test/includes/bootstrap.inc).
* Notice: Array to string conversion in filter_xss() (line 1335 of /var/www/d7test/includes/common.inc).

Cannot access my content page, but everything else is fine...

antoinetooley’s picture

im sure it must be a ctools problem as I have now had to load the previous version of ctools on 3 of my sites and they are all working again.

Anonymous’s picture

I'm still getting the same error despite the downgrade to ctools 7.x-1.3.

Warning: strlen() expects parameter 1 to be string, array given in drupal_validate_utf8() (line 1587 of /var/www/html/includes/bootstrap.inc).

and

Recoverable fatal error: Object of class RelationsActivity could not be converted to string in filter_xss() (line 1442 of /var/www/html/includes/common.inc).

stubull05’s picture

I just ended up deleting my settings file and reinstalling, kept my modules thank God. Just had to enable them all again.

memory_stick’s picture

I'm having this problem too.

Forgive me for being a bit slow. Which file did you delete and what did you reinstall please?

stubull05’s picture

The file is the: sites/default/settings.php. You must change the permissions of the default folder to read & write then delete the settings.php file.

After this, in your address bar point to http://yourSiteName.com/install.php and reinstall

Scott M. Sanders’s picture

klonos’s picture

...well, it seems to be ctools after all ;)

Anonymous’s picture

Status: Needs review » Closed (duplicate)

Thanks Scott M. Sanders, patch in #12 at https://drupal.org/node/1925018 worked for me! I think we can close this issue here as it certainly seems like a ctools problem as per klonos

stubull05’s picture

Scott your awesome!! thanks again