Home›Support›English Support›[Resolved] Activating the multi-site function after a domain change creates problems
[Resolved] Activating the multi-site function after a domain change creates problems
This thread is resolved. Here is a description of the problem and solution.
Problem:
Yesterday I tried to activate the Multi-domain functionality, it all seems to work wonderfully, but for one exception: When I activate the multi-domain functionality, all the wp-admin ajax calls are done to the first domain (covid19.groupealliances.com)
Solution:
There is issue when you use “Different domains per language” and Nginx server configured with server_name that does not match your domain name.
Replace:
$url_parts['host'] = $_SERVER['SERVER_NAME'];
- in wp-content/plugins/sitepress-multilingual-cms/classes/url-handling/converter/strategy/class-wpml-url-converter-domain-strategy.php
yes that was the case when I tested it, but maybe I was not doing replicating steps correctly since I haven't used real domains but hosts manipulation.
Let's wait for an update from our developers, maybe they will be able to replicate it correctly.
I will update you as soon as I have some information.
It seems there is issue when you use “Different domains per language” and Nginx server configured with server_name that does not match your domain name.
Can you please try next workaround:
Replacing SERVER_NAME with HOST_NAME:
$url_parts['host'] = $_SERVER['SERVER_NAME'];
in wp-content/plugins/sitepress-multilingual-cms/classes/url-handling/converter/strategy/class-wpml-url-converter-domain-strategy.php
Glad to hear your issue is now solved, I will be sharing your fix with our developers.
I will be closing this ticket and marking it as resolved.
I hope I was helpful. Don't hesitate to ask if you find any problem in the future, I'll gladly help you.
Regards,
Drazen
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.