Title: Invalid code being generated, errors
Last modified: August 24, 2023

---

# Invalid code being generated, errors

 *  Resolved [PPNSteve](https://wordpress.org/support/users/ppnsteve/)
 * (@ppnsteve)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/invalid-code-being-generated-errors/)
 * Getting mutiple AMP errors including in the html tag.
 * `<html lang="en-US" data-ampdevmode="" data-amp-auto-lightbox-disable transformed
   ="self;v=1" i-amphtml-layout="" i-amphtml-no-boilerplate="">`
   AMP detected one
   plugin that’s incompatible (Canvas builder, reported to them as well), supressed
   it for amp pages. No joy on their errors.
 * Support UUID: ampwp-7ac57ccb-7b31-596d-ac23-9cc65a5540c6
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Finvalid-code-being-generated-errors%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [Milind More](https://wordpress.org/support/users/milindmore22/)
 * (@milindmore22)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/invalid-code-being-generated-errors/#post-17005532)
 * Hello [@ppnsteve](https://wordpress.org/support/users/ppnsteve/)
 * Thank you for contacting us, It seems you have disabled the AMP plugin, Can you
   please re-activate it again so we can check the issue?
 * From the Support data, we noticed that you are using WPBakery builder which is
   not AMP compatible as it heavily uses custom javascript, The custom javascript
   is not allowed on AMP pages and it might be the issue you are seeing for page
   validation.
 * I will recommend switching to the default Editor or looking for an alternative
   solution.
 * We hope this helps!
 *  Plugin Support [Milind More](https://wordpress.org/support/users/milindmore22/)
 * (@milindmore22)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/invalid-code-being-generated-errors/#post-17023554)
 * [@ppnsteve](https://wordpress.org/support/users/ppnsteve/) As we didn’t receive
   a response I’ll mark this as resolved. Feel free to open a [new support topic](https://wordpress.org/support/plugin/amp/#new-post)
   if you require any further assistance.
 *  Thread Starter [PPNSteve](https://wordpress.org/support/users/ppnsteve/)
 * (@ppnsteve)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/invalid-code-being-generated-errors/#post-17025063)
 * Thanks.. we did work out the issues and all is good now.
 * Thanks again.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Invalid code being generated, errors’ is closed to new replies.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

## Tags

 * [errors](https://wordpress.org/support/topic-tag/errors/)

 * 3 replies
 * 2 participants
 * Last reply from: [PPNSteve](https://wordpress.org/support/users/ppnsteve/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/invalid-code-being-generated-errors/#post-17025063)
 * Status: resolved