PHP Warning: stripos() expects parameter 1 to be string, array given
-
After an upgrade to slimstat 2.8.3 and wordpress 3.4.2, I get the following warnings:
[22-Oct-2012 15:33:23] PHP Warning: stripos() expects parameter 1 to be string, array given in ./wp-content/plugins/wp-slimstat/wp-slimstat.php on line 68
and
[22-Oct-2012 15:41:26] PHP Warning: stripos() expects parameter 1 to be string, array given in ./wp-content/plugins/wp-slimstat/wp-slimstat.php on line 125In “/wp-content/plugins/wp-slimstat/wp-slimstat.php”
Line 68, self::$options[‘ignore_users’] is an array, not a string.
I fixed it with impode(‘,’,self::$options[‘ignore_users’]).Ditto for self::$options[‘ignore_countries’] at line 125.
I’m not sure why the output type changed from what you were expecting but its pretty easy to work around.
- The topic ‘PHP Warning: stripos() expects parameter 1 to be string, array given’ is closed to new replies.