Skip to content Skip to sidebar

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

Problem:

If you're experiencing PHP deprecated warnings in your WooCommerce Multilingual plugin, similar to the ones reported where the required parameter $wpdb follows an optional parameter $post_translations in the file class-wcml-products.php, this summary is for you.

Solution:

We have escalated this issue to our developers, and a fix will be included in a future version of the WooCommerce Multilingual & Multicurrency plugin (most probably in 5.5.1). We recommend waiting for this update, which will address the deprecated parameter order issue.

Please note that this solution might be irrelevant if it's outdated or not applicable to your case. 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 the problem persists, please open a new support ticket.

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

Last updated by Bigul 1 week, 4 days ago.

Assisted by: Bigul.

Author Posts
July 4, 2025 at 9:20 am #17200656

daliborJ

Hi Bigul,

I’ve enabled debugging as suggested and reproduced the issue.

Here is the log file content: https://pastebin.com/qvs7N8S5

[03-Jul-2025 16:07:15 UTC] PHP Deprecated:  Required parameter $wpdb follows optional parameter $post_translations in /***/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-products.php on line 33

[03-Jul-2025 16:07:16 UTC] PHP Deprecated:  Required parameter $wpdb follows optional parameter $post_translations in /***/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-products.php on line 33

Please let me know if anything else is needed.

Best regards,
Dalibor

July 4, 2025 at 7:07 pm #17202946

daliborJ

problem solved, thank you, Bigul

Dalibor

July 6, 2025 at 9:16 am #17204741

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hi Dalibor,

Welcome to the WPML support forum. I will do my best to assist you in resolving the issue.

Thank you for the updates. We have escalated the ticket to our developers, and the fix for this will be included in a future version of WooCommerce Multilingual & Multicurrency.

We will update you as soon as we have an update from them. Please wait.

--
Thanks!

Bigul