[Resolved] not link to translated page and show up no result error msg
This thread is resolved. Here is a description of the problem and solution.
Problem: The client's website supports eight languages, with English as the main language. All languages were translated using WPML, but only the Chinese language links were showing a 'no result' error message. The client tried removing and re-adding the Chinese language, making small changes, and using the 'Translate Link Targets' option in WPML settings, but the issue persisted. The client also noted that the same process worked fine for another post the previous day.
Solution: 1. We identified that the issue was due to the Chinese version of the product being set to redirect to another product that was unavailable. This redirection was configured by the Yoast SEO plugin. 2. We advised the client to go to Yoast SEO > Redirects and delete the redirect if it was found there. Alternatively, the client could reach out to the Yoast Support team for assistance in removing the redirect. 3. After the client's update, we confirmed that the page was loading correctly. We recommended clearing the caches from the site and browser, and also from the server level if applicable, to ensure the changes take effect.
If this solution doesn't look relevant to your issue, please feel free to open a new support ticket with us.
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.
Tell us what you are trying to do?
Our website have 8 langs, EN is the main lang., and I translated the rest 7 langs. with wpml, but only Chinese links show up no result error msg
Is there any documentation that you are following?
Yes and No, I tried removed Chinese and added it back.
I also tried make small changes and re-do it again.
I saw https://wpml.org/forums/topic/internal-link-error-on-translated-page/ and tried WPML -> Settings -> Translate Link Targets.
My version of wpml is 4.6.7
But i did the same thing for another POST yesterday and it was fine.
Is there a similar example that we can see? hidden link
You can switch to Chinese and it shows no result, but the rest 6 langs. are ok.
I understand the issue you're having and will try my best to assist you in this matter.
Please verify that the "product" slug hasn't been used elsewhere in the Chinese language version of the site. Often, using the same slug for other post/post types/taxonomy can lead to issues like the one you're experiencing.
If you can confirm that the 'product' slug hasn't been used anywhere else, please ensure that the status of that particular product is set to Published. Here are the steps to follow:
- From your Admin dashboard, Switch to Chinese language
- Locate the Chinese product
- Quickly edit the product and ensure that the "Status" of the product is set to "Published".
Please let me know if that helps to solve the issue or if you need further assistance in this matter. I will be happy to help.
Upon closer inspection, I found that the issue stems from the Chinese version of the product being set to redirect to another product, which is presently unavailable. This redirection is primarily causing the problem. Further examination of the header information revealed that this redirect has been configured by the Yoast SEO plugin. Please see the attached screenshot for more details.
Now, please go to "Yoast SEO > Redirects" and check if you can locate the redirect. If you can find it, simply delete the redirect. The issue will be solved right after that. You can also reach out to the Yoast Support team to find and delete the Redirect.
Please let me know if that helps or if you need further assistance in this matter. I will be happy to help.
I deleted the redirection in Yoast, but the problem is still there...
So I contacted Yoast, below is their reply for your reference...
I then checked the page hidden link using the tool hidden link and also confirmed that the page is responding with a 200 response code; see the screenshot attached. The 200 response code tells that the page is loading correctly without any redirections.
I checked the page again and can see that now it is loading properly. Please check this full-page screenshot(hidden link) for a better understanding.
Since you're using an optimization plugin on your site, could you please clear the caches from your site and browser and then try again? If server-level caching is also enabled, please make sure to remove caches from there as well.
Rest assured that the Chinese version of that page is working properly. Feel free to let me know if you need further assistance in this matter. I will be happy to help.