• Resolved mrretail

    (@mrretail)


    Hi,
    Every now and then I get a message from WordPress that says it has detected a fatal error and thus includes a link to go into recovery mode, so I can assess the issue. The site itself always seems to be fine but the error is always something to do with woo gift cards. The latest error is shown below. I’m concerned that this might be happening when someone tries to buy a gift voucher and thus I am missing out on sales. Please tell me what I need to do to stop this from happening?

    Thank you.

    Error Details
    =============
    An error of type E_ERROR was caused in line 265 of the file /home4/pngmitmy/public_html/goldcoastrelaxationmassageau/wp-content/plugins/woo-giftcards/inc/woo-giftcards-class.php. Error message: Uncaught Error: Call to a member function get_cart() on null in /home4/pngmitmy/public_html/goldcoastrelaxationmassageau/wp-content/plugins/woo-giftcards/inc/woo-giftcards-class.php:265
    Stack trace:
    #0 /home4/pngmitmy/public_html/goldcoastrelaxationmassageau/wp-includes/class-wp-hook.php(292): Woo_GiftCards->woo_giftcard_no_shipping(false)
    #1 /home4/pngmitmy/public_html/goldcoastrelaxationmassageau/wp-includes/plugin.php(212): WP_Hook->apply_filters(false, Array)
    #2 /home4/pngmitmy/public_html/goldcoastrelaxationmassageau/wp-content/plugins/woocommerce/includes/gateways/cod/class-wc-gateway-cod.php(146): apply_filters('woocommerce_car...', false)
    #3 /home4/pngmitmy/public_html/goldcoastrelaxationmassageau/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(151): WC_Gateway_COD->is_available()
    #4 /home4/pngmitmy/public_html/goldcoastrelaxationmassageau/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Notes/OnboardingPayments.php(38): WC_Payment_Gateways->get_available_payment_gat
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author ahmadshyk

    (@ahmadshyk)

    We have fixed this in the latest update.

    Thread Starter mrretail

    (@mrretail)

    Sorry to tell you this but the error remains, only now it mentions line 264 instead of 265, see below:

    Error Details
    =============
    An error of type E_ERROR was caused in line 264 of the file /home4/pngmitmy/public_html/goldcoastrelaxationmassageau/wp-content/plugins/woo-giftcards/inc/woo-giftcards-class.php. Error message: Uncaught Error: Call to a member function get_cart() on null in /home4/pngmitmy/public_html/goldcoastrelaxationmassageau/wp-content/plugins/woo-giftcards/inc/woo-giftcards-class.php:264
    Stack trace:
    #0 /home4/pngmitmy/public_html/goldcoastrelaxationmassageau/wp-includes/class-wp-hook.php(303): Woo_GiftCards->woo_giftcard_no_shipping(false)
    #1 /home4/pngmitmy/public_html/goldcoastrelaxationmassageau/wp-includes/plugin.php(189): WP_Hook->apply_filters(false, Array)
    #2 /home4/pngmitmy/public_html/goldcoastrelaxationmassageau/wp-content/plugins/woocommerce/includes/gateways/cod/class-wc-gateway-cod.php(146): apply_filters(‘woocommerce_car…’, false)
    #3 /home4/pngmitmy/public_html/goldcoastrelaxationmassageau/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(154): WC_Gateway_COD->is_available()
    #4 /home4/pngmitmy/public_html/goldcoastrelaxationmassageau/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Notes/OnboardingPayments.php(38): WC_Payment_Gateways->get_available_payment_gat

    Plugin Author ahmadshyk

    (@ahmadshyk)

    Thank you for reporting once again. I’ve just released new version 1.5.3 and I believe it should be fixed now.

    Plugin Author ahmadshyk

    (@ahmadshyk)

    Didn’t hear for a while, so I believe the issue has been fixed in the latest update. I’m closing this thread, you can contact again anytime if the issue persists. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Occasional error message’ is closed to new replies.