Ignoring the issue for some time, I’ve finally fixed that annoying PHP error residing at the bottom of my mobile theme on my blog. The dirty little troublemaker happens to be a WordPress plugin called Jetpack. The error has been of little issue and has not impeded the functionality of the site. Just the same, it needed to be addressed, and I have done so.
The two lovely errors that the mobile layout was receiving were this:
Warning: stripos() [function.stripos]: needle is not a string or an integer in /home/mystfire/public_html/wp-includes/functions.php on line 661
It turns out the Mobile Theme module for Jetpack is the culprit. Several searches indicated that the Sharing module was the cause, but it was only occurring during loading of the mobile theme for the site. So, with that being said, here is the solution:
Open functions.php under the wp-includes folder of your main WordPress install.
Go to line 658 and enter the following code:
/* code added */
if (gettype ($uri) == "NULL")
$uri = "";
/* end code added */
The problem seems to be related to PHP 5.2 and the return of the $uri variable to NULL.