Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
1. Icons not displaying when switching languages due to CORS errors.
2. Slider Revolution content translation error, even after following the documentation.

Solution:
1. For the icons issue, we recommended adding the following code to the .htaccess file to fix CORS errors:

<filesmatch ".(eot|otf|ttf|woff|woff2)"> 
Header always set Access-Control-Allow-Origin "*" 
</filesmatch>

2. We advised updating Elementor Pro to the latest version and re-checking the steps for translating Slider Revolution content as per the documentation.

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 at WPML's known issues page, 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 in the WPML support forum.

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 10 replies, has 2 voices.

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

Assisted by: Marsel Nikolli.

Author Posts
April 16, 2024 at 12:46 pm #15525433

karanaparambil-ahamedN

Hello

I am facing 2 issues, details as in below,

1-Icon not showing when switching language, as shown in the attached, all icons disappears when switching the language. while in the default language it works fine.

2-Slider content translation, i found an article from the website regrading slider revaluation content translation, but once i followed all steps the error msg in the screenshot appeared. while the slider works fine in default language.

Article link:
https://wpml.org/documentation/plugins-compatibility/creating-multilingual-sliders-with-revolution-slider-and-wpml/#:~:text=To%20translate%20your%20Slider%20Revolution,then%20select%20the%20General%20option.

Screenshot 2024-04-16 154011.png
Screenshot 2024-04-16 153958.png
April 16, 2024 at 1:04 pm #15525544

Marsel Nikolli

Hi,

Thank you for contacting WPML Support, I will gladly help you.

1) I visited your website and I could see CORS errors in the console. CORS stands for Cross-Origin Resource Sharing, you're trying to access a resource on your XXX domain from your YYY domain.

Could you please try to add the following to your .htaccess file:

# fix CORS error for fonts
<FilesMatch ".(eot|otf|ttf|woff|woff2)">
    Header always set Access-Control-Allow-Origin "*"
</FilesMatch>

* The icons are part of the font that is not loading.

2) According to your debug.info, the WP memory limit needs to be increased, WordPress uses 40Mb as default and the minimum requirements for WPML are 128 MB. (Kindly check this page: https://wpml.org/home/minimum-requirements/)

You can increase it by adding the following code in your wp-config.php file right before the line: /* That's all, stop editing! Happy publishing. */

/* Memory Limit */
define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M');

* Note: Please make sure you have a full backup of your website before making any updates/changes to your website.

Let me know how it goes,
Marsel

April 18, 2024 at 10:07 am #15537189

karanaparambil-ahamedN

Hello Marsel

Thank you for the detailed reply, appreciated. I increased the memory limit, but when i tried to add the suggested script

# fix CORS error for fonts
<FilesMatch ".(eot|otf|ttf|woff|woff2)">
Header always set Access-Control-Allow-Origin "*"
</FilesMatch>

i received the error (The directory can't be outside the document root).

And both issues still remains.

Screenshot 2024-04-18 130337.png
April 18, 2024 at 10:50 am #15537628

Marsel Nikolli

Hi,

From what I can understand from the image you shared, it appears that you are editing the .htaccess file in a subfolder(/wp_site_16xxxxx) in your main website's root folder.

You need to add that code in the .hataccess file in the root folder of your website for it to work.
The .htaccess file, normally shouldn't be empty as it has some default WordPress code.

* it might be necessary to contact the hosting support team as I am unsure how your website's folders are set up.

Regards,
Marsel

April 20, 2024 at 8:51 am #15545579

karanaparambil-ahamedN

Hello

Thank you again for following up, I've contacted domain.com support, and they confirmed adding the code in the .hataccess file in the root folder of the website.

Unfortunately issues still exists

Screenshot 2024-04-20 114813.png
April 22, 2024 at 8:53 am #15548827

Marsel Nikolli

Hi,

1) From what I could check on my end, the icons issue seems to be resolved. Please try clearing the cache of the browser if this issue persists. (this means that the part with adding the code on the .htaccess file should be fine)

2) Related to the issue with the Slider Revolution, could you please check that you have the latest version, from the debug info you provided I noticed that you are using v6.7.3.

Let me know,
Marsel

April 22, 2024 at 1:31 pm #15550823

karanaparambil-ahamedN

Hello

Yes, thanks, .htaccess file is updated and icons issue is resolved. regarding the slider issue, the Slider revolution version is 6.7.5.

Screenshot 2024-04-22 162745.png
April 22, 2024 at 2:13 pm #15551134

Marsel Nikolli

Thank you for the update.

I would need temporary access to your site's WP-admin to investigate this issue and understand it better. Please create an administrator user using any email address you prefer.

Please fully back up your site (files and database) and confirm it in your next reply.

Your next reply is set to private for you to provide the username and password details.

Thanks,
Marsel

April 25, 2024 at 10:20 am #15564758

Marsel Nikolli

Hi,

Thank you for the access, I was able to check your website.

I've noticed that you are using Elementor Pro 3.8.1, please update to the latest version.

* Note: Please make sure you have a full backup of your website before making any updates/changes to your website.

After, if the issue with the slider persists, please re-check the steps you followed from this link:
https://wpml.org/documentation/plugins-compatibility/creating-multilingual-sliders-with-revolution-slider-and-wpml/#:~:text=To%20translate%20your%20Slider%20Revolution,then%20select%20the%20General%20option

Let me know how it goes,
Marsel

April 27, 2024 at 1:02 pm #15572893

karanaparambil-ahamedN

Hello Marsel

I updated Eliminator Pro and i also updated Slider Revolution and the issue still exist.

I also deleted the duplicated slide, and re-did the steps in the article. still same

April 29, 2024 at 12:27 pm #15577078

Marsel Nikolli

Hi,

Thank you for the update.

Would it be possible to check if the issue happens in a minimal setup, that meaning:

- set a default WP theme
- keep active only WPML Plugins and must-have plugins
- disable all other plugins

After, check if the issue is still happening.

This would help check if there is any plugin/theme conflict causing the issue.

Note: Please make sure you have a full backup (files & database) before trying anything on your website.

Let me know how it goes,
Marsel

April 30, 2024 at 9:29 am #15580534

karanaparambil-ahamedN

Thank you for the support Marsel. I didn't follow the last suggested steps you suggested.

Instead i deactivated the plugin, then re-activated it, deleted the slides i had, created new ones from scratch and then followed the article to translate.