New AMP Issue cropped up

Posted in: Newspaper
Post count: 152

Hi,
We followed all the steps in the tutorial and we are getting this error everytime we post a new story-

There is content which fails AMP validation. However, your site is configured to automatically accept sanitization of the offending markup. You should review the issues to confirm whether or not sanitization should be accepted or rejected. Review issues

Invalid elements: script (19)

Also,
After the update all the stories are not showing on amp.
We are getting this ins webmaster tools –
Linked AMP version is invalid
It won’t appear in Google Search results. Learn more
An amp component script tag is present, but unused
Digging deep this is what the webmasters google console says.
The extension ‘amp-auto-ads’ was found on this page, but is unused. Please remove this extension.

How do we solve this?

Post count: 152

webmaster tools is also now throwing AMP problems.
An AMP component ‘script’ tag is present, but unused.
The tag ‘meta name=viewport’ appears more than once in the document.
The tag ‘meta charset=utf-8’ appears more than once in the document.

Post count: 35449

Hi,

Please make sure that you do not have any plugin conflicts, please deactivate all non theme plugins, clear all cache and try again.

Mobile Theme: Automatic Optimization for Mobile with Newspaper Theme -> https://tagdiv.com/mobile-theme-automatic-optimization-for-mobile-newspaper-theme/
How to Make an AMP ready Website with Newspaper Theme -> https://tagdiv.com/amp-newspaper-theme/

Please make sure that you activate the amp from mobile theme -> https://www.screencast.com/t/6m5bxthx8ec and you check the box from general Amp -> https://www.screencast.com/t/WEyXhNzY

For this error https://prnt.sc/mupdgl here is the fix.
You’ll need to go in wp-content/plugins/td-mobile-plugin/td-mobile-plugin.php
and at the bottom of file set this code
$theme_options = get_option( 'td_011' );

https://prnt.sc/mv165e
https://www.screencast.com/t/NclX3sIf

Thank you for your understanding

Post count: 152

Hi Calin,
This has already been done – Cache has been cleared too.
Please make sure that you activate the amp from mobile theme -> https://www.screencast.com/t/6m5bxthx8ec and you check the box from general Amp -> https://www.screencast.com/t/WEyXhNzY

Still we are getting constant amp problem errors. Please see the below and also from webmaster tools.

https://prnt.sc/mx78ku
https://prnt.sc/mx790e

An AMP component ‘script’ tag is present, but unused.
First detected: 3/11/19
Status: Error
http://prnt.sc/mx7gj3
Thanks Please help.

Followed your steps and this has been rectified. How to rectify rest of the issues.
There is content which fails AMP validation. However, your site is configured to automatically accept sanitization of the offending markup. You should review the issues to confirm whether or not sanitization should be accepted or rejected. Review issues

Invalid elements: script (20)

  • This reply was modified 7 years by spu.
  • This reply was modified 7 years by spu.
  • This reply was modified 7 years by spu.
  • This reply was modified 7 years by spu.
Post count: 35449

Hi,

Is look like you have a code set in amp that is not longer use, so if you have set some code for auto ads in amp please remove it, also please add the fix that I provide you and this https://prnt.sc/mx790e will be fix too.

Thank you!

Post count: 152

Thanks calin, but it is a bit confusing.
The theme panel says we can use auto ads, and am pretty sure I read in one of the tutorials that we can now use auto GA ads in amp in theme panel. Which is why we added the GA auto ad code to our AMP theme panel.

“ADSENSE AUTO ADS FOR AMP
This ad appears below the menu.”

Ok, found the problem, we had put in normal auto ad code in this menu.
In google adsense it is saying to paste two scripts, however the box in newspaper theme panel asks for just one script.
This what the Adsense account says for AMP auto ads:
Step 2: Copy and paste this script in the head tag of your AMP HTML
Step 3: Copy and paste this ad code in the body of your AMP HTML

SO in the newspaper amp auto ad box, should we just paste the code from step 3 of adsense?

Regards

  • This reply was modified 7 years by spu.
Post count: 152

Calin,
Am getting this error too on the plugins page –
Warning: The following plugins may be incompatible with AMP: td-composer, wordpress-seo-premium, td-cloud-library, WorDroid-Plugin-master, onesignal-free-web-push-notifications, contact-form-7, akismet More details
https://prnt.sc/mxp7my

Should we be worried?

Post count: 35449

Hi,

Yes now you can set the ads for amp directly in theme panel ( I was referring if you have set manually some code in amp files ).

That warning comes from Akismet Anti-Spam plugin, if you’ll deactivate that plugin that warning will disappear.

Thank you!

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