Home›Support›English Support›[Resolved] I am managing a multilingual site in Spanish with translations to English and Japanese using WPML. I...
[Resolved] I am managing a multilingual site in Spanish with translations to English and Japanese using WPML. I...
This thread is resolved. Here is a description of the problem and solution.
Problem: When WPML String Translation is activated, the Japanese version of the Woocommerce cart leads to a 404 error page. Disabling WPML String Translation allows the cart to be visible, but some pages do not display information correctly. Solution: If you're experiencing this issue, we recommend you try the following steps: - Go to WPML -> Settings -> Post Types Translation -> Products (product) - Click on 'Set different slugs in different languages for Products' and ensure that the slug for the Japanese version matches those of other languages, such as setting it to 'tienda' to align with the Spanish and English versions. After these adjustments, the Japanese cart page should start loading correctly.
Please note that this solution might be irrelevant if it's outdated or not applicable 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 issue persists, please open a new support ticket.
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.
Background of the issue:
When WPML String Translation is activated, the Japanese version of the Woocommerce cart leads to a 404 error page. Disabling WPML String Translation allows the cart to be visible, but some pages do not display information correctly. This issue has started occurring recently as it was functioning correctly a month ago
I tried removing the wc/file/transient string and wc_api with no luck.
Symptoms:
When WPML String Translation is activated, the Japanese version of the Woocommerce cart leads to a 404 error page. Disabling WPML String Translation allows the cart to be visible, but some pages do not display information correctly. This issue has started occurring recently as it was functioning correctly la month ago
Languages: English (English )Portuguese (Brazil) (Português )
Timezone: America/Sao_Paulo (GMT-03:00)
Hello There,
Thanks for contacting WPML Support.
I understand the issue you're having. In one case, I found that the 404 error occurred due to translating some new WooCommerce endpoints. Could you please try the following steps and check if they help resolve the issue?
1. Please activate the String Translation plugin and then go to WPML > String Translation.
2. Search for wc/file/transient.
3. If that appears in the result, delete the string from the list.
4. Search again for wc-api, and if you find that string, delete it as well.
Once they are deleted, please try accessing the Japanese cart page again.
If the issue persists, you can try renaming the cart page slug. Here's what you need to do:
1. Locate the Japanese cart page and click on the "Quick Edit" link below the page name.
2. Make a small change to the page slug and save the changes.
3. Once done, go to "Settings > Permalinks" and resave the permalink structure.
Please give the steps a try and let me know how it goes. I will be happy to help if you need further assistance in this matter.
Languages: English (English )Portuguese (Brazil) (Português )
Timezone: America/Sao_Paulo (GMT-03:00)
Hello,
I would like to request temporary access (wp-admin and FTP) to your site to take better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.
Our Debugging Procedures
I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.
- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: hidden link
Please, let me know if you need any additional details. Have a nice day.
Languages: English (English )Portuguese (Brazil) (Português )
Timezone: America/Sao_Paulo (GMT-03:00)
Hello there,
I was able to fix this issue following the steps:
- Go to WPML -> Settings -> Post Types Translation -> Products (product)
- I clicked on 'Set different slugs in different languages for Products.' and noticed that only the Japanese version was different in there
- I set it to 'tienda' following the Spanish and English versions
After that, the Japanese cart page starts loading again.
The URL of the store page in Japanese didn't get affected by this change.
Can you please test it again and confirm that everything is OK now?