-2
WordPress站點PHP消息:PHP警告:strpos()預計參數1是字符串,
警告:
AH01071: Got error 'PHP message: PHP Warning: strpos() expects parameter 1 to be string, array given in /var/www/vhosts/mysite.com/httpdocs/wp-includes/functions.php on line 4102\nPHP message: PHP Warning: strpos() expects parameter 1 to be string, array given in /var/www/vhosts/mysite.com/httpdocs/wp-includes/functions.php on line 4102\nPHP message: PHP Warning: strpos() expects parameter 1 to be string, array given in /var/www/vhosts/mysite.com/httpdocs/wp-includes/functions.php on line 4102\nPHP message: PHP Warning: strpos() expects parameter 1 to be string, array given in /var/www/vhosts/mysite.com/httpdocs/wp-includes/functions.php on line 4102\n', referer: mysite
這裏是線4101 - 4103的functions.php的
function validate_file($file, $allowed_files = '') {
if (false !== strpos($file, '..'))
return 1;
您收到該消息是因爲_strpos()期望參數1是字符串數組given_。 – Federkun