• Resolved momo-fr

    (@momo-fr)


    Hi, there are always issues with variations.

    We get an error message every time (the site remains functional):

    /var/www/vhosts/my.domain/httpdocs/wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-variations.php. Message d’erreur : Uncaught ValueError: Unknown format specifier "a" in /var/www/vhosts/my.domain/httpdocs/wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-variations.php:127
    Stack trace: 0 /var/www/vhosts/my.domain/httpdocs/wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-variations.php(127): sprintf() 1 /var/www/vhosts/my.domain/httpdocs/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php(188): include('…') 2 /var/www/vhosts/my.domain/httpdocs/wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-panel.php(53): WC_Meta_Box_Product_Data::output_variations() 3 /var/www/vhosts/my.domain/httpdocs/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php(39): include('…') 4 /var/www/vhosts/my.domain/httpdocs/wp-admin/includes/template.php(1453): WC_Meta_Box_Product_Data::output() 5 /var/www/vhosts/my.domain/httpdocs/wp-admin/edit-form-advanced.php(721): do_meta_boxes() 6 /var/www/vhosts/my.domain/httpdocs/wp-admin/post.php(206): require('…') 7 {main}

    We use a PRO plugin: woo-variation-swatches-pro.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    Thank you for sharing the details, and I understand how frustrating it can be to keep seeing errors related to variations, even when the site otherwise remains functional.

    This error means that WooCommerce is trying to render the Variations panel in the admin, but it receives an invalid string passed to sprintf() (an unsupported format specifier like %a). This typically happens when a third-party plugin, custom code, or translation modifies variation-related strings in a way WooCommerce doesn’t expect.

    Since you mentioned you’re using Woo Variation Swatches Pro, and the error originates while WooCommerce is outputting the variations meta box, this plugin is a strong candidate for triggering the issue.

    To help us investigate further, could you please confirm:

    • Exactly when does this error occur?
      For example, does it appear when opening a variable product, switching to the Variations tab, saving the product, or adding/editing a variation? Any specific steps to reproduce would be very helpful.
    • Does the error disappear if you temporarily disable Woo Variation Swatches Pro?
      This will help confirm whether the issue is coming from that plugin or from elsewhere on the site.

    Once we have this information, we can better narrow down the cause and advise on the next steps.

    Plugin Support Ejay F – a11n

    (@ejayfernandes)

    It seems we haven’t heard back from you for a while, so I’ll go ahead and mark this thread as resolved. Feel free to reach out whenever you’re ready to continue.

    We’d really appreciate if you could take a moment to leave us a review: https://wordpress.org/support/plugin/woocommerce/reviews/

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

You must be logged in to reply to this topic.