Title: Fatal Error WooCommerce::add_error()
Last modified: August 30, 2016

---

# Fatal Error WooCommerce::add_error()

 *  Resolved [Jens Kuerschner](https://wordpress.org/support/users/jekuer/)
 * (@jekuer)
 * [11 years ago](https://wordpress.org/support/topic/fatal-error-woocommerceadd_error/)
 * Hi Matthias,
 * I just installed the Paymill plugin and can’t get it to work.
    It always gives
   me the following error: Fatal error: Call to undefined method WooCommerce::add_error()
   in /var/www/public_html/staging/stuff/plugins/paymill/lib/integration/woocommerce.
   inc.php on line 717
 * I tried both, the files from the WordPress and the github rep.
 * I also think there might be 2 issues.
    1: The error handling. 2: The missing 
   Token (line 717). Where does this Token gets included. I could not find it within
   the files. It definitely doesn’t show up on the loaded page.
 * Any advice how to solve those issues?
    Thanks in advance.
 * Best,
    Jens
 * [https://wordpress.org/plugins/paymill/](https://wordpress.org/plugins/paymill/)

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

 *  Plugin Author [straightvisions GmbH](https://wordpress.org/support/users/matthias-reuter/)
 * (@matthias-reuter)
 * [11 years ago](https://wordpress.org/support/topic/fatal-error-woocommerceadd_error/#post-6189128)
 * This issue should be fixed with v1.10.0 release now 🙂
 *  Thread Starter [Jens Kuerschner](https://wordpress.org/support/users/jekuer/)
 * (@jekuer)
 * [11 years ago](https://wordpress.org/support/topic/fatal-error-woocommerceadd_error/#post-6189143)
 * Hi,
 * the problem is still there, since you still use $woocommerce->add_error on line
   717 in woocommerce.inc.php. This (the add_error class) is deprecated. I changed
   it to the newer wc_add_notice and it works.
 * I also experienced another problem/bug:
    The Paymill payment form didn’t show
   up, because of the IE8 switch. See: checkout_form.php, line 86. Problem is the
   <!–> after the <!–[if gte IE 8]>. In my opinion this is not necessary. In any
   case it leads to a break in the output (at least in most browsers). I deleted
   it and it works fine. See also: [https://github.com/h5bp/html5-boilerplate/issues/1437](https://github.com/h5bp/html5-boilerplate/issues/1437)
 * Will these 2 things be changed for future updates or do I have to redo my manual
   changes each time?
 * Another thing I noticed (just as feedback). It would be cool to have the whole
   payment form within the template (including the paymill logo).
 * Keep up the awesome work!
 * Best,
    Jens
 *  Plugin Author [straightvisions GmbH](https://wordpress.org/support/users/matthias-reuter/)
 * (@matthias-reuter)
 * [11 years ago](https://wordpress.org/support/topic/fatal-error-woocommerceadd_error/#post-6189144)
 * Jens, big thx, fixes has been released now 🙂

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

The topic ‘Fatal Error WooCommerce::add_error()’ is closed to new replies.

 * ![](https://ps.w.org/paymill/assets/icon-128x128.png?rev=3119285)
 * [PAYMILL for WordPress](https://wordpress.org/plugins/paymill/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/paymill/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/paymill/)
 * [Active Topics](https://wordpress.org/support/plugin/paymill/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/paymill/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/paymill/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [straightvisions GmbH](https://wordpress.org/support/users/matthias-reuter/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/fatal-error-woocommerceadd_error/#post-6189144)
 * Status: resolved