Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are encountering deprecation warnings in WooCommerce Multilingual related to dynamic properties in PHP 8.2. Specifically, the properties

$heading_downloadable

and

$subject_downloadable

in the class

WC_Email_Customer_Completed_Order

are deprecated.
Solution:
We have resolved these deprecation issues in the latest versions of WPML. We recommend updating your WPML plugins to the newest versions to address these PHP 8.2 compatibility issues.

If this solution does not apply to your case, or if it seems outdated, please check the related known issues and confirm that you have installed the latest versions of themes and plugins. If the problem persists, we highly recommend opening a new support ticket here.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 0 replies, has 1 voice.

Last updated by Ilyes 1 week, 4 days ago.

Assisted by: Ilyes.

Author Posts
June 18, 2024 at 12:25 pm #15748912

desireeM

Background of the issue:
Error from woocommerce-multilingual/inc/class-wcml-emails.php:
$email->heading_downloadable = $translate( 'heading_downloadable' );
$email->subject_downloadable = $translate( 'subject_downloadable' );

Dynamic properties are deprecated since PHP 8.2 (which means all currently actively supported versions give a warning for this hidden link).

Symptoms:
Creation of dynamic property WC_Email_Customer_Completed_Order::$heading_downloadable is deprecated.
Creation of dynamic property WC_Email_Customer_Completed_Order::$subject_downloadable is deprecated.

Questions:
Fix WCML please

February 28, 2025 at 3:48 pm #16761905

Ilyes
Supporter

Languages: French (Français )

Timezone: Pacific/Easter (GMT-05:00)

Hello,

This is an update to confirm that the 8.2.x deprecation issues are solved with our newest WPML versions,

Best,