php errors in wp-include/functions.php? (string given, array given)
-
Hi Stefan,
after the last update of RWP I noticed a lot of php errors being thrown:Warning: realpath() expects parameter 1 to be a valid path, array given in /home/www/4str.in/beta/wp-includes/functions.php on line 1658
Warning: strlen() expects parameter 1 to be string, array given in /home/www/4str.in/beta/wp-includes/functions.php on line 1661
Warning: ltrim() expects parameter 1 to be string, array given in /home/www/4str.in/beta/wp-includes/functions.php on line 1688
Warning: realpath() expects parameter 1 to be a valid path, array given in /home/www/4str.in/beta/wp-includes/functions.php on line 1658
Warning: strlen() expects parameter 1 to be string, array given in /home/www/4str.in/beta/wp-includes/functions.php on line 1661
Warning: ltrim() expects parameter 1 to be string, array given in /home/www/4str.in/beta/wp-includes/functions.php on line 1688These errors occur with content and thumbnails as well as when using rwp_style in my child function.php; at least rwp_style still generates the correct code after throwing the error messages.
Code in functions.php:
$style = rwp_style($responsive_image_id, array( 'selector' => '#section', 'sizes' => array('blog-thumbnail', 'bg720', 'bg1024', 'bg1280', 'bg1440', 'bg1680', 'full'), 'media_queries' => array( 'bg720' => 'min-width: 720px', 'bg1024' => 'min-width: 1024px', 'bg1280' => 'min-width: 1280px', 'bg1440' => 'min-width: 1440px', 'bg1680' => 'min-width: 1680px', 'full' => 'min-width: 1920px', ) ) ); $child_css .= substr( $style, 7, -8); //eliminate the style tags
I am a bit lost in finding the root cause now, for the time being the only fix seems to be switching off RWP completely – which is kind of contraproductive….
- The topic ‘php errors in wp-include/functions.php? (string given, array given)’ is closed to new replies.