Make WordPress Core

Opened 7 years ago

Closed 4 years ago

#41713 closed defect (bug) (invalid)

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

Reported by: xpeed's profile xpeed Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.8.1
Component: General Keywords: reporter-feedback
Focuses: Cc:

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 (3)

#1 @xpeed
7 years ago

Sorry I have updated Wordpress version 4.8.1, not theme.

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

#2 @swissspidy
7 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.

#3 @SergeyBiryukov
4 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Closing per comment:2, feel free to reopen if there's still an issue.

Note: See TracTickets for help on using tickets.