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

Last updated by sarag-6 2 months ago.

Assigned support staff: Marcos Vinicios Barreto.

Author Posts
August 8, 2019 at 3:25 pm #4364163

sarag-6

I am trying to: show translated text through a shortcode.

I expected to see: The German translation in the German page

Instead, I got: The English (default) translation in the German page.

I uploaded some screenshots of:
- How I created the shortcode
- How I use this shortcode in editor
- How I translated this text in the WPLM string translation
- How the shortcode appears in both languages (English and German)

August 8, 2019 at 6:29 pm #4365395

Marcos Vinicios Barreto
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

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

Hello,

Thank you for contacting WPML Support. I would like to request temporary access (wp-admin and FTP) to your site to take better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Our Debugging Procedures

I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.

Privacy and Security Policy

We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

**IMPORTANT**

- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: hidden link

Please, let me know if you need any additional details. Have a nice day.

August 9, 2019 at 7:17 pm #4372589

Marcos Vinicios Barreto
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

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

Hello,

Thank you for the updates. I reviewed all your code and the WordPress Dashboard settings, everything is setup properly, apparently there's no reasy why it doesn't work. Let's try to isolate it na different server environment, maybe we have some incompatibility here, please, proceed according these instructions:

  • Install the theme/plugin in a clean installation and reproduce the problem in this new installation. So we can isolate it and do some testing without the interference of server settings or other plugins
  • After this, I will check the problem in this new installation and look for a quick solution
    If I can not find a solution, I will forward the problem to our compatibility team.
  • The compatibility team will do some more testing and will contact the product author to fix the issue

I created a test website with a clean WordPress install. You can access it through this link:
hidden link - Through this link you will be automatically logged in.

Please upload the (theme/plugin) to this test install, setup it the same way as in your website (using the same options) and create some dummy content to reproduce the issue. Please note that we only need the (theme/plugin) and the related functionality, you don't need to setup a entire website or clone your existing site. The fewer plugins the better.

After that, please send us clear steps on how to see/reproduce the issue on this test install. We will run some tests.

Please, let me know when you are ready, thank you for your collaboration, have a nice day.

August 12, 2019 at 3:37 pm #4381939

sarag-6

I was doing some test in my server:
- I installed a clean WP.
- I installed the same theme than my production web.
- I installed WPML
- I tried string translations and it works.
- I dump a copy of the production db to the test version.
- string translations stop working.

With this in mind, I think something is doing a messy with some IDs in db.
I still had not enough knowledge about how you use IDs to join and show translations, but i think i'm in the right path.

August 12, 2019 at 6:21 pm #4383055

Marcos Vinicios Barreto
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

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

Hello,

Thank you for the updates. In this case I recommend you to compare the settings and plugins of your test and production website in order to see if there's any third party plugin interfering in your string translation, also I recommend you to check the 'Recreate ST Cache' button from your WordPess Dashboard > WPML > Support troubleshooting settings. Please, let me know the results, have a nice day.

August 13, 2019 at 8:21 am #4385825

sarag-6

The Recreate ST Cache button was the real thing.
I don't know what this button really do, but it worked like a charm.

I tried in test and worked, then I tried in production without change any plugin or configuration and worked too.
Thanks!