• 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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author straightvisions GmbH

    (@matthias-reuter)

    This issue should be fixed with v1.10.0 release now 🙂

    Thread Starter Jens Kuerschner

    (@jekuer)

    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

    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

    (@matthias-reuter)

    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.