preg_match error
-
Hi
I get this error. If I disable the plugin, then the error is gone. Happens when editing variants on a variable product:
Error:
CRITICAL Uncaught TypeError: preg_match(): Argument #2 ($subject) must be of type string, array given
if sanitize_title or sanitize_name when your plugin calls that function I think.
Full stack log:
2023-06-08T13:09:04+00:00 CRITICAL Uncaught TypeError: preg_match(): Argument #2 ($subject) must be of type string, array given in /mnt/data/home/346723.cloudwaysapps.com/jibsnuu/public_html/wp-includes/formatting.php:1596
Stack trace: 0 /mnt/data/home/346723.cloudwaysapps.com/jibsnuu/public_html/wp-includes/formatting.php(1596): preg_match() 1 /mnt/data/home/346723.cloudwaysapps.com/jibsnuu/public_html/wp-includes/formatting.php(2208): remove_accents() 2 /mnt/data/home/346723.cloudwaysapps.com/jibsnuu/public_html/wp-content/plugins/woo-variation-swatches/includes/class-woo-variation-swatches.php(174): sanitize_title() 3 /mnt/data/home/346723.cloudwaysapps.com/jibsnuu/public_html/wp-content/plugins/woo-variation-swatches/includes/class-woo-variation-swatches-product-page.php(817): Woo_Variation_Swatches->sanitize_name() 4 /mnt/data/home/346723.cloudwaysapps.com/jibsnuu/public_html/wp-includes/class-wp-hook.php(308): Woo_Variation_Swatches_Product_Page->dropdown() 5 /mnt/data/home/346723.cloudwaysapps.com/jibsnuu/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() 6 /mnt/data/home/346723.cloudwaysapps.com/jibsnuu/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(3170): apply_filters() 7 /mnt/data/home/346723.cloudwaysapps.com/jibsnuu/public_html/wp-content/plugins/commercegurus-commercekit/includes/templates/product-attribute-swatches.php(38): wc_dropdown_variation_attribute_options() 8 /mnt/data/home/346723.cloudwaysapps.com/jibsnuu/public_html/wp-content/plugins/commercegurus-commercekit/includes/admin-attribute-swatches.php(483): require('/mnt/data/home/…') 9 /mnt/data/home/346723.cloudwaysapps.com/jibsnuu/public_html/wp-content/plugins/commercegurus-commercekit/includes/admin-attribute-swatches.php(550): commercekit_as_build_product_swatch_cache() 10 /mnt/data/home/346723.cloudwaysapps.com/jibsnuu/public_html/wp-includes/class-wp-hook.php(308): commercegurus_update_product_as_cache() 11 /mnt/data/home/346723.cloudwaysapps.com/jibsnuu/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() 12 /mnt/data/home/346723.cloudwaysapps.com/jibsnuu/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() 13 /mnt/data/home/346723.cloudwaysapps.com/jibsnuu/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(2321): do_action() 14 /mnt/data/home/346723.cloudwaysapps.com/jibsnuu/public_html/wp-includes/class-wp-hook.php(308): WC_AJAX::save_variations() 15 /mnt/data/home/346723.cloudwaysapps.com/jibsnuu/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() 16 /mnt/data/home/346723.cloudwaysapps.com/jibsnuu/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() 17 /mnt/data/home/346723.cloudwaysapps.com/jibsnuu/public_html/wp-admin/admin-ajax.php(188): do_action() 18 {main} thrown in /mnt/data/home/346723.cloudwaysapps.com/jibsnuu/public_html/wp-includes/formatting.php on line 1596
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘preg_match error’ is closed to new replies.