Title: PHP Warning: Undefined array key 0
Last modified: April 26, 2023

---

# PHP Warning: Undefined array key 0

 *  Resolved [cliqueradar](https://wordpress.org/support/users/cliqueradar/)
 * (@cliqueradar)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-0/)
 * Hi guys,
 * I’m seeing the following php warning in my error logs:
 * PHP Warning: Undefined array key 0 in …/wp-content/plugins/code-snippets/php/
   snippet-ops.php(504) : eval()’d code on line 18
 * If this is being generated by one of my code snippets… how do I identify which
   snippet has the error?
 * Thanks. 🙂

Viewing 1 replies (of 1 total)

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-0/#post-16705730)
 * Hi [@cliqueradar](https://wordpress.org/support/users/cliqueradar/),
 * It is indeed an error coming from a snippet. You should be able to identify which
   one by doing a search for `0 @line:18`.

Viewing 1 replies (of 1 total)

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

 * 1 reply
 * 2 participants
 * Last reply from: [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-0/#post-16705730)
 * Status: resolved