Support » Plugin: Pay for Payment for WooCommerce » PHP Fatal error: on admin/class-pay4pay-admin.php on line 209

Viewing 12 replies - 1 through 12 (of 12 total)
  • Sem problem here.

    Also doesn’t disable payment when free shipping is availible. Despite it is set that it should.

    Please correct mistake. Thank you very much in advance.


    Same problem here.
    Any solution yet?

    Thanks and regards


    it’s the same for me!

    Thanks and regards

    i have the same problems:

    Fatal error: Class ‘paypal’ not found in /home/emporio3/public_html/wp-content/plugins/woocommerce-pay-for-payment/admin/class-pay4pay-admin.php on line 209

    Any solution?


    I have the same problem. The plugin it’s working and I only have the information error when I save the setting.

    Thread Starter bluantinoo



    As suggested from AlexandrosZ on github, changing lines 209 and 210 of ./public_html/wp-content/plugins/woocommerce-pay-for-payment/admin/class-pay4pay-admin.php


    $class = new $current_section();
    $prefix = 'woocommerce_'.$class->id;


    //$class = new $current_section();
    $prefix = 'woocommerce_'.$current_section;

    removes the error and let us saving stuff on payment methods options.

    BUT the option “Don’t charge this fee when free shipping is available.” is still not working

    Plugin Author Karolina Vyskocilova


    Fixed in the new version, please update to 2.0.0



    This bug is back in 2.0.2

    PHP Fatal error: Unsupported operand types in
    plugins/woocommerce-pay-for-payment/admin/class-pay4pay-admin.php on line 264

    Marcel Oerlemans


    I think I resolved the issue, for me at least.
    On line 259 stood:
    $options += $extra;
    This has to be:
    $options = $extra;

    Plugin Author Karolina Vyskocilova


    @highor and @marceloerlemans this is not the same bug and answer you’d provided is not correct one (see the thread you opened: )

    Marcel Oerlemans


    You’re right Karolina, you explained to me why my ‘solution’ wasn’t correct, but I can’t edit that anymore.. Thanks for the help!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘PHP Fatal error: on admin/class-pay4pay-admin.php on line 209’ is closed to new replies.