Title: PHP 7.4 error Warning: in_array() &#8211; Fixed
Last modified: October 7, 2021

---

# PHP 7.4 error Warning: in_array() – Fixed

 *  Resolved [mukten](https://wordpress.org/support/users/mukten/)
 * (@mukten)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/php-7-4-error-warning-in_array-fixed/)
 * Hello!
    I had some issues with an error occurring when running the plugin with
   PHP 7.4. It looked like this: Warning: in_array() expects parameter 2 to be array,
   null given in. After some sweet guidance from the forum, I changed the PHP to
   7.3 and thus the error disappeared. A fix for this in the next update would be
   greatly appreciated.
 * Cheers

The topic ‘PHP 7.4 error Warning: in_array() – Fixed’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/hide-categories-or-products-on-shop-
   page_6fcff7.svg)
 * [Hide Categories Or Products On Shop Page](https://wordpress.org/plugins/hide-categories-or-products-on-shop-page/)
 * [Support Threads](https://wordpress.org/support/plugin/hide-categories-or-products-on-shop-page/)
 * [Active Topics](https://wordpress.org/support/plugin/hide-categories-or-products-on-shop-page/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hide-categories-or-products-on-shop-page/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hide-categories-or-products-on-shop-page/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [mukten](https://wordpress.org/support/users/mukten/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/php-7-4-error-warning-in_array-fixed/)
 * Status: resolved