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: Exception, Not WPML issue
This topic contains 16 replies, has 2 voices.
Last updated by Waqas Bin Hasan 1 year, 3 months ago.
Assisted by: Waqas Bin Hasan.
Author | Posts |
---|---|
August 31, 2023 at 3:13 pm #14322145 | |
hansN-10 |
Hello, In my WooCommerce store I use WPML to translate from Swedish to English. I also use LiteSpeed cache plugin. The cache plugin will purge the cache of any product page, when the stock changes. This means that when a visitor makes a purchase, the cache for that product page will be cleared. If the customer was making the purchase from the Swedish version of the product page, only the Swedish page will get it´s cache cleared. The English version of the same product page will not get it´s cache cleared. Below is an example of the URL structure of my product pages. The 2 URL:s below are for the same product, but one page is in Swedish and the other in English. Swedish: hidden link So my theory is that LiteSpeed cache does not understand that these 2 URL:s are for the same product. Is it possible to make the “connection” between these versions of the page more clear, so that LiteSpeed understands that it is really the same product page? Thank you! |
September 1, 2023 at 10:09 am #14325955 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Hi, Thank you for contacting the support. I discussed with the team and they are interested in looking into this for a possibility. However, I'll request you to use this sandbox site hidden link and setup an example by using minimal setup possible. I've added WPML, WooCommerce and LiteSpeed latest versions. Please feel free to activate, configure, setup and create an example with a couple sample products and their translations. This way we'll also be able to see if this helps due the version differences between sandbox and your site and 'll be able to escalate to the team. Please take your time and let me know when you're ready. Regards. |
September 1, 2023 at 11:23 am #14326205 | |
hansN-10 |
Hello and thank you for your response! I will try your suggestion, but first I just want to check a different thing.. When I check the WooCommerce backend, it seems like the same product gets 2 different ID:s depending on which language is chosen. The product I purchased for testing purposes has ID844 on the Swedish version of the product page, but it has ID858 on the English version of the product page. Is this normal, that the same product gets different ID:s on different languages, when translating with WPML? I am thinking that LiteSpeed might be only purgin the cache for a certain product ID.. Thanks! |
September 1, 2023 at 12:44 pm #14326595 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Sure, please take your time and reply when you're ready. Yes each post has a different ID and same is the case with translations. Although translations are linked with their main post (in default language) but still they get their own ID. |
September 4, 2023 at 1:16 pm #14337085 | |
hansN-10 |
I have started to set up the test site. There seems to be a problem with the plugin WooCommerce Payments. Something is not right in LiteSpeed setup, so I tried to disable all plugins, but when trying to disable Woocommerce Payments, the site craches. See screenshot. Can you delete that plugin from your side? Thanks! |
September 5, 2023 at 8:00 am #14340767 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for the updates. I've deactivated the plugin. In fact, there's no FTP access for these sandbox sites, but you can use File Manager plugin (currently active) to browse to the /wp-content/plugins/ folder and rename the plugin folder to something else - it is then deactivated. I've done the same and you should be able to access it. |
September 6, 2023 at 8:09 am #14349171 | |
hansN-10 |
Thank you very much for helping with the plugin. Is the sandbox site hosted on a LiteSpeed server? I believe LiteSpeed Cache plugin will only work on LiteSpeed servers, see screenshot. Also, on the screenshot, there should be a 9th tab called "WooCommerce", which is where the WooCommerce settings for purging product cache are set up. Maybe this tab is not showing up if the sandbox site is not running on LiteSpeed servers? |
September 6, 2023 at 9:31 am #14350109 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Ah, my apologies I didn't know this fact. Sandbox sites aren't using LiteSpeed web server. Would it be possible for you to just try and see if the said issue happens there, even if this doesn't offer that tab and the needed server? I mean if this is still reproducible, I can then escalate to the team along with noting about a test on LiteSpeed server also. Otherwise, I'll request you to create a test/staging site on your server and setup an example to reproduce the issue. Then provide some steps and allow us to download the site using duplicator plugin. This way, of course, I'll escalate and emphasis on the LiteSpeed server. Our teams may have arrangements to test on local environments. Please let me know. P.S.: In the later case, do not share any access or package information directly in a public message. But let me know to enable private reply. |
September 6, 2023 at 10:06 am #14350625 | |
hansN-10 |
Hello, I believe Litespeed servers are required, because none of LiteSpeed cache plugins features will work on other server types. Are you suggesting that I set up a test site on my own hosting account? How can I do this? Thanks! |
September 6, 2023 at 11:04 am #14351365 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Usually it depends on if your hosting service provides a simple solution, within your control panel like one mentioned at hidden link. Otherwise, you can simply follow these steps: - Create a new directory or preferably a subdomain like staging.your-site-domain.com. The purpose is to have LiteSpeed environment so your existing hosting already have this. Then after having a staging site, create some examples to reproduce the issue. Please note that although you can provide us with a package of your production site, but those are usually huge and may contain sensitive data, that's why a staging/dev site is highly encouraged (https://wpml.org/faq/provide-supporters-copy-site/). I've set your next reply as private to share access to staging site once it is ready. |
September 13, 2023 at 8:21 am #14387839 | |
hansN-10 |
I got a message that this topic will be closed, but I am still working on it with the LiteSpeed support. Please keep the topic open for a while longer. Thank you. |
September 13, 2023 at 10:52 am #14389373 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Sure, not a problem and take your time. You can always post a reply when you receive such a notice, to keep it open. Let me know when you are ready. |
September 15, 2023 at 8:07 am #14401183 | |
hansN-10 |
Thank you, now I am ready to proceed, so can you please set my next reply to private, so I can share some login info? Thank you! |
September 15, 2023 at 11:15 am #14402835 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Sure, I've set your next reply as private. |
September 15, 2023 at 12:29 pm #14403163 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for the access and the details. I'll check this and 'll escalate accordingly. I'll get back to you earliest by Monday. |