• I’d like to report a bug with reloaded product pages on the site.
    It doesn’t appear for normal pages, but for those that have been reloaded and not updated.

    I just wanted to let you know about the error, which appears to be a common PHP 8 incompatibility.


    ERROR:

    Uncaught Error: json_decode(): Argument #1 ($json) must be of type string, array given
    in product-variations-swatches-for-woocommerce/includes/frontend/frontend.php on line 146

    Call stack:

    1. json_decode()
      /product-variations-swatches-for-woocommerce/includes/frontend/frontend.php:146
    2. VI_WOO_PRODUCT_VARIATIONS_SWATCHES_Frontend_Frontend::variation_attribute_options_html()
      wp-includes/class-wp-hook.php:341
    3. WP_Hook::apply_filters()
      wp-includes/plugin.php:205
    4. apply_filters()
      /woocommerce/includes/wc-template-functions.php:3595
    5. wc_dropdown_variation_attribute_options()
      woocommerce/templates/single-product/add-to-cart/variable.php:41
    6. ….
Viewing 1 replies (of 1 total)
  • Plugin Author mytrinh

    (@mytrinh)

    Hi,

    Thank you for reaching out to us.
    I’ve checked and can confirm that the plugin is compatible with PHP 8.
    It looks like this might be a compatibility issue. Could you please create a support ticket in our Support Forum? We’ll jump in and check it out for you right away.

    Best regards.

    • This reply was modified 1 month, 1 week ago by mytrinh.
Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.