This thread is resolved. Here is a description of the problem and solution.
Problem:
The client was unable to see translations for a specific widget in the language switcher, despite having translated the widget and other content. The widget content was only displaying in Greek, regardless of the selected language.
Solution:
We suggested several steps to resolve the issue:
1. Ensure that translations are not saved in 'Draft' mode and apply any pending translation reviews in bulk via WPML > Translations.
2. Assign the widgets to 'All languages' and use WPML > String Translation to translate them. More details can be found here: Translating Widgets Using String Translation
3. Increase the WordPress memory limit to at least 256MB by adding the following code to the wp-config.php file:
define ('WP_MEMORY_LIMIT', '256M');This code should be placed just before the comment:
// That's all, stop editing! Happy blogging.
4. After increasing the memory limit, save the widget settings again and check if the issue is resolved.
If these steps do not resolve the issue or if the solution becomes outdated, we recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket at WPML support forum for further assistance.
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: Documentation request
This topic contains 28 replies, has 3 voices.
Last updated by Nicolas V. 1 year, 10 months ago.
Assisted by: Bobby.
| Author | Posts |
|---|---|
| June 14, 2024 at 6:15 pm #15741066 | |
|
Agathon |
<b>Background of the issue: </b> <b>Symptoms: </b> <b>Questions: </b> |
| June 14, 2024 at 7:42 pm #15741196 | |
|
Andreas W. WPML Supporter since 12/2018
Languages: English (English ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Hello, Could it be that your translations were completed but are still saved in "Draft" mode? If you use "Translate Everything Automatically" please revise if there are reviews available at WPML > Translations. You can also apply those reviews in bulk by marking all jobs and using the "Bulk options" dropdown options. It would also be very helpful if you could send us the WPML information for troubleshooting. Best regards |
| June 17, 2024 at 12:16 pm #15745186 | |
|
Agathon |
Hello, I've chosen to translate my website manually hidden link although i have credits i am afraid to use them not to change any part of my website without my permission or to charge me parts of translation of any demo content. This page of my website which is not display other language in dropdown is a part of widgets loading in it hidden link hidden link Am i missing something from settings or wpml configuration? Regards |
| June 18, 2024 at 3:09 pm #15749711 | |
|
Andreas W. WPML Supporter since 12/2018
Languages: English (English ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Hello, Did you already try to assign the widgets to "All languages" and translate it with WPML > String Translation? Does this only occur, if the [accordion] shortcode is used? Which plugin is responsible for this shortcode? If this shortcode is based on custom code from your custom theme, please provide me with a code example of how this shortcode is constructed. I can further offer a WPML test site on which you could recreate the issue for further investigation. Best regards |
| June 18, 2024 at 3:11 pm #15749719 | |
|
Andreas W. WPML Supporter since 12/2018
Languages: English (English ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Additional to my last message: Before taking any steps: Could you please increase the WordPress memory limit (WP Memory Limit) to at least 256MB? WPML requires a minimum of 128M. Your current values are: PHP Memory Limit 384M WP Memory Limit 40M You need to connect to your website's server and open the wp-config.php file in a text editor. The file is located in the WordPress root directory. Add this code to the wp-config.php file to increase WordPress memory:
define ('WP_MEMORY_LIMIT', '256M');
Add this just before this comment: // That's all, stop editing! Happy blogging. You can see the current values under WPML > Support > WordPress. These settings can be restricted directly by your hosting provider. Therefore, I recommend contacting them and asking them to change them directly if the changes are not adopted immediately. Now, once the limit is set, save your widgets settings page again and revise if this solved the issue. |
| June 18, 2024 at 6:45 pm #15750652 | |
|
Agathon |
Hello, define ('WP_MEMORY_LIMIT', '256M'); Regarding "Did you already try to assign the widgets to "All languages"" If you check this ticket https://wpml.org/forums/topic/home-page-layout-no-loading-content-after-installing-plugin/ your colleague told me to translate all wigdets in each language save them and then translate corresponding page in wordpress in all languages to display them in language switcher. Pe Short info is widget of Theme but the other is Custom html widget default WordPress plugn i think so hidden link You guide me to translate from String Translation "Did you already try to assign the widgets to "All languages" and translate it with WPML > String Translation?" but the rest of website translated with the same way widget one by one for each language. Please help me out how we can resolve this issue with Language swticher drop down. Thank you |
| June 18, 2024 at 7:37 pm #15750784 | |
|
Andreas W. WPML Supporter since 12/2018
Languages: English (English ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Hello, For further testing, could you please install your theme on the following test site? One-Click-Login: To install the theme, you can download the theme from your site, compress it into a .zip archive, and then install it in WordPress. As an alternative, you could also upload it to /wp-content/themes using the File Manager plugin. Leave me a message on this ticket once the theme is installed. Best regards |
| June 19, 2024 at 8:45 am #15754104 | |
|
Andreas W. WPML Supporter since 12/2018
Languages: English (English ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
I see your widgets use display conditions and even have their own language filters. This might be the reason why the translation is not working. I would not like to make any changes or tests on your live site. Please install your theme on the following test site: One-Click-Login: Please try to recreate the issue on this test site. Do not migrate your whole website to this test site. Leave me a message on this ticket once you are done with this task. |
| June 19, 2024 at 9:05 am #15754294 | |
|
Agathon |
I 've installed theme and then i reset database to import demo content like my website installation. Now i cannot login in admin One-Click-Login: |
| June 19, 2024 at 9:30 am #15754454 | |
|
Andreas W. WPML Supporter since 12/2018
Languages: English (English ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Please do not make any changes to the databases of our test sites. Here is a link for a new test site: Please only install the theme and leave me a comment on this ticket once it is done. |
| June 19, 2024 at 9:38 am #15754515 | |
|
Agathon |
I 've installed and activated Pe Eco energy theme in your last test website. |
| June 19, 2024 at 10:32 am #15754824 | |
|
Andreas W. WPML Supporter since 12/2018
Languages: English (English ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Additional plugins are used for the widgets: It looks as if the "PE Eco Energy" plugin is needed. Also, it looks to me as if the issue here might be related to "Pixelemu Display Widgets". Does the issue disappear if you disable this plugin? Please install the necessary plugins responsible for the widgets and drop me a comment on this ticket once you are done with this task. |
| June 19, 2024 at 10:46 am #15755008 | |
|
Agathon |
I 've installed all provided with Theme required and recommended plugins. Regards |
| June 19, 2024 at 12:03 pm #15755527 | |
|
Andreas W. WPML Supporter since 12/2018
Languages: English (English ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Please verify my widget settings on the test site. I am using one widget for both languages and translated it with String Translations and this seems to work as expected, but I needed to search some strings first at WPML > String Translation > Translate texts in admins screens. Using one widget per language shows translations on my test but leads to the unexpected result, that the widgets are displayed twice. This is why I can not recommend this method and you should report this to the theme author. Instead, please use one widget for both languages, assign the widget to both languages and translate it with WPML > String Translation. |
| June 19, 2024 at 2:26 pm #15756409 | |
|
Agathon |
Did you login as administrator in my live website to check it? The entire website is developed in that way with widgets translated in each language I 've tried also to display widget in all languages and translated in String translation hidden link and in widget area hidden link but with no sucess. Everything i 've tried cannot solve this issue with language switcher in other languages. The only difference with this page hidden link in compare with other pages is that is a hidden link, it is not displayed in menu. I don't know if that effects this issue with language switcher. Regards |