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.

This topic contains 17 replies, has 7 voices.

Last updated by mohammeda-24 4 years, 1 month ago.

Assisted by: Bruno Kos.

Author Posts
August 6, 2021 at 8:30 am #9355639

jodyP-3

Hello, I'm having exactly the same problem with WPML generating an error on front end as it looks for the language switcher style sheet in:

/ontent/plugins/sitepress-multilingual-cms/templates/language-switchers/legacy-list-horizontal/style.min.css

At the moment it's just annoying as it doesn't have an impact on the site. Are we going to get a definitive fix in upcoming releases or should I go with Bruno's workaround? Thank you.

January 1, 2022 at 5:14 pm #10270453

joon-sooS

This problem has not been resolved at all by 2022.
I have the same problem with newer instances created by lightsail with bitnami images.
Anyone experiencing this problem seems to have use bitnami.
Please let me know if you have a correct solution to this problem.
For now, I'm just getting the same file in the correct path from the theme.
However, I'm still getting errors everywhere due to path issues.

This problem, which does not occur to the majority, does not appear to be making any effort to solve this problem in WPML.

February 22, 2022 at 10:13 am #10634559

mohammeda-24

I Migrated to Bitnami few days ago and seems the issue is still there.

Couldn't find any solution in both WPML and Bitnami support.

my best workaround solution for the issue is to dequeue the css file with the issue and enqueue it again.

/**
 **************** Temp fix
 */
add_action( 'wp_enqueue_scripts', 'wpml_bitnami_temp_fix', 9999 );
function wpml_bitnami_temp_fix() {
    wp_dequeue_style( 'wpml-menu-item-0' );
    wp_enqueue_style( 'wpml-menu-item-0-temp', '[url]/wp-content/plugins/sitepress-multilingual-cms/templates/language-switchers/menu-item/style.min.css?ver=1' );
}