Home Forums WoodMart support forum Use image of each variation for a swatch – not working Reply To: Use image of each variation for a swatch – not working

#507246

didacusk
Participant

Sorry, there is still issue.

I found way to import the product using the global attributes. After I tried to enable “Grid swatch attribute to display” the product page is broken. Images attached.

The name of attribute is in Bulgarian (cyrillic) – can this be an issue?

Edit: Page acctually saying: fatal error. Here is the error log from the webserver.

2023-10-25 22:26:07.154698 [NOTICE] [30549] [213.91.250.69:62046-Q:7C80EB68DD6789E1-52#promosector.bg] [STDERR] PHP Fatal error:  Uncaught TypeError: array_merge(): Argument #2 must be of type array, null given in /home/promosector.bg/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/modules/swatches.php:169
Stack trace:
#0 /home/promosector.bg/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/modules/swatches.php(169): array_merge()
#1 /home/promosector.bg/public_html/wp-content/themes/woodmart/woocommerce/single-product/add-to-cart/variable.php(144): woodmart_has_swatches()
#2 /home/promosector.bg/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('...')
#3 /home/promosector.bg/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(1756): wc_get_template()
#4 /home/promosector.bg/public_html/wp-includes/class-wp-hook.php(310): woocommerce_variable_add_to_cart()
#5 /home/promosector.bg/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#6 /home/promosector.bg/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#7 /home/promosector.bg/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(1702): do_action()
#8 /home/promosector.bg/public_html/wp-includes/class-wp-hook.php(310): woocommerce_template_single_add_to_cart()
#9 /home/promosector.bg/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#10 /home/promosector.bg/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#11 /home/promosector.bg/public_html/wp-content/themes/woodmart/woocommerce/content-single-product.php(189): do_action()
#12 /home/promosector.bg/public_html/wp-includes/template.php(787): require('...')
#13 /home/promosector.bg/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template()
#14 /home/promosector.bg/public_html/wp-content/themes/woodmart/woocommerce/single-product.php(28): wc_get_template_part()
#15 /home/promosector.bg/public_html/wp-includes/template-loader.php(106): include('...')
#16 /home/promosector.bg/public_html/wp-blog-head
2023-10-25 22:26:07.154866 [NOTICE] [30549] [213.91.250.69:62046-Q:7C80EB68DD6789E1-52#promosector.bg] [STDERR] er.php(19): require_once('...')
#17 /home/promosector.bg/public_html/index.php(17): require('...')
#18 {main}
  thrown in /home/promosector.bg/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/modules/swatches.php on line 169
  • This reply was modified 1 year, 9 months ago by didacusk.
Attachments:
You must be logged in to view attached files.