Theme editor

Guide XenForo XenForo “Search Console itemreviewed” Error Solution

  • Thread starter Thread starter CL4Y
  • Start date Start date
  • Views 124

CL4Y

Keyboard Ninja
Administrator
Thread owner

✅ XenForo “Search Console itemreviewed” Error Solution​

In reports from Google Search Console, XenForo-based sites often encounter the following warning under Comment snippets invalid errors: "Invalid object type for field itemReviewed".
This warning is typically related to missing or incorrect data within the schema configuration and can prevent rich snippet displays in search results.

jetto-xenforo-itemreviewed-error-1.webp




🛠️ Search Console itemreviewed Fix Method​

To resolve this issue, you need to log in to your XenForo Admin Panel.
Then navigate to Appearance → Templates and edit the xfrm_resource_view template.

In the xfrm_resource_view template, locate the following code:
Bash:
{{ $resource.getLdStructuredData()|json(true)|raw }}

Replace the above code with the one shared below:
Bash:
{{ $resource.getLdStructuredData()|json(true)|replace({'"CreativeWork"': '"Book"','"headline"': '"name"'})|raw }}
jetto-xenforo-itemreviewed-error-2.gif




✅ To verify if your changes are effective, use the Google
Rich Results Test tool and test your page’s URL.
This error directly affects SEO configuration. If the itemReviewed field is missing, it can prevent rich content display in search results.

jetto-xenforo-itemreviewed-error-3.webp
jetto-xenforo-itemreviewed-error-4.webp
 
Thread owner
If you are using a custom SEO or structured data plugin, these plugins may not be configuring the itemReviewed field correctly.
 
Back
Top