[Resolved] Edit translations with ip in local hosts file
This thread is resolved. Here is a description of the problem and solution.
Problem: The client was unable to continue translating strings after moving their site to a new URL and selecting the option in WPML to treat it as a new location. They were concerned whether the local hosts file was causing the issue and whether it would resolve itself after updating the DNS. Solution: We advised the client to mark the site as a copy using the option provided in WPML, which would allow them to access the Advanced Translation Editor and continue making translations. This step is detailed in the documentation on handling site moves with WPML, which can be found here: Using Advanced Translation Editor when you move or use a copy of your site.
If this solution does not apply or is outdated, or if further issues arise, 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. Should these steps not resolve the issue, please do not hesitate to open a new support ticket with us for personalized 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.
Situation:
We built a site in a development environment at bootendart.bluntlabs.nl. We then duplicated it to the server where it should be hosted. Tomorrow, to go live, we will put the new IP address in the A-record in the domain names' DNS. For now, we have fixed the new, final URLs (e.g. bootendart.co.uk) to this location via the local hosts file (pointing to IP 93.119.2.206), so that we have it available locally and can still make adjustments.
I got a notification from WPML that it had detected that the site was running under the new URL (bootendart.nl), with the choice of treating it as duplicate, or as a new location, in which case I would no longer be able to edit the translations at the old location. I chose the latter and received confirmation of this.
The problem:
We were literally able to do one or two string translations at the new location. And now this is no longer possible and I get the message that the website has been moved to bootendart.nl and therefore I can no longer edit bootendart.nl (see attachment).
Is the local hosts file the problem and will this automatically be solved after switching the DNS?
Should we first transfer the DNS, so that WPML 'understands' which (final) location we are working from? And how sure can we be that it will then work, because that means that we will then have to make the changes in the publicly accessible live environment, and I do want to be sure in advance that we can then quickly make the still-needed changes, and I won't keep the same notification and be unable to edit the translations when the site is live.
I attached a screenshot of the current 'error message' on bootendart.nl which states: "... has moved this site to hidden link. Please note that: Translations you make at hidden link will not appear on this site" (and this site ís bootendart.nl following my settings in my local hosts file.
No need to worry, though. To enable translation on your current website, please follow these steps:
1. Click on the "mark it as copy" option, as indicated in the screenshot you provided.
2. After marking it as a copy, you'll gain access to the Advanced Translation Editor.
This should resolve the issue and allow you to proceed with translations smoothly. If you encounter any further difficulties, feel free to let us know.