WordPress: Warnings with Mobile Theme for Jetpack

wordpress-jetpackIgnoring 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 658
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:

The problem seems to be related to PHP 5.2 and the return of the $uri variable to NULL.

Angela

About The Author

is a blogger, writer, self-proclaimed geek & nerd, and the gyrl behind Ramblings of a Gyrl. A few cats shy of 'crazy cat lady' status and fully embraces her love of video games, films, cooking, and literature. She is currently writing her first novel for publication.

Leave a Reply