PHP8.0 Warning: Undefined variable $categories
-
Hey Guys,
We are getting a PHP warning when we are with PHP8.0
Warning: Undefined variable $categories in?/var/www/wp-content/plugins/klaviyo/includes/wck-cart-rebuild.php?on line?153
[xyz.com/checkout/]
[wp-content/plugins/klaviyo/includes/wck-cart-functions.php:105 wck_build_cart_data(), wp-content/plugins/klaviyo/includes/wck-cart-functions.php:136 wck_started_checkout_tracking(), wp-includes/class-wp-hook.php:308 load_started_checkout(), wp-includes/class-wp-hook.php:332 WP_Hook->apply_filters(), wp-includes/plugin.php:517 WP_Hook->do_action(), wp-includes/script-loader.php:2180 do_action(‘wp_enqueue_scripts’), wp-includes/class-wp-hook.php:308 wp_enqueue_scripts(), wp-includes/class-wp-hook.php:332 WP_Hook->apply_filters(), wp-includes/plugin.php:517 WP_Hook->do_action(), wp-includes/general-template.php:3043 do_action(‘wp_head’), wp-content/plugins/checkout-for-woocommerce/includes/Loaders/Redirect.php:230 wp_head(), wp-content/plugins/checkout-for-woocommerce/includes/Loaders/Redirect.php:192 Objectiv\Plugins\Checkout\Loaders\Redirect::cfw_wp_head(), wp-content/plugins/checkout-for-woocommerce/includes/Loaders/Redirect.php:56 Objectiv\Plugins\Checkout\Loaders\Redirect::head(), wp-content/plugins/checkout-for-woocommerce/includes/Loaders/Redirect.php:376 Objectiv\Plugins\Checkout\Loaders\Redirect::checkout(), wp-content/plugins/checkout-for-woocommerce/sources/php/functions.php:2132 Objectiv\Plugins\Checkout\Loaders\Redirect::template_redirect(), wp-includes/class-wp-hook.php:308 {closure}(), wp-includes/class-wp-hook.php:332 WP_Hook->apply_filters(), wp-includes/plugin.php:517 WP_Hook->do_action(), wp-includes/template-loader.php:13 do_action(‘template_redirect’), wp-blog-header.php:19 require_once(‘wp-includes/template-loader.php’), index.php:17 require(‘wp-blog-header.php’)]
- The topic ‘PHP8.0 Warning: Undefined variable $categories’ is closed to new replies.