Every time I open "Recent Log Messsages" I get one or more of these warnings.

Warning: htmlspecialchars() expects parameter 1 to be string, array given in check_plain() (line 1565 of /www/dev.fast.hms.harvard.edu/docroot/includes/bootstrap.inc).

The only reference I see in dblog is in dblog.admin.inc
array(
array('data' => t('Hostname'), 'header' => TRUE),
check_plain($dblog->hostname),
),
But removing the call to check_plain doesn't help.

Comments

s81166’s picture

I also get this error if I go to structure > content types > manage display

did you manage to fix this?

arne_hortell’s picture

Issue summary: View changes

function check_plain($text) {
if(is_array($text)){
watchdog('debug', '

'.print_r($text, true).'

');
return "";
}
else
return htmlspecialchars($text, ENT_QUOTES, 'UTF-8');
}