Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter tjohnpaul

    (@tjohnpaul)

    Hi!

    Changing the product variation names which included numbers such as (PR401TCB) resulted to errors. Now that I have changed the product variation names to only include letters such as (Black), I am not experiencing any more errors. These are the only changes I made.

    Thank you for your help. I will be marking this issue as resolved.

    Thread Starter tjohnpaul

    (@tjohnpaul)

    Hello!

    I have changed some product variation names. Before, I included numbers such as (PR401TCB) and it resulted to errors. Now that I have changed the product variation names to only include letters such as (Black), I am not experiencing any errors.

    If putting numbers in the variation name is the cause of the error, would it be possible for you to explain it for dummies? I am quite new to WordPress and WooCommerce.

    Thread Starter tjohnpaul

    (@tjohnpaul)

    Hello @ckadenge,

    Thank you for your quick response.

    I do not quite understand what arrays and strings are, but for all of my variable products, I include a variation called “Full Set” and I would like to ask if this is causing the error?

    As for simple products, there is no error. The error only appears on Variable products.

    Thread Starter tjohnpaul

    (@tjohnpaul)

    Hi!

    I have tried the conflict test and I have disabled all plugins except for WooCommerce plugin as I cannot disable it (I am using a GoDaddy WooCommerce Plan). Unfortunately, the error persists. Here is the error I received after enabling debug mode:

    Fatal error: Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, string given in /var/www/wp-content/plugins/woocommerce/includes/class-wc-product-variation.php:174 Stack trace: #0 /var/www/wp-content/plugins/woocommerce/includes/class-wc-product-variation.php(174): array_filter(‘Full Set’, ‘wc_array_filter…’) #1 /var/www/wp-content/plugins/woocommerce/templates/order/order-details-item.php(31): WC_Product_Variation->get_permalink(Object(WC_Order_Item_Product)) #2 /var/www/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include(‘/var/www/wp-con…’) #3 /var/www/wp-content/plugins/woocommerce/templates/order/order-details.php(76): wc_get_template(‘order/order-det…’, Array) #4 /var/www/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include(‘/var/www/wp-con…’) #5 /var/www/wp-content/plugins/woocommerce/includes/wc-template-functions.php(2761): wc_get_template(‘order/order-det…’, Array) #6 /var/www/wp-includes/class-wp-hook.php(324): woocommerce_order_details_table(549) #7 /var/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #8 /var/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #9 /var/www/wp-content/plugins/woocommerce/templates/checkout/thankyou.php(82): do_action(‘woocommerce_tha…’, 549) #10 /var/www/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include(‘/var/www/wp-con…’) #11 /var/www/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php(335): wc_get_template(‘checkout/thanky…’, Array) #12 /var/www/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php(65): WC_Shortcode_Checkout::order_received(549) #13 /var/www/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(72): WC_Shortcode_Checkout::output(Array) #14 /var/www/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(95): WC_Shortcodes::shortcode_wrapper(Array, Array) #15 /var/www/wp-includes/shortcodes.php(433): WC_Shortcodes::checkout(Array, ”, ‘woocommerce_che…’) #16 [internal function]: do_shortcode_tag(Array) #17 /var/www/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\\[(\\[?)(woocom…’, ‘do_shortcode_ta…’, ‘[woocommerce_ch…’) #18 /var/www/wp-includes/class-wp-hook.php(324): do_shortcode(‘[woocommerce_ch…’) #19 /var/www/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘[woocommerce_ch…’, Array) #20 /var/www/wp-includes/post-template.php(256): apply_filters(‘the_content’, ‘<!– wp:shortco…’) #21 /var/www/wp-content/themes/astra/template-parts/single/content-header.php(37): the_content() #22 /var/www/wp-includes/template.php(812): require(‘/var/www/wp-con…’) #23 /var/www/wp-includes/template.php(745): load_template(‘/var/www/wp-con…’, false, Array) #24 /var/www/wp-includes/general-template.php(206): locate_template(Array, true, false, Array) #25 /var/www/wp-content/themes/astra/inc/template-parts.php(376): get_template_part(‘template-parts/…’) #26 /var/www/wp-includes/class-wp-hook.php(324): astra_entry_content_single_page_template(”) #27 /var/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #28 /var/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #29 /var/www/wp-content/themes/astra/inc/core/theme-hooks.php(452): do_action(‘astra_entry_con…’) #30 /var/www/wp-content/themes/astra/template-parts/content-page.php(26): astra_entry_content_single_page() #31 /var/www/wp-includes/template.php(812): require(‘/var/www/wp-con…’) #32 /var/www/wp-includes/template.php(745): load_template(‘/var/www/wp-con…’, false, Array) #33 /var/www/wp-includes/general-template.php(206): locate_template(Array, true, false, Array) #34 /var/www/wp-content/themes/astra/inc/class-astra-loop.php(111): get_template_part(‘template-parts/…’, ‘page’) #35 /var/www/wp-includes/class-wp-hook.php(324): Astra_Loop->template_parts_page(”) #36 /var/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #37 /var/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #38 /var/www/wp-content/themes/astra/inc/class-astra-loop.php(199): do_action(‘astra_page_temp…’) #39 /var/www/wp-content/themes/astra/inc/class-astra-loop.php(176): Astra_Loop->loop_markup(true) #40 /var/www/wp-includes/class-wp-hook.php(324): Astra_Loop->loop_markup_page(”) #41 /var/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #42 /var/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #43 /var/www/wp-content/themes/astra/inc/core/theme-hooks.php(267): do_action(‘astra_content_p…’) #44 /var/www/wp-content/themes/astra/page.php(32): astra_content_page_loop() #45 /var/www/wp-includes/template-loader.php(106): include(‘/var/www/wp-con…’) #46 /var/www/wp-blog-header.php(19): require_once(‘/var/www/wp-inc…’) #47 /var/www/index.php(17): require(‘/var/www/wp-blo…’) #48 {main} thrown in /var/www/wp-content/plugins/woocommerce/includes/class-wc-product-variation.php on line 174

    There has been a critical error on this website.

Viewing 4 replies - 1 through 4 (of 4 total)