• bitterjay

    (@bitterjay)


    Getting the following error from YITH – any idea how to fix would be greatly appreciated ??

    Fatal error: Uncaught Error: Cannot use object of type YWGC_Gift_Card as array in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/gift-cards-for-woocommerce/includes/giftcard-product.php:79 Stack trace: #0 /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-hook.php(288): wpr_uniqueID(Object(YWGC_Gift_Card), 6110) #1 /opt/bitnami/apps/wordpress/htdocs/wp-includes/plugin.php(208): WP_Hook->apply_filters(Object(YWGC_Gift_Card), Array) #2 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1022): apply_filters(‘woocommerce_add…’, Object(YWGC_Gift_Card), 6110, 0, 1) #3 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/yith-woocommerce-gift-cards/lib/class.yith-woocommerce-gift-cards.php(540): WC_Cart->add_to_cart(6110, 1, 0, Array, Object(YWGC_Gift_Card)) #4 /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-hook.php(286): YITH_WooCommerce_Gift_Cards->add_to_cart_handler(”) #5 /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-hook.php(310): WP_Hook->apply_fi in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/gift-cards-for-woocommerce/includes/giftcard-product.php on line 79

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

Viewing 1 replies (of 1 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hello there,
    hope you are doing well! ??

    Checking the error, seem that the issue is with another gift card plugin, not the YITH Gift Card. As you can see in the error, the plugin is “gift-cards-for-woocommerce” and not “yith-woocommerce-gift-cards”.

    “wp-content/plugins/gift-cards-for-woocommerce/includes/giftcard-product.php:79″

    Seem that this plugin is using part of our code, or maybe you have both plugins enabled and this cause the error.

    Anyway, this support is for YITH Wishlist, could you make a post in the support page of the YITH Gift Card plugin, please?

    Thanks for your understanding.

    Have a nice day!

Viewing 1 replies (of 1 total)
  • The topic ‘Uncaught Error: Cannot use object of type YWGC_Gift_Card as array’ is closed to new replies.