Title: in_array() PHP Error
Last modified: March 16, 2017

---

# in_array() PHP Error

 *  Resolved [johnsd](https://wordpress.org/support/users/johnsd/)
 * (@johnsd)
 * [9 years ago](https://wordpress.org/support/topic/in_array-php-error/)
 * Hello,
    We are getting the following error on our site:
 * Warning: in_array() expects parameter 2 to be array, boolean given in /home/content/
   p3pnexwpnas11_data03/51/3668151/html/wp-content/plugins/svg-support/functions/
   featured-image.php on line 64
 * Warning: in_array() expects parameter 2 to be array, boolean given in /home/content/
   p3pnexwpnas11_data03/51/3668151/html/wp-content/plugins/svg-support/functions/
   featured-image.php on line 64
 * Do you know what could be causing this?
 * Thanks!
    John

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

 *  Plugin Author [Benbodhi](https://wordpress.org/support/users/benbodhi/)
 * (@benbodhi)
 * [9 years ago](https://wordpress.org/support/topic/in_array-php-error/#post-8922417)
 * Hi [@johnsd](https://wordpress.org/support/users/johnsd/),
 * Firstly thanks for your interest in my plugin 😁
 * I have found a few issues with this new featured image file, which I will be 
   fixing as soon as possible.
 * Hopefully the plugin still works for you as these are just warnings, but nonetheless,
   I will fix it.
 * Thanks for your support and patience!
 * Cheers
    Ben
 *  Thread Starter [johnsd](https://wordpress.org/support/users/johnsd/)
 * (@johnsd)
 * [9 years ago](https://wordpress.org/support/topic/in_array-php-error/#post-8922469)
 * Hi Ben,
 * The plugin is still working, however, the errors are appearing in our production
   site. Is there anything I can temporarily modify in the plugin to remove the 
   error?
 * Thanks for your prompt response!
 * John
 *  Plugin Author [Benbodhi](https://wordpress.org/support/users/benbodhi/)
 * (@benbodhi)
 * [9 years ago](https://wordpress.org/support/topic/in_array-php-error/#post-8922483)
 * PHP warnings shouldn’t be enabled on a production site…
    But you might be able
   to avoid it by turning off advanced mode in the plugin settings.
 *  Plugin Author [Benbodhi](https://wordpress.org/support/users/benbodhi/)
 * (@benbodhi)
 * [9 years ago](https://wordpress.org/support/topic/in_array-php-error/#post-8922492)
 * Failing that, you could also modify the plugin code to not include that file 
   causing the warnings. Simply comment out the line that includes the featured 
   image file.
 *  Thread Starter [johnsd](https://wordpress.org/support/users/johnsd/)
 * (@johnsd)
 * [9 years ago](https://wordpress.org/support/topic/in_array-php-error/#post-8922505)
 * Thanks, Ben! I disabled warnings in the wp-config file.
 *  Plugin Author [Benbodhi](https://wordpress.org/support/users/benbodhi/)
 * (@benbodhi)
 * [9 years ago](https://wordpress.org/support/topic/in_array-php-error/#post-8922512)
 * Perfect. It’s better for security that way anyways 👍
 * I’ll aim to have this fixed in the next update. Thanks for your understanding
   and patience.
 *  [henza](https://wordpress.org/support/users/henza/)
 * (@henza)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/in_array-php-error/#post-9314886)
 * Hi Ben.
 * I noticed this warning cropping up on a site I am working on.
 * `Warning: in_array() expects parameter 2 to be array, boolean given in /htdocs/
   nm-wordpress/wp-content/plugins/svg-support/functions/featured-image.php on line
   69`
 * Just wanted to let you know in case you thought the bug was squashed 🙂
    Great
   work on the plugin too by the way!
 * Cheers,
    Henry
 *  Plugin Author [Benbodhi](https://wordpress.org/support/users/benbodhi/)
 * (@benbodhi)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/in_array-php-error/#post-9315851)
 * Thanks Henry,
 * I’ll be looking into this again and fixing it asap.
    Glad you like the plugin!
   😃

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

The topic ‘in_array() PHP Error’ is closed to new replies.

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

 * 8 replies
 * 3 participants
 * Last reply from: [Benbodhi](https://wordpress.org/support/users/benbodhi/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/in_array-php-error/#post-9315851)
 * Status: resolved