Title: PHP Notice: Undefined offset
Last modified: July 30, 2020

---

# PHP Notice: Undefined offset

 *  Resolved [ZewaLogi](https://wordpress.org/support/users/amazinghulk/)
 * (@amazinghulk)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/php-notice-undefined-offset-8/)
 * Hi,
 * I just checked my debug.log and see that below mentioned message appears often:
 * PHP Notice: Undefined offset: 0 in …./public_html/wp-content/plugins/easy-table-
   of-contents/easy-table-of-contents.php on line 614
 * I don’t experience any issues with a plugin but interested in this notice and
   is there a fix for it?

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

 *  [Steven](https://wordpress.org/support/users/shazahm1hotmailcom/)
 * (@shazahm1hotmailcom)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/php-notice-undefined-offset-8/#post-13208272)
 * After reviewing the code, it does seem like it is possible to generate this notice
   if the page does not have any headings which need in-page anchors inserted. I’ll
   add a note to add a secondary check before attempting to access the variable,
   which will prevent the notice. It’ll be in the next maintenance update when released.
   For now, the notice is harmless and can be ignored.
 *  [Matija](https://wordpress.org/support/users/kasareviews/)
 * (@kasareviews)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/php-notice-undefined-offset-8/#post-13208760)
 * Ok, thanks for your reply and update on this.

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

The topic ‘PHP Notice: Undefined offset’ is closed to new replies.

 * ![](https://ps.w.org/easy-table-of-contents/assets/icon-256x256.png?rev=3045459)
 * [Easy Table of Contents](https://wordpress.org/plugins/easy-table-of-contents/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-table-of-contents/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-table-of-contents/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-table-of-contents/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-table-of-contents/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-table-of-contents/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Matija](https://wordpress.org/support/users/kasareviews/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/php-notice-undefined-offset-8/#post-13208760)
 * Status: resolved