Skip Navigation

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

Problem:
After updating WooCommerce Multilingual & Multicurrency to version 5.5.0, a deprecated error appears on each page of the website, indicating an issue with the order of parameters in the code:

Deprecated: Optional parameter $post_translations declared before required parameter $wpdb is implicitly treated as a required parameter in /wp-content/plugins/woocommerce-multilingual/inc/class-wcml-products.php on line 33

Solution:
We have released an update, WCML version 5.5.1, which addresses this issue. We recommend updating to the latest version of WCML to resolve the deprecated error. You can view the complete changelog and download the update from here.

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

Last updated by rayaA 3 days, 20 hours ago.

Assisted by: Waqas Bin Hasan.

Author Posts
July 7, 2025 at 5:52 am #17206098

rayaA

Hello, I am sorry to report that after updateding WooCommerce Multilingual & Multicurrency in my live site to the last version 5.5.0 via the Commercial tab and adding the fix that you suggested manually, now each page in the website logs the error:

Deprecated: Optional parameter $post_translations declared before required parameter $wpdb is implicitly treated as a required parameter in /mnt/data/home/1369476.cloudwaysapps.com/gkrgagekyw/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-products.php on line 33

(same one reported on June 25, 2025 at 10:59 am on this ticket)

This also occurs when I have only WooCommerce, WooCommerce Multilingual & Multicurrency, WPML Multilingual CMS, WPML String Translation plugins enabled (all the rest are disabled) and Twenty Seventeen Theme.

Kindly advise.

July 7, 2025 at 5:58 am #17206136

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Reference to your other ticket, I've split the PHP deprecated issue here.

This issue has already been reported and have been escalated to our dev team and is scheduled to roll out in the next release.

Regards.

July 8, 2025 at 9:39 am #17212804

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation.

Our team has just released WCML version 5.5.1 addressing the said issue. Please update to the latest WCML and the said deprecated error should have been fixed.

You can find the complete changelog at https://wpml.org/download/woocommerce-multilingual-multicurrency/?section=changelog.

July 8, 2025 at 2:34 pm #17214675

rayaA

Thank you!