This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is trying to set up WPML on a server with a domain that already has an old website running on it. The client is modifying their Hosts files to work around this.
Solution:
We registered the domain
http://www.racemotos.com
on the WPML account sites and added it to the client's site. We recommend following the documentation for installing WPML, which can be found here: https://wpml.org/faq/install-wpml/. It's important to ensure that the domain registered is correct, as sometimes the key may not be valid if there is a discrepancy.
If this solution doesn't look relevant, please open a new support ticket in our WPML support forum.
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.
Tagged: Documentation request
This topic contains 18 replies, has 3 voices.
Last updated by Paola Mendiburu 1 year ago.
Assisted by: Paola Mendiburu.
Author | Posts |
---|---|
December 28, 2023 at 10:21 am #15134116 | |
Jose |
Tell us what you are trying to do? Is there a similar example that we can see? What is the link to your site? |
December 28, 2023 at 10:36 am #15134157 | |
Carlos Rojas Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Madrid (GMT+01:00) |
Hello, The correct way to install WPML for this site is to register it as a development site following the steps described in this guide: https://wpml.org/faq/what-is-the-difference-between-production-and-development-sites-in-wpml/ Regards, |
December 29, 2023 at 5:22 pm #15137306 | |
Jose |
Sorry, I clicked on SEND before adding some important information to my initial message. We installed RaceMotos.com in our server but we can only access it after modifying our PC's Host File because RaceMotos.com still has its DNS pointing to another server where the "old" website is there opened to the public. Meanwhile we need to create the new website in our server and for this we need to use WPML in it. As you recommended I've added RaceMotos.com to our WPML sites as "Under Development" but when I try to register it we get this warning message: How should we proceed in this case? |
January 2, 2024 at 7:31 am #15140309 | |
Carlos Rojas Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Madrid (GMT+01:00) |
Hi there, Please try the steps described in this FAQ: https://wpml.org/faq/automatic-wpml-registration-using-php-for-easy-moves-between-production-development-and-staging/ and let me know if you were able to register WPML on the development site. |
January 2, 2024 at 9:46 am #15142552 | |
Jose |
Thanks Carlos, I get that 'your-site-key' is the one provided to me at wpml.org when I added my new site as Development... but what's my OTGS_INSTALLER_SITE_KEY_WPML ??? I added my username at wpml.org (dominointernet) but I'm still asked for a License Key when I try to execute the OTGS Installer. |
January 2, 2024 at 9:50 am #15142585 | |
Carlos Rojas Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Madrid (GMT+01:00) |
Hi there, in your wp-config.php file you must add the following line: define( 'OTGS_INSTALLER_SITE_KEY_WPML', 'your-site-key' ); Where 'your-site-key' is the key you generated in your wpml.org account for the development site. 'OTGS_INSTALLER_SITE_KEY_WPML' is a constant and can't be changed. |
January 2, 2024 at 10:07 pm #15144853 | |
Jose |
Hi again Carlos, That's the first thing that I tried but I got this error message: Please remember that my client's site that I'm creating (racemotos.com) can only be visited if you modify your computer's Hosts File and add my server IP like this: 31.47.77.65 hidden link Otherwise, you will load the "old" website they have at racemotos.com (which isn't even a WP). Looking forward to hearing back from you again. |
January 3, 2024 at 8:34 am #15145472 | |
Carlos Rojas Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Madrid (GMT+01:00) |
Hi there, Is it possible for you to create (or restore) the development site in a public/visible URL so you can register WPML and then just hide it or restore it to the actual location? |
January 3, 2024 at 10:49 am #15146048 | |
Jose |
Not really because that would mean to change the DNS and my client doesn't want to shut down his current web. |
January 3, 2024 at 1:12 pm #15146694 | |
Carlos Rojas Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Madrid (GMT+01:00) |
Hi there, I consulted my colleagues about this situation and then recommended visiting/wp-admin/plugin-install.php?tab=commercial and clicking on the 'Get a key for this site' link that appears right below the input field. That will take you to generate the correct key. Please remove the old key (the one that doesn't work) from your wpml.org account first. |
January 3, 2024 at 3:53 pm #15147729 | |
Jose |
I deleted the current key, created a new one as you mentioned but I get this error: As I mentioned before, I'm afraid WPML.org is unable to verify that racemotos.com is using this key because the domain is not accessible unless you manually modify your computer hosts files to bypass the domain DNS. And this takes us to my initial question: how can I install WPML in a development site that isn't accessible by WPML.org ? |
January 4, 2024 at 7:24 am #15149335 | |
Carlos Rojas Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Madrid (GMT+01:00) |
Hi there, I have set your next message as private so you can share the access credentials to the site. I would like to take a look at the configuration and reproduce the issue on my end. |
January 4, 2024 at 8:49 am #15149578 | |
Carlos Rojas Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Madrid (GMT+01:00) |
Thank you for sharing the requested credentials. I've tried to access the site (after adding it to the hosts file) but I'm getting a 404 error. Please double-check the IP address you shared and edit your previous (private) message if necessary. |
January 4, 2024 at 11:07 am #15150214 | |
Jose |
I confirm you that I use this setting in my hosts file: 31.47.77.65 hidden link |
January 4, 2024 at 3:24 pm #15151979 | |
Paola Mendiburu Supporter
Languages: English (English ) Spanish (Español ) Italian (Italiano ) Timezone: Europe/Madrid (GMT+01:00) |
Hi there! This is Paola and I will continue with the ticktet as Carlos is off. I have registered hidden link and add the key and I didn´t have any problem. Please go to https://wpml.org/account/sites/ Please let me know if you have any problem. |