Google Search Console Structure Data Error
-
I have not enabled the AMP option of the plugin, but the plugin is showing rating in AMP pages, and now the Google Search Console has given me the error of Structure Data Error and the page number is going up.
What should I have to do to solve this problem???
-
Hi @webdoc121,
what exactly is the error in Search Console? I double checked and the CreativeWork structured data is valid – also on AMP pages when AMP compatibility mode is off. Are you sure that the error is coming from this plugin?
This is the error:
New Unparsable structured data issue. Structured data with syntax errors detected and the issue is Incorrect Value Type.
I have now disabled the option of Enable Rich Snippets in Rate my Post Plugin in Search Engines and now Google Search Console is appearing to validated the pages.
But, I want to use the plugin option of enabling the rich snippets to show my post rating in search engines. I have tried multiple plugins, but your plugin is simply awesome in functionality wise.
Please suggest me how can I enable the Rich Snippets without causing the Structure Data Error.
Thanks for your understanding…
Regards,
-
This reply was modified 6 years, 11 months ago by
webdoc121.
can you please share the error from Google structured data testing tool with me (https://search.google.com/structured-data/testing-tool?hl=sl). It’s important to identify the problem because on my test websites the structured data is valid. I’ll update the plugin to not display the widget in AMP pages if AMP compatibility is not enabled soon. By the way which AMP plugin are you using?
Blaz
This is the warning I am getting:
Now, if you need any help then I am more than Glad to co-operate you.
Best Regards,
I will remove the widget from AMP pages if AMP compatibility is not enabled in the next update. However, the error above is obviously not from Rate my Post plugin. As I see the error is on line 6 and this is structured data from Yoast plugin. I also tested your scenario on several websites now and the markup is valid also on AMP pages. I do however agree that it shouldn’t be shown there because the widget is not functional on AMP pages if AMP compatibility mode is not enabled.
Blaz
Plz See this Pic Now for more clarification:
It showing error in Script error in review my post section
Dear, Believe it or not. I have tried more than 6-7 rating plugin including kk Stat, WP-Postrating and so on, but none of plugin fulfill my requirement. So I have re-activated the plugin and contact you via Support. Please provide solution of this problem in next update. Will be eagerly waiting for the next update of the plugin…
Best Regards,
I have also tried to validate by enabling the AMP option in the plugin, but it doesn’t work. The only option clicks me was to disable the rich snippets in the search engines…
I checked your screenshot above and the plugin’s markup is not the problem. Below is a sample of plugin’s structured data output:
<!--Structured data, if enabled --> <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "CreativeWork", "aggregateRating": { "@type": "AggregateRating", "bestRating": "5", "ratingCount": "1", "ratingValue": "1" }, "image": "http://example.com/wp-content/uploads/2018/03/sample4_l.jpg", "name": "My New Post" } </script>Now if you compare it to structured data on your website you’ll see that yours differs:
On line 153 you have <![CDATA[ after the script tag. That it’s not output by the plugin (you can check the template) and that’s what is causing the issues. So, the way to go here is to identify what is generating CDATA after the script tag on your AMP pages and figure out how to remove that.Blaz
Dear, from what I can see is that the snapshot I have sent to you has the script of the plugin starts from the line 142 and goes 170+. I don’t think that this is due to the conflict of any other plugin. As I have tried configuring almost each option of the plugin to validate, but all option fails except I disable the Enable Rich Snippet and the Validation process started and one page has been cleared by the time I have started it.
I have also tried enabling the AMP option of the plugin, but it didn’t worked.
I suggest the root cause of the problem is the viewing of rating in AMP page without enabling it. If somehow the default rating is disabled in AMP pages, then the error should clear.
Anyhow, I am available for any kind of help you want.
Regards,
The plugin’s structured data(!) starts at line 153 and goes to line 166.
So let’s look at line 153 because that’s where is the problem:
Plugin’s output as in the template:
<script type="application/ld+json"> ...Your output as seen on the screenshot:
<script type="application/ld+json"><![CDATA[ ...Do you see the problem now? That might be generated by you AMP plugin? You should figure out what’s generating that because with <![CDATA[ in markup structured data won’t be valid not matter which option you enable/disable π
Dear, it looks like we are chasing a wild goose down there. I have also contacted the support staff and they are saying that it is due to the plugin itself.
I have google the CDATA script in html and this is it what it say:
I have also tried by disabling the plugins except the rate my post, but it didn’t worked.
I am not much technical, so it could be difficult for me to analyze the CDATA term by myself.
Anyhow, the validation process has still started and I will now dig more into the problem.
Anyhow, when you are planning to release the new update with removing the default amp post setting?
The update should be out next week. Btw which plugin are you using for AMP pages? I guess it could be the AMP plugin that messes the syntax.
Regards
Dear, I am using the Official WP AMP plugin, the plugin which is provided by the theme itself.
Ok, I will check enabling the rich snippets after the update and let’s see the result.
Will you remove the default AMP rating in the next update?
-
This reply was modified 6 years, 11 months ago by
The topic ‘Google Search Console Structure Data Error’ is closed to new replies.