Title: Undefined offset: 0
Last modified: May 11, 2017

---

# Undefined offset: 0

 *  [KvnKrft](https://wordpress.org/support/users/kvnkrft/)
 * (@kvnkrft)
 * [9 years ago](https://wordpress.org/support/topic/undefined-offset-0-5/)
 * I’m seeing these in my debug.log. Any idea what could be causing this?
 * [11-May-2017 20:23:44 UTC] PHP Notice: Undefined offset: 0 in /web/sites/###/###.
   com/wp-content/plugins/code-snippets/php/snippet-ops.php(384) : eval()’d code
   on line 13
    [11-May-2017 20:23:44 UTC] PHP Notice: Undefined offset: 0 in /web/
   sites/###/###.com/wp-content/plugins/code-snippets/php/snippet-ops.php(384) :
   eval()’d code on line 14

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

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [9 years ago](https://wordpress.org/support/topic/undefined-offset-0-5/#post-9124921)
 * These errors would be due to an error in one of your snippets. It’s hard to tell
   which snippet from the error message, but it’s something to do with accessing
   an empty/undefined array using something like `[0]` on line 13 and 14 of a snippet.
 * Good luck finding the bug!
 *  Thread Starter [KvnKrft](https://wordpress.org/support/users/kvnkrft/)
 * (@kvnkrft)
 * [9 years ago](https://wordpress.org/support/topic/undefined-offset-0-5/#post-9125178)
 * Hey Shea. Is there any way to expand the debug output to troubleshoot these types
   of issues?
 * And THANK YOU for your help!
 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [9 years ago](https://wordpress.org/support/topic/undefined-offset-0-5/#post-9125189)
 * I have tried to do so before – and I’ll keep looking at it – but unfortunately,
   PHP is quite restrictive in this sort of thing. Hopefully I can work out some
   sort of improvement in the future – I realise it they can be pretty frustrating!
 *  Thread Starter [KvnKrft](https://wordpress.org/support/users/kvnkrft/)
 * (@kvnkrft)
 * [9 years ago](https://wordpress.org/support/topic/undefined-offset-0-5/#post-9125323)
 * Hi Shea, thanks for your help. I really appreciate it.

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

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

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

 * 4 replies
 * 2 participants
 * Last reply from: [KvnKrft](https://wordpress.org/support/users/kvnkrft/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/undefined-offset-0-5/#post-9125323)
 * Status: not a support question