[wp-trac] [WordPress Trac] #63066: Warning when array passed to wp_check_invalid_utf8()

WordPress Trac noreply at wordpress.org
Tue Aug 12 11:53:15 UTC 2025


#63066: Warning when array passed to wp_check_invalid_utf8()
--------------------------+------------------------------
 Reporter:  leedxw        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  6.7.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by garrigan):

 {{{
 more plugins
 Aug     11      18:05:46        staging 8/11/2025       18:05:46
 [error] 3166#3166:      *208    FastCGI sent    in      stderr: PHP
 message: PHP Fatal error:  Uncaught Error: should only be passing string;
 not array  to wp_check_invalid_utf8() in /my-path/wp-
 includes/formatting.php:1100
 Aug     11      18:07:04        staging 8/11/2025       18:07:03
 [error] 3169#3169:      *568    FastCGI sent    in      stderr: PHP
 message: PHP Fatal error:  Uncaught Error: should only be passing string;
 not array  to wp_check_invalid_utf8() in /my-path/wp-
 includes/formatting.php:1100
 Aug     11      18:07:04        staging 8/11/2025       18:07:03
 [error] 3169#3169:      *568    FastCGI sent    in      stderr:
 ntrol.php(477): esc_attr(Array)
 Aug     11      18:07:18        staging 8/11/2025       18:07:17
 [error] 3169#3169:      *568    FastCGI sent    in      stderr: PHP
 message: PHP Fatal error:  Uncaught Error: should only be passing string;
 not array  to wp_check_invalid_utf8() in /my-path/wp-
 includes/formatting.php:1100
 Aug     11      18:08:56        staging 8/11/2025       18:08:55
 [error] 3166#3166:      *1182   FastCGI sent    in      stderr: PHP
 message: PHP Warning:  Array to string conversion in /my-path/wp-
 includes/formatting.php on line 1096       while   reading upstream,
 client: 2001:,  server: ~^(.+)(\.)((james|jim)?garrigan.*)$,    request:
 GET /hidden-admin/customize.php HTTP/3.0,       upstream:
 fastcgi://unix:/run/my-path/www.sock:,  referrer:       https://staging
 .my-domain.com/hidden-admin/
 Aug     11      18:20:01        staging 8/11/2025       18:20:01
 [error] 3167#3167:      *2235   FastCGI sent    in      stderr: PHP
 message: PHP Warning:  Array to string conversion in /my-path/wp-
 includes/formatting.php on line 1096       while   reading upstream,
 client: 2001:,  server: ~^(.+)(\.)((james|jim)?garrigan.*)$,    request:
 GET /hidden-admin/customize.php HTTP/2.0,       upstream:
 fastcgi://unix:/run/my-path/www.sock:,  host:   staging.my-domain.com,
 referrer:       https://staging.my-domain.com/hidden-admin/
 Aug     11      18:22:42        staging 8/11/2025       18:22:41
 [error] 3167#3167:      *2235   FastCGI sent    in      stderr: PHP
 message: PHP Warning:  Array to string conversion in /my-path/wp-
 includes/formatting.php on line 1096       while   reading upstream,
 client: 2001:,  server: ~^(.+)(\.)((james|jim)?garrigan.*)$,    request:
 GET /hidden-admin/customize.php HTTP/2.0,       upstream:
 fastcgi://unix:/run/my-path/www.sock:,  host:   staging.my-domain.com,
 referrer:       https://staging.my-domain.com/hidden-admin/

 less plugins
 Aug     11      18:44:23        staging 8/11/2025       18:44:23
 [error] 2834#2834:      *344    FastCGI sent    in      stderr: PHP
 message: PHP Fatal error:  Uncaught Error: should only be passing string;
 not array to wp_check_invalid_utf8() in /my-path/wp-
 includes/formatting.php:1098
 Aug     11      18:44:58        staging 8/11/2025       18:44:58
 [error] 2835#2835:      *729    FastCGI sent    in      stderr: PHP
 message: PHP Fatal error:  Uncaught Error: should only be passing string;
 not array to wp_check_invalid_utf8() in /my-path/wp-
 includes/formatting.php:1098
 Aug     11      18:45:17        staging 8/11/2025       18:45:16
 [error] 2835#2835:      *778    FastCGI sent    in      stderr: PHP
 message: PHP Fatal error:  Uncaught Error: should only be passing string;
 not array to wp_check_invalid_utf8() in /my-path/wp-
 includes/formatting.php:1098
 Aug     11      18:46:50        staging 8/11/2025       18:46:50
 [error] 2835#2835:      *833    FastCGI sent    in      stderr: PHP
 message: PHP Warning:  Array to string conversion in /my-path/wp-
 includes/formatting.php on line 1096       while   reading upstream,
 client: 10.,    server: ~^(.+)(\.)((james|jim)?garrigan.*)$,    request:
 GET /wp-admin/customize.php HTTP/3.0,   upstream:
 fastcgi://unix:/run/my-path/www.sock:,  referrer:       https://staging
 .my-domain.com/wp-admin/
 Aug     11      18:54:34        staging 8/11/2025       18:54:33
 [error] 2834#2834:      *1222   FastCGI sent    in      stderr: PHP
 message: PHP Warning:  Array to string conversion in /my-path/wp-
 includes/formatting.php on line 1096       while   reading upstream,
 client: 10.,    server: ~^(.+)(\.)((james|jim)?garrigan.*)$,    request:
 GET /wp-admin/customize.php HTTP/3.0,   upstream:
 fastcgi://unix:/run/my-path/www.sock:,  referrer:       https://staging
 .my-domain.com/wp-admin/
 Aug     11      18:56:37        staging 8/11/2025       18:56:37
 [error] 2837#2837:      *1326   FastCGI sent    in      stderr: PHP
 message: PHP Warning:  Array to string conversion in /my-path/wp-
 includes/formatting.php on line 1096       while   reading upstream,
 client: 10.,    server: ~^(.+)(\.)((james|jim)?garrigan.*)$,    request:
 GET /wp-admin/customize.php HTTP/3.0,   upstream:
 fastcgi://unix:/run/my-path/www.sock:,  referrer:       https://staging
 .my-domain.com/wp-admin/

 }}}

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


More information about the wp-trac mailing list