• luc333

    (@luc333)


    I’m using yith gift cards on my woocommerce store. Customers have reported that the website goes into critical error when adding the gift card to the cart. https://pasteboard.co/CzK6sCSVMqmc.png

    I’m using woodmart theme. Memory limit is the plugin recommened 512mb.

    Pls refer here for the error log.

    2024-11-08T02:19:25+00:00 CRITICAL Uncaught TypeError: Unsupported operand types: int * string in /home/brooksru/public_html/wp-content/plugins/woocommerce-google-analytics-pro/src/Tracking/Events/GA4/Add_To_Cart_Event.php:141 CONTEXT: {"error":{"type":1,"file":"/home/brooksru/public_html/wp-content/plugins/woocommerce-google-analytics-pro/src/Tracking/Events/GA4/Add_To_Cart_Event.php","line":141},"backtrace":["","#0 /home/brooksru/public_html/wp-content/plugins/woocommerce-google-analytics-pro/src/Tracking/Events/GA4/Add_To_Cart_Event.php(107): SkyVerge\WooCommerce\Google_Analytics_Pro\Tracking\Events\GA4\Add_To_Cart_Event->track(Object(WC_Product_Gift_Card), 1)","#1 /home/brooksru/public_html/wp-includes/class-wp-hook.php(326): SkyVerge\WooCommerce\Google_Analytics_Pro\Tracking\Events\GA4\Add_To_Cart_Event->handle_add_to_cart('0fc014557fb0bc1…', 8617, 1, 0)","#2 /home/brooksru/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)","#3 /home/brooksru/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)","#4 /home/brooksru/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1287): do_action('woocommerce_add…', '0fc014557fb0bc1…', 8617, 1, 0, Array, Array)","#5 /home/brooksru/public_html/wp-content/plugins/yith-woocommerce-gift-cards-premium/includes/class-yith-ywgc-cart-checkout-premium.php(1401): WC_Cart->add_to_cart(8617, 1, 0, Array, Array)","#6 /home/brooksru/public_html/wp-includes/class-wp-hook.php(324): YITH_YWGC_Cart_Checkout_Premium->add_to_cart_handler('')","#7 /home/brooksru/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)","#8 /home/brooksru/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)","#9 /home/brooksru/public_html/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(812): do_action('woocommerce_add…', '')","#10 /home/brooksru/public_html/wp-includes/class-wp-hook.php(324): WC_Form_Handler::add_to_cart_action('')","#11 /home/brooksru/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)","#12 /home/brooksru/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)","#13 /home/brooksru/public_html/wp-settings.php(722): do_action('wp_loaded')","#14 /home/brooksru/public_html/wp-config.php(91): require_once('/home/brooksru/…')","#15 /home/brooksru/public_html/wp-load.php(50): require_once('/home/brooksru/…')","#16 /home/brooksru/public_html/wp-blog-header.php(13): require_once('/home/brooksru/…')","#17 /home/brooksru/public_html/index.php(17): require('/home/brooksru/…')","#18 {main}","thrown"]}
    2024-11-08T02:21:55+00:00 CRITICAL Uncaught TypeError: Unsupported operand types: int * string in /home/brooksru/public_html/wp-content/plugins/woocommerce-google-analytics-pro/src/Tracking/Events/GA4/Add_To_Cart_Event.php:141 CONTEXT: {"error":{"type":1,"file":"/home/brooksru/public_html/wp-content/plugins/woocommerce-google-analytics-pro/src/Tracking/Events/GA4/Add_To_Cart_Event.php","line":141},"backtrace":["","#0 /home/brooksru/public_html/wp-content/plugins/woocommerce-google-analytics-pro/src/Tracking/Events/GA4/Add_To_Cart_Event.php(107): SkyVerge\WooCommerce\Google_Analytics_Pro\Tracking\Events\GA4\Add_To_Cart_Event->track(Object(WC_Product_Gift_Card), 1)","#1 /home/brooksru/public_html/wp-includes/class-wp-hook.php(326): SkyVerge\WooCommerce\Google_Analytics_Pro\Tracking\Events\GA4\Add_To_Cart_Event->handle_add_to_cart('01738b7a40caf71…', 8617, 1, 0)","#2 /home/brooksru/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)","#3 /home/brooksru/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)","#4 /home/brooksru/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1287): do_action('woocommerce_add…', '01738b7a40caf71…', 8617, 1, 0, Array, Array)","#5 /home/brooksru/public_html/wp-content/plugins/yith-woocommerce-gift-cards-premium/includes/class-yith-ywgc-cart-checkout-premium.php(1401): WC_Cart->add_to_cart(8617, 1, 0, Array, Array)","#6 /home/brooksru/public_html/wp-includes/class-wp-hook.php(324): YITH_YWGC_Cart_Checkout_Premium->add_to_cart_handler('')","#7 /home/brooksru/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)","#8 /home/brooksru/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)","#9 /home/brooksru/public_html/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(812): do_action('woocommerce_add…', '')","#10 /home/brooksru/public_html/wp-includes/class-wp-hook.php(324): WC_Form_Handler::add_to_cart_action('')","#11 /home/brooksru/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)","#12 /home/brooksru/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)","#13 /home/brooksru/public_html/wp-settings.php(722): do_action('wp_loaded')","#14 /home/brooksru/public_html/wp-config.php(91): require_once('/home/brooksru/…')","#15 /home/brooksru/public_html/wp-load.php(50): require_once('/home/brooksru/…')","#16 /home/brooksru/public_html/wp-blog-header.php(13): require_once('/home/brooksru/…')","#17 /home/brooksru/public_html/index.php(17): require('/home/brooksru/…')","#18 {main}","thrown"]}
    2024-11-08T02:40:52+00:00 CRITICAL Allowed memory size of 536870912 bytes exhausted (tried to allocate 496192136 bytes) CONTEXT: {"error":{"type":1,"file":"/home/brooksru/public_html/wp-admin/includes/class-wp-filesystem-direct.php","line":39},"backtrace":[{"file":"/home/brooksru/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php","line":400,"function":"critical","class":"WC_Logger","type":"->"},{"function":"log_errors","class":"WooCommerce","type":"->"}]}
    2024-11-08T02:44:27+00:00 CRITICAL Allowed memory size of 536870912 bytes exhausted (tried to allocate 496208432 bytes) CONTEXT: {"error":{"type":1,"file":"/home/brooksru/public_html/wp-admin/includes/class-wp-filesystem-direct.php","line":39},"backtrace":[{"file":"/home/brooksru/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php","line":400,"function":"critical","class":"WC_Logger","type":"->"},{"function":"log_errors","class":"WooCommerce","type":"->"}]}
    2024-11-08T02:44:38+00:00 CRITICAL Allowed memory size of 536870912 bytes exhausted (tried to allocate 496208432 bytes) CONTEXT: {"error":{"type":1,"file":"/home/brooksru/public_html/wp-admin/includes/class-wp-filesystem-direct.php","line":39},"backtrace":[{"file":"/home/brooksru/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php","line":400,"function":"critical","class":"WC_Logger","type":"->"},{"function":"log_errors","class":"WooCommerce","type":"->"}]}
    2024-11-08T04:50:38+00:00 CRITICAL Uncaught TypeError: Unsupported operand types: int * string in /home/brooksru/public_html/wp-content/plugins/woocommerce-google-analytics-pro/src/Tracking/Events/GA4/Add_To_Cart_Event.php:141 CONTEXT: {"error":{"type":1,"file":"/home/brooksru/public_html/wp-content/plugins/woocommerce-google-analytics-pro/src/Tracking/Events/GA4/Add_To_Cart_Event.php","line":141},"backtrace":["","#0 /home/brooksru/public_html/wp-content/plugins/woocommerce-google-analytics-pro/src/Tracking/Events/GA4/Add_To_Cart_Event.php(107): SkyVerge\WooCommerce\Google_Analytics_Pro\Tracking\Events\GA4\Add_To_Cart_Event->track(Object(WC_Product_Gift_Card), 1)","#1 /home/brooksru/public_html/wp-includes/class-wp-hook.php(326): SkyVerge\WooCommerce\Google_Analytics_Pro\Tracking\Events\GA4\Add_To_Cart_Event->handle_add_to_cart('01738b7a40caf71…', 8617, 1, 0)","#2 /home/brooksru/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)","#3 /home/brooksru/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)","#4 /home/brooksru/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1287): do_action('woocommerce_add…', '01738b7a40caf71…', 8617, 1, 0, Array, Array)","#5 /home/brooksru/public_html/wp-content/plugins/yith-woocommerce-gift-cards-premium/includes/class-yith-ywgc-cart-checkout-premium.php(1401): WC_Cart->add_to_cart(8617, 1, 0, Array, Array)","#6 /home/brooksru/public_html/wp-includes/class-wp-hook.php(324): YITH_YWGC_Cart_Checkout_Premium->add_to_cart_handler('')","#7 /home/brooksru/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)","#8 /home/brooksru/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)","#9 /home/brooksru/public_html/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(812): do_action('woocommerce_add…', '')","#10 /home/brooksru/public_html/wp-includes/class-wp-hook.php(324): WC_Form_Handler::add_to_cart_action('')","#11 /home/brooksru/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)","#12 /home/brooksru/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)","#13 /home/brooksru/public_html/wp-settings.php(722): do_action('wp_loaded')","#14 /home/brooksru/public_html/wp-config.php(91): require_once('/home/brooksru/…')","#15 /home/brooksru/public_html/wp-load.php(50): require_once('/home/brooksru/…')","#16 /home/brooksru/public_html/wp-blog-header.php(13): require_once('/home/brooksru/…')","#17 /home/brooksru/public_html/index.php(17): require('/home/brooksru/…')","#18 {main}","thrown"]}

    Looking forward to a solution.

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

Viewing 1 replies (of 1 total)
  • Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,
    thanks for contacting us!

    Those errors that appear there do not come from our plugin, but from your woocommerce-google-analytics-pro plugin, so I recommend you contact their support to verify it.

    Anyway, I also recommend you perform the following tests to verify if the problem is solved at some point:

    • update the plugin, WC and WP to the latest version.
    • change to a default WP theme like 2024.
    • leave only WC and our plugin active, and activate your plugins in batches until you find the one that conflicts.

    Could you check it, please?

    Best regards.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.