Title: PHP Warning: in_array() expects parameter 2 to be array, null given
Last modified: September 4, 2020

---

# PHP Warning: in_array() expects parameter 2 to be array, null given

 *  Resolved [riser](https://wordpress.org/support/users/riser/)
 * (@riser)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/php-warning-in_array-expects-parameter-2-to-be-array-null-given/)
 * Hi,
    I keep getting this PHP Warning:
 * PHP Warning: in_array() expects parameter 2 to be array, null given in /path-
   to-website/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/BaseVersion/
   Includes/External/WcCartStatsCollector.php on line 121
 * Website is using:
    Wordpress Version – 5.5 Woocommerce Version – 4.4.1 Advanced
   Dynamic Pricing for WooCommerce Version – 3.0.4
 * Any idea what I can do to solve this issue?
 * Thanks in advance!

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

 *  [missundaztood](https://wordpress.org/support/users/missundaztood/)
 * (@missundaztood)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/php-warning-in_array-expects-parameter-2-to-be-array-null-given/#post-13361046)
 * Hi, riser,
 * Could you send a ticket in [the helpdesk](https://algolplus.freshdesk.com/support/tickets/new)
   with a log file?
 *  [missundaztood](https://wordpress.org/support/users/missundaztood/)
 * (@missundaztood)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/php-warning-in_array-expects-parameter-2-to-be-array-null-given/#post-13361691)
 * Hi, riser,
 * We’ll fix it in the new release.
    Please, send a ticket in [the helpdesk ](https://algolplus.freshdesk.com/support/tickets/new)
   and I’ll send you a new version.
 *  Thread Starter [riser](https://wordpress.org/support/users/riser/)
 * (@riser)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/php-warning-in_array-expects-parameter-2-to-be-array-null-given/#post-13364535)
 * Hi missundaztood,
    I’ve sent a ticket in helptext now.
 * Thanks
    Riser
 *  [missundaztood](https://wordpress.org/support/users/missundaztood/)
 * (@missundaztood)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/php-warning-in_array-expects-parameter-2-to-be-array-null-given/#post-13369521)
 * Hi, riser,
 * This will be fixed in the next release.

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

The topic ‘PHP Warning: in_array() expects parameter 2 to be array, null given’ 
is closed to new replies.

 * ![](https://ps.w.org/advanced-dynamic-pricing-for-woocommerce/assets/icon-256x256.
   png?rev=1984204)
 * [Advanced Dynamic Pricing and Discount Rules for WooCommerce](https://wordpress.org/plugins/advanced-dynamic-pricing-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-dynamic-pricing-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-dynamic-pricing-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-dynamic-pricing-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-dynamic-pricing-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-dynamic-pricing-for-woocommerce/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [missundaztood](https://wordpress.org/support/users/missundaztood/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/php-warning-in_array-expects-parameter-2-to-be-array-null-given/#post-13369521)
 * Status: resolved