Title: Error when decoding a theme.json schema for user data
Last modified: November 10, 2022

---

# Error when decoding a theme.json schema for user data

 *  [histeier22](https://wordpress.org/support/users/histeier22/)
 * (@histeier22)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/error-when-decoding-a-theme-json-schema-for-user-data/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-when-decoding-a-theme-json-schema-for-user-data%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/error-when-decoding-a-theme-json-schema-for-user-data/#post-16190407)
 * 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.wordpress.org/block-editor/how-to-guides/themes/theme-json/](https://developer.wordpress.org/block-editor/how-to-guides/themes/theme-json/)
 *  [EHLOVader](https://wordpress.org/support/users/ehlovader/)
 * (@ehlovader)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/error-when-decoding-a-theme-json-schema-for-user-data/#post-16266346)
 * 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](https://core.trac.wordpress.org/ticket/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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [EHLOVader](https://wordpress.org/support/users/ehlovader/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/error-when-decoding-a-theme-json-schema-for-user-data/#post-16266346)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
