WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 2 years ago

#41713 new defect (bug)

Some PHP Warning in /wp-includes/functions.php

Reported by: xpeed Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.8.1
Component: General Keywords: reporter-feedback
Focuses: Cc:
PR Number:

Description

I have updated our theme and when I check my error log. I found this error related to WordPress core file.

PHP Warning:  strstr() expects parameter 1 to be string, object given in /public_html/wp-includes/functions.php on line 785
PHP Warning:  stripos() expects parameter 1 to be string, object given in public_html/wp-includes/functions.php on line 790
PHP Warning:  stripos() expects parameter 1 to be string, object given in public_html/wp-includes/functions.php on line 793
PHP Warning:  strpos() expects parameter 1 to be string, object given in public_html/wp-includes/functions.php on line 800
PHP Warning:  explode() expects parameter 2 to be string, object given in public_html/wp-includes/functions.php on line 801

Change History (2)

#1 @xpeed
2 years ago

Sorry I have updated Wordpress version 4.8.1, not theme.

Last edited 2 years ago by xpeed (previous) (diff)

#2 @swissspidy
2 years ago

  • Keywords reporter-feedback added

Hey there,

Thanks for your report.

Just because the warning happened in wp-includes/functions.php doesn't mean it's a bug in WordPress. This sounds more like theme or a plugin you're using does use add_query_arg() in a wrong way, passing an object instead of a string. Please try deactivating all plugins and switching to one of the default themes to see if the error still happens.

Note: See TracTickets for help on using tickets.