fbpx
Want To Add Extra Images Per Product Variation? Download This Free Plugin

Variation editing issue

Steven Palmer

Hi guys

We have an issue where we cannot create or delete product variations. our web team have discovered it’s an issue with the plugin.

please see some of the error scripts below

 

To resolve this, I’d recommend reaching out to the plugin developer. They’ll likely need the error details to identify and fix the issue, so I’ve included the full logs below for you to pass on to them.

 

[09-Jan-2025 20:33:35 UTC] PHP Fatal error: Uncaught TypeError: strpos(): Argument #1 ($haystack) must be of type string, array given in /home/workwear/public_html/wp-con$

Stack trace:

#0 /home/workwear/public_html/wp-content/themes/shoptimizer-child-theme/functions.php(106): strpos(Array, ‘,’)

#1 /home/workwear/public_html/wp-includes/class-wp-hook.php(324): webroom_add_multiple_products_to_cart(”)

#2 /home/workwear/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)

#3 /home/workwear/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)

#4 /home/workwear/public_html/wp-settings.php(726): do_action(‘wp_loaded’)

#5 /home/workwear/public_html/wp-config.php(105): require_once(‘/home/workwear/…’)

#6 /home/workwear/public_html/wp-load.php(50): require_once(‘/home/workwear/…’)

#7 /home/workwear/public_html/wp-admin/admin-ajax.php(22): require_once(‘/home/workwear/…’)

#8 {main}

thrown in /home/workwear/public_html/wp-content/themes/shoptimizer-child-theme/functions.php on line 106

[09-Jan-2025 20:33:36 UTC] PHP Fatal error: Uncaught TypeError: preg_match(): Argument #2 ($subject) must be of type string, array given in /home/workwear/public_html/wp-$

Stack trace:

#0 /home/workwear/public_html/wp-includes/formatting.php(1596): preg_match(‘/[\x80-\xff]/’, Array)

#1 /home/workwear/public_html/wp-includes/formatting.php(2211): remove_accents(Array)

#2 /home/workwear/public_html/wp-content/plugins/woo-variation-swatches/includes/class-woo-variation-swatches-product-page.php(835): sanitize_title(Array)

#3 /home/workwear/public_html/wp-includes/class-wp-hook.php(324): Woo_Variation_Swatches_Product_Page->dropdown(‘

 

Hakik Zaman

Hi Steven,

Thanks for reaching out to us.

From your error log, it is clear that the issue is inside your child theme- https://paste.pics/5ec34952ddaeaa189e747682fa9d0b33

Can you please temporarily activate your Parent theme?

Then check how it behaves.

Also, check if you are using the latest versions of the Variation Swatches plugins.

Please match the version with the following-

=> Free: Variation Swatches for WooCommerce – [Version: 2.1.3]

=> Pro: Variation Swatches for WooCommerce – [Version: 2.1.5]

Thank You