• Resolved SysBasics

    (@phppoet)


    With latest update it gives fatal error if we use WC()->cart->get_cart() function ,

    is there a workaround ?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support C S Sultan

    (@cssultan)

    Hi @phppoet , can you provide us with the Error log for this?

    Here’s how:
    1. Go to WooCommerce > Status > Logs.
    2. Here, search for the Fatal error on the right and click on View.
    3. Share this log with us.

    Once we take a look, we can try and give you a solution.

    Thanks.

    sd
    • This reply was modified 1 year, 8 months ago by sinha31.
    Plugin Support C S Sultan

    (@cssultan)

    Hi @sinha31 , I’m not sure what happened, but your last reply seems to be removed. Could you let us know your concern?

    Thanks.

    Thread Starter SysBasics

    (@phppoet)

    i am a developer of this plugin

    https://codecanyon.net/item/woocommerce-easy-checkout-field-editor/9799777

    I got a support request from mutual user. With recent woofunnels update user is getting following fatal error in our plugin where below given code is used. We use this code to get cart items and loop through it.It is kind of standard practice to get cart items programatically. try putting this code into your theme’s functions.php while woofunnels is activated. it will give fatal error. if you deactivate woofunnels and test the same code in functions.php code will work.

    some changes in your recent update is creating the issue.

    global $woocommerce;
    $cart_items = $woocommerce->cart->get_cart();
    print_r($cart_items);

    • This reply was modified 1 year, 8 months ago by SysBasics.
    Thread Starter SysBasics

    (@phppoet)

    error appears while access woofunal dashboard only

    Plugin Support C S Sultan

    (@cssultan)

    Hi @phppoet , can you confirm if the user is using WooFunnels or WPFunnels because we are two different companies?

    Meanwhile, we will look into this and try to find out if it happens with our plugin. If we find it, we will work on a fix or inform you of the solution. Thanks.

    Thread Starter SysBasics

    (@phppoet)

    nevermind find a way to prevent this within our plugin.

    https://github.com/bookingactivities/booking-activities/issues/158

    its your plugin sorry for wrong name. it is wpfunnels

    marking it as resolved. Thanks for your help

    Plugin Support C S Sultan

    (@cssultan)

    @phppoet Thanks for handling it on your end. And thanks for bringing it to our attention.

    We will also update our plugin to avoid such circumstances with other plugins in the future.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Fatal error with latest update’ is closed to new replies.