By Simon Logan on Tuesday, 20 August 2019
Posted in Technical Issues
Replies 5
Likes 0
Views 1K
Votes 0
Google search console is noting a marked increase in AMP errors on various blog posts with "An AMP component 'script' tag is present, but unused" being the most common (72 occurrences - but no code section is highlighted when you click through to get more detail on the issue - i.e. https://www.delta-ee.com/delta-ee-blog/gas-engines-vs-gas-turbines-tipping-scales.html?format=amp) but also a few others such as "Disallowed attribute or attribute value present in HTML tag", "Invalid URL protocol in attribute 'href' of tag 'a'".

One single post (https://www.delta-ee.com/delta-ee-blog/delta-ee-new-business-models-are-the-key-to-utilities-continued-relevance-in-the-21st-century.html?format=amp) has a "disallowed tag present" error and highlights the lines:

<xml> </xml><xml> Normal 0 false false false false EN-US X-NONE X-NONE </xml><xml> </xml>


Easyblog is up to date so not sure if this is an issue with the current release or if we need to do anything? I checked the AMP docs and there doesn't seem to be many settings we can play with to resolve.
Hi Simon,

On Google amp test, your first link shows an error that is a known issue(screen_1). Can you apply the attached amp.php file and apply it into the following directory? Remember to backup the original file first.
JoomlaFolder/components/com_easyblog/themes/wireframe/blogs/entry/amp.php


<xml> </xml><xml> Normal 0 false false false false EN-US X-NONE X-NONE </xml><xml> </xml>
For this error in your second link, I examined the post content from your backend and found that those xml tags are actually inside the post content.

Furthermore, I also noticed that there is a whole block of content that is not visible because the width and height of this div element is set to width: 1px and height: 1px(screen_2).

May I know why was that 1x1 div added into the content? Perhaps you can examine the content of that post again and see if you really need the 1x1 div?
·
Tuesday, 20 August 2019 18:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Raymond

Thanks for this, having uploaded that new file now and have requested a validation so will see how that goes but am confident that it'll be fine.

The others look like they might just need some code cleaned up, that is an old blog post and I just develop their site, they do all the posting themselves, so looks like that's just been a copy/paste job from elsewhere and JCE has imported extra, unneeded code alongwith the genuine content. So I've cleaned that one up and will request re-validation, then will check the other individual pages for similar issues.

Cheers
·
Tuesday, 20 August 2019 18:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating us on your issue Simon.

I have also made another validation test on Google amp and the results appear fine now(attached).
·
Tuesday, 20 August 2019 18:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Groovy, thanks for the support as always.
·
Tuesday, 20 August 2019 18:53
·
0 Likes
·
0 Votes
·
0 Comments
·
You're most welcome Simon.
·
Wednesday, 21 August 2019 10:32
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post