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.
Tagged: Compatibility
This topic contains 113 replies, has 3 voices.
Last updated by Sumit 1 year, 4 months ago.
Assisted by: Sumit.
Author | Posts |
---|---|
March 10, 2023 at 9:57 pm #13220995 | |
louisN-4 |
we are using woocommerce api to update pricing, and our site started to be slower when we do this, also our hosting said the problem is: " what shall we do to create an indexing for this? OR we have wpml version 4.5.14 , and then i read this subject: but i think 4.5.14 is newer than 4.5.5 you suggested there - so maybe my issue is different /usr/sbin/mysqld, Version: 8.0.32 (MySQL Community Server - GPL). started with: |
March 10, 2023 at 10:35 pm #13221103 | |
louisN-4 |
my hosting company told me to share the full paste hidden link |
March 13, 2023 at 2:01 pm #13233645 | |
Itamar Supporter
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+02:00) |
Hi, I'm consulting our second-tier supporters regarding this issue. I'll get back to you here once I have their reply. Regards, |
March 14, 2023 at 8:24 am #13239711 | |
Itamar Supporter
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+02:00) |
Hi, Our second-tier supporter says that to test this, we need to check the API request. He added that he could see that the query had a huge amount of IDs. But he is not sure how it is triggered. Can you please provide us with the API request URL with this data? In case we need access to the site to see this, I'm enabling a private message for the following reply. Privacy and Security Policy |
March 14, 2023 at 11:11 am #13241553 | |
Itamar Supporter
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+02:00) |
Thanks for adding those details and sending me the access information. I've passed this information on to our second-tier supporter and await his reply. In addition, I've noticed that WooCommerce and our plugins, among many other plugins, are not updated on your site. We have recently released WPML 4.6.0 and Strings Translation 3.2.4. We also have new versions for Advanced Custom Fields Multilingual, Contact Form 7 Multilingual, Media translation, and WooCommerce Multilingual & Multicurrency. Can you please update our plugins to their latest versions and see if the problem persists? In this specific case, it is important also to update WooCommerce to check if the issue persists in the latest versions.
|
March 14, 2023 at 11:17 am #13241605 | |
louisN-4 |
wpml is updated, woocommerce is not possible to update due to dependencies will wait for your further response |
March 14, 2023 at 12:18 pm #13242303 | |
Itamar Supporter
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+02:00) |
Hi, Our second-tier supporter is referring to the following you wrote:
He writes:
Regards, |
March 14, 2023 at 3:03 pm #13244359 | |
louisN-4 |
We use WooCommerce.NET, which is a popular .Net wrapper for the Woocommerce API. As per the official Woocommerce documentation, the endpoint used to update the prices is this one: hidden link For example: hidden link id> Using the wrapper, we just post the product ID and the new regular + sale price (in fact for all the other API calls I mention below we also send the absolute minimum parameters necessary, which is usually just the ID and the new value). I'm not sure if its relevant, but for the sake of providing as much info as possible I'll elaborate on the rest of the updating process: If it's a variable product, we have to get the ID for each variation and update each one separately: hidden link We also have to repeat it for 3 different languages, as we've found the new changes are not applied automatically to other languages. The product and variation IDs are different for each language, so we have to get that too: hidden link Due to these complexities, the products are updated one by one at the moment, not in a batch. We also update stock, which is a whole other process but similar to the above. I'm not sure if it's relevant but we also make regular API calls to simply retrieve product details, 100 at a time: hidden link |
March 14, 2023 at 3:14 pm #13244475 | |
Itamar Supporter
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+02:00) |
Hi, and thanks for your detailed answer. I'm passing on this information to our second-tier supporter. Meanwhile, please check our guide about Using WordPress REST API with WooCommerce Multilingual and check that you are doing everything correctly. I'll keep you updated here when I have news from our second-tier supporter. Thank you for your patience. |
March 14, 2023 at 3:58 pm #13244995 | |
louisN-4 |
Will do... if you're looking for a code example, here is one: Dim rest As New WooCommerceNET.RestAPI("<em><u>hidden link</u></em>", strConsumerKey, strConsumerSecret) Dim wc As New WCObject(rest) Await wc.Product.Update(strProductID, New Product With { .regular_price = strNewRegularPrice, .sale_price = strNewSalePrice }).ConfigureAwait(False) |
March 15, 2023 at 10:31 am #13250009 | |
Itamar Supporter
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+02:00) |
Hi, Here is the reply from our second-tier supporter.
We would like to ask for access details to your staging site and the steps to replicate this problem, as the second-tier supporter explained above. I'm enabling a private message for the following reply. Privacy and Security Policy |
March 15, 2023 at 11:23 am #13250559 | |
Itamar Supporter
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+02:00) |
Hi, and thanks for the access details to the staging site. I've escalated this issue to our second-tier supporters and will update you once I have news from them. Thank you for your patience. |
March 17, 2023 at 10:25 am #13268129 | |
louisN-4 |
hi itamar any update? |
March 21, 2023 at 4:59 pm #13296667 | |
Itamar Supporter
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+02:00) |
Hi, I have an update from our second-tier supporter. He tested a similar scenario on a test site and started testing things on your staging site. But once he deactivated WPML, he got a fatal error. He is what our second-tier supporter wrote:
Please share with us FTP access t your saying site. For this, I'm enabling a private message to the following reply. Regards, |
March 21, 2023 at 5:42 pm #13296881 | |
louisN-4 |
its not 1 plugin which is causing the issue, its wpml sql query that is causing the slowdown, its not even an error, since the site doesn't have error when the WOOCOMMERCE API QUERIES are done, its WPML Tables which are causing the slowdown, as we explained when we first opened the ticket, based on the intense tests our hosting has done |