Closed (duplicate)
Project:
Drupal core
Version:
7.8
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Jun 2010 at 23:37 UTC
Updated:
4 Aug 2016 at 10:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
hass commentedI've put some debugging code inline...
This issue could be releated to #820816: #type text_format not compatible with system_settings_form($automatic_defaults = TRUE). At least the repro case can be found over there... I currently guess this is a
system_settings_form($form)bugScreenshot:

Comment #2
sun#820816: #type text_format not compatible with system_settings_form($automatic_defaults = TRUE)
Comment #3
yarco commentedI'm following the link from http://drupal.org/node/820816 to http://drupal.org/node/266246.
They said it is fixed.
But i downloaded the latest version of drupal, and after i installed the devel (7.x-1.0-beta2) module, the error appears.
* Warning: htmlspecialchars() expects parameter 1 to be string, array given in check_plain() (line 1500 of /Users/yarco/Sites/mine/drupal/foo/drupal/includes/bootstrap.inc).
* Warning: htmlspecialchars() expects parameter 1 to be string, array given in check_plain() (line 1500 of /Users/yarco/Sites/mine/drupal/foo/drupal/includes/bootstrap.inc).
Maybe it is a general problem, isnt it?
Comment #4
yarco commentedI found the bug in devel module. So it should be closed.
Comment #5
mrP commentedFYI I don't think this is totally resolved yet. I'm running drupal 7x-beta1, devel 7.x-1.0-beta2, and admin 7.x-2.0-beta2 with error still occurring.
Disabling admin OR devel seems to stop error from occurring.
Comment #6
marcvangendSubscribe. I'm seeing the same error when saving a View. Installed modules:
All dev versions are up-to-date.
Comment #7
marcingy commentedPlease see this is won't fix for core - http://drupal.org/node/829250
Comment #8
marcvangendMarcingy: thank you, sorry i didn't find that one.
Comment #9
Anonymous (not verified) commentedSame problem with 7.8. "Warning: htmlspecialchars() expects parameter 1 to be string, array given in check_plain()". i18n module installed.
Comment #10
davidwhthomas commentedI successfully debugged this error as follows
temporarily edit
bootstrap.inc ~1559Change
check_plainto:Then check your watchdog log at Admin > Reports > Recent log entries
In my case I had a
php.inifile that was loadingpdo.soFollowing an upgrade of PHP on the server (5.2 to 5.3) an error about now loading the extension twice was being passed through
check_plainand throwing that error msg.I edited the local
php.iniand removed the superfluous php extension loading.Problem solved.
P.S Once finished, remove the debug log call from
check_plain.Comment #11
bmateus commented@ davidwhthomas
That's it!
I had changed bootstrap.inc to not show the error, but was a matter of masquarading the problem. When updating Drupal version, this appeared again.
The fact is that I had "extension=pdo.so" as well as "extension=pdo_sqlite.so" on my php.ini (don't really know why anymore, maybe early testing), and after updating php version, it started to trigger the error, and never understood why. Your explination makes total sense
I just had to remove the "extension=pdo_sqlite.so" from php.ini, as it was not even being used.
Thank you :)
Comment #12
kenorb commentedThis is mostly caused by wrong implementation of Field API. See: Field API field_schema for text field error.