✅ XenForo “Search Console itemreviewed” Error Solution
In reports from Google Search Console, XenForo-based sites often encounter the following warning underComment 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.
🛠️ 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 }}
✅ 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.