Warning: Trying to access array offset on value of type null in /var/www/wp-content/plugins/official-facebook-pixel/integration/FacebookWordpressWooCommerce.php on line 244
Fatal error: Uncaught Error: Call to a member function get_id() on null in /var/www/wp-content/plugins/official-facebook-pixel/integration/FacebookWordpressWooCommerce.php:346
Stack trace:
#0 /var/www/wp-content/plugins/official-facebook-pixel/integration/FacebookWordpressWooCommerce.php(244): FacebookPixelPlugin\Integration\FacebookWordpressWooCommerce::getProductId(NULL)
#1 [internal function]: FacebookPixelPlugin\Integration\FacebookWordpressWooCommerce::createAddToCartEvent('d8c9d05ec6e86d5...', 3615, 1)
#2 /var/www/wp-content/plugins/official-facebook-pixel/core/ServerEventFactory.php(203): call_user_func_array(Array, Array)
#3 /var/www/wp-content/plugins/official-facebook-pixel/integration/FacebookWordpressWooCommerce.php(193): FacebookPixelPlugin\Core\ServerEventFactory::safeCreateEvent('AddToCart', Array, Array, 'woocommerce')
#4 /var/www/wp-includes/class-wp-hook.php(326): FacebookPixelPlugin\Integration\FacebookWordpressWooCommerce::trackAddToCartEvent('d8c9d05ec6e86d5...', 3615, 1, 0)
#5 /var/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#6 /var/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#7 /var/www/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1286): do_action('woocommerce_add...', 'd8c9d05ec6e86d5...', 3615, 1, 0, Array, Array)
#8 /var/www/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(842): WC_Cart->add_to_cart(3615, 1)
#9 /var/www/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(814): WC_Form_Handler::add_to_cart_handler_simple(3615)
#10 /var/www/wp-includes/class-wp-hook.php(324): WC_Form_Handler::add_to_cart_action('')
#11 /var/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#12 /var/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#13 /var/www/wp-settings.php(665): do_action('wp_loaded')
#14 /var/www/wp-config.php(98): require_once('/var/www/wp-set...')
#15 /var/www/wp-load.php(50): require_once('/var/www/wp-con...')
#16 /var/www/wp-blog-header.php(13): require_once('/var/www/wp-loa...')
#17 /var/www/index.php(17): require('/var/www/wp-blo...')
#18 {main}
thrown in /var/www/wp-content/plugins/official-facebook-pixel/integration/FacebookWordpressWooCommerce.php on line 346
WordPress › Galat