I don’t have time to check all of them but you have “Search” enabled in your AMP settings.
You cannot have the search function enabled unless your site is https (SSL).
This is a requirement for AMP and is not a problem from the AMP Plugin.
Go into your settings and disable “Search.”
yup i know u have no time . you are really busy . when i tested this link (http://pakistanjobz.pk/krl-hospital-jobs-20-november-2016-po-box-1384-islamabad-apply-online-www-hr184-com-pk-medical-officers-nurse-others-application-form-download-latest-advertisement/amp/) to amp test Not a valid AMP page
Invalid AMP pages will not have AMP-specific features in Google Search results.
Prohibited or invalid use of HTML Tag
Invalid URL protocol ‘http:’ for attribute ‘action’ in tag ‘FORM [method=GET]’.
hello @kaleemullah786
As @lancecarr said: “You cannot have the search function enabled unless your site is https (SSL)”
And the AMP error is about that, so move you site to HTTPS or disable the search functionality…
My own site is HTTPS, and there is no error with that, here my code:
<amp-lightbox id="search-icon" layout="nodisplay">
<form role="search" method="get" id="searchform" class="searchform" target="_top" action="https://www.domodeco.fr">
Here yours:
<amp-lightbox id="search-icon" layout="nodisplay">
<form role="search" method="get" id="searchform" class="searchform" target="_top" action="http://pakistanjobz.pk">
>The issue is related to: http://pakistanjobz.pk
Here is my AMP test: https://validator.ampproject.org/#url=https%3A%2F%2Fwww.domodeco.fr%2Fmatieres%2Fcouleur-therapie%2Famp
Here yours: https://validator.ampproject.org/#url=http%3A%2F%2Fpakistanjobz.pk%2Fkrl-hospital-jobs-20-november-2016-po-box-1384-islamabad-apply-online-www-hr184-com-pk-medical-officers-nurse-others-application-form-download-latest-advertisement%2Famp%2F
It’s probably worth your while to make your site Secure. If you use Cloudflare you get a free SSL certificate, a “flexible” one, which is fine if you aren’t doing financial transactions on your site.
I had to get help from my hosting company, but I think it was worth the trouble.
Hey @kaleemullah786
First of all Thank you so much for using our plugin.
The error Invalid URL protocol ‘http:’ for attribute ‘action’ in tag ‘FORM [method=GET]’. comes because you have enabled search on AMP version of your website and your website is not Https:// that is the reason why you are getting those errors.
I recommend you to turn off the search, so that error will go away from search console.
Hope it helps. let me know if you have any more questions I will be happier to help you.
and Thank you so much @lancecarr @pako69 @considerthis1 for helping the AMP community. We feel proud to have you guys as users 🙂
Hey @kaleemullah786
I have also noticed,
you are adding Adsense Ad Code in AMP widgets. It’s not allowed to paste Ad in the form of Script. If you want to place Ads in Widget, you have to place AMP Compatible Ad code but not scripts. This will cause errors. I recommend you to remove that script and Add AMP Compatible Ad code.
Even you are adding custom styling to Google Ads, it’s not Allowed in AMP.
If you fix these, your errors will get resolved.
Hope it helps. Let me know if you have any questions. We are always here to help our users.