jetpack icon indicating copy to clipboard operation
jetpack copied to clipboard

stripos() expects parameter 1 to be string, array given in....

Open richardmtl opened this issue 9 years ago • 35 comments

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?

richardmtl avatar Jan 18 '17 20:01 richardmtl

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.

richardmtl avatar Jan 18 '17 20:01 richardmtl

3014487-t

richardmtl avatar Jan 19 '17 02:01 richardmtl

3016212-t

richardmtl avatar Jan 19 '17 15:01 richardmtl

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.

richardmtl avatar Jan 19 '17 15:01 richardmtl

3009935-t

chaselivingston avatar Jan 19 '17 17:01 chaselivingston

Also reported here: https://wordpress.org/support/topic/latest-update-crashed-my-sites-css-in-chrome-browser/

jeherve avatar Jan 19 '17 18:01 jeherve

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

richardmtl avatar Jan 19 '17 19:01 richardmtl

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

richardmtl avatar Jan 20 '17 15:01 richardmtl

3018393-t

richardmtl avatar Jan 20 '17 19:01 richardmtl

3018800-t

richardmtl avatar Jan 20 '17 21:01 richardmtl

3019304-t

richardmtl avatar Jan 21 '17 15:01 richardmtl

#3019845-t

richardmtl avatar Jan 22 '17 02:01 richardmtl

3020829-t 3020814-t 3021080-t

richardmtl avatar Jan 22 '17 13:01 richardmtl

3017053-t

aheckler avatar Jan 22 '17 15:01 aheckler

3017152-t

aheckler avatar Jan 22 '17 16:01 aheckler

Interim solution for this issue: publish a post (but don't delete it or make it a draft after, it has to remain published).

richardmtl avatar Jan 23 '17 02:01 richardmtl

3018571-t

ntpixels avatar Jan 23 '17 12:01 ntpixels

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".

IndianaJames avatar Jan 23 '17 21:01 IndianaJames

@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! :)

richardmtl avatar Jan 24 '17 16:01 richardmtl

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

estebangj1984 avatar Jan 24 '17 19:01 estebangj1984