[Resolved] Unable to set up different domains per language
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is trying to set up Spanish and Dutch translations for their website using separate domains, but the domains are being marked as 'not valid' despite being set up as aliases and not redirects.
Solution: 1. We suggested that the error might be a false positive and recommended saving the settings without the validation option and then visiting the translation to see if it works. 2. We advised the client to check their
wp-config.php
file for entries that define home and site URLs dynamically, which could cause false positives, and to comment them out if present. 3. We identified that the issue might be related to DNS setup or specific settings with the client's web host, One.com, and recommended contacting their support for assistance. 4. We also suggested adding the .es domain to the DNS settings of the .nl domain, as it was not included in the screenshots provided by the client. 5. After testing the client's site on a virtual server, we confirmed that there were no issues with the theme or plugins, and reiterated the need for the client to contact their hosting support and domain providers for help with DNS settings.
If the solution provided here is not relevant to your case, either because it's outdated or not applicable, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket.
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.
Hi, I am trying to set up Spanish and Dutch translations for hidden link, using separate domains (www.mjseventservices.es & hidden link). I have followed your documentation regarding setting up domain aliases for these, but they are still being marked as 'not valid' (see image). I've double-checked that they are in fact aliases and not redirects, so I'm not sure what the issue is.
Is there any documentation that you are following?
I've tried saving without the validation but it didn't seem to work. When I switch languages it displays the correct domain but the page is still in English.
It might be worth mentioning the site uses Elementor, could that have anything to do with the issue?
Hi, I've been in contact with the hosting company but they're confident the DNS settings have been set up correctly and there aren't any issues on their end. Here's how the web alias for the .nl DNS settings is configured if that helps:
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hello,
I would like to offer to have a closer look at the problem and request temporary access (wp-admin and FTP) to the website to investigate this issue further.
You can find the required fields below the comment section when you log in to leave the next reply. The information you provide is private, which means only you and I can see and access it.
IMPORTANT
Please be sure to make a backup copy of the website and database before allowing us access.
If you can't see the wp-admin / FTP fields, your post and website credentials are set as PUBLIC. DO NOT publish the data unless you see the required wp-admin / FTP fields.
I may have to install a plugin called "All In One WP Migration" to make a copy of the website where I can investigate the issue further.
The private response form looks like this: hidden link
Next time you reply, click "I still need assistance."
Video: hidden link
Please note that we are obliged to request this information individually on each ticket. We may not access any access information not specifically submitted on this ticket in the private response form.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
I have enabled "Different Domains per language" again while having the "Validate on save" option disabled.
I can now actually reach the homepage in the second domain in ES and NL by using the browser address bar, but for some reason, the translations are not showing up.
Also, the language switcher appears to not work as expected.
I will need to take a copy of the site to test it on a virtual server and I will get back to you once I am done with this task.
---
Further, I changed the WP MEMORY LIMIT inside the wp-config.php file to 256M as the site was using the default of 40M and was running close to the limit.
Further, I made sure that your users have a first name and last name inside their profile, as this is necessary to use the Advanced Translation Editor.
Hi, thanks for looking into this. I have reached out to my hosting company and they told me to change the web alias to a web forward, but that didn't fix the issue.
I'd really appreciate if you could take another look and share any more details you can as my client needs these translations live as soon as possible.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hello Toby,
Usually, as I took a copy of your site which worked as expected on a virtual server, it is confirmed that there is not any error or config issue inside WordPress.
The issue most likely would be the DNS setup or specific One.com Settings and we do not have any influence on this.
If the DNS settings are fine, then the issue could be the following entry inside your wp-config.php file which was created by One.com:
/**
* Client IP for One.com logs
*/
if (getenv('HTTP_CLIENT_IP')){$_SERVER['ONECOM_CLIENT_IP'] = @getenv('HTTP_CLIENT_IP');}
else if(getenv('REMOTE_ADDR')){$_SERVER['ONECOM_CLIENT_IP'] = @getenv('REMOTE_ADDR');}
else{$_SERVER['ONECOM_CLIENT_IP']='0.0.0.0';}
Could you please ask the One.com Support if it would be safe to remove those entries for testing purposes? Explain to them that you need to use different domains per language on your site and it appears not to work for some reason if the site runs on One.com.
Thanks for the additional info, I passed this on to one.com who have looked at this thread and have had their senior technicians look at the issue.
Regarding the code you mentioned, they said it 'should not impact any plugin functionality typically', and to ask you to check why you think it's affecting the plugin.
Following this, they had a closer look but 'didn’t get any clue what issues we have in our DNS setup that WPML support is claiming', and wondered if you have any more specific information you could provide.
If there's anything else you can look into based on this, I'd really appreciate the support.