Support » Plugin: Woocommerce Tip/Donation » fatal error after payment checkout

  • This plugins cause the fatal error after checkout. on thank you page. on php 7.0 and below. it shows Warning: Missing argument 2 for WC_Session::set(), called in /home/public_html/wp-content/plugins/woo-tipdonation/woocommerce-tip-donation.php on line 272 and defined in /home/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-session.php on line 112

    if on php 7.1, 7.2 and 7.3. It shows fatal error on thank you page.
    here is what it showing.
    Fatal error: Uncaught ArgumentCountError: Too few arguments to function WC_Session::set(), 1 passed in /home/public_html/wp-content/plugins/woo-tipdonation/woocommerce-tip-donation.php on line 272 and exactly 2 expected in /home/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-session.php:112 Stack trace: #0 /home/public_html/wp-content/plugins/woo-tipdonation/woocommerce-tip-donation.php(272): WC_Session->set(‘PHPRADAR_wtd_dt…’) #1 /home/public_html/wp-includes/class-wp-hook.php(286): PHPRADAR_wc_tipDonation->PHPRADAR_woocommerce_thankyou(4435) #2 /home/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #3 /home/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #4 /home/public_html/wp-content/themes/flatsome-child/woocommerce/checkout/thankyou.php(79): do_action(‘woo in /home/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-session.php on line 112

    Pmease fix the error. Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author phpradar


    Hello choutin

    Thank you for your suggestion and reporting me issue, I will fix be fix very soon and let you know.


    Thread Starter choutin


    also, the value is not clear after complete order. If we click $3 on checkout. it will remain $3 next time we visit again. I am not meaning the preset amount. it is without the prrset amount. Please fix this as well.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘fatal error after payment checkout’ is closed to new replies.