Skip Navigation

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

Problem:
The client was unable to see translated products because they were saved as drafts and encountered a critical error when trying to access Appearance > Themes with WPML active, due to WPML attempting to read MO files from an invalidly named theme.
Solution:
We recommend the following steps to resolve the issue:
1. Rename the theme folder with the invalid name (e.g., 'bluehost-mila-tak%c4%b1') to a valid one, such as 'bluehost-mila-tak'.
2. Update the 'text-domain' in the style.css file. To do this, navigate to Appearance > Theme File Editor and edit the 'Text Domain:' field to match the new folder name, 'bluehost-mila-tak'.

If this solution does not seem relevant to your situation, 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.

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by Lucas Vidal de Andrade 1 year, 6 months ago.

Assisted by: Lucas Vidal de Andrade.

Author Posts
December 20, 2023 at 3:56 pm

baraan

Client can't see translated products because they were saved as drafts. He also can't access Appearance > Themes when WPML is active, he gets to a critical error.

December 20, 2023 at 5:03 pm
December 21, 2023 at 2:19 pm #15111093

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello,

I was able to reproduce your issue locally, but unfortunately couldn't get to a solution. Apparently, the problem is being caused by WPML's String Translation plugin. I've sent your issue to our development team, and they should find a permanent solution to your issue in a few days. I'll keep you posted. Meanwhile, I wish you a very pleasant day 🙂

Please let me know if you have any question.

December 28, 2023 at 10:36 pm #15135774

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello,

I got a feedback from our dev team. Please do the following and tell me if the it solves your issue. The error is happening when WPML tries to read the MO files from the theme.
One of the themes has the name bluehost-mila-tak%c4%b1 which is invalid.

1. Please rename the folder marked in the screenshot to "bluehost-mila-tak"
2. Update the "text-domain"on your style.css. To do that, go to Appearance > Theme File Editor and edit the field "Text Domain:" to "bluehost-mila-tak". I attached a screenshot from other theme as an example just so you know which field it is that you have to change.

Tell me if that solves your issue.

Themes bearbeiten _ Sandbox _ WordPress.jpeg
image2.png
December 31, 2023 at 8:52 pm #15139057

baraan

thank you very much my issue is resolved . thanks for your effort