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.
(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).
Comment | File | Size | Author |
---|---|---|---|
#4 | field.form_.inc_.patch | 791 bytes | MFox |
#1 | node_title_text_field_help_text_is_array.png | 2.17 KB | klonos |
breadcrumb_for_the_checking_for_updates_page.png | 40.46 KB | klonos |
Comments
Comment #1
klonos...oops! wrong screenie, sorry;)
Someone with issue description edit rights, please correct the link to this one instead.
Comment #2
MFox CreditAttribution: MFox commentedHi 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:
with:
It should help.
Good luck,
Mikhail
Comment #3
MFox CreditAttribution: MFox commentedComment #4
MFox CreditAttribution: MFox commentedComment #6
klonosHey 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 ;)
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedTrying 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).
Comment #8
awesini CreditAttribution: awesini commentedFYI. 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
Comment #9
klonosThis 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.
Comment #10
Anonymous (not verified) CreditAttribution: Anonymous commentedHi 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?
Comment #11
antoinetooley CreditAttribution: antoinetooley commentedI 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
Comment #12
Anonymous (not verified) CreditAttribution: Anonymous commentedHi 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.
Comment #13
klonos...well, I'm not sure but drupal_validate_utf8 is a core function and bootstrap.inc is a core file.
Comment #14
stubull05 CreditAttribution: stubull05 commentedAlso 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...
Comment #15
antoinetooley CreditAttribution: antoinetooley commentedim 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.
Comment #16
Anonymous (not verified) CreditAttribution: Anonymous commentedI'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).
Comment #17
stubull05 CreditAttribution: stubull05 commentedI just ended up deleting my settings file and reinstalling, kept my modules thank God. Just had to enable them all again.
Comment #18
memory_stick CreditAttribution: memory_stick commentedI'm having this problem too.
Forgive me for being a bit slow. Which file did you delete and what did you reinstall please?
Comment #19
stubull05 CreditAttribution: stubull05 commentedThe 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
Comment #20
Scott M. Sanders CreditAttribution: Scott M. Sanders commentedSee https://drupal.org/node/1925018 for a patch!
Comment #21
klonos...well, it seems to be ctools after all ;)
Comment #22
Anonymous (not verified) CreditAttribution: Anonymous commentedThanks 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
Comment #23
stubull05 CreditAttribution: stubull05 commentedScott your awesome!! thanks again