• KvnKrft

    (@kvnkrft)


    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

    (@bungeshea)

    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

    (@kvnkrft)

    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

    (@bungeshea)

    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

    (@kvnkrft)

    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.