我将一个Drupal站点从GoDaddy移动到了AWS。一切似乎都有效,除非在联系页面上显示以下错误:
warning: array_map() expects parameter 1 to be a valid callback, function 'utf8_encode' not found or invalid function name in /var/www/html/includes/unicode.inc on line 304.
: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /var/www/html/includes/unicode.inc on line 311.
: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /var/www/html/includes/unicode.inc on line 311.
: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /var/www/html/includes/unicode.inc on line 311.
这是第304行:
$table = array_map('utf8_encode', $table);
这是第311行:
return preg_replace('/&(#x?)?([A-Za-z0-9]+);/e', '_decode_entities("$1", "$2", "$0", $newtable, $exclude)', $text);
}
我尝试更改为preg_replace_callback,这导致了另一个错误。
如果有帮助,我正在运行php 5.6。提前谢谢。