php error after upgrading to 4.0.0
-
Getting a new PHP error after updating the Gift Card Premium plugin to 4.0.0.
Trying to debug but so far no luck. Tried to roll back to previous version but YITH does not seem to make previous versions available on there site and the previous version isn’t available from the WP plugin repository page either.
Can you help me fix this please?
Here’s the log entry:
[27-May-2023 13:15:33 UTC] PHP Fatal error: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, null given in /var/www/html/wp-content/plugins/yith-woocommerce-gift-cards-premium/includes/class-yith-ywgc-frontend-premium.php:1116
Stack trace: 0 /var/www/html/wp-content/plugins/yith-woocommerce-gift-cards-premium/includes/class-yith-ywgc-frontend-premium.php(1116): array_map() 1 /var/www/html/wp-includes/class-wp-hook.php(308): YITH_YWGC_Frontend_Premium->show_design_section() 2 /var/www/html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() 3 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action() 4 /var/www/html/wp-content/plugins/yith-woocommerce-gift-cards-premium/templates/single-product/add-to-cart/gift-card.php(57): do_action() 5 /var/www/html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('…') 6 /var/www/html/wp-content/plugins/yith-woocommerce-gift-cards-premium/includes/class-yith-ywgc-frontend-premium.php(262): wc_get_template() 7 /var/www/html/wp-includes/class-wp-hook.php(308): YITH_YWGC_Frontend_Premium->show_gift_card_product_template() 8 /var/www/html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() 9 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action() 10 /var/www/html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(1697): do_action() 11 /var/www/html/wp-content/themes/flatsome/inc/shortcodes/custom-product.php(176): woocommerce_template_single_add_to_cart() 12 /var/www/html/wp-includes/shortcodes.php(355): {closure}() 13 [internal function]: do_shortcode_tag() 14 /var/www/html/wp-includes/shortcodes.php(227): preg_replace_callback() 15 /var/www/html/wp-content/themes/flatsome/inc/shortcodes/row.php(221): do_shortcode() 16 /var/www/html/wp-includes/shortcodes.php(355): ux_col() 17 [internal function]: do_shortcode_tag() 18 /var/www/html/wp-includes/shortcodes.php(227): preg_replace_callback() 19 /var/www/html/wp-content/themes/flatsome/inc/shortcodes/row.php(79): do_shortcode() 20 /var/www/html/wp-includes/shortcodes.php(355): ux_row() 21 [internal function]: do_shortcode_tag() 22 /var/www/html/wp-includes/shortcodes.php(227): preg_replace_callback() 23 /var/www/html/wp-content/themes/flatsome/inc/shortcodes/row.php(221): do_shortcode() 24 /var/www/html/wp-includes/shortcodes.php(355): ux_col() 25 [internal function]: do_shortcode_tag() 26 /var/www/html/wp-includes/shortcodes.php(227): preg_replace_callback() 27 /var/www/html/wp-content/themes/flatsome/inc/shortcodes/row.php(79): do_shortcode() 28 /var/www/html/wp-includes/shortcodes.php(355): ux_row() 29 [internal function]: do_shortcode_tag() 30 /var/www/html/wp-includes/shortcodes.php(227): preg_replace_callback() 31 /var/www/html/wp-content/themes/flatsome/inc/post-types/post-type-ux-blocks.php(158): do_shortcode() 32 /var/www/html/wp-content/themes/flatsome/inc/functions/function-global.php(292): block_shortcode() 33 /var/www/html/wp-content/themes/flatsome/woocommerce/content-single-product-custom.php(49): flatsome_apply_shortcode() 34 /var/www/html/wp-includes/template.php(785): require('…') 35 /var/www/html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template() 36 /var/www/html/wp-content/themes/flatsome/woocommerce/single-product.php(37): wc_get_template_part() 37 /var/www/html/wp-includes/template-loader.php(106): include('…') 38 /var/www/html/wp-blog-header.php(19): require_once('…') 39 /var/www/html/index.php(17): require('…') 40 {main} thrown in /var/www/html/wp-content/plugins/yith-woocommerce-gift-cards-premium/includes/class-yith-ywgc-frontend-premium.php on line 1116The 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 ‘php error after upgrading to 4.0.0’ is closed to new replies.