[wp-trac] [WordPress Trac] #61201: PHP Warning: Array to string conversion error appears with PHP 8.1 (maybe previous versions too)

WordPress Trac noreply at wordpress.org
Sun May 12 20:50:33 UTC 2024


#61201: PHP Warning:  Array to string conversion error appears with PHP 8.1 (maybe
previous versions too)
-------------------------------------+------------------------------
 Reporter:  DjiXas                   |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  General                  |     Version:  6.5.3
 Severity:  minor                    |  Resolution:
 Keywords:  close reporter-feedback  |     Focuses:
-------------------------------------+------------------------------
Changes (by swissspidy):

 * keywords:   => close reporter-feedback


Comment:

 Hi there and welcome to WordPress Trac!

 Such warnings usually occur when a plugin is using a WP-provided function
 in an incorrect way. In this case it's the `wp_check_invalid_utf8()`
 function. I recommend checking your active plugins & theme whether they
 are using that function somehow (usually through `esc_html()` or
 `esc_js()`. Just because the error message mentions `wp-includes` doesn't
 mean the error is also originating from WordPress. It's just where the
 error eventually happened.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61201#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list