• Hi,

    I just tried you plugin an d got a 500 error :

    [29-Nov-2023 11:15:43 UTC] PHP Fatal error: ?Uncaught Error: Call to a member function is_empty() on null in …/wp-content/plugins/restrict-payment-methods-for-woocommerce/includes/GMWRPM_Frontend.php:186

    Stack trace:

    #0 …/wp-content/plugins/restrict-payment-methods-for-woocommerce/includes/GMWRPM_Frontend.php(100): GMWRPM_Frontend->gmwrpm_matched_cart_items(Array)

    #1 …/wp-includes/class-wp-hook.php(324): GMWRPM_Frontend->gmwrpm_ipayment_gateways(Array)

    #2 …/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)

    #3 …/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(163): apply_filters(‘woocommerce_ava…’, Array)

    #4 …/wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/Tasks/Payments.php(93): WC_Payment_Gateways->get_available_payment_gateways()

    #5 …/wp-content/plugins/woocommerce/s in …/wp-content/plugins/restrict-payment-methods-for-woocommerce/includes/GMWRPM_Frontend.php on line 186

    This error appears only in backend where I have no basket. So WC()->cart->is_empty() should not be called I believe ?

    Do you have any idea ? Would you need more infos ?

    Thanks

  • The topic ‘Error 500 on GMWRPM_Frontend.php:186’ is closed to new replies.