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 0 reply, has 1 voice.

Last updated by lasseH-4 7 months, 2 weeks ago.

Author Posts
November 13, 2024 at 12:48 pm #16397614

lasseH-4

Background of the issue:
I updated WPML to version 4.6.14 and WordPress to version 6.7 in my local environment. I use translatable strings with __(), esc_html_e() functions, and POT files. The issue seems to affect only parent themes where I call load_theme_textdomain() function with after_setup_theme(). Child themes with textdomain added with load_child_theme_textdomain() work fine.

Symptoms:
The translatable strings are not working anymore; they only show default languages. This issue occurs with sites using a parent theme and WPML with the latest version of WPML and WordPress 6.7.

Questions:
Why are the translatable strings not working with the parent theme after updating WPML and WordPress?
How can I resolve the issue of parent theme strings not translating with the latest WPML and WordPress versions?

November 13, 2024 at 1:14 pm #16397790

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

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

Hi,

Reference to our recent chat, meanwhile this ticket is attended by one of my colleagues, please provide 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 the admin and on the frontend.

IMPORTANT: Please take a complete backup of the site to avoid data loss.

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

Regards.

November 13, 2024 at 1:34 pm #16397881

lasseH-4

I made test environment for the live version of the site that I had problems with in local environment. I updated WordPress version and WPML plugins (and every other plugins) to latest version. Everything seems to be working correctly now.

The issue seems to be only in my local environment. I don't quite understand why, because it should be similar to the server, only difference being Apache(local) and Litespeed(server).

I need to investigate this more and see if I can get the local environment working correctly. But for now it is good to know that the live sites are working as intended and I can update them.

Thank you for your time!