• Resolved vkings24

    (@vkings24)


    On trying to pay through Vipps gets error of 500. Login with Vipps is working so the problem is when we need to pay through Vipps on product

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Iver Odin Kvello

    (@iverok)

    Can you check your server PHP logs to see what error is reported, as well as the WooCommerce logs found in WooCommerce/status/logs/, in particular the ones named “fatal errors” and “woo-vipps” ?

    Also, are you using the normal WooCommerce checkout or Vipps Checkout (or Express checkout)

    Thread Starter vkings24

    (@vkings24)

    Hei

    Plugin I am using are Pay with Vipps and mobile pay for woocommerce and another one is Vipps/MobilePay recurring payments for WooCommerce

    Unable to add any screenshots here of logs

    Plugin Author Iver Odin Kvello

    (@iverok)

    The “Pay with Vipps/Mobilepay” plugin supports three ways of paying: The normal WooCommerce checkout page, Express Checkout (the “Buy now”-button) and Vipps Mobilepay Checkout, which replaces the normal WooCommerce checkout page. Which one are you using when these errors occur?

    For the error message, it’s better if you post the actual text of the errors instead of screenshots.

    Thread Starter vkings24

    (@vkings24)

    I am using Vipps checkout (Buy now button) and checkout button on cart , and it gives me error 500 .

    Here are the logs of Fatal error

    Viewing log file fatal-errors-2024-08-20

    2024-08-20T09:28:48+00:00Critical Uncaught Error: Call to undefined function wcs_is_subscription() in /home/basicsby/beingbasics.com/wp-content/plugins/vipps-recurring-payments-gateway-for-woocommerce/includes/wc-gateway-vipps-recurring.php:2060 Additional context{ “error”: { “type”: 1, “file”: “/home/basicsby/beingbasics.com/wp-content/plugins/vipps-recurring-payments-gateway-for-woocommerce/includes/wc-gateway-vipps-recurring.php”, “line”: 2060 }, “backtrace”: [ “”, “#0 /home/basicsby/beingbasics.com/wp-includes/class-wp-hook.php(324): WC_Gateway_Vipps_Recurring->update_agreement_price_in_app()”, “#1 /home/basicsby/beingbasics.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()”, “#2 /home/basicsby/beingbasics.com/wp-includes/plugin.php(517): WP_Hook->do_action()”, “#3 /home/basicsby/beingbasics.com/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php(1967): do_action()”, “#4 /home/basicsby/beingbasics.com/wp-content/plugins/woo-vipps/WC_Gateway_Vipps.class.php(3393): WC_Abstract_Order->calculate_totals()”, “#5 /home/basicsby/beingbasics.com/wp-content/plugins/woo-vipps/VippsCheckout.class.php(351): WC_Gateway_Vipps->create_partial_order()”, “#6 /home/basicsby/beingbasics.com/wp-includes/class-wp-hook.php(324): VippsCheckout->vipps_ajax_checkout_start_session()”, “#7 /home/basicsby/beingbasics.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()”, “#8 /home/basicsby/beingbasics.com/wp-includes/plugin.php(517): WP_Hook->do_action()”, “#9 /home/basicsby/beingbasics.com/wp-admin/admin-ajax.php(207): do_action()”, “#10 {main}”, “thrown” ] }2024-08-20T09:30:32+00:00Critical Uncaught Error: Call to undefined function wcs_is_subscription() in /home/basicsby/beingbasics.com/wp-content/plugins/vipps-recurring-payments-gateway-for-woocommerce/includes/wc-gateway-vipps-recurring.php:2060 Additional context{ “error”: { “type”: 1, “file”: “/home/basicsby/beingbasics.com/wp-content/plugins/vipps-recurring-payments-gateway-for-woocommerce/includes/wc-gateway-vipps-recurring.php”, “line”: 2060 }, “backtrace”: [ “”, “#0 /home/basicsby/beingbasics.com/wp-includes/class-wp-hook.php(324): WC_Gateway_Vipps_Recurring->update_agreement_price_in_app()”, “#1 /home/basicsby/beingbasics.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()”, “#2 /home/basicsby/beingbasics.com/wp-includes/plugin.php(517): WP_Hook->do_action()”, “#3 /home/basicsby/beingbasics.com/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php(1967): do_action()”, “#4 /home/basicsby/beingbasics.com/wp-content/plugins/woo-vipps/WC_Gateway_Vipps.class.php(3393): WC_Abstract_Order->calculate_totals()”, “#5 /home/basicsby/beingbasics.com/wp-content/plugins/woo-vipps/VippsCheckout.class.php(351): WC_Gateway_Vipps->create_partial_order()”, “#6 /home/basicsby/beingbasics.com/wp-includes/class-wp-hook.php(324): VippsCheckout->vipps_ajax_checkout_start_session()”, “#7 /home/basicsby/beingbasics.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()”, “#8 /home/basicsby/beingbasics.com/wp-includes/plugin.php(517): WP_Hook->do_action()”, “#9 /home/basicsby/beingbasics.com/wp-admin/admin-ajax.php(207): do_action()”, “#10 {main}”, “thrown” ] }

    Plugin Author Iver Odin Kvello

    (@iverok)

    As you can see from the error message:

     Uncaught Error: Call to undefined function wcs_is_subscription() in /home/basicsby/beingbasics.com/wp-content/plugins/vipps-recurring-payments-gateway-for-woocommerce/includes/wc-gateway-vipps-recurring.php

    — the error is coming from the Vipps Recurring plugin, which has a home here: https://www.ads-software.com/plugins/vipps-recurring-payments-gateway-for-woocommerce/ . They will be able to provide more help, but on the face of it, it looks like there is an issue with the WooCommerce Subscriptions plugin, so you may want to check that this is installed, active and up to date first.

    Thread Starter vkings24

    (@vkings24)

    Is it neccessary to buy Woocommerce subscription plugin to use checkout ?

    Plugin Author Iver Odin Kvello

    (@iverok)

    No, but it is needed to use the Vipps Recurring plugin. Checkout can be used for non-subscription items with this plugin.

    Thread Starter vkings24

    (@vkings24)

    Ok I’ll check with that Plugin

    Thread Starter vkings24

    (@vkings24)

    Its already active .This plugin you meant right ?

    Vipps/MobilePay recurring payments for WooCommerce

    If I’ll deactivate this plugin then may be checkout works. I’ll let you know after this

    • This reply was modified 7 months, 1 week ago by vkings24.
    Thread Starter vkings24

    (@vkings24)

    Thank you for your support its working after deactivating that plugin

    Thread Starter vkings24

    (@vkings24)

    Also I have no product with subscription so when I am using recurring plugin then it gives error . And by deactivating this no error

    Plugin Author Iver Odin Kvello

    (@iverok)

    Yes, that’s as expected – Vipps Recurring requires WooCommerce Subscriptions.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Getting error with Vips’ is closed to new replies.