[Resolved] Layout is broken for homepage translated versions
This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing a broken layout on your translated homepage and a missing footer on all translated pages, it might be due to incorrect taxonomy settings and post slug modifications in the database. Solution: We found that the footer template post slug was incorrectly modified in the database and the taxonomies 'wp_template_part_area' and 'wp_theme' were unlocked, which should not be the case. Here's what we recommend you try: 1. Remove the incorrect terms from the 'icl_translations' table. 2. Re-translate the front-page and footer template parts. 3. Correct the post slug in the 'wp_posts' table by changing it from 'footer-2' back to 'footer'. After these steps, please check your website again to see if the issue is resolved. If this solution doesn't look relevant to your problem, please 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.
Languages: English (English )Portuguese (Brazil) (Português )
Timezone: America/Sao_Paulo (GMT-03:00)
Hello,
Thank you for your patience while we debug this.
I thought that maybe I wasn't able to replicate the issue with the footer because I was working in the staging site, however, I went ahead and followed the same steps you did in the screen record in the live site for the German translation and it didn't break the footer.
There's no error logs to help us identify the source of this problem, which is making it specially tricky to debug it.
At this stage, I suspect the issue might be related somehow to your user, since I'm not able to reproduce the issue with the user you shared with us.
We need your help with confirming this scenario, for such, can you please proceed with these steps?
- Go to your site and notice that I fixed the footers once again.
- Edit one of the translations eg.: the German one, just like you did in the screen record to confirm that it will break the footer again.
- Log out from your account and log in using a different admin user(create a new one or use the temporary one you shared with me for my access)
- Try to edit another language, eg.: Arabic, and check if this is going to break the footer using other user to translate it.
After this test, please let us know which one applies:
1- Only translating with your user breaks the template
2- Translating with any user breaks the template
3- This time the footer didn't even get break at all
In our temporary staging copy of your site, we reset your username so we could login and perform the test above but in my tests in the staging site the footer didn't break, hence me asking you to perform this test on the live site this time.
Thank you for you comprehension and help with identifying the issue here.
I tried with my account, WPML support, and a new admin account, yet they all had the same problem. I still don't understand how you can get different results by following the same procedure.
Languages: English (English )Portuguese (Brazil) (Português )
Timezone: America/Sao_Paulo (GMT-03:00)
Hi,
This is to let you know that I have escalated this ticket to our 2nd tier of support where our specialists will take a deeper look at this issue and will try to find a solution.
I will get back to you as soon as I get an answer from them.
My website's translation is almost complete, but this issue is preventing me from launching the other languages. I would appreciate any help to speed up the process.
Languages: English (English )Portuguese (Brazil) (Português )
Timezone: America/Sao_Paulo (GMT-03:00)
Hello there,
This is to keep you informed that our 2nd tier support team continue to investigate this uncommon issue and will provide you with an update as soon as possible.
Please note that due to holidays there is a slight unusual response time.
Languages: English (English )Portuguese (Brazil) (Português )
Timezone: America/Sao_Paulo (GMT-03:00)
Hello there,
I'm sorry for the delay with this.
Upon further inspection our team has been able to identify the issue and fix it.
We identified that the footer template post slug had been modified to 'footer-2' in the database, which is associated with the 'EN' term of the 'wp_template_part_area' taxonomy.
We noticed that in the default WPML settings, the taxonomies 'wp_template_part_area' and 'wp_theme' are typically locked. However, in your case, these settings were unlocked. It appears that this modification might have been made manually, leading to the translation of terms in the database, such as 'footer' and 'footer-fr'.
To address this, our 2nd tier team took the following steps:
- Removed the wrong terms from the 'icl_translations' table.
- Proceeded to re-translate both the front-page and footer template parts.
- Fixed the post slug in the 'wp_posts' table, changing it from 'footer-2' back to 'footer'.
After implementing these changes, we retested the system thoroughly. I'm pleased to report that the issue has been successfully resolved, and everything is functioning as expected now.