By Abraham Tol on Wednesday, 03 May 2017
Posted in General
Replies 3
Likes 0
Views 120
Votes 0
Fix errors on your AMP pages
To: Webmaster of http://www.jaap-adventures.com/,
Google systems have detected that some of your AMP pages do not meet our guidelines and will therefore not show in Google Search AMP-related features. The following report provides examples of pages with errors:

I have included 2 images of this report. I guess I can just make AMP off in the parms. but this should not happen.
I found out this following 3rd party plugin injected those Javascript and invalid css stylesheet on AMP page.

/public_html/plugins/jsnimageshow/themeclassic/classes/jsn_is_themedisplay.php
/public_html/plugins/system/ampz/ampz.php


I already help you applied some fix in these 2 file, it should work fine now.
·
Wednesday, 03 May 2017 10:51
·
0 Likes
·
0 Votes
·
0 Comments
·
thank you Arlex. What is the issue so I can report this to the software supplier.
·
Wednesday, 03 May 2017 21:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Abraham,

I believe these plugins shouldn't be generating any script / css tags when the format of the page isn't html. You should notify them about this.

For instance, this is how one would check to ensure that the page is currently a HTML document in Joomla.

[gist]
<?php
if (JFactory::getDocument()->getType() != 'html') {
// Since this is not a html document, shouldn't generate any html tags
return;
}
[/gist]
·
Wednesday, 03 May 2017 22:07
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post