[Waiting for user confirmation] Header translation issue
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.
Our wait time is higher than usual, please make sure you are meeting the minimum requirement - https://wpml.org/home/minimum-requirements before you report issues, and if you can take a look at current Known Issues - https://wpml.org/known-issues/. Thank you.
Background of the issue:
I've already translated multiple pages with WPML, but for some reason, I get a white page when translating the header. Additionally, when I open the translated page, the following error appears: "You must call 'the_content' function in the current template, in order for Elementor to work on this page." I checked similar topics, but I couldn't find a solution.
Symptoms:
I get a white page when translating the header. Error message: "You must call 'the_content' function in the current template, in order for Elementor to work on this page."
Questions:
Why do I get a white page when translating the header?
How can I resolve the error message related to 'the_content' function and Elementor?
I would like to look at this directly on your site. For this I would need temporary access (WP-Admin and FTP) to your site, preferably to a test/staging site where the problem has been replicated if possible.
The required fields can be found below the comments section. The information you enter is private, i.e. only you and I can see it and have access to it.
I may need to replicate your website locally. To do this, I need to temporarily install a plugin called "Duplicator" or "All in One WP Migration" on your website. This will allow me to create a copy of your website and content. Once the issue is resolved, I will delete the local website. Let me know if this works for you.
IMPORTANT
Please make a backup copy of the site files and database before giving us access.
- If you do not see the wp-admin/FTP fields, this means your post and site login details are being made PUBLIC. DO NOT post your website details if you do not see the required wp-admin/FTP fields. If you do not, ask me to enable the private box. The private box looks like this:
I couldn't log in. I'm inserting my e-mail in the form, but I'm not receiving the code. I tried a couple of times and made sure my e-mail was inserted correctly. Can you please check? Thanks in advance.
I dunno why this is not working because the email is in the allowed group. Anyway temporary I removed CF from the site. Now you can reach it without CF page.
Thank you for sharing the copy. I wasn't able to reproduce any of the issues in the copy I created locally. I tried:
1. Going to Headers and clicking on the pencil icon to edit the Desktop V2 translation. No issues there;
2. Editing the German home page using Elementor. No issues as well;
Can you please send me a screen recording, showing the errors on your side? I recommend Loom for screen recordings, it's free for short videos: hidden link
This way I can better understand the problem.
P.S: Please note that when translating content with the translation editor it's not recommended to edit the translations using Elementor or the regular WordPress Editor, as it can lead to issues.
Here is the link to the screen recording: hidden link
As you can see, the header translated into German is not appearing, and when I try to edit it with Elementor, I get an error. I understand that editing a translated header is not ideal, but that’s a separate issue. Unfortunately, the translated page does not match the original. The dropdown menus are different, and buttons that should not be visible to a guest user are showing up. Unfortunately, I cannot fix this without making modifications. Do you have any idea why it is different?
Thank you for sharing the details. To verify if the issue was related to WPML, I deactivated all WPML plugins and made some tests. The problem persisted, even with all WPML plugins deactivated. That means that WPML is not the root cause of this issue. Please check here:
hidden link
This was done in a local copy. I recommend you to check if there's any conflict and reach out to your theme developer, to see if they can support you on this matter.
About the translated page that does not match the original, please show me some example, so I can check that directly (screenshots and the page URL). Please note that we always need concrete examples of issues, so we can check them.
This seems to be another issue, unrelated to the Elementor one I previously mentioned.
Unfortunately, the automatic header translation still doesn't work perfectly, but I managed to resolve it by duplicating it, allowing me to translate and modify the header. However, my current issue is that the mega menu doesn't appear on the translated page. I checked all the topics but couldn't find a solution for this.
I checked on the copy you sent latest, but also couldn't check on how to make the header show, neither the Mega Menu. Please note that your theme is not WPML compatible, and apparently is not fully multilingual ready. So I'm looking for workarounds and ways to make it work with WPML.
Please send me a fresh copy of your website again, so I can check an updated version. I've enabled the fields for you to share the Duplicator package.
As you requested, I completed the basic installation, but unfortunately the mega menu still doesn't appear. In the meantime, I checked the theme's website, where it says it is supposedly compatible with WPML.
I couldn't see any differences in the testing environment I've created. It seems to be exactly as I left it. To confirm that, I need to be able to check your tests. Please follow the steps in my last message, by accessing the website with the link, and let me know. This way, I can confirm the compatibility.
On the following link you can find the copy of the basic system. I installed only the Theme and required packages and added one german header with megamenu.