This thread is resolved. Here is a description of the problem and solution.
Problem:
The client was experiencing an issue where the brand page could not be found when accessing it through the specified URL. The expected brand pages and their products were not displaying, showing an error message instead.
Solution:
We identified that the issue was related to the URL structure and the translation settings within WPML. Here are the steps we took to resolve the issue:
1. We navigated to WPML->String Translation to locate and delete the existing brand strings.
2. We then re-scanned and re-translated these strings to ensure they were correctly set up.
3. We adjusted the permalink settings from Chinese to English in WP->Settings->Permalinks, which was initially not taking effect likely due to caching issues.
These steps resolved the brand page not found error, and the correct URLs began to function as expected.
If this solution does not resolve your issue, or if it seems outdated or irrelevant 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 problem persists, please do not hesitate to open a new support ticket at WPML support forum for further assistance.
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
This topic contains 0 replies, has 0 voices.
Last updated by chun-haoH 1 week, 4 days ago.
Assisted by: Bobby.
Author | Posts |
---|---|
March 5, 2025 at 1:42 pm #16779061 | |
chun-haoH |
Background of the issue: Symptoms: Questions: |
March 5, 2025 at 5:13 pm #16780066 | |
Bobby Supporter
Languages: English (English ) Timezone: America/Los_Angeles (GMT-07:00) |
Hi there, When reviewing your site it looks like the brand page might be under the 'shop' URL. Please see here: Does this showcase as expected? Are you possibly using a custom structure or a third party plugin that would change this structure? |
March 5, 2025 at 5:31 pm #16780113 | |
chun-haoH |
The URL you provided is accessible. I haven’t used a custom structure or third-party plugins to modify the URL structure. Even when I access the brand page from the backend, it still shows “Page can’t be found.” How can I fix this issue? |
March 6, 2025 at 9:53 pm #16785489 | |
Bobby Supporter
Languages: English (English ) Timezone: America/Los_Angeles (GMT-07:00) |
I would like to request temporary access (wp-admin and FTP) to your site to test the issue. **Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken ** I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/ NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin. Thank you, |
March 8, 2025 at 12:59 am #16790657 | |
Bobby Supporter
Languages: English (English ) Timezone: America/Los_Angeles (GMT-07:00) |
Thank you for the access! It looks like something is off with the translation of 'brand' , if I switch out 'brand' for the CN word for it then the URL works as well -- see here: hidden link If possible, please edit my profile and switch my language to "English", this will allow me to navigate easier in the backend One thing that I believe is contributing to this issue is that in WPML -> Settings -> 品牌 (product_brand) is set to CN as default but uses 'brand' and when I adjust it, it goes back to brand |
March 8, 2025 at 10:17 am #16790983 | |
chun-haoH |
Hello, I have changed the backend interface to English. Yes, when the interface is in Chinese, the URL contains “品牌”, which causes it to turn into gibberish when copied. Can you help me fix this issue as well? Thank you! |
March 10, 2025 at 2:31 pm #16797066 | |
chun-haoH |
Hello, Bobby Supporter hasn’t received your message for a day. May I ask about the current progress? I would appreciate your help in resolving the “Brand page can’t be found” issue. Thank you very much! |
March 10, 2025 at 5:20 pm #16797809 | |
Bobby Supporter
Languages: English (English ) Timezone: America/Los_Angeles (GMT-07:00) |
Hi there, I am currently working on this issue and will update you shortly. Please note that our support is offline during the weekend which is why you have not received an update. Thank you! |
March 10, 2025 at 5:35 pm #16797861 | |
Bobby Supporter
Languages: English (English ) Timezone: America/Los_Angeles (GMT-07:00) |
Please review the following loom video: Also, verify that my profile is set to English as I am still seeing the Chinese language as my backend. Also this is a good thread from my colleague that breaks down the character encoding behavior. |
March 11, 2025 at 6:56 am #16799511 | |
chun-haoH |
I’m very sorry. I have set your language to English. The issue seems to be a name conflict. I understand the character encoding behavior, but on the Chinese page, I am not sure where to change the non-English characters in the brand URL to English. Please help me test possible solutions. Thank you very much! |
March 11, 2025 at 6:54 pm #16803663 | |
Bobby Supporter
Languages: English (English ) Timezone: America/Los_Angeles (GMT-07:00) |
Hi there, Thank you for switching the language to English. I am able to view the URL now as expected. hidden link Also in the WPML->Settings area the slugs are showing OK now. |
March 11, 2025 at 7:21 pm #16803797 | |
chun-haoH |
The Chinese URL structure: hidden link The “brand” should be in different directories: Why is there still a duplicate name issue? Additionally, I would like to ask if it is possible to change the Chinese interface’s “品牌” to “brand” in English. This way, the URL for the Chinese page wouldn’t contain garbled text. Thank you for your help! |
March 12, 2025 at 12:08 am #16804567 | |
Bobby Supporter
Languages: English (English ) Timezone: America/Los_Angeles (GMT-07:00) |
The “brand” should be in different directories: If possible, please clarify this with me because the way I view it is working as expected, the CN version is under the correct URL. The URL for the CN version does not include /cn/ There is also this page Why is there still a duplicate name issue? Additionally, I would like to ask if it is possible to change the Chinese interface’s “品牌” to “brand” in English. This way, the URL for the Chinese page wouldn’t contain garbled text. --> Yes, I can switch that for you. |
March 12, 2025 at 5:25 am #16804853 | |
chun-haoH |
/* The URL for the CN version does not include /cn/ There is also this page However, on this page (Image 1) /* No, I am referring to the English “brand” URL slug. Since, based on the URL directory structure, the Chinese version of the brand “anna” is located under socksfetish.com/shop/brands/, and the English version is under socksfetish.com/en/shop/brands/, the URL slug should be able to use the same “anna” (I’m not sure if my understanding is correct. If it’s incorrect, please kindly correct me. Thank you!).(Image 3, 4) Since “/en/” is already present in the URL, I prefer not to have “en” appear again in the brand slug (if this can be resolved, though it’s not a critical issue). (Image 2) /* --> Yes, I can switch that for you. Please help me make this change. I really appreciate it. Additionally, I noticed that the brand page on the English site is now displaying correctly. Could you let me know how this was done? Thank you so much for your help! I graduated with a degree in Computer Science, so you can explain technical issues to me in detail—I should be able to understand the problem better. Once again, I really appreciate your help! |
March 12, 2025 at 4:20 pm #16808494 | |
Bobby Supporter
Languages: English (English ) Timezone: America/Los_Angeles (GMT-07:00) |
Thank you for breaking this down! 1. The URL for the CN version does not include /cn/ This is because CN is assigned as the default langauge of the site. The defautl language of the site uses the domain. If you wish to add the directory you will need to go to WPML->Languages->Language URL Format and select " Use directory for default language" then save (do not select anything else after that.) NOTE: This option uses the language's code (can be found in WPML->Languages->Edit languages), the code for Chinese (Traditional) is zh-hant. the URL will look like hidden link , if you wish to use /cn/ you will need to create a new custom language with 'cn' as it's language code and copy the existing content into it --- this can be complicated and I suggest if you wish to do that we explore it into a separate thread. 2. However, on this page (Image 1) We can change it to 'brand' as 'brands' seems to be used on a separate page and that way it would not conflict. 3. it possible to use “anna” as the slug for both versions? I have seen this behavior before, I believe we might have to adjust it manually. A lot of it has to do with the way the items communicate in the database. I will test and let you know my results for #2 and #3 shortly |