1
非數值出現的錯誤,我有這個錯誤後升級到PHP 7.1在PHP 7.1
PHP Warning: A non-numeric value encountered in public_html/wp-includes/formatting.php on line 3221
這裏該文件的代碼。
function human_time_diff($from, $to = '') {
if (empty($to)) {
$to = time();
}
//line 3221
$diff = (int) abs($to - $from);
是從約會?在這種情況下,from是一個字符串,你可以減去字符串或字符串和整數 – Andreas