• Resolved neo2k23

    (@neo2k23)


    Latest woocommerce beta with wp 6.8 trunk on php 8.3 creates a deprecated message

    Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/docs/public/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php on line 1239

    Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/docs/public/wp-content/plugins/woocommerce/src/Internal/Admin/EmailPreview/EmailPreview.php on line 130

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Mahfuzur Rahman(woo-hc)

    (@mahfuzurwp)

    Hi @neo2k23,

    Thanks for bringing this up! The deprecated message you’re seeing is due to changes in PHP 8.3. This issue has already been addressed and will be fixed in WooCommerce version 9.7.0. You can track the progress here: https://github.com/woocommerce/woocommerce/pull/53787.

    Since you’re using beta versions of both WooCommerce and WordPress, encountering issues like this is expected. Betas are intended for testing and not recommended for production environments, as noted here: https://woocommerce.com/products/woocommerce-beta-tester/.

    The deprecation warning itself is harmless and won’t impact functionality. Feel free to continue testing, and let us know if you have any other questions!

    Thread Starter neo2k23

    (@neo2k23)

    @mahfuzurwp actually those deprecated messages are php 8.2 related.

    https://php.watch/versions/8.2/$%7Bvar%7D-string-interpolation-deprecated


    Thanks for the link. I had already found that one also. Have a great day

    Plugin Support Jonayed (woo-hc)

    (@jonayedhosen)

    Hi @neo2k23,

    Thank you for clarifying that the deprecated messages you’re seeing are related to PHP 8.2. You’re absolutely right—PHP 8.2 introduced changes that deprecated certain string interpolation methods, as outlined in the documentation you shared (PHP 8.2 Deprecation).

    To address this, we’ve already taken steps to resolve the issue. The fix has been implemented and will be included in WooCommerce version 9.7.0. You can follow the progress here: #53787.

    We appreciate you bringing this up and helping us improve WooCommerce compatibility with PHP 8.2 and beyond.

    If you have any other questions or run into anything else, don’t hesitate to let us know.

    Have a great day!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.