Title: array_walk() expects parameter 2 to be a valid callback
Last modified: May 17, 2021

---

# array_walk() expects parameter 2 to be a valid callback

 *  Resolved [Daniele Scasciafratte](https://wordpress.org/support/users/mte90/)
 * (@mte90)
 * [5 years ago](https://wordpress.org/support/topic/array_walk-expects-parameter-2-to-be-a-valid-callback/)
 * I am getting various errors:
 * `PHP Warning: array_walk() expects parameter 2 to be a valid callback, class '
   Automattic\WooCommerce\Admin\Overrides\Order' does not have a method 'push_order_product'
   in /home/wp-content/plugins/activecampaign-for-woocommerce/includes/events/class-
   activecampaign-for-woocommerce-order-finished-event.php on line 322`
 * Also
 * `PHP Warning: Invalid argument supplied for foreach() in /home//wp-content/plugins/
   activecampaign-for-woocommerce/includes/models/class-activecampaign-for-woocommerce-
   ecom-order.php on line 596`
    -  This topic was modified 5 years ago by [Daniele Scasciafratte](https://wordpress.org/support/users/mte90/).
    -  This topic was modified 5 years ago by [Daniele Scasciafratte](https://wordpress.org/support/users/mte90/).

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

 *  Thread Starter [Daniele Scasciafratte](https://wordpress.org/support/users/mte90/)
 * (@mte90)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/array_walk-expects-parameter-2-to-be-a-valid-callback/#post-14667988)
 * The first error was fixed with the latest releases but not the second.
 *  Thread Starter [Daniele Scasciafratte](https://wordpress.org/support/users/mte90/)
 * (@mte90)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/array_walk-expects-parameter-2-to-be-a-valid-callback/#post-14700685)
 * As they don’t reply on the forum I write for them.
    The 1.4.4 fixed a lot of 
   errors and the one described here.

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

The topic ‘array_walk() expects parameter 2 to be a valid callback’ is closed to
new replies.

 * ![](https://ps.w.org/activecampaign-for-woocommerce/assets/icon-256x256.png?rev
   =1925389)
 * [ActiveCampaign for WooCommerce](https://wordpress.org/plugins/activecampaign-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/activecampaign-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/activecampaign-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/activecampaign-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/activecampaign-for-woocommerce/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [Daniele Scasciafratte](https://wordpress.org/support/users/mte90/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/array_walk-expects-parameter-2-to-be-a-valid-callback/#post-14700685)
 * Status: resolved