Payment not getting through when user is logged in because of this error

This topic has 8 replies, 3 voices, and was last updated 4 years, 7 months ago ago by Olga Barlow

  • Avatar: Ahmad_Msouti
    Ahmad Msouti
    Participant
    May 7, 2020 at 04:36

    Hello,

    On my store, when The user is signed in, the payment doesn’t go through and I get an error page.

    I debugged the issue and fount this error:

    [07-May-2020 03:22:19 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_total() on bool in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-payment-gateway.php:256
    Stack trace:
    #0 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-payment-gateway.php(274): WC_Payment_Gateway->get_order_total()
    #1 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(151): WC_Payment_Gateway->is_available()
    #2 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woocommerce/includes/wc-account-functions.php(118): WC_Payment_Gateways->get_available_payment_gateways()
    #3 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/et-core-plugin/app/models/customizer/functions.php(1022): wc_get_account_menu_items()
    #4 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/et-core-plugin/app/models/customizer/theme-options/global/callbacks.php(1393): et_b_account_link(true, false, Array)
    #5 /opt/bitnami/apps/wordpress/h in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-payment-gateway.php on line 256

    Can you advise on the above?

    Thank you

    7 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    May 7, 2020 at 10:12

    Hello,

    First of all, thank you for using our theme and for contacting us.
    Do you have this issue with our theme only or it persists with Storefront theme too?
    Please let us know, and provide temporary wp-admin access.

    Regards

    Avatar: Ahmad_Msouti
    Ahmad Msouti
    Participant
    May 7, 2020 at 14:36

    When I disable the theme and activate storefront, the issue disappear.

    As you can see in the error above, the issue is in the et-core-plugin

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    May 7, 2020 at 14:53

    Hello,

    Update WooCommerce plugin – https://prnt.sc/scm0ly
    If this doesn’t help, provide temporary wp-admin and FTP access.

    Regards

    Avatar: Ahmad_Msouti
    Ahmad Msouti
    Participant
    May 7, 2020 at 15:15

    u can find them in the private content area

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    May 7, 2020 at 15:33

    Hello,

    What about FTP access?
    What exactly should be done to see the problem? Please describe in more detail with screenshots step by step, so I can pas this problem with full information to our technicians.
    Right now I am facing – https://prnt.sc/scmprr on the checkout page.

    Regards

    Avatar: Ahmad_Msouti
    Ahmad Msouti
    Participant
    May 12, 2020 at 10:14

    Hello! we don’t have ftp access at the moment since we are using amazon lightsail, only ssh access available.

    But there is the file manager plugin installed, so you can check that if you need to edit any files.

    Here are the steps to replicate the issue:
    First, sign in using the credentials i sent you.
    then
    go to any product, for example:
    https://gulfstore.bioskinspa.com/product/absolute-time-filler/

    Add to cart
    go to checkout
    then click on place order after choosing
    youl’ll get an error
    you can access the error here too that you get here too:

    https://gulfstore.bioskinspa.com/wp-content/debug.log

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 12, 2020 at 10:57

    Hello,

    Problem is not related to our theme because we found the report about the same issue on the WooCommerce MPGS plugin support forum https://wordpress.org/support/topic/fatal-error-3440/
    You see our plugin in the Stack trace because we use that default WooCommerce function get_total(). It seems that the mentioned plugin is the reason of the error and it causes the problem not just in WooCommerce plugin files but also in our plugin files because we also use that function.
    Try to disable the mentioned plugin and proceed to checkout again.

    Regards

  • Viewing 8 results - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.