Title: PHP Warning
Last modified: December 20, 2017

---

# PHP Warning

 *  Resolved [santtumarika](https://wordpress.org/support/users/santtumarika/)
 * (@santtumarika)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/php-warning-145/)
 * Hi! I see the following notification in my error log:
 * PHP Warning: in_array() expects parameter 2 to be array, null given in /home/
   scom/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(433) : 
   eval()’d code on line 1035
 * What could be the problem?? What should i do?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-warning-145%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/php-warning-145/#post-9802115)
 * Hello!
 * This error message is being caused by a code error in one of your snippets.
 * It’s a bit tricky to tell which one exactly from the error message, but it looks
   like it’s a very large one (1035 lines?) and it’s to do with calling the `is_array()`
   function where the second argument variable does not contain an array.

Viewing 1 replies (of 1 total)

The topic ‘PHP Warning’ 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: [8 years, 5 months ago](https://wordpress.org/support/topic/php-warning-145/#post-9802115)
 * Status: resolved