Fatal error when switching tot PHP8
-
Hi, we are seeing a critical error on a page that is showing a handful of products. The issue is not seen on individual product pages. Switching back to PHP7.4 resolves the issue. Hope you can help, thanks!
[11-Feb-2022 07:06:52 UTC] PHP Deprecated: Required parameter $version follows optional parameter $deps in wp-content/plugins/woocommerce-product-addon/classes/scripts.class.php on line 63 [11-Feb-2022 07:06:55 UTC] PHP Deprecated: Required parameter $version follows optional parameter $deps in wp-content/plugins/woocommerce-product-addon/classes/scripts.class.php on line 63 [11-Feb-2022 07:06:57 UTC] PHP Fatal error: Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, string given in wp-content/plugins/woocommerce-product-addon/classes/ppom.class.php:204 Stack trace: #0 wp-content/plugins/woocommerce-product-addon/classes/ppom.class.php(204): array_filter() #1 wp-content/plugins/woocommerce-product-addon/classes/ppom.class.php(27): PPOM_Meta->get_fields() #2 wp-content/plugins/woocommerce-product-addon/inc/functions.php(934): PPOM_Meta->__construct() #3 wp-content/plugins/woocommerce-product-addon/inc/woocommerce.php(625): ppom_has_field_by_type() #4 wp-includes/class-wp-hook.php(307): ppom_woocommerce_alter_price() #5 wp-includes/plugin.php(189): WP_Hook->apply_filters() #6 wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(1835): apply_filters() #7 wp-content/plugins/woocommerce/templates/loop/price.php(25): WC_Product->get_price_html() #8 wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/home/scriptie/...') #9 wp-content/plugins/woocommerce/includes/wc-template-functions.php(1377): wc_get_template() #10 wp-includes/class-wp-hook.php(307): woocommerce_template_loop_price() #11 wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #12 wp-includes/plugin.php(474): WP_Hook->do_action() #13 wp-content/plugins/woocommerce/templates/content-product.php(57): do_action() #14 wp-includes/template.php(772): require('/home/scriptie/...') #15 wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template() #16 wp-content/themes/enfold/config-templatebuilder/avia-shortcode-helpers/class-avia-product-slider.php(265): wc_get_template_part() #17 wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/product_grid/product_grid.php(446): avia_product_slider->html() #18 wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(1293): avia_sc_productgrid->shortcode_handler() #19 wp-includes/shortcodes.php(356): aviaShortcodeTemplate->shortcode_handler_prepare() #20 [internal function]: do_shortcode_tag() #21 wp-includes/shortcodes.php(228): preg_replace_callback() #22 wp-includes/class-wp-hook.php(307): do_shortcode() #23 wp-includes/plugin.php(189): WP_Hook->apply_filters() #24 wp-content/themes/enfold/template-builder.php(102): apply_filters() #25 wp-includes/template-loader.php(106): include('/home/scriptie/...') #26 wp-blog-header.php(19): require_once('/home/scriptie/...') #27 index.php(17): require('/home/scriptie/...') #28 {main} thrown in wp-content/plugins/woocommerce-product-addon/classes/ppom.class.php on line 204
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Fatal error when switching tot PHP8’ is closed to new replies.