• Resolved rawhyder

    (@rawhyder)


    I’m getting a few errors in my google search console:

    1) The attribute ‘border’ may not appear in tag ‘amp-img’.
    (Which comes from the Amazon Affiliate Code – 1pxx1px border=”0″)

    2) The implied layout ‘CONTAINER’ is not supported by tag ‘amp-iframe’.

    3) The attribute ‘valign’ may not appear in tag ‘table’.

    4) The mandatory attribute ‘height’ is missing in tag ‘amp-img’.

    And also, all of the target=”_blank” links don’t work. The href doesn’t even show on them. Links that aren’t target=”_blank” work fine. Need to strip out the “blank” to get these links working again.

    https://wordpress.org/plugins/accelerated-mobile-pages/

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Hey Rawhyder,

    Thanks for the awesome feedback! It will help us create better plugin for you.

    We’re two developers, we dedicate 2 days out of our week to the AMP plugin development. So, we will look into these over the next week, fix the issues and release an update soon as possible.

    Regards,
    Ahmed

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Also, I totally forgot to mention, but if you could post the website url then it would really help us.

    Regards,
    Ahmed

    Thread Starter rawhyder

    (@rawhyder)

    Hi Ahmed, I sent you a website link via email, don’t really want to post it here. Thanks! πŸ™‚

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Sure Rawhyder, I can understand. Will look into this soon as possible.

    Thread Starter rawhyder

    (@rawhyder)

    Thanks, the target=”_blank” is the most crucial for me to work right now, since none of the links work. The console errors will all be fixed in time. πŸ™‚

    Sounds like you have a few issues with plugin compatibility to me, it seems that you have a few plugins that are adding their own code to AMP pages, which you shouldn’t be doing.

    If you can, the best way for you to stop this is the disable amp pages from the settings of those plugins, some will have an option like “disable on these pages”, you can simply type something along the lines of ” */?amp ” and that will work if they support regular expressions.

    Aside from that, you would need to individually disable the plugins you need in this plugin, or get the other plugin developers to stop their plugins loading on AMP pages.

    Thread Starter rawhyder

    (@rawhyder)

    Where would I add */?amp to, to disable that plugin from working on amp pages?

    And this morning, I get a slew of new console errors:

    The tag ‘img’ may only appear as a descendant of tag ‘noscript’. Did you mean ‘amp-img’?

    Missing structured data element

    Invalid URL protocol ‘http:’ for attribute ‘src’ in tag ‘img’.

    The attribute ‘ref’ may not appear in tag ‘a’.

    Well if the plugin has an option to disable on certain pages, that’s where you would add that.

    Currently, I think the best option would be to disable all of your plugins except for AMP and check if everything validates, it should.

    Then enable your plugins one by one, re-validating after each activation and write down the ones where you see additional validation problems.

    You can validate AMP pages by copying the URL into this page:

    https://validator.ampproject.org/

    Thread Starter rawhyder

    (@rawhyder)

    A couple more errors: (Do you want these in separate posts? Or just continue adding them here?)

    The attribute ‘border’ may not appear in tag ‘td’.

    The attribute ‘size-full’ may not appear in tag ‘amp-img’.

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Hey @rawhyder

    Your username on the github is ‘Taig7’?

    so that I can be sure that I am checking the right website url.

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    You may have sent me an email with URL, but I am not able to locate it.

    Can you please send it to ahmed (at) magazine3.com so I can check it out and troubleshoot them.

    Thread Starter rawhyder

    (@rawhyder)

    Taig, not me. I sent you an email with all the errors and url. πŸ™‚

    Thread Starter rawhyder

    (@rawhyder)

    A couple more Console Errors:

    The attribute ‘border’ in tag ‘table’ is set to the invalid value ‘3’.

    The attribute ‘cellpadding’ may not appear in tag ‘td’.

    Thread Starter rawhyder

    (@rawhyder)

    One more new one…

    The attribute ‘color’ may not appear in tag ‘hr’.

    Plugin Author Mohammed Kaludi

    (@mohammed_kaludi)

    @rawhyder,

    Thank you for reporting the issue, we are going to release a big update in few days and I’m sure these issues will be fixed in the next update.

    Our main focus is validation in this update.

    Thank you once again for reporting the bugs.
    Mohammed Kaludi

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Few Console Errors’ is closed to new replies.