We have just released WPML 4.3.3. Before reporting issues please make sure to update - this version resolves all known issues with the major WPML 4.3 release

Hi, Amit here, I am the WPML Support Manager, our current ticket queue is high, update your WPML plugins and make sure you meet the minimal requirements for running WPML before reporting an issue please - many tickets are resolved doing that

Please look at our updated list of Known Issues and you can also use our support search to find helpful information and of course review our documentation before opening a ticket.

If you do need to open a ticket please make sure to provide us with all the needed information as described in this page

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 thread is resolved. Here is a description of the problem and solution.

Problem: I am trying to synchronise German and Polish version. Hero content and Portfolio cannot be synchronised between these two languages. I get either the German version on the Polish version of the site or the opposite.

Solution:Th cause of the issue is that the theme uses a transient to retrieve the Hero content. WPML can't translate it. But the theme checks if the transient exists, and if it does not uses the theme options, which are translated, and retrieves the content again.

So, as workaround, add this in functions.php: if (class_exists('sitepress')) { add_action( 'decree_before_content', function () {delete_transient( 'decree_hero_content' );}, 29 ); //add a line for each transient }

Relevant Documentation:

This topic contains 34 replies, has 2 voices.

Last updated by Carlos Rojas 1 month, 3 weeks ago.

Assigned support staff: Carlos Rojas.

Author Posts
September 2, 2019 at 9:57 am #4495937

pawelZ-11

I do not know what you mean by "fixed the element that you highlighted ...". Nothing has changed. I am attaching the same printscreen ones more.

"Immaterialgüterrecht" and below also e.g. "Gerichtsstreitigkeiten" is in German on the Polish site. The German site is all German.

September 2, 2019 at 12:08 pm #4496753

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

Hi,

This is strange, as I saw the language correctly when I wrote my previous message. Also, I now see all in Polish (including the German version).

I would like to ask your authorization to update all outdated plugins and themes in apply other troubleshooting steps.

Regards,
Carlos

September 3, 2019 at 9:32 am #4502799

pawelZ-11

o.k. do what you think is proper! I assume you are an expert. This is strange indeed as e.g. now we have the Polish version on the Polish site and the German site is mixed up (pls. see the attachment).

Anyway, Deccree Pro declares compatibility with WPML so there must be some mistake that can be detected. If it is not easy for you than it is certailny impossible for me.

September 3, 2019 at 11:27 am #4503995

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

Hi there,

I would like to ask your authorization to update all outdated plugins and themes in apply other troubleshooting steps.

Note: Before authorize me I kindly ask you to create a full backup of the site for security reasons.

Regards,
Carlos

September 6, 2019 at 1:15 pm #4525441

pawelZ-11

You are welcome! You are an expert. I've made the beckup earlier during our conversation.

September 6, 2019 at 4:08 pm #4526633

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

Hi,
Thank you very much for your authorization.

I updated all plugins and themes and ran several troubleshooting steps. I then created a test site, installed the theme and the issue persists, which means that we are facing a compatibility issue.

I have escalated this ticket to our compatibility team and our compatibility specialists will take a deeper look at the issue and try to find a solution.

I would like to ask you to get in touch with the authors of the theme and let them know about this issue. Also it would be good if you could share some contact info of the authors so our compatibility team can get in touch with them if necessary.

Regards,
Carlos

September 9, 2019 at 9:53 am #4535619

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

Hi,

Th cause of the issue is that the theme uses a transient to retrieve the Hero content. WPML can't translate it. But the theme checks if the transient exists, and if it does not uses the theme options, which are translated, and retrieves the content again.

So, as workaround, add this in functions.php:

if (class_exists('sitepress')) {
    add_action( 'decree_before_content', function () {delete_transient( 'decree_hero_content' );}, 29 );
}

I applied this solution the test site already and you can see it working here: hidden link

Could you confirm that the issue is solved?
Regards,
Carlos

September 9, 2019 at 2:36 pm #4538061

pawelZ-11

Pls. apply it to my page. I cannot confirm it on the basis of the test page as it is all English anyway.

September 9, 2019 at 3:42 pm #4538719

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

Hi,

I applied the changes to hidden link
Now you can see that the issue disappeared from the hero section.

Regards,
Carlos

September 10, 2019 at 5:43 pm #4547827

pawelZ-11

Yes, I can see and I am happy about it because we are going in the right direction. However, the German content is still all over the Polish site (pls. see the attachment). Moreover, I do not understand how is it possible that the theme itselfe and your software ought to be compatible while you have to give yourself so much trouble solving the problem (?) Are there any additional requirement as to the FTP / SSH / subdomains / multidomains? Pls try to solve the problem all over the page as the Hero content was only one of the places with problems. You can always verify if the given word is German or Polish for example here: hidden link .

September 10, 2019 at 11:30 pm #4549151

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

Hi,

To translate the remaining elements of the homepage you need to follow the steps described in this link: https://wpml.org/documentation/getting-started-guide/string-translation/

Regarding your question about the theme compatibility, if the theme used is coded according to this guidelines: https://wpml.org/documentation/support/achieving-wpml-compatibility-for-your-themes-and-plugins/
Also, we have a Go Global Program designed specifically for authors to achieve full compatibility with our WPML (https://wpml.org/documentation/theme-compatibility/go-global-program/) and I encourage you to invite the theme's authors to join it.

Regards,
Carlos

September 11, 2019 at 10:17 am #4552455

pawelZ-11

I've already done it before I contacted the support (I mean - string translation). That is exactly the problem, that I bought the WPML products, followed the guidelines and the pages are not translated properly. The theme itself (decree pro) advertises WPML product and declares its compatibility so that it should not be the issue. Generally all my translation, incl. string translation of the elements such as HERO were from Polish to German. Now I have the German words at the POLISH page. It means that they certainly exist already in both languages in the code BUT WPML string translation or something else within WPML products des not work properly. Pls. help!

September 11, 2019 at 8:57 pm #4556489

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

Hi there,

As I don't speak Polish nor German I will need you to share some screenshots and highlights the parts that aren't translated and the steps to edit this content. This way I will be able to work faster in finding a solution.

Note: Some themes and plugins advertise that they are fully compatible with WPML but you can find our official lists of compatible plugins and themes in this link:
- https://wpml.org/documentation/theme-compatibility/
- https://wpml.org/documentation/plugins-compatibility/

The themes and plugins that appear in those lists have been validated by our compatibility team.

Regards,
Carlos

September 13, 2019 at 11:31 am #4567999

pawelZ-11

You are welcome! You can always count on my cooperation as there is a lot of work invested in the WPML translations on my site. The list to the themes that are compatible was not a step in the buying and paying proces and therefore it is not a part of the description of your product. This is the first time WPML gives me this piece of information. In the attachment you can see PL content on the GE site. Now the Polish site is all Polish. After clicking on the German content on the Polish site you actually are moved to the German content.

September 13, 2019 at 11:33 am #4568029

pawelZ-11

It should be "After clicking on the Polish content on the German site you actually are moved to the Polish content". Sorry!