Title: Undefined index when debug = true
Last modified: August 22, 2016

---

# Undefined index when debug = true

 *  [dryan1144](https://wordpress.org/support/users/dryan1144/)
 * (@dryan1144)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/undefined-index-when-debug-true/)
 * The following errors are thrown when publishing/updating a post (/wp-admin/post.
   php) and debug = TRUE. WP 4.0 and plugin v1.6
 * **Notice**: Undefined index: authorship in /home/flywheel1144/futures.wphandcrafted.
   com/wp-content/plugins/wordpress-seo/inc/class-wpseo-meta.php on line 451
 * **Notice**: Undefined index: type in /wp-content/plugins/wordpress-seo/admin/
   class-metabox.php on line 694
 * **Warning**: Cannot modify header information – headers already sent by (output
   started at /wp-content/plugins/wordpress-seo/inc/class-wpseo-meta.php:451) in/
   wp-admin/post.php on line 233
 * **Warning**: Cannot modify header information – headers already sent by (output
   started at /wp-content/plugins/wordpress-seo/inc/class-wpseo-meta.php:451) in/
   wp-includes/pluggable.php on line 1173
 * [https://wordpress.org/plugins/wordpress-seo/](https://wordpress.org/plugins/wordpress-seo/)

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

 *  [wycks](https://wordpress.org/support/users/wycks/)
 * (@wycks)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/undefined-index-when-debug-true/#post-5274668)
 * Same issue on all sites with latest update 1.6, please fix.
 *  [Evan Scheingross](https://wordpress.org/support/users/evster/)
 * (@evster)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/undefined-index-when-debug-true/#post-5274861)
 * Just want to comment that I’m experiencing the same issue with WP 4.0 and WordPress
   SEO plugin version 1.6 when wp_debug is set to TRUE.
 * For now my solution is to temporarily turn wp_debug to FALSE during development,
   only switching back as necessary for testing.
 *  [letterafterz](https://wordpress.org/support/users/letterafterz/)
 * (@letterafterz)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/undefined-index-when-debug-true/#post-5274862)
 * Comment out line 451 in: wp-content/plugins/wordpress-seo/inc/class-wpseo-meta.
   php
 * This will be fixed in the next update, [as per the github](https://github.com/Yoast/wordpress-seo).
 * [Another thread on this issue here.](http://wordpress.org/support/topic/update-16-errors)

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

The topic ‘Undefined index when debug = true’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [letterafterz](https://wordpress.org/support/users/letterafterz/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/undefined-index-when-debug-true/#post-5274862)
 * Status: not resolved