Warning: strpos() expects parameter 1 to be string, array given in functions.php
-
Hi,
I have dreamhost and recently changed the PHP Mode from V. 4 to V 5.3 (I’m not sure why it was set to version 4 since apparently it has not been supported since 2008). Anyways nothing seem to be seriously broken, but I now read the following error on the top of my website (both on the front-end and within the WordPress dashboard):
Warning: strpos() expects parameter 1 to be string, array given in /home/kdub/outdoorvancouver.ca/wp-includes/functions.php on line 3033
Here is the code from functions.php which is the default wordpress code (Line 3033 is the one that reads “if ( function_exists(‘apache_get_modules’) ) {”
—-
global $is_apache;
if ( !$is_apache )
return false;if ( function_exists(‘apache_get_modules’) ) {
$mods = apache_get_modules();
if ( in_array($mod, $mods) )
return true;
} elseif ( function_exists(‘phpinfo’) ) {
ob_start();
phpinfo(8);
$phpinfo = ob_get_clean();
if ( false !== strpos($phpinfo, $mod) )
return true;
}
return $default;—–
Thanks for any help!
My website is outdoorvancouver.ca and I have limited coding knowledge! Thanks!!
Karl
- The topic ‘Warning: strpos() expects parameter 1 to be string, array given in functions.php’ is closed to new replies.