stripos() expects parameter 1 to be string, array given in....
I have at least two reports so far of this error:
Warning: stripos() expects parameter 1 to be string, array given in /home1/XXXXXXXX/public_html/wp-includes/formatting.php on line 3774
Both users say that the error appears only on the Jetpack settings pages, not on the front end. They also say that that don't have any other plugins active.
3013046-t 3012753-t
What can we do to dig into this more? Any info that would be useful?
Possibly related:
3011946-t
Warning: stripos() expects parameter 1 to be string, array given in
/home1/XXXXX/public_html/wp-content/plugins/jetpack/modules/shortcodes/class.filter-embedded-html-objects.php
on line 92
Warning: stripos() expects parameter 1 to be string, array given in
/home1/XXXX/public_html/wp-content/plugins/jetpack/modules/shortcodes/class.filter-embedded-html-objects.php
on line 98.
These two lines repeated one after the other for the entirety of the screen. I tried installing an earlier version of jetpack, and it began working normal again...then a few hours later the same error code reappeared.
If this is a different bug, I'll open a new issue, though.
3014487-t
3016212-t
I've asked users to try disabling modules, but they're saying they can't as the JP settings pages don't work with this error.
3009935-t
Also reported here: https://wordpress.org/support/topic/latest-update-crashed-my-sites-css-in-chrome-browser/
Slightly different first errors:
Notice: Undefined offset: 0 in
/home/XXXXXXXX/public_html/wp-content/plugins/jetpack/_inc/lib/admin-pages/class.jetpack-react-page.php
on line 233
Warning: stripos() expects parameter 1 to be string, array given in
/home/XXXXXXX/public_html/wp-includes/formatting.php on line 3774
Notice: Array to string conversion in
/home/XXXXXXX/public_html/wp-includes/formatting.php on line 3717
3011637-t
Another one, again slightly different:
Notice: Undefined offset: 0 in
/var/www/vhosts/XXXXXX/httpdocs/wp-content/plugins/jetpack/_inc/lib/admin-pages/class.jetpack-react-page.php
on line 233
Warning: stripos() expects parameter 1 to be string, array given in
/var/www/vhosts/XXXXXXX/httpdocs/wp-includes/formatting.php on line 3774
Notice: Array to string conversion in
/var/www/vhosts/XXXXXXX/httpdocs/wp-includes/formatting.php on line 3717
3018288-t
3018393-t
3018800-t
3019304-t
#3019845-t
3020829-t 3020814-t 3021080-t
3017053-t
3017152-t
Interim solution for this issue: publish a post (but don't delete it or make it a draft after, it has to remain published).
3018571-t
Same result following my deletion of Hello World!
Warning: stripos() expects parameter 1 to be string, array given in /wp-includes/formatting.php on line 3774.
Re-published so as to have at least one post, but then excluded posts from the XML SiteMap in effort to hide the post from search engines since the site is comprised of just "pages".
@makemakeai You can try the patch if you'd like:
https://github.com/Automattic/jetpack/pull/6142/files
Or wait until Jetpack 4.5.1 is released. If you do try it, let us know if that does it for you! :)
Need help
Warning: stripos() expects parameter 1 to be string, array given in /XXXXXXX/www/XXXXXXX/XXXXXXX/httpdocs/wp-includes/formatting.php on line 3774