Home›Support›English Support›[Resolved] WPML change the domain url of DIVI's js end css This only happens when wpml is a
[Resolved] WPML change the domain url of DIVI's js end css This only happens when wpml is a
This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing issues with your domain URLs for DIVI's JavaScript and CSS files changing when WPML is activated, and your site is showing an internal domain instead of the expected 'www' domain, the issue may not be with WPML.
Solution: We recommend checking if a third-party plugin, such as 'Relative URL', is affecting the URLs. Deactivating this plugin may resolve the issue. It's important to note that in a standard environment, the .htaccess file should handle URL structures without the need for such a plugin. If you're using 'Relative URL', please be aware that it is not on our compatibility list, and we cannot guarantee its functionality or recommend its use. If deactivating the plugin does not solve the problem, or if you require it for your hosting/server structure, please consult with your hosting support.
Before proceeding further, may I ask you to try the following?
IMPORTANT: Take full backup of your website and database beforehand. It is highly advised to try the following on a staging/dev site first, so your live website isn't compromised.
Fix “WP Memory Limit” to at least 128MB while 256MB is recommended. See https://wpml.org/home/minimum-requirements/ for detailed information. You can set this in your wp-config.php file by adding following code:
Remember to add these lines before the line where it says:
/* That's all, stop editing! Happy publishing. */
then clear all caches and recheck for the issue.
If problem continues then please try the following:
- Deactivate all plugins except WPML and its addons and check for the issue.
- Activate each plugin one-by-one, while keeping check on the issue after a plugin is activated. This way you'll be able to pinpoint a plugin having a conflict (or problem), if any.
- If the problem persists, repeat the above steps with a default theme of WordPress (i.e. 2021 or 2023).
Please let me know and I'll try my best to help you further on the matter.
Deactivated all plugins except WPML and its addons and check for the issue.
Then activated each plugin one-by-one, while keeping check on the issue after a plugin is activated.
Other plugins showed no problems
Other plugins deactivated and activated a WP standard theme and the site showed a ‘too many redirect’ message
Thank you for the details and taking time to check those steps.
I need to take a closer look at your site. So I request temporary access (WP-Admin and FTP), preferably to a test site where the problem has been replicated.
Your next answer will be private, to share this information safely.
Also provide detailed steps to reproduce the issue and links to pages in admin and on frontend.
IMPORTANT: Please take a complete backup of the site to avoid data loss. I may need to activate/deactivate plugins also.
I checked in your dev site and see that problem isn't coming from WPML but from somewhere else - see my screencast hidden link.
As you can see that WPML plugins are not active, but a 3rd party plugin "Relative URL" is taking care of the URLs. As soon as I deactivate this plugin too, those errors are visible in the console (on frontend). You can also notice that WP Admin loses all its styles.
I am not sure why would you need "Relative URL" plugin. In a normal or standard environment a standard .htaccess (i.e. your permalinks structure) takes care of the things. Perhaps this is something to do with your internal hosting/server structure and you may check with their support.
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.