Cornerstone overiding Primary translation for WPML not resolved

Hello There

Last time also we have posted this issue but as we haven’t setup the staging we are unable to provide you credentials.

Now as we have staging server you can login to admin with attached credentials in securenote:

Our Cornerstone with WPML plugin for language translation, i have 2 translation primary language is english and secondary translation is in arabic. cornerstone is working fine for english version but as i am opening arabic translation page in cornerstone it is overriding all arabic to english . And i have another website which has same version of cornerstone and wpml plugin there it is working fine with translation.
I have also tried to resolving it by following this url: https://wpml.org/theme/x/2, but still it is doing same.
Can you please help in this ASAP.

Thanks,
Syed

Hi Syed,

I’ve checked your website and I couldn’t replicate this issue, could you please check this screencast and let me know if I’m missing something?

Thanks.

Hi Alaa,

I able to replicate the issue, you can replicate this issue on our homepage.

Check with below screencast: https://screencast.com/t/o4Ja7Sx1q

Thanks,
Syed

Hi Syed,

I can reproduce this issue now on the homepage, I wonder if you run a plugin conflict test? since this is a staging server, could you please disable all other installed plugins except Cornerstone and WPML then recheck this issue?

Keep us updated,
Thanks.

Hi Alaa,

I have disabled all the plugins and tried it, but still issue exist.

You can check the screencast (https://screencast.com/t/y6l7vKL1l78)

Thanks,
Syed

Hey Syed,

Please try switching to the parent theme and if it still does not help, please give us FTP access also.

Thanks.

Hi Christian,

I tried it by switching parent theme but still this doesn’t work you can also check this in screencast(https://www.screencast.com/t/62ZWkkJ4Tel)

You can find FTP credentials below in secure notes.

Thanks,
Syed

I’ll just pop in here to say that I am monitoring this thread as I have the exact same problem. I will create a new Topic if I find it necessary.

Hi Syed,

I have investigated this issue in details and I don’t think this could be a bug, here you are my reasons:

  • I’ve downloaded the same version of WPML plugin you have to my locahost, then deactivated all other plugins and I created a testing homepage in English & Arabic, then I got the builder working for both versions correctly, I managed to switch between both of them just fine.

  • Then on your site, I did the following:

  1. I’ve created a new page in English called “Test – home – en” with only one element with text in English.
  2. Then I duplicated this page as in this screenshot:

  • Then in the Arabic version, I modified the heading element to be in Arabic.

  • After that I switched the homepage to be the test page I created “Test – home – en”.

  • And finally, I managed to switch between both version from the builder.

  • The pages are still there on your staging server so you can double check that.

My thoughts and suggestions:

  • This issue could be related to only your current homepage, to narrow down this issue, try to export a template from this page and import it to a new page and test if you encountered the same issue or not.

  • Try creating two new pages with the method I described above exactly, then either import the template from your already created page or build a new content.

  • If you decided to build new content with the same element, try to build section by section and recheck this issue, perhaps one section content is the culprit here.

Keep us updated,
Thanks.

Hi Alaa,

If we creating a new content than themex is working fine with translation but for existing content where we are facing issues and we can to debug each page and try to fix it as we have lot of content, can you please provide us some solution where we can get our old data working with the themex.

Find my comments on your thoughts and can you please provide us a solution so we can resolve this asap.

This issue could be related to only your current homepage, to narrow down this issue, try to export a template from this page and import it to a new page and test if you encountered the same issue or not.: No its not only for home page this issue is with other pages too like (http://staging.thebeach.ae/direction/, http://staging.thebeach.ae/ar/store-locator/) etc…

Try creating two new pages with the method I described above exactly, then either import the template from your already created page or build a new content.: Tried to import but its not importing the arabic as it should be and building new content will take too much longer time for each page.

If you decided to build new content with the same element, try to build section by section and recheck this issue, perhaps one section content is the culprit here.: For one page may be we can do it but there are more than one page we can debug it for all pages.

Thank,
Syed

Hi @Selina,

This looks like the caching, especially the preview part. I can confirm this by comparing the source code on both English and Arabic page within the builder. The English page has page ID of 142 while the Arabic page has page ID of 1105. The header and footer correctly display the language since it’s not being affected by the preview which is served through AJAX requests, is there a way we could disable your Managed Wordpress caching? It’s on staging, there should be no caching.

And do you still have the copy of your site where your existing contents are still working? Maybe we could use that and compare it. I couldn’t replicate these issues on my own installation. I can translate it well and edit in the builder. I also checked your WPML settings and there is no redirection, and the ID changes show that they different pages, but the preview shows the same cache of the main page.

Thanks!

I am opening the new thread regarding this problem, so I can post about the same issue with secure notes. I do the change on the native language, and the translation gets overwritten by that change. So the translated language loses its content and it gets replaced by the native language. This happens on all my sites, that previously worked normally.

Hello Misho,

Please do. We will be responding your new thread shortly.

Thanks.

Hi Rad,

See my comments below, and hope you will resolve it asap.

This looks like the caching, especially the preview part. I can confirm this by comparing the source code on both English and Arabic page within the builder. The English page has page ID of 142 while the Arabic page has page ID of 1105. The header and footer correctly display the language since it’s not being affected by the preview which is served through AJAX requests, is there a way we could disable your Managed Wordpress caching? It’s on staging, there should be no caching. I have disabled the godaddy cache and magento cache, but still able to reproduce the issue. You can check it now as i have disabled all caches.

And do you still have the copy of your site where your existing contents are still working? Maybe we could use that and compare it. I couldn’t replicate these issues on my own installation. I can translate it well and edit in the builder. I also checked your WPML settings and there is no redirection, and the ID changes show that they different pages, but the preview shows the same cache of the main page. And no we doesn’t have the copy.

Thanks,
Syed

Hi Syed,

I tested the case and I could not find the reason why your old content is doing this behavior. Unfortunately it is not possible for us to find the reason without having a working version at hand to see what is the difference.

I’m afraid you will need to do the steps @alaa mentioned for all pages to resolve the issue.

Please consider that this is something related to the old content that you have and we can not recreate the same issue in our installation.

Thank you for your understanding.

Hi Christopher,

We cant provide you working version because it was working and suddenly it stopped and it did happened to all of our website.
The problem for us to follow the steps what @Alaa mentioned is, we have to do this on all of our website that are more than 7 . It would very helpful if you can help us.

Thanks,
Syed

Hi @Selina,

I deactivated all the plugins but couldn’t find what’s causing this. But it could be due to old data or settings which is affecting the current setup. Perhaps, the solution would be restoring the site to when it still working then export them as the templates to make sure the faulty configuration is not carried. Then re-import it to the updated copy overwriting the existing contents. Is that possible?

Thanks!

Hi @Rad,

Sorry to say you, that is not possible as we don’t know when it happened and we don’t have that much old backup.

Thanks,
Syed

Hi @Selina,

In that case, there are no other options but to re-do it. I can continue checking but I can’t promise any fix since configurations are internal, obscured and serialized. Newly created pages work okay, I also tried this on my existing installation with pre-added pages for WPML.

This was also added to our issue tracker so we could further check it. But you may go ahead and re-do some of the pages.

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.