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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | - |
- | - | - | - | - | - | - |
Supporter timezone: Asia/Karachi (GMT+05:00)
Related documentation:
This topic contains 10 replies, has 0 voices.
Last updated by rayaA 12 hours, 20 minutes ago.
Assisted by: Waqas Bin Hasan.
Author | Posts |
---|---|
June 25, 2025 at 10:12 am #17168474 | |
rayaA |
Background of the issue: Symptoms: Questions: |
June 25, 2025 at 10:45 am #17168835 | |
Waqas Bin Hasan WPML Supporter since 05/2014
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Hi, Reference to our recent chat, please feel free to share your findings after trying those steps and I'll try my best to help you further on the matter. Regards. |
June 25, 2025 at 10:50 am #17168841 | |
rayaA |
I am confirming that the problem still persists with the marketplace plugins disabled. The only plugins enabled are: Error Log Monitor, WooCommerce, WooCommerce Multilingual & Multicurrency, WooCommerce Stripe Gateway, WPML Multilingual CMS and WPML String Translation. (Note I need to stripe plugin active in order to pay and finish the checkout process) |
June 25, 2025 at 10:59 am #17168850 | |
rayaA |
Steps to reproduce: Add this item to the cart: Log will show: Deprecated: Optional parameter $post_translations declared before required parameter $wpdb is implicitly treated as a required parameter in /mnt/data/home/1369476.cloudwaysapps.com/ayfwawuspa/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-products.php on line 33 (many iterations of this alert) and: WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 3 for query SELECT post_id, meta_key, meta_value FROM wp_postmeta This staging site is set up for you should you need to access it: (same site as the product link above) |
June 25, 2025 at 2:17 pm #17169866 | |
Waqas Bin Hasan WPML Supporter since 05/2014
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for the updates. I need to take a closer look at your site. So I request temporary access (WP-Admin and FTP), preferably to a test site where the problem has been replicated. Your next answer will be private, to share this information safely. IMPORTANT: Please take a complete backup of the site to avoid data loss. I may need to activate/deactivate plugins also. See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security. P.S.: If you don't see the section for providing access information, do not write in the message box or the information may appear as public. |
June 27, 2025 at 6:26 am #17175831 | |
Waqas Bin Hasan WPML Supporter since 05/2014
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for the access. I was able to reproduce the issue, even without Stripe and after updating WooCommerce to the latest (as well as with a default WP theme). So far, the issue is evident in the minimal setup, and with ILS currency only. I'm further looking into it. Please do not make any change in the staging site and leave it as it is in the current condition. It may take some time, however, I'll update you accordingly. |
June 27, 2025 at 11:20 am #17177155 | |
rayaA |
OK, I will, Thank you. |
June 27, 2025 at 1:52 pm #17177692 | |
Waqas Bin Hasan WPML Supporter since 05/2014
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for your patience and cooperation. I'm trying to reproduce the issue in a sandbox site, to confirm if that the issue can be reproduced elsewhere or is it only happening in your site. This 'll take some time and I'll be able to update you on Monday. After confirming this, I'll escalate the issue to our 2nd tier team, with my sandbox site or your staging site. P.S.: I'll be off over the weekend and 'll be able to attend on Monday. |
June 30, 2025 at 6:59 am #17181369 | |
Waqas Bin Hasan WPML Supporter since 05/2014
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for your patience and cooperation. I was able to reproduce the issue in a fresh sandbox site and 've escalated to our 2nd tier team for further investigation. Please keep the access to your staging site open, our team may need to check in there also, along with our sandbox site. I'll update you further as soon as there's more to it. |
July 3, 2025 at 5:54 am #17195282 | |
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 identified the problem and has proposed the following workaround: IMPORTANT: Please take full backup of your website and database beforehand. - In the file /wp-content/plugins/woocommerce-multilingual/inc/currencies/class-wcml-custom-prices.php, update line 109 from: if ( ! empty( $product_meta['_min_variation_price'] ) ) { - to: if ( ! empty( $product_meta['_min_variation_price'] ) && ( is_array( $product_meta['_min_variation_price'] ) && is_numeric( $product_meta['_min_variation_price'][0] ) ) ) { And it should work fine. I've tried this in your staging site and it doesn't produce that SQL error anymore. Please apply and check on your live site and let me know. |
July 4, 2025 at 7:48 pm #17203046 | |
rayaA |
Thank you, it is resolved. |
July 5, 2025 at 8:03 am #17203555 | |
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. |