Amp Error

Posted in: Newspaper
Post count: 31

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.

https://imgur.com/9y2rBY0

Post count: 35449

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!

Post count: 31

https://imgur.com/cl02LxH

Still Now is Showing (AMP ISSUE)

Post count: 31

https://imgur.com/0aqmBSu

Please Solve my problem fast.

Post count: 35449

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!

Post count: 16

The way you (Mr. Calin) shared is still not working.

Post count: 31

I’ve already do it.

Post count: 31

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

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.

Thank you!

Post count: 31

Thank you Calin

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