'Warning: substr() expects parameter 1 to be string' after update to WP 4.4
-
I don’t get it. I updated my website to version 4.4, and I’m getting this PHP error message at the top of my screen:
Warning: substr() expects parameter 1 to be string, array given in /home/personal/public_html/wp-includes/functions.php on line 1674
So I looked up code from that functions file and found this block of code. The line that’s bolded is supposed to be what’s causing the error.
function wp_normalize_path( $path ) {
$path = str_replace( ‘\\’, ‘/’, $path );
$path = preg_replace( ‘|/+|’,’/’, $path );
if ( ‘:’ === substr( $path, 1, 1 ) ) {
$path = ucfirst( $path );
}
return $path;
}It’s strange though. I made the backup to my local copy, and I had no problems.
Any ideas?
- The topic ‘'Warning: substr() expects parameter 1 to be string' after update to WP 4.4’ is closed to new replies.