• Resolved Paula Finch

    (@paula-finch)


    When both of these plugins are enabled at the same time, it creates a fatal error when trying to login or out of a customer account.

    Error log says:

    2024-07-21T12:45:41+00:00 Critical Uncaught Error: Call to a member function is_available() on null in /chroot/home/ade85b9a/68aa9f21fa.nxcli.io/html/wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/includes/class-wc-gateway-braintree-blocks-support.php:51

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello Paula Finch,

    Thank you for contacting Woo support.

    Could you share the URL of the WooCommerce Wholesale Prices Premium plugin?
    I want to check the details of this plugin.

    The line where the error is reported is checking whether a payment method is active.
    In this case, $this->name is set to null which is causing the error.

    public function is_active() {
    $payment_gateways = WC()->payment_gateways->payment_gateways();
    return $payment_gateways[ $this->name ]->is_available();
    }

    Could you share a screenshot of your Braintree payment method settings?
    This might provide insights into the issue.

    Lastly, I suggest you also contact the WooCommerce Wholesale Prices Premium plugin support and ask for their opinion. You may share this forum link with them for better understanding.

    Looking forward to your response. ??

    Best regards.

    Thread Starter Paula Finch

    (@paula-finch)

    Hi Zubair, 

    The url for the WooCommerce Wholesale plugin is here:  https://wholesalesuiteplugin.com

    I have reached out to them for support and will give them access to a staging site for testing. 

    Here is a screenshot of out Braintree settings:

    See images below:

    I will also share the link to this post with them.

    Thank you!

    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello Paula Finch

    Thank you for sharing more details.

    I checked the settings and everything is configured correctly.

    Could you turn on the Debug Mode option?
    This will log entries of issues under WooCommerce > System Status > Logs.
    Let me know if find any new entries in the logs after you turn on the Debug Mode.

    At this point, it would be better to wait for the response from the WooCommerce Wholesale plugin.
    Their insights might help us in diagnosing the issue.

    Have a great day!

    Thread Starter Paula Finch

    (@paula-finch)

    Hi Zubair,

    I turned on the Debug Mode. I’ll let you know if any other errors occur.

    Also, Wholesale Suite created a patch and a new update for this issue. I can log into the site without the fatal error now. Thank you for your help.

    Hey, @paula-finch!

    Also, Wholesale Suite created a patch and a new update for this issue. I can log into the site without the fatal error now. Thank you for your help.

    That’s great to hear! ?? So is the issue solved or do you need further help with it?

    Looking forward to your reply.

    Have a wonderful day!

    Thread Starter Paula Finch

    (@paula-finch)

    Yes, this issue is solved. Thank you.

    Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hi @paula-finch,

    Glad to hear it – thanks for letting us know!

    I’ll mark this thread as resolved now. If you have any further questions, I recommend creating a new thread.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.