Skip Navigation

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.

If this solution doesn't look relevant to your issue, please open a new support ticket with us.

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.

This topic contains 7 replies, has 2 voices.

Last updated by Waqas Bin Hasan 1 year, 4 months ago.

Assisted by: Waqas Bin Hasan.

Author Posts
January 9, 2024 at 10:59 am #15163998

rocco-mauroB

WPML change the domain url of DIVI's js end css

This only happens when wpml is activated.

The domain hidden link is not 'found' but the internal domain 'nefocast-prod3.bo.mbigroup.it' is found

Why does WPML change the site domain?

Screenshot-2024-01-09-at-11.55.12.jpg
January 9, 2024 at 11:04 am #15164017

rocco-mauroB

Why does WPML change the site domain (of some css and js files) taking that of the internal domain as the site-url?

January 9, 2024 at 11:05 am #15164018

rocco-mauroB

When WPML is deactivated the site works correctly in every part

January 9, 2024 at 12:03 pm #15164280

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting the 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:

define( 'WP_MEMORY_LIMIT', '128M' );
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

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.

Regards.

January 9, 2024 at 12:28 pm #15164329

rocco-mauroB

Thank for your kind help

Added these lines to config.php

define( 'WP_MEMORY_LIMIT', '128M' );
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

cleared all caches

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

January 9, 2024 at 2:19 pm #15165079

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

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.

See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security.

January 10, 2024 at 12:43 pm #15168880

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the access, I am working on it and 'll get back to you accordingly.

January 11, 2024 at 5:28 am #15172183

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation.

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.

P.S.: The said plugin isn't on our compatibility list too (https://wpml.org/plugin/?wpv_view_count=120064&wpv-plugin-functionality=0&wpv_post_search=Relative+URL&wpv-wpcf-recommendation-flag=&wpv_filter_submit=Search), so we can't be sure or can't recommend using it.