An AMP component 'script' tag is present, but unused.

Posted in: Newspaper
Post count: 6

Hi, I received an email from google saying errors

when I went into it I found the message An AMP component ‘script’ tag is present but unused.

It is happening on all of my posts basically

Can you please assist me.

My website is https://viewire.co.uk/

Currently using Newspaper 10.3

tagDiv Mobile Theme & Official AMP for WP as recommended.

Also, Google has been crawling and finding errors in pages that do not exist anymore, any advice on that?

Post count: 35449

Hello!

Please make sure that you do not have a plugin conflict with untested plugins, please deactivate all non theme, also if you are using child theme, clear all cache and try again.

Let me know the results!
Thank you!

Post count: 6

Hi Calin,

I have check all potential conflicting plugins and I do not seem to find any.

All themes that are not in use have been deleted. Google still showing the same problems plus 1 more

existing problem: (An AMP component ‘script’ tag is present, but unused.)
New problem: (The script tag contains invalid JSON that cannot be parsed.)

Any other suggestions?

The total error count is 24

Post count: 35449

Hi,

Please note that this issue is not caused by the mobile theme, or the theme, there are other users with the same issue after the latest AMP update – https://support.google.com/webmasters/thread/29367056 The AMP plugin developers provided a fix for it here – https://wordpress.org/support/topic/the-script-tag-contains-invalid-json-that-cannot-be-parsed-6/https://wordpress.org/support/topic/the-script-tag-contains-invalid-json-that-cannot-be-parsed-3/ but they say it’s not needed anymore. Maybe mark the warnings as fixed in the console, and they should not appear anymore according to those topics.
What you can do is to install the previous version of amp.

Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.