Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /home/indecis/public_html/wp-content/themes/hello-theme-child-master/functions.php:49 Stack trace: #0 /home/indecis/public_html/wp-content/themes/hello-theme-child-master/functions.php(49): in_array() #1 /home/indecis/public_html/wp-includes/class-wp-hook.php(341): apply_percentage_discount_for_local_pickup() #2 /home/indecis/public_html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters() #3 /home/indecis/public_html/wp-includes/plugin.php(522): WP_Hook->do_action() #4 /home/indecis/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(2206): do_action() #5 /home/indecis/public_html/wp-content/plugins/woocommerce/src/StoreApi/Utilities/CartController.php(82): WC_Cart->calculate_fees() #6 /home/indecis/public_html/wp-content/plugins/woocommerce/src/StoreApi/Utilities/CartController.php(69): Automattic\WooCommerce\StoreApi\Utilities\CartController->calculate_totals() #7 /home/indecis/public_html/wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/Cart.php(60): Automattic\WooCommerce\StoreApi\Utilities\CartController->get_cart_for_response() #8 /home/indecis/public_html/wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/AbstractRoute.php(126): Automattic\WooCommerce\StoreApi\Routes\V1\Cart->get_route_response() #9 /home/indecis/public_html/wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/AbstractCartRoute.php(125): Automattic\WooCommerce\StoreApi\Routes\V1\AbstractRoute->get_response_by_request_method() #10 [internal function]: Automattic\WooCommerce\StoreApi\Routes\V1\AbstractCartRoute->get_response() #11 /home/indecis/public_html/wp-content/plugins/woocommerce/src/Blocks/Domain/Services/Hydration.php(173): call_user_func_array() #12 /home/indecis/public_html/wp-content/plugins/woocommerce/src/Blocks/Domain/Services/Hydration.php(65): Automattic\WooCommerce\Blocks\Domain\Services\Hydration->get_response_from_controller() #13 /home/indecis/public_html/wp-content/plugins/woocommerce/src/Blocks/Assets/AssetDataRegistry.php(324): Automattic\WooCommerce\Blocks\Domain\Services\Hydration->get_rest_api_response_data() #14 /home/indecis/public_html/wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Cart.php(294): Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry->hydrate_api_request() #15 /home/indecis/public_html/wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AbstractBlock.php(409): Automattic\WooCommerce\Blocks\BlockTypes\Cart->enqueue_data() #16 /home/indecis/public_html/wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Cart.php(166): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->enqueue_assets() #17 /home/indecis/public_html/wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AbstractBlock.php(96): Automattic\WooCommerce\Blocks\BlockTypes\Cart->enqueue_assets() #18 /home/indecis/public_html/wp-includes/class-wp-block.php(596): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->render_callback() #19 /home/indecis/public_html/wp-includes/blocks.php(2438): WP_Block->render() #20 /home/indecis/public_html/wp-includes/blocks.php(2521): render_block() #21 /home/indecis/public_html/wp-includes/class-wp-hook.php(341): do_blocks() #22 /home/indecis/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() #23 /home/indecis/public_html/wp-includes/post-template.php(256): apply_filters() #24 /home/indecis/public_html/wp-content/themes/hello-elementor/template-parts/single.php(24): the_content() #25 /home/indecis/public_html/wp-includes/template.php(816): require('...') #26 /home/indecis/public_html/wp-includes/template.php(749): load_template() #27 /home/indecis/public_html/wp-includes/general-template.php(206): locate_template() #28 /home/indecis/public_html/wp-content/themes/hello-elementor/index.php(20): get_template_part() #29 /home/indecis/public_html/wp-includes/template-loader.php(132): include('...') #30 /home/indecis/public_html/wp-blog-header.php(19): require_once('...') #31 /home/indecis/public_html/index.php(17): require('...') #32 {main} thrown in /home/indecis/public_html/wp-content/themes/hello-theme-child-master/functions.php on line 49
Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /home/indecis/public_html/wp-content/themes/hello-theme-child-master/functions.php:49 Stack trace: #0 /home/indecis/public_html/wp-content/themes/hello-theme-child-master/functions.php(49): in_array() #1 /home/indecis/public_html/wp-includes/class-wp-hook.php(341): apply_percentage_discount_for_local_pickup() #2 /home/indecis/public_html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters() #3 /home/indecis/public_html/wp-includes/plugin.php(522): WP_Hook->do_action() #4 /home/indecis/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(2206): do_action() #5 /home/indecis/public_html/wp-content/plugins/woocommerce/src/StoreApi/Utilities/CartController.php(82): WC_Cart->calculate_fees() #6 /home/indecis/public_html/wp-content/plugins/woocommerce/src/StoreApi/Utilities/CartController.php(69): Automattic\WooCommerce\StoreApi\Utilities\CartController->calculate_totals() #7 /home/indecis/public_html/wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/Cart.php(60): Automattic\WooCommerce\StoreApi\Utilities\CartController->get_cart_for_response() #8 /home/indecis/public_html/wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/AbstractRoute.php(126): Automattic\WooCommerce\StoreApi\Routes\V1\Cart->get_route_response() #9 /home/indecis/public_html/wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/AbstractCartRoute.php(125): Automattic\WooCommerce\StoreApi\Routes\V1\AbstractRoute->get_response_by_request_method() #10 [internal function]: Automattic\WooCommerce\StoreApi\Routes\V1\AbstractCartRoute->get_response() #11 /home/indecis/public_html/wp-content/plugins/woocommerce/src/Blocks/Domain/Services/Hydration.php(173): call_user_func_array() #12 /home/indecis/public_html/wp-content/plugins/woocommerce/src/Blocks/Domain/Services/Hydration.php(65): Automattic\WooCommerce\Blocks\Domain\Services\Hydration->get_response_from_controller() #13 /home/indecis/public_html/wp-content/plugins/woocommerce/src/Blocks/Assets/AssetDataRegistry.php(324): Automattic\WooCommerce\Blocks\Domain\Services\Hydration->get_rest_api_response_data() #14 /home/indecis/public_html/wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Cart.php(294): Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry->hydrate_api_request() #15 /home/indecis/public_html/wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AbstractBlock.php(409): Automattic\WooCommerce\Blocks\BlockTypes\Cart->enqueue_data() #16 /home/indecis/public_html/wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Cart.php(166): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->enqueue_assets() #17 /home/indecis/public_html/wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AbstractBlock.php(96): Automattic\WooCommerce\Blocks\BlockTypes\Cart->enqueue_assets() #18 /home/indecis/public_html/wp-includes/class-wp-block.php(596): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->render_callback() #19 /home/indecis/public_html/wp-includes/blocks.php(2438): WP_Block->render() #20 /home/indecis/public_html/wp-includes/blocks.php(2521): render_block() #21 /home/indecis/public_html/wp-includes/class-wp-hook.php(341): do_blocks() #22 /home/indecis/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() #23 /home/indecis/public_html/wp-includes/post-template.php(256): apply_filters() #24 /home/indecis/public_html/wp-content/themes/hello-elementor/template-parts/single.php(24): the_content() #25 /home/indecis/public_html/wp-includes/template.php(816): require('...') #26 /home/indecis/public_html/wp-includes/template.php(749): load_template() #27 /home/indecis/public_html/wp-includes/general-template.php(206): locate_template() #28 /home/indecis/public_html/wp-content/themes/hello-elementor/index.php(20): get_template_part() #29 /home/indecis/public_html/wp-includes/template-loader.php(132): include('...') #30 /home/indecis/public_html/wp-blog-header.php(19): require_once('...') #31 /home/indecis/public_html/index.php(17): require('...') #32 {main} thrown in /home/indecis/public_html/wp-content/themes/hello-theme-child-master/functions.php on line 49