Title: PHP Warning: Undefined array key &#8220;type&#8221;
Last modified: November 12, 2025

---

# PHP Warning: Undefined array key “type”

 *  Resolved [robdasailor@gmail.com](https://wordpress.org/support/users/robdasailorgmailcom/)
 * (@robdasailorgmailcom)
 * [6 months, 4 weeks ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-type/)
 * PHP Warning: Undefined array key “type” in /wordpress/plugins/amp/2.5.5/includes/
   validation/class-amp-validation-manager.php on line 1317
 * I am getting this error and it is preventing editing with the block editor…It
   creates an error. I have a very simple wordpress.com install. Everything is up
   to date. This is from the log. Thanks…

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

 *  Plugin Support [Milind More](https://wordpress.org/support/users/milindmore22/)
 * (@milindmore22)
 * [6 months, 3 weeks ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-type/#post-18716297)
 * Hello [@robdasailorgmailcom](https://wordpress.org/support/users/robdasailorgmailcom/)
 * Thanks for reporting this error and providing the log information! That PHP warning
   is definitely something we need to look into, especially since it’s interfering
   with your Block Editor (Gutenberg) experience.
 * The specific warning:
 * `PHP Warning: Undefined array key “type” in /wordpress/plugins/amp/2.5.5/includes/
   validation/class-amp-validation-manager.php on line 1317`
 * …is coming from the AMP plugin (version 2.5.5). It indicates that the validation
   manager is trying to access an array element with the key “type”, but that key
   doesn’t exist at that point, causing the warning. While this is technically a
   warning and not a fatal error, PHP warnings can sometimes break page execution
   or, in this case, prevent the editor from loading correctly, especially within
   a highly validated environment like AMP.
 * Since you are using a simple WordPress.com install, and everything is up-to-date.
   This likely points to an incompatibility or a bug triggered by a specific piece
   of content or configuration on your site.
 * Can you please share the link for the post where you are getting the warning?
   So we can debug this further.
 *  Plugin Support [Milind More](https://wordpress.org/support/users/milindmore22/)
 * (@milindmore22)
 * [6 months, 1 week ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-type/#post-18738908)
 * Hello [@robdasailorgmailcom](https://wordpress.org/support/users/robdasailorgmailcom/)
 * 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.

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

The topic ‘PHP Warning: Undefined array key “type”’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [Milind More](https://wordpress.org/support/users/milindmore22/)
 * Last activity: [6 months, 1 week ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-type/#post-18738908)
 * Status: resolved