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.
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
Comment #1
s81166 CreditAttribution: s81166 commentedI also get this error if I go to structure > content types > manage display
did you manage to fix this?
Comment #2
arne_hortell CreditAttribution: arne_hortell commentedfunction check_plain($text) {
if(is_array($text)){
watchdog('debug', '
');
return "";
}
else
return htmlspecialchars($text, ENT_QUOTES, 'UTF-8');
}