Amp Showing error like that.
“The script tag contains invalid JSON that cannot be parsed.”
I’ve just update amp plugin. after that this error coming.
Hi,
AS I can see the post are ok now -> https://i.imgur.com/TR5teRh.png -> https://search.google.com/test/amp?utm_source=gws&utm_medium=onebox&utm_campaign=suit&id=3ZbHbo1gExpsCsHN01rmOA -> https://i.imgur.com/riUPIit.png
If there is still a problem, please provide a link to the post/page that have this problem.
Thank you!
Still Now is Showing (AMP ISSUE)
Hi,
Do you have some analytics code set in theme ? if yes, please remove it and check again.
The analytics code need to be set like this -> https://i.imgur.com/yVdKOkb.png and on amp like this -> https://i.imgur.com/oMfyN9F.png
Thank you!
This problem occurred because I updated the amp plugin(1.4.4).
I have uploaded the old version(1.4.3) back And issue solved
https://imgur.com/2yELpw0
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.
Thank you!