Support

Account

Home Forums Backend Issues (wp-admin) WordPress is trying to sanitize and escape fields that contain arrays

Unread

WordPress is trying to sanitize and escape fields that contain arrays

  • I have latest ACF pro and latest WordPress.
    This happens on wordpress editor.

    WordPress is trying to sanitize and escape fields that contain arrays instead of strings:
    PHP Warning: Array to string conversion in /wp-includes/formatting.php on line 1096

    [03-Mar-2025 20:40:11 UTC] ⚠ wp_check_invalid_utf8 received an array: Array
    (
        [genre] => Array
            (
                [0] => Array
                    (
                        [term_id] => 77
                        [slug] => dating-sim
                        [name] => Dating Sim
                        [parent] => 0
                        [term_taxonomy_id] => 77
                        [term_order] => 0
                        [facet] => {"term_id":77,"slug":"dating-sim","name":"Dating Sim","parent":0,"term_taxonomy_id":77,"term_order":0}
                    )
    
            )
    
        [index] => Array
            (
                [0] => Array
                    (
                        [term_id] => 1019
                        [slug] => i
                        [name] => I
                        [parent] => 0
                        [term_taxonomy_id] => 1019
                        [term_order] => 0
                        [facet] => {"term_id":1019,"slug":"i","name":"I","parent":0,"term_taxonomy_id":1019,"term_order":0}
                    )
    
            )
    
        [language] => Array
            (
                [0] => Array
                    (
                        [term_id] => 120
                        [slug] => english-patched
                        [name] => English Patched
                        [parent] => 0
                        [term_taxonomy_id] => 120
                        [term_order] => 0
                        [facet] => {"term_id":120,"slug":"english-patched","name":"English Patched","parent":0,"term_taxonomy_id":120,"term_order":0}
                    )
    
                [1] => Array
                    (
                        [term_id] => 25
                        [slug] => japanese
                        [name] => Japanese
                        [parent] => 0
                        [term_taxonomy_id] => 25
                        [term_order] => 0
                        [facet] => {"term_id":25,"slug":"japanese","name":"Japanese","parent":0,"term_taxonomy_id":25,"term_order":0}
                    )
    
            )
    
        [publisher] => Array
            (
                [0] => Array
                    (
                        [term_id] => 7
                        [slug] => n
                        [name] => N
                        [parent] => 0
                        [term_taxonomy_id] => 7
                        [term_order] => 0
                        [facet] => {"term_id":7,"slug":"n","name":"N","parent":0,"term_taxonomy_id":7,"term_order":0}
                    )
    
                [1] => Array
                    (
                        [term_id] => 109
                        [slug] => squaresoft
                        [name] => SquareSoft
                        [parent] => 0
                        [term_taxonomy_id] => 109
                        [term_order] => 0
                        [facet] => {"term_id":109,"slug":"squaresoft","name":"SquareSoft","parent":0,"term_taxonomy_id":109,"term_order":0}
                    )
    
            )
    
        [region] => Array
            (
                [0] => Array
                    (
                        [term_id] => 24
                        [slug] => japan
                        [name] => Japan
                        [parent] => 0
                        [term_taxonomy_id] => 24
                        [term_order] => 0
                        [facet] => {"term_id":24,"slug":"japan","name":"Japan","parent":0,"term_taxonomy_id":24,"term_order":0}
                    )
    
            )
    
        [release-year] => Array
            (
                [0] => Array
                    (
                        [term_id] => 2013
                        [slug] => 1987
                        [name] => 1987
                        [parent] => 0
                        [term_taxonomy_id] => 2013
                        [term_order] => 0
                        [facet] => {"term_id":2013,"slug":"1987","name":"1987","parent":0,"term_taxonomy_id":2013,"term_order":0}
                    )
    
            )
    
    )
    
    [03-Mar-2025 20:40:11 UTC] 🔎 Function stack trace:
    /wp-includes/formatting.php (Line: 4699) → Function: wp_check_invalid_utf8
    /wp-includes/post.php (Line: 2989) → Function: esc_attr
    /wp-includes/post.php (Line: 2833) → Function: sanitize_post_field
    /wp-includes/class-wp-post.php (Line: 367) → Function: sanitize_post
    /wp-includes/post.php (Line: 1116) → Function: filter
    [03-Mar-2025 20:40:11 UTC] ⚠ wp_check_invalid_utf8 received an array: Array
    (
        [game_name] => Array
            (
                [0] => Array
                    (
                        [value] => Nakayama Miho no Tokimeki High School
                        [raw] => Nakayama Miho no Tokimeki High School
                        [boolean] => 
                        [date] => 1970-01-01
                        [datetime] => 1970-01-01 00:00:01
                        [time] => 00:00:01
                    )
    
            )
    
        [cdr_download_counter] => Array
            (
                [0] => Array
                    (
                        [value] => 6177
                        [raw] => 6177
                        [long] => 6177
                        [double] => 6177
                        [boolean] => 
                        [date] => 1970-01-01
                        [datetime] => 1970-01-01 00:00:01
                        [time] => 00:00:01
                    )
    
            )
    
        [rmp_vote_count] => Array
            (
                [0] => Array
                    (
                        [value] => 14
                        [raw] => 14
                        [long] => 14
                        [double] => 14
                        [boolean] => 
                        [date] => 1970-01-01
                        [datetime] => 1970-01-01 00:00:01
                        [time] => 00:00:01
                    )
    
            )
    
        [rmp_avg_rating] => Array
            (
                [0] => Array
                    (
                        [value] => 4.7
                        [raw] => 4.7
                        [long] => 4
                        [double] => 4.7
                        [boolean] => 
                        [date] => 2025-03-03
                        [datetime] => 2025-03-03 04:07:00
                        [time] => 04:07:00
                    )
    
            )
    
    )
    
    [03-Mar-2025 20:40:11 UTC] 🔎 Function stack trace:
    /wp-includes/formatting.php (Line: 4699) → Function: wp_check_invalid_utf8
    /wp-includes/post.php (Line: 2989) → Function: esc_attr
    /wp-includes/post.php (Line: 2833) → Function: sanitize_post_field
    /wp-includes/class-wp-post.php (Line: 367) → Function: sanitize_post
    /wp-includes/post.php (Line: 1116) → Function: filter
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.