Skip to content Skip to sidebar

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

Problem:
The client is encountering PHP deprecation warnings related to the creation of dynamic properties in WooCommerce when editing products. These warnings appear specifically when the WPML plugins are activated.

Solution:
If you're experiencing similar PHP deprecation warnings, we recommend the following steps:
1. Ensure you have a backup of your site.
2. Temporarily disable all plugins except for WPML and WooCommerce, and switch to a default WordPress theme to check if the issue persists.
3. If the warnings disappear after deactivating other plugins and themes, it indicates a possible conflict with other installed extensions or the theme.
4. The issue has been identified as related to PHP 8.3+ versions, and a fix will be included in upcoming releases of the WPML plugins, specifically versions beyond 5.5.2.2.

Please note that these warnings are not indicative of functional problems with your site but are meant to inform about deprecated practices. If this solution does not apply or is outdated, or if the problem persists, 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 needed, do not hesitate to open a new support ticket at WPML support forum for further assistance.

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 13 replies, has 0 voices.

Last updated by Dražen 2 weeks, 3 days ago.

Assisted by: Dražen.

Author Posts
October 17, 2025 at 5:23 am #17492716

rhettY

Background of the issue:
I am trying to address PHP deprecation warnings related to the creation of dynamic properties in WooCommerce. Please check this post: https://wordpress.org/support/topic/php-deprecated-creation-of-dynamic-property-wc_product_variable/. My server recorded a lot of such warnings.

Symptoms:
PHP deprecation warnings related to dynamic property creation in WooCommerce.

Questions:

October 17, 2025 at 6:00 am #17492785

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

thanks for contacting us.

Can you please confirm issue is related to WPML plugin? Please create a staging site and disable WPML for a moment, and check if the issue still happens.

Regards,
Drazen

October 17, 2025 at 8:22 am #17493112

rhettY

Hi,

I have a staging site, and you can test.

The warning is recorded while editting product. Not sure if it's related to WPML.

When I edited a simple product, the error notice appeared, and then I translated the new content, more same notice appeared.

October 17, 2025 at 8:28 am #17493119

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

thanks for getting back.

Great, then please can you disable WPML plugin and test by editing simple product.

As I can see from the first shared image, it does not seem to be coming from WPML plugins. Also shared WP forum implies issue is with custom code and Bricks theme.

If the issue still happens when WPML is disabled then it is not something related to WPML products and something we can from WPML support help with.

Let me know how it goes.

Regards,
Drazen

October 20, 2025 at 3:41 am #17497441

rhettY

Yes, I deactivated WPML plugins and editted the SKU in an variable product and a simple product:
variable: hidden link

simple: hidden link

No error.

I activated WPML plugins, and re-editted the SKU. Error appeared:

[20-Oct-2025 03:37:46 UTC] PHP Deprecated: Creation of dynamic property WC_Product_Variable::$ID is deprecated in /home/sensutoy/public_html/wp-includes/post.php on line 2879
[20-Oct-2025 03:37:46 UTC] PHP Deprecated: Creation of dynamic property WC_Product_Variable::$filter is deprecated in /home/sensutoy/public_html/wp-includes/post.php on line 2884
[20-Oct-2025 03:37:46 UTC] PHP Deprecated: Creation of dynamic property WC_Product_Variable::$ID is deprecated in /home/sensutoy/public_html/wp-includes/post.php on line 2879
[20-Oct-2025 03:37:46 UTC] PHP Deprecated: Creation of dynamic property WC_Product_Variable::$filter is deprecated in /home/sensutoy/public_html/wp-includes/post.php on line 2884
[20-Oct-2025 03:37:46 UTC] PHP Deprecated: Creation of dynamic property WC_Product_Variable::$ID is deprecated in /home/sensutoy/public_html/wp-includes/post.php on line 2879
[20-Oct-2025 03:37:46 UTC] PHP Deprecated: Creation of dynamic property WC_Product_Variable::$filter is deprecated in /home/sensutoy/public_html/wp-includes/post.php on line 2884
[20-Oct-2025 03:37:46 UTC] PHP Deprecated: Creation of dynamic property WC_Product_Variable::$ID is deprecated in /home/sensutoy/public_html/wp-includes/post.php on line 2879
[20-Oct-2025 03:37:46 UTC] PHP Deprecated: Creation of dynamic property WC_Product_Variable::$filter is deprecated in /home/sensutoy/public_html/wp-includes/post.php on line 2884
[20-Oct-2025 03:39:04 UTC] PHP Deprecated: Creation of dynamic property WC_Product_Simple::$ID is deprecated in /home/sensutoy/public_html/wp-includes/post.php on line 2879
[20-Oct-2025 03:39:04 UTC] PHP Deprecated: Creation of dynamic property WC_Product_Simple::$filter is deprecated in /home/sensutoy/public_html/wp-includes/post.php on line 2884
[20-Oct-2025 03:39:04 UTC] PHP Deprecated: Creation of dynamic property WC_Product_Simple::$ID is deprecated in /home/sensutoy/public_html/wp-includes/post.php on line 2879
[20-Oct-2025 03:39:04 UTC] PHP Deprecated: Creation of dynamic property WC_Product_Simple::$filter is deprecated in /home/sensutoy/public_html/wp-includes/post.php on line 2884
[20-Oct-2025 03:39:04 UTC] PHP Deprecated: Creation of dynamic property WC_Product_Simple::$ID is deprecated in /home/sensutoy/public_html/wp-includes/post.php on line 2879
[20-Oct-2025 03:39:04 UTC] PHP Deprecated: Creation of dynamic property WC_Product_Simple::$filter is deprecated in /home/sensutoy/public_html/wp-includes/post.php on line 2884
[20-Oct-2025 03:39:04 UTC] PHP Deprecated: Creation of dynamic property WC_Product_Simple::$ID is deprecated in /home/sensutoy/public_html/wp-includes/post.php on line 2879
[20-Oct-2025 03:39:04 UTC] PHP Deprecated: Creation of dynamic property WC_Product_Simple::$filter is deprecated in /home/sensutoy/public_html/wp-includes/post.php on line 2884

October 20, 2025 at 6:23 am #17497574

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

great, thanks for testing and getting back to us. This is very helpfull.

Please try next steps:

- Make sure you have a backup.
- Disable all other plugins and leave active only WPML plugins and Wocommerce
- Switch to WP default theme
- Check if the issue still happens.

Let me know how it goes.

Regards,
Drazen

October 21, 2025 at 3:16 am #17501279

rhettY

Yes tried according to your steps, the issue still happens

October 21, 2025 at 5:38 am #17501353

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

please share the access details of your staging website, so I can log in and take a look.

I’m enabling a private message for the following reply.

We have strict policies regarding privacy and access to your information.

Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/


- Please backup the site files and database before providing us access. 

- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.



Thanks,
Drazen

October 21, 2025 at 6:06 am #17501407

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

you mentioned before you have staging site.

Can you confirm shared website is staging site and it is safe to disable plugins / themes and do some debugging?

I would also need FTP access credentials.

Thanks,
Drazen

October 21, 2025 at 6:34 am #17501440

rhettY

Yes, the share site is a staging site. The live site is running campaign. We can't do test with it now.

October 21, 2025 at 7:05 am #17501510

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

great, then we will be checking further on shared staging site, as said we also need FTP access to be able to check debug.log and safely disable plugins etc.

Regards,
Drazen

October 21, 2025 at 12:35 pm #17503099

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

I’ve checked, and it appears the issue is related to PHP 8.3+ versions. We’ll be addressing this in one of the upcoming releases. Please note that it shouldn’t cause any problems with your website or WPML functionality — it’s just a warning message, not an actual error.

Let me know if that works for you. If not, we can revisit this in a few days and test again with the new version of WCML, which will fix several messages and may also resolve the one you’re seeing.

Regards,
Drazen

October 21, 2025 at 2:29 pm #17503459

rhettY

I just upgrade "WPML Multilingual & Multicurrency for WooCommerce" to 5.5.2.2. Do you mean this update?

October 22, 2025 at 5:31 am #17505008

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

no, there will be 5.5.3 soon released and later version also, like 5.5.0 etc., that will fix this issues, as they are not error message just a warning, so it does not affect your website functionality.

Regards,
Drazen