Hi @curiosfera,
I apologize for this inconvenience.
You don’t have to worry much it just a warning and your AMP pages are validated.
Please disable the debug mode, it will resolve your issue.
I have also created a ticket about it and will resolve it in our Next update.
Regards
Marqas
Hi @margas
Tanks, but How can I disable the debug mode?
My AMP pages are NOT Validated, Yesterday 146 AMP pages have been deindexed 🙁
You can see https://ibb.co/no6ye5
many thanks
Hi @curiosfera,
In wp-config file change this define('WP_DEBUG', true);
Into this define('WP_DEBUG', false);
It will resolve your problem.
So I have paid amp ads working (purchased today) great except as validated by amp using a custom insertion (native/fluid Google ad).
1. Inline style attributes
<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<ins class=”adsbygoogle”
style=”display:block; text-align:center;”
data-ad-format=”fluid”
data-ad-layout=”in-article”
data-ad-client=”ca-pub-xxx”
data-ad-slot=”xxx”>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
All styles must be defined in the <head> of the page, within a <style amp-custom> tag.
2. User-authored JavaScript found on page
The tag ‘script’ is disallowed except in specific forms.
So they are working fine and AMP is fussy, but should I get this fixed or be concerned right now?
Thanks,
Stu
Thanks Marqas:
I write define('WP_DEBUG', false) in wp-config.php and i can still see the error.
For example: http://www.curiosfera.com/cuantos-satelites-alrededor-la-tierra/amp/
NOTE: i run the 1.6 version of amp incontent ads, because with the v1.7 there are many more errors 🙁 In addition with v1.6 the AMP pages are indexed, but, with v1.7 NO
specifically:
Before the tittle: Notice: Undefined index: ampforwp-advertisement-type in /var/www/vhost/curiosfera.com/home/html/wp-content/plugins/amp-incontent-ads/ads/ad-doubleclick.php on line 8
After the header image:
Notice: Undefined index: ampforwp-advertisement-type in /var/www/vhost/curiosfera.com/home/html/wp-content/plugins/amp-incontent-ads/ads/ad-doubleclick.php on line 37
Below the post content:
Notice: Undefined index: ampforwp-advertisement-type in /var/www/vhost/curiosfera.com/home/html/wp-content/plugins/amp-incontent-ads/ads/ad-doubleclick.php on line 52
Below the footer:
Notice: Undefined index: ampforwp-advertisement-type in /var/www/vhost/curiosfera.com/home/html/wp-content/plugins/amp-incontent-ads/ads/ad-doubleclick.php on line 22
I need a quick solution, please, it’s a payment supplement
Thanks in advanced
Hi @curiosfera,
I am extremely sorry for the delay.
I just checked the link which you have provided and it is working fine.
Are you still facing any issues?
@dblinks AMP will not work with that code. Just add the data data-ad-client=”ca-pub-xxx”
data-ad-slot=”xxx”> From Adsense settings if you are using Adsense.
Else you can use Custom ad option to add any other ads.
Let me know if you guys have any more questions.
It’s posible AMP customize the theme like http://www,curiosfera.com in my theme https://quecomen.bio/ ?