Title: Fatal error: Uncaught TypeError:
Last modified: April 11, 2017

---

# Fatal error: Uncaught TypeError:

 *  Resolved [scheinig](https://wordpress.org/support/users/scheinig/)
 * (@scheinig)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror/)
 * can somebody give me a hand with this:
    Fatal error: Uncaught TypeError: Argument
   1 passed to Hyyan\WPI\Product\Stock::change() must be of the type array, object
   given, called in /data/web/e68211/html/wp-mietplattform/wp-content/plugins/woo-
   poly-integration/src/Hyyan/WPI/Product/Stock.php on line 56 and defined in /data/
   web/e68211/html/wp-mietplattform/wp-content/plugins/woo-poly-integration/src/
   Hyyan/WPI/Product/Stock.php:90 Stack trace: #0 /data/web/e68211/html/wp-mietplattform/
   wp-content/plugins/woo-poly-integration/src/Hyyan/WPI/Product/Stock.php(56): 
   Hyyan\WPI\Product\Stock->change(Object(WC_Order_Item_Product), ‘reduce’) #1 /
   data/web/e68211/html/wp-mietplattform/wp-includes/class-wp-hook.php(298): Hyyan\
   WPI\Product\Stock->reduceStock(Object(WC_Order)) #2 /data/web/e68211/html/wp-
   mietplattform/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array)#
   3 /data/web/e68211/html/wp-mietplattform/wp-includes/plugin.php(453): WP_Hook-
   >do_action(Array) #4 /data/web/e68211/html/wp-mietplattform/wp-content/plugins/
   woocommerce/includes/wc-stock-functions in /data/web/e68211/html/wp-mietplattform/
   wp-content/plugins/woo-poly-integration/src/Hyyan/WPI/Product/Stock.php on line
   90

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

 *  Plugin Contributor [jomo](https://wordpress.org/support/users/jonathanmoorebcsorg/)
 * (@jonathanmoorebcsorg)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror/#post-9070302)
 * this area of code has changed in the woo3 release candidate:
    the pull request
   is now made at: [https://github.com/hyyan/woo-poly-integration/pull/139](https://github.com/hyyan/woo-poly-integration/pull/139)
 * but it needs more people to test it before it is merged and released to wordpress.
   org for distribution.
 * At the moment you can get the updated code from:
    [https://github.com/Jon007/woo-poly-integration](https://github.com/Jon007/woo-poly-integration)
 *  Plugin Contributor [jomo](https://wordpress.org/support/users/jonathanmoorebcsorg/)
 * (@jonathanmoorebcsorg)
 * [9 years ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror/#post-9189171)
 * Please note the official release 1.0 supporting WooCommerce3 is now out.
    If 
   you have issues with this new release please report in [https://github.com/hyyan/woo-poly-integration/issues](https://github.com/hyyan/woo-poly-integration/issues)

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

The topic ‘Fatal error: Uncaught TypeError:’ is closed to new replies.

 * ![](https://ps.w.org/woo-poly-integration/assets/icon-128x128.png?rev=1139686)
 * [Hyyan WooCommerce Polylang Integration](https://wordpress.org/plugins/woo-poly-integration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-poly-integration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-poly-integration/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-poly-integration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-poly-integration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-poly-integration/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [jomo](https://wordpress.org/support/users/jonathanmoorebcsorg/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror/#post-9189171)
 * Status: resolved