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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 14:00 | 9:00 – 14:00 | 9:00 – 14:00 | 9:00 – 14:00 | 9:00 – 14:00 | - |
- | 15:00 – 18:00 | 15:00 – 18:00 | 15:00 – 18:00 | 15:00 – 18:00 | 15:00 – 18:00 | - |
Supporter timezone: Asia/Dhaka (GMT+06:00)
Tagged: Bug
This topic contains 6 replies, has 2 voices.
Last updated by gierand 2 days, 10 hours ago.
Assisted by: Prosenjit Barman.
Author | Posts |
---|---|
November 14, 2024 at 2:00 pm #16402732 | |
ihsanK-3 |
Background of the issue: Symptoms: Questions: |
November 15, 2024 at 7:37 am #16405857 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hello There, I understand the issue you're facing. The screenshot you've shared shows the post ID, So I tried to access the post but encountered an error because the Chinese language code was missing from the URL. However, when I manually added the language code to the URL, I was able to access the post. This suggests that the language information may not have been correctly assigned to the post, which is likely why it isn't accessible. Please try the following steps and check if they help in solving the issue. - Please go to WPML > Support > Troubleshooting -- Synchronize posts taxonomies [Select the post type from the dropdown and then click the button] - Once done, clear the caches from your site and browser. Please let me know how it goes. I'll be happy to help if you need further assistance in this matter. Best regards, |
November 15, 2024 at 9:47 am #16406875 | |
ihsanK-3 |
Hi Prosenjit, Thanks for your help. I wanted to update you on my issue. I tried your method, but I am still unable to access pages under /ch/ in the Editor. On the frontend, I can view these pages without any problems. Today, I noticed something that might explain the issue—based on the attached image, it seems that the CH language was removed and then added back, which may have caused a problem in the database. To clarify, the issue only persists in the post type produkt. The problem is specific to accessing the backend editor; we can access the WordPress editor without any issues on other pages. Do you have any comments on this, or is there any guide you would recommend following? Thanks in advance. |
November 18, 2024 at 3:38 am #16412644 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hello There! Thank you for the update. Based on the screenshot you shared, the issue appears to be related to the deletion of the Chinese language. The content primarily belongs to the previously active Chinese language. All the posts and content contain information about the deleted Chinese language. Since this language no longer exists, any attempt to edit posts created under the previous Chinese version results in an error. Here’s what you can do: 1. Re-add the previous version of the Chinese language and keep it active. If you prefer to switch to the new version, proceed with the following steps: 2. Once added, try opening the Chinese posts in the editor. 3. If the posts open successfully, update the language information for the Chinese posts to the new Chinese language. For guidance on this process, refer to this screenshot: hidden link. 4. Once the language information of all the Chinese posts is updated to the new Chinese language, you can delete the Older Chinese language. Then run the troubleshooting steps I've shared in my first message. The issue should be resolved after following these steps. However, if you need further assistance, please feel free to let me know. I'll be happy to take a closer look and assist you further in this matter. Best regards, |
November 18, 2024 at 8:43 am #16413378 | |
ihsanK-3 |
Hello Prosenjit, Thank you for your detailed explanation and steps! This method seems to work well. 😊 I wanted to ask if there’s an option to manipulate the database directly to add all translations from the old Chinese language to the new one. This would help us avoid translating the same content twice. Please let me know if that's possible and what steps would be involved. Looking forward to your response! Best regards |
November 19, 2024 at 4:53 am #16417369 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hi There! Thank you for the update! I’m glad to hear the steps you provided are working well for you. 😊 Regarding your query about transferring translations directly from the old Chinese language to the new one via the database, this is entirely possible. Below are the SQL queries we can use to achieve this. ⚠️ Please make sure to backup the site and database before making any changes in the Database. 1. Update Language Codes in WPML Tables: We’ll update the `language_code` in the `wp_icl_translations` table for all translations assigned to the old language code: UPDATE wp_icl_translations SET language_code = 'new_language_code' WHERE language_code = 'old_language_code'; You can get the language code from the _icl_languages table. 2. Update Post Metadata (if applicable): If any metadata is linked to the old language, we’ll update it as well: UPDATE wp_postmeta SET meta_value = REPLACE(meta_value, 'old_language_code', 'new_language_code') WHERE meta_key = '_wpml_language'; Please test with one post/page first and if it helps, proceed to update the rest. Once updated, please try the following steps: 1. Flush Caches: Clear any site or server caches to reflect changes. I hope the information above will help. Please feel free to let me know if you need further assistance or clarification on any particular step. I'll be happy to help. Best regards, |
November 22, 2024 at 11:05 am #16433404 | |
ihsanK-3 |
Hey Prosenjit, I did my best to fix it, but unfortunately I wasn't able to. |
November 25, 2024 at 5:01 am #16437807 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hi There! I understand your situation. Please note that there is no need to delete the previous Chinese translation. Instead, keep both the previous and new Chinese languages active, and simply change the language of the previous Chinese translation to the new Chinese language, as outlined here: #16412644 This is also possible to update the language code from the Database, which I've shared in my previous response. These suggestions should help resolve the issue. While custom coding support is beyond our usual scope, since you're facing difficulties, I'm happy to take a look and assist you further. If you can replicate the issue on a staging site, please share the access to that site in the next response. Please also make sure that the Database is accessible on that site through a plugin like WP Phpmyadmin. I enabled the Private fields for you so that you can securely share the access to your site. Looking forward to your response and I'm always here to help! Best regards, |
November 26, 2024 at 3:25 am #16442404 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hi There! I followed your instructions and checked by opening an existing product in Chinese. The Chinese version of the products is accessible without any issues, even when I'm not logged into the site. For more clarity, please refer to this video: hidden link Since everything is functioning correctly in the Chinese language on the staging site, has the issue been resolved there? If not, please let me know if there's a specific step I might be overlooking to replicate the issue. I'll review it and do my best to assist you further. Best regards, |
November 26, 2024 at 7:34 am #16442761 | |
ihsanK-3 |
Prosenjit, When I mentioned the backend, I was referring to the inability to open the Classic Editor for editing pages in the admin mode, not just opening the page itself. Through our chat, I clarified that the frontend is working fine; the issue lies in not being able to edit the page at all in the Classic Editor when in admin mode. |
November 27, 2024 at 5:44 am #16447470 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hi There! When I first checked the issue, the Chinese products were also not visible on the frontend, which led me to focus my investigation on the frontend. However, after further checking, I was able to identify the issue. Despite trying several solutions, such as resetting the language, updating the language code, and modifying the slug for the Chinese language post, none of them resolved the issue. Interestingly, when the Chinese post is set to draft, it becomes possible to open the post in the WordPress editor without any problems. It seems there is an issue with the Chinese language that requires further investigation. I have escalated the matter to our 2nd tier team, and I hope they will be able to identify the root cause and provide a solution. As soon as I have more updates on this, I will surely inform you. Thank you for your patience and kind cooperation in this matter. Best regards, |
November 27, 2024 at 7:28 am #16447645 | |
ihsanK-3 |
Thank you Prosenjit for your hard work, appreciate it |
November 28, 2024 at 5:15 am #16452283 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hi There! Our 2nd tier team has investigated and found that when the Chinese slug of the post type is changed to anything in English, the Chinese posts open correctly in the editor. You can try this by going to `WPML > Settings > Post Type Translation` and changing the slug of the `produkte` post type to any English word. Simply replace '产品' with any English term. We need to check if there are any limitations on using non-Latin characters in the post slug. In the meantime, you can change the Chinese slug to any English term and continue with this solution if you want. As soon as I have more updates on it, I will surely inform you. Thank you for your patience and kind cooperation in this matter. Best regards, |
December 10, 2024 at 3:25 pm #16499276 | |
gierand |
Hi Prosenjit, to avoid creating a new thread on this matter, I wanted to inform you that an identical issue occurs with the Ukrainian language. |
The topic ‘[Closed] Issue Editing Chinese Language Content in WPML: “You attempted to edit an item that does not exist….’ is closed to new replies.