Title: PHP Warning: Undefined array key &#8220;desc&#8221;
Last modified: December 7, 2023

---

# PHP Warning: Undefined array key “desc”

 *  Resolved [robzy](https://wordpress.org/support/users/robzy/)
 * (@robzy)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-desc/)
 * Seeing lots of these errors in my log files:
 * `PHP Warning: Undefined array key "desc" in [redacted]/wp-content/plugins/easy-
   table-of-contents/includes/class.options.php on line 1776`
 * Maybe change that line to something like this?
 * `if ( !empty ( $args['desc'] ) ) {`
    -  This topic was modified 2 years, 5 months ago by [robzy](https://wordpress.org/support/users/robzy/).

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

 *  Plugin Author [Magazine3](https://wordpress.org/support/users/magazine3/)
 * (@magazine3)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-desc/#post-17261919)
 * Hi, Thank you for letting us know. We have raised a GitHub ticket regarding this
   concern and this issue will be addressed in the upcoming update.
 * You can find the ticket here: [https://github.com/ahmedkaludi/Easy-Table-of-Contents/issues/665](https://github.com/ahmedkaludi/Easy-Table-of-Contents/issues/665)
 *  Plugin Author [Magazine3](https://wordpress.org/support/users/magazine3/)
 * (@magazine3)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-desc/#post-17273383)
 * Hi, hope you’re doing well. We’ve released a new update, so kindly update the
   plugin with the new **version** **2.0**.**61** and give it a try. Please feel
   free to reach out to us if you have any concerns.
 *  Thread Starter [robzy](https://wordpress.org/support/users/robzy/)
 * (@robzy)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-desc/#post-17274639)
 * Updated. Thanks for the quick fix!
 *  Plugin Author [Magazine3](https://wordpress.org/support/users/magazine3/)
 * (@magazine3)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-desc/#post-17276376)
 * Great to hear that your issue has been resolved. We are marking this thread as
   closed. If you have any further questions or need assistance, please feel free
   to reach out to us. Have a great day ahead!!

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

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

 * 4 replies
 * 2 participants
 * Last reply from: [Magazine3](https://wordpress.org/support/users/magazine3/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-desc/#post-17276376)
 * Status: resolved