Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Europe/Tirane (GMT+02:00)

This topic contains 2 replies, has 2 voices.

Last updated by Marsel Nikolli 1 year, 5 months ago.

Assisted by: Marsel Nikolli.

Author Posts
December 14, 2023 at 10:43 am #15062305

rocco-mauroB

When WPML is activated the URLs of some css and js are changed in this way: the site domain is replaced with the internal site domain, therefore before the proxypass, and this is not reachable from the outside
This causes various parts of the site not to work as they should

Also the Divi theme icons are not shown.

December 14, 2023 at 1:03 pm #15063309

rocco-mauroB

We are getting CROS Policy issues when WPML is activated. Maybe this is the root problem causing everything else? Our website is behind a proxy pass

Screenshot 2023-12-14 at 12.35.47.png
December 15, 2023 at 2:35 pm #15073715

Marsel Nikolli

Hi,

Thank you for contacting WPML Support, I will be happy to help you.


I noticed from the browser developer tool that .js files and .css files are all showing the same error as shown on the image attached (its the same errors in both languages), also if you try to open the a link of those files (ex.: hidden link) in the browser it will give you a message "This site can’t be reached". I'd suggest you check the configuration of the proxy first.

As for the CORSS issue when WPML is activated, could you please try to add the following to your .htaccess file:

# fix CORS error for fonts
<FilesMatch ".(js | css)">
    Header always set Access-Control-Allow-Origin "*"
</FilesMatch>

Note: Please make sure you have a full backup before making any changes.

Let me know if this works out for you or if you have any other questions.

Regards,
Marsel

Screenshot 2023-12-15 152829.png

The topic ‘[Closed] When WPML is activated the URLs of css and js are changed with the internal site’ is closed to new replies.