Skip Navigation

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

Problem:
You are using the WooCommerce Multilang plugin with WooCommerce integration and encountered PHP deprecation warnings. These warnings are related to the creation of dynamic properties in PHP 8.2 and later, specifically in the WooCommerce Multilang plugin.
Solution:
We recommend checking the solution provided in a similar scenario discussed in a previous support ticket. Please visit the following link to read more about the issue and its resolution: https://wpml.org/forums/topic/passing-null-to-parameter/#post-16471564.

If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket at WPML support forum.

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.

This topic contains 1 reply, has 0 voices.

Last updated by Carlos Rojas 1 month ago.

Assisted by: Carlos Rojas.

Author Posts
December 3, 2024 at 9:44 am #16470620

mohammedA-111

Background of the issue:
I am trying to use the WooCommerce Multilang plugin with WooCommerce integration, but I encountered a PHP deprecation warning. The error indicates the creation of a dynamic property, which is discouraged in PHP 8.2 and later. The specific errors are:

PHP Deprecated: Creation of dynamic property WC_Email_Customer_Completed_Order::$heading_downloadable is deprecated in plugins/woocommerce-multilingual/inc/class-wcml-emails.php on line 329
PHP Deprecated: Creation of dynamic property WC_Email_Customer_Completed_Order::$subject_downloadable is deprecated in plugins/woocommerce-multilingual/inc/class-wcml-emails.php on line 330.

Environment:
WordPress Version: 6.7
PHP Version: 8.2
Plugin Version: 5.3.8
WooCommerce Version: 9.4.2

Symptoms:
I received PHP deprecation warnings related to the creation of dynamic properties in the WooCommerce Multilang plugin.

Questions:
How can I resolve the PHP deprecation warnings related to dynamic properties?
Is there an update or workaround for the WooCommerce Multilang plugin to address this issue?

December 3, 2024 at 12:19 pm #16471598

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Hello again,

Please read my message on your previous ticket: https://wpml.org/forums/topic/passing-null-to-parameter/#post-16471564 this is the same scenario and it happens every time a new PHP version deprecates a function 🙂

Have an excellent day!
Carlos