Accelerated-mobile-pages: debug warning: Notice: Trying to access array offset on value of type bool

Created on 15 May 2020  ยท  5Comments  ยท  Source: ahmedkaludi/accelerated-mobile-pages

Staring with an error message: Notice: Trying to access array offset on value of type bool in /var/www/html/wp-content/plugins/accelerated-mobile-pages/templates/features.php on line 6728
to
[Action] Unrecognized AMP element "amp-animation".โ€‹โ€‹โ€‹ โ€‹,

There are quite a few errors in my Webmaster console too.

image

Sample URL for debugging: https://www.wisdomgeek.com/amp/#development=1

I also am getting a lot more errors with Yoast as well, I had to downgrade Yoast to 13.5.0 to resolve those

NEXT UPDATE HIGH] bug

All 5 comments

Thank you very much for raising the ticket.

This is just a debug warning, but as amp markup is very strict, it does not allow anything unwanted in the markup and will invalidate the page.

Please turnoff the wp debug, by setting wp_debug to false in wp-config.php as it not advisable to enable debug in the production site.

We will fix the debug warning in Future updates.

Thank you! Turning debug mode off fixed it. Let me know if you want me to close this issue or keep it open as a task for removing the debug warning in the future :)

No, keep the tickets open we will fix the debug warning in future updates.

ready to merge.

Pushed in 1.0.51 update

Was this page helpful?
0 / 5 - 0 ratings

Related issues

prayagverma picture prayagverma  ยท  3Comments

MohammedKaludi picture MohammedKaludi  ยท  8Comments

satriaenur picture satriaenur  ยท  4Comments

Blackburn789 picture Blackburn789  ยท  4Comments

luan03 picture luan03  ยท  3Comments