• My site is showing this error message both at the top of my WordPress Admin Dashboard page and at the top of my live site:

    Notice: Error when decoding a theme.json schema for user data. Syntax error in /home4/gotspiri/public_html/insiderprinting/wp-includes/class-wp-theme-json-resolver.php on line 472

    On my live site, the message is repeated 16 times, but my site design is preserved after scrolling past it. What are the steps I need to take to fix this issue? I have examined line 472 of the class-wp-theme-json-resolver.php file but I didn’t discern any syntax errors (to my knowledge).

    TIA!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    The syntax error is within your theme’s theme.json file. I recommend seeking resolution through the theme’s dedicated support channel, where its devs are in the best position to help you.

    If you are the theme’s dev, review
    https://developer.ww.wp.xz.cn/block-editor/how-to-guides/themes/theme-json/

    I actually found this issue occurring on virtual pages from a plugin. Tribe events.

    The call to static::get_user_data_from_wp_global_styles( wp_get_theme()) returned an empty post, seemingly related to the page content.

    array(28) { ["ID"]=> int(-1) ["post_author"]=> int(1) ["post_date"]=> int(0) ["post_date_gmt"]=> int(0) ["post_content"]=> string(0) "" ["post_title"]=> string(21) "Attendee Registration" ["post_excerpt"]=> string(0) "" ["post_status"]=> string(5) "draft" ["comment_status"]=> string(6) "closed" ["ping_status"]=> string(0) "" ["post_password"]=> string(0) "" ["post_name"]=> string(0) "" ["to_ping"]=> string(0) "" ["pinged"]=> string(0) "" ["post_modified"]=> int(0) ["post_modified_gmt"]=> int(0) ["post_content_filtered"]=> string(0) "" ["post_parent"]=> int(0) ["guid"]=> string(0) "" ["menu_order"]=> int(0) ["post_type"]=> string(4) "page" ["post_mime_type"]=> string(0) "" ["comment_count"]=> int(0) ["filter"]=> string(3) "raw" ["ancestors"]=> array(0) { } ["page_template"]=> string(0) "" ["post_category"]=> array(0) { } ["tags_input"]=> array(0) { } }

    I thought this was fixed in 6.1.1 but it doesn’t appear to be resolved for me.

    WP_Theme_JSON_Resolver::get_user_data_from_wp_global_styles call to WP_Query incorrect. (#56900)

    They are just notices, but in at least one instance the theme I use (Sage 10) escalates the notice to an exception.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error when decoding a theme.json schema for user data’ is closed to new replies.