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

Last updated by Nicolas V. 1 year, 10 months ago.

Assisted by: Nicolas V..

Author Posts
February 14, 2023 at 4:08 pm #13032815

miguel-manuelM

I have encountered several issues in a client's site after updating the plugins and theme (edumodo):

1) The buttons in the grid course shortcode are empty in translations. Please find attached a screenshot.
2) What is really concerning is that when I update a translation the content starts to show several untranslated content starts showing and I have no clue why. Please find attached two more screenshots, the first one shows the admin panel where the translated content is saved (if the page is refreshed the admin panel still shows the translated content properly). However, as the second screenshot shows, the content is displayed in Spanish (the original language) in the front-end.
3) This issue does not only happen with learndash content but other pages too, the homepage is missing several paragraphs after updating the translation.

I´m sorry I do not provide more information, I did not develop the page so I'm not sure if it had custom code anywhere.

Right now it just feels like everytime any translation is modified in this site it does not work properly. Any ideas?

translation-of-course.PNG
course-grid.PNG
course-content-after-translation.PNG
February 15, 2023 at 3:32 pm #13042043

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hello,

Welcome to the WPML support forum. My name is Nicolas and I will be happy to help you today.
Let's start by meeting WPML's minimum requirements as it could impact your translations. I've noticed your website has a low PHP memory allocation (40M). The minimum requirements for WPML is 128M but we recommend 256M:

Access your server via FTP and open wp-config.php (in your WordPress root directory).

Insert those lines just before /* That's all, stop editing! Happy blogging. */

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

More info: https://wpml.org/home/minimum-requirements/

---

Once the PHP memory upgraded, please make a small edit in the original page (like adding a space at the end of a paragraph). It should be enough to trigger an "update needed" on the translation. Then enter the translation and check if some segments are missing translations.

Other points to take into consideration:
1. I see that you have Advanced Custom Fields but you don't have our add-on Advanced Custom Fields Multilingual. That's a bridge add-on to make WPML and ACF compatible. So some issues could come from here.
You can download all our plugins directly from your WPML account.
- Go to https://wpml.org/account/downloads/
- Click on "Download WPML manually" to see all plugins and download them
- In your WP dashboard, go to "Plugins > Add new" and use the button at the top of your screen to upload the .zip file

2. You use Elementor which is compatible with WPML but also some Elementor add-ons such as LearnDash LMS - Elementor. It could be that Elementor widgets from this add-on are not registered yet to translation. I tried to visit your visit to see if I could detect from which widget the buttons were coming but it's password protected.
How to register widgets: https://wpml.org/documentation/support/language-configuration-files/how-to-register-page-builder-widgets-for-translation/

3. You have Loco Translate installed which is another plugin to translate. Having two plugins with the same features can cause some conflicts.

Nico

February 15, 2023 at 4:29 pm #13042277

miguel-manuelM

Hello,
I have upgraded the memory limit, installed the plugin for ACF fields, and disabled elementor plugins (that required Elementor Pro so they should not been activated in the first place). Additionally, I have deactivated Loco too.

I have updated the HomePage but it stills does not show every field and the course content is still displayed in Spanish.

I could grant you access if you need it, how should I proceed? Is there a way I could send you the credentials?

February 16, 2023 at 11:45 am #13048345

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hello,

Sure, that way I can see which Elementor widget is used.
Please provide me with a temporary admin access (wp-admin). I will activate a private field for your next answer where you can provide that information safely (this field is only visible by you and the support team). Don't share your own admin account, create a new one that you will delete when we finish troubleshooting.

IMPORTANT: Before we proceed, please backup your site and database.

Also, please add links to the specific pages from your screenshots so I can find them.

Nico

February 16, 2023 at 8:32 pm #13052581

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hello,

Thanks for the access.

I had a look and found which php file is used. It's from the plugin "LearnDash LMS - Course Grid".

learndash-course-grid/templates/skins/legacy-v1/item.php

<div class="ld_course_grid_button"><a class="btn btn-primary" role="button" href="<?php echo esc_url( $button_link ); ?>" rel="bookmark"><?php echo esc_attr( $button_text ); ?></a></div>

Where the variable $button_text is coming from earndash-course-grid/includes/functions.php

If I change:

<?php echo esc_attr( $button_text ); ?>

to:

<?php echo esc_attr__( 'See More', 'learndash-course-grid' ); ?>

It works perfectly. It will display the translations from "WPML > String Translation".

So I'm not sure if it's a plugin issue or if it's because you're translating some strings in a different way in your theme functions.php or even in "Fragmentos de código" (see an example in screenshot).

My recommendation would be to review your code from functions.php and maybe contact the plugin author.
Anyway, if you decide to use my workaround remember that you would have to edit the file every time you update this plugin.

Nico

screenshot-2023.02.16-15_28_26.png
February 17, 2023 at 8:44 am #13055279
miguel-manuelM

Oh! thanks for the assistance!, it would have taken me days to reach that conclusion!

I have a question though, the content of several fields appear in the translation editor, but they are not displayed in the front-end in English, e.g. hidden link, or in the Homepage hidden link. Why does this happen?

New threads created by Nicolas V. and linked to this one are listed below:

https://wpml.org/forums/topic/split-several-issues-with-site-after-update/

February 18, 2023 at 3:08 pm #13061947

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hello,

I'm glad I could help.

As the original issue is resolved and since we limit one issue per ticket, I have opened a new ticket for your additional question. Let's continue our conversation on that new ticket: https://wpml.org/forums/topic/split-several-issues-with-site-after-update/

Keeping one issue by forum threat helps to keep the forum clean and organized, it will also help other users with similar problems to find solutions when searching the forum. Thanks for your understanding.

Nico