By Arnd Vehling on Thursday, 11 May 2017
Posted in Technical Issues
Replies 15
Likes 0
Views 1K
Votes 0
Hello,

i have been asked to open a ticket about this topic:

Generation of an blog entry basicly works but the google verifier throws error and complains about non-AMP format.
I suspect it coming from using mootols/rokgallery links in the articels. Which should get filtered out, i suppose.

Working Page:
http://stormrider-surfcamp.com/bali-blog/entry/uluwatu-daytrip?format=amp

(why does http://stormrider-surfcamp.com/bali-blog/entry/uluwatu-daytrip/amp NOT work? Can i make this work?)

I ask because currently all URLs containing "?" in robiots.txt are blocked and i would like to leave it that way.

Then, i would assume that easyblog also renders AMP pages not only for articels (?) but for also for component and modul output?
I cant get any AMP output from:

http://stormrider-surfcamp.com/bali-blog/
http://stormrider-surfcamp.com/bali-blog/tags
http://stormrider-surfcamp.com/bali-blog/tags/bali

etc.

And appending "?format=amp" produces

Fatal error: Call to undefined method JDocumentRaw::isHtml5() in /var/www/opt/cms/scamp/libraries/joomla/document/renderer/html/head.php on line 73

best regards,

Arnd
When i paste your blog entry page on Google AMP validator, it show following error :

Page cannot be reached
This could be because the page is unavailable or blocked by robots.txt

I suspect your robots.txt already blocked this so Google AMP validator unable to crawl your site, can you check your robot.txt file regarding this.

(why does http://stormrider-surfcamp.com/bali-blog/entry/uluwatu-daytrip/amp NOT work? Can i make this work?)

I ask because currently all URLs containing "?" in robiots.txt are blocked and i would like to leave it that way.

Unfortunately that was not possible to achieve this at this point of time, we will see if we can implement to use /amp in the future.

I cant get any AMP output from:

http://stormrider-surfcamp.com/bali-blog/
http://stormrider-surfcamp.com/bali-blog/tags
http://stormrider-surfcamp.com/bali-blog/tags/bali

etc.

And appending "?format=amp" produces

Fatal error: Call to undefined method JDocumentRaw::isHtml5() in /var/www/opt/cms/scamp/libraries/joomla/document/renderer/html/head.php on line 73

It seems like you listed those page is not blog entry page, so it will not show AMP page, this is actually control by Google, AMP is only for individual page.
·
Thursday, 11 May 2017 17:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

i did remove the block directive for "?" from robots.txt already. It looks like it had been cached somewhere by google. You can use the AMP tester now!

Then, the "jamp" plugin works with "/amp" suffix. As it does support eayblog it also creates easyblog AMP pages under this suffix. So you might want to have a look into that plugins code? Its really not nice to have to open all "?" urls to crawlers on a joomla site because it generates way too much reduntant URL's

This here is just FYI: JSitemap started to generate broken urls after the upgrade to the latest version of easyblog. The "http" is missing from all images contained in easyblog entries:
--------------------
<image:loc>//stormrider-surfcamp.com/images/blog/222/b2ap3_medium_hanoman_kecak_dance_uluwatu_sunset.jpg</image:loc>
<image:loc>//stormrider-surfcamp.com/images/blog/220/b2ap3_medium_ripcurl_cup_padang_2014_blog.jpg</image:loc>
<image:loc>//stormrider-surfcamp.com/images/blog-media/b2ap3_medium_IMG_2538.JPG</image:loc>
----------------

I did made a post on their forum.

best regards,

Arnd
·
Saturday, 13 May 2017 09:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry, now its an different, broken, URL generated by JSitemap.
·
Saturday, 13 May 2017 09:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Its actually this editor who changes the URLS. Here again.


<image:loc>//stormrider-surfcamp.com/images/blog/222/b2ap3_medium_hanoman_kecak_dance_uluwatu_sunset.jpg</image:loc>
<image:loc>//stormrider-surfcamp.com/images/blog/220/b2ap3_medium_ripcurl_cup_padang_2014_blog.jpg</image:loc>
<image:loc>//stormrider-surfcamp.com/images/blog-media/b2ap3_medium_IMG_2538.JPG</image:loc>
·
Saturday, 13 May 2017 09:38
·
0 Likes
·
0 Votes
·
0 Comments
·
I am sorry for the delay of this reply,

i did remove the block directive for "?" from robots.txt already. It looks like it had been cached somewhere by google. You can use the AMP tester now!

Then, the "jamp" plugin works with "/amp" suffix. As it does support eayblog it also creates easyblog AMP pages under this suffix. So you might want to have a look into that plugins code? Its really not nice to have to open all "?" urls to crawlers on a joomla site because it generates way too much reduntant URL's

Thanks for your input, I will log this issue into our issue tracker and see if we can implement to use /amp instead of ?format=amp .

This here is just FYI: JSitemap started to generate broken urls after the upgrade to the latest version of easyblog. The "http" is missing from all images contained in easyblog entries:

<image:loc>//stormrider-surfcamp.com/images/blog/222/b2ap3_medium_hanoman_kecak_dance_uluwatu_sunset.jpg</image:loc>
<image:loc>//stormrider-surfcamp.com/images/blog/220/b2ap3_medium_ripcurl_cup_padang_2014_blog.jpg</image:loc>
<image:loc>//stormrider-surfcamp.com/images/blog-media/b2ap3_medium_IMG_2538.JPG</image:loc>


Actually that is default behaviour, it will not show the HTTP/HTTPS protocol in the image link is because if the database stored this image link as full path e.g.

http://stormrider-surfcamp.com/images/blog/220/b2ap3_medium_ripcurl_cup_padang_2014_blog.jpg

so it will have an issue if the website switch to use HTTPS protocol, so all the existing image link will failed.
·
Monday, 15 May 2017 13:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

I have checked one of your post http://stormrider-surfcamp.com/bali-blog/entry/the-guide-to-your-first-surfboard and found that there is this code in your content: http://take.ms/Brxrw . May I know how did you add this code?
·
Wednesday, 17 May 2017 19:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,


to be honest i dont have a clue how the code did end up there. Looks like an exploit/trojan/virus to me. Is this related to the security update from today/yesterday?

Shouldnt it be filtered out by you AMP generator?


best regards,

Arnd
·
Thursday, 18 May 2017 04:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Its not malicous, had been inserted by the initial author.
·
Thursday, 18 May 2017 04:51
·
0 Likes
·
0 Votes
·
0 Comments
·
And i have one mor question: Is this the correct canonical link?


http://stormrider-surfcamp.com/bali-blog/88888942-surfboards/1060-the-guide-to-your-first-surfboard
·
Thursday, 18 May 2017 05:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Arnd,

Shouldnt it be filtered out by you AMP generator?
- We didn't filter this previously because there are too many possibilities of content and we will fix it if users found and issue from Google and it is a valid issue. For some issues, they came from plugin injection which we can't do anything. For this, I found it is a valid issue and we will see what we can do about this param tag. For now, you can edit the content and remove it first since it does not generate anything.

And i have one mor question: Is this the correct canonical link?
- Where did you get this URL? I checked your page source and seems like the canonical URL is correct: http://take.ms/dNIc0
·
Thursday, 18 May 2017 11:12
·
0 Likes
·
0 Votes
·
0 Comments
·
I've just had a similar issue, except it was where the blog post had an email hyperlink in - the Joomla email cloaking plugin was still working with the AMP blog post, and wrapped the email in the JavaScript cloak and this threw the AMP error in Google Analytics.

For now I have disabled the cloak plugin, though I suspect this might be a common issue and I'm unsure if StackIdeas can stop this plugin working on their AMP pages within EasyBlog?

Chris
·
Tuesday, 04 July 2017 20:39
·
0 Likes
·
0 Votes
·
0 Comments
·
hey Chris,

This is something we can't prevent is because that is under plugin, as long as your blog content contain those email address, this plugin will trigger something into the blog content.

To prevent this happen on AMP page, you have to add following code into JoomlaFolder/plugins/content/emailcloak/emailcloak.php under onContentPrepare method.


if (JFactory::getDocument()->getType() != 'html') {
return;
}



You can refer on my attached screenshot below. Hope this will help.

If the issue still persists, perhaps you can start a new thread on our forums so we can better have a check.
·
Wednesday, 05 July 2017 11:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the prompt reply, I'll look at the best option

Chris
·
Wednesday, 05 July 2017 17:40
·
0 Likes
·
0 Votes
·
0 Comments
·
You're welcome.
·
Wednesday, 05 July 2017 22:59
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post