• I have the free version of YITH gift card. I installed it, updated the plugin and WordPress, and went to purchase the gift card product. However, upon clicking “purchase” I get the following error message:

    There has been a critical error on your website.
    Learn more about debugging in WordPress.

    Any ideas how to resolve this?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • I have the same issue. Need the premium functions on the plugin, but don′t want to move forward until I find a fix for this error.

    Plugin Author YITHEMES

    (@yithemes)

    Hello @sjsaavedra5

    I hope you’re doing well ??

    I make a test on your site and I purchased a new gift card on your site without any problems. See this link

    Could you confirm me your issue is solved?

    @olestraume Could you enable debug log and see the error that appear when you purchase a gift card product? I did a test on @sjsaavedra5 site and I can buy a gift card without problems.

    I’m looking forward your response.

    Have a good day.

    Hello ?? Thanks for responding.

    We are using woocommerce product add-on and i don’t think they work together. As soon as I disabled woocommerce product add on, it worked.

    THis is what we get in the log:
    2019-12-19T18:23:22+00:00 CRITICAL Uncaught Error: Cannot use object of type YWGC_Gift_Card as array in /srv/htdocs/wp-content/plugins/woocommerce-product-addons/includes/class-wc-product-addons-cart.php:142
    Stack trace:
    #0 /wordpress/core/5.3.2/wp-includes/class-wp-hook.php(290): WC_Product_Addons_Cart->add_cart_item_data(Object(YWGC_Gift_Card), 98368)
    #1 /wordpress/core/5.3.2/wp-includes/plugin.php(206): WP_Hook->apply_filters(Object(YWGC_Gift_Card), Array)
    #2 /srv/htdocs/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1027): apply_filters(‘woocommerce_add…’, Object(YWGC_Gift_Card), 98368, 0, 1)
    #3 /srv/htdocs/wp-content/plugins/yith-woocommerce-gift-cards/lib/class.yith-woocommerce-gift-cards.php(540): WC_Cart->add_to_cart(98368, 1, 0, Array, Object(YWGC_Gift_Card))
    #4 /wordpress/core/5.3.2/wp-includes/class-wp-hook.php(288): YITH_WooCommerce_Gift_Cards->add_to_cart_handler(”)
    #5 /wordpress/core/5.3.2/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(”, Array)
    #6 /wordpress/core/5.3.2/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #7 /srv/htdocs/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(748): do_action(‘woocommerce_add…’, ”)
    #8 /wordpress/core/5.3.2/wp-includes/class-wp-hook.php(288): WC_Form_Handler::add_to_cart_action(”)
    #9 /wordpress/core/5.3.2/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array)
    #10 /wordpress/core/5.3.2/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #11 /wordpress/core/5.3.2/wp-settings.php(545): do_action(‘wp_loaded’)
    #12 /srv/htdocs/wp-config.php(81): require_once(‘/wordpress/core…’)
    #13 /wordpress/core/5.3.2/wp-load.php(42): require_once(‘/srv/htdocs/wp-…’)
    #14 /wordpress/core/5.3.2/wp-blog-header.php(13): require_once(‘/wordpress/core…’)
    #15 /wordpress/core/5.3.2/index.php(17): require(‘/wordpress/core…’)
    #16 {main}
    thrown i /srv/htdocs/wp-content/plugins/woocommerce-product-addons/includes/class-wc-product-addons-cart.php p? linje 142

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Critical error on website’ is closed to new replies.