Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
Content from custom code not showing as translated in second language
Solution:
1- Install WP forms multilingual
2- Manually link the Two forms (Original and translation) with each other

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: 

This topic contains 24 replies, has 2 voices.

Last updated by akqaF 1 year, 11 months ago.

Assisted by: Ilyes.

Author Posts
June 26, 2023 at 10:28 am #13894535

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Hello again,

I'm sorry to hear that it didn't fix it,

Since it worked with the minimal environment (sandbox), I could hardly find a cause for this without having a closer look from your admin site.

I'm aware that you cannot share the access, that is why it is worth trying the following first:

Note: Please make sure to save a backup of your site before doing these changes.

1- Update WPML plugins
We recently published new updates for our plugins WPML, String translation... It could not necessarily fix the issue, but this could reset WPML tables and help to eliminate one probable cause of this.

2- Minimal Environment
This could also indicate that one plugin or your theme is conflicting with WPML, which could be tested by temporarely disabling your Theme and plugins and retest this theory in a minimal environment (simulate the same Sandbox Environment)

3- Recreate another form under a new page

Along with point 2, and on a new page: see if creating a whole new simple form (similar to the one you made under the sandbox) recreates the issue.

4- Run troubleshooting options again
Deleting WPML cache and synchronizing your forms could fix this, try this last.
Go to WPML > Support > Troubleshooting
Delete WPML Cache and select forms for synchronization.

If any of these options helped, I would really appreciate it if we could at least have access to a staging environment or a copy of the site that we could run locally.

I will open a private reply for your next reply in case you are able to share it.

Please let me know 🙂

June 27, 2023 at 5:40 am #13899223

akqaF

Hi Team,
As informed earlier, we can't share the files, admin creds. Could you please find a way to solve our issue, we are struggling with this for a long time. I have created the same scenario in your sandbox environment, you have responded that installation of the plugin "Contact Form 7 Multilingual" will solve the issue but not worked. I believe there are some settings or code alteration in your sandbox to work that form. Could you please share the same scenarios, how you have solved the issue on your-end will easily find a solution for this. or if possible can schedule teams meeting and look our environment and settings. I hope you would understand the seriousness of the situation. Please help us as soon as possible.

June 27, 2023 at 3:53 pm #13904635

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Hello,

We truly understand the severity of the situation,

Here is a step by step of what I did to solve the issue : hidden link

However, our hands are really tied as we cannot do an effective comparison, and we cannot see anything wrong with the code nor a difference in configuration (referring to the Debug Information you previously shared).

The only thing that really could help is to test the points 2,3 and 4 of my previous reply. Please confirm that this was done.

Also, I will leave a comment to our developers to re-check your code and see if they missed anything.

June 29, 2023 at 9:09 am #13916019

akqaF

Hi Team,
None of the options worked for us. I have created the environment for you to share. If you open a private message i can share the admin creds. Please be noted that it's strictly confidential. Please don't share for unauthorized access.
url is hidden link

Please check and let me know the solution for this so that i can apply the same on live environment.

Thanks

June 30, 2023 at 5:02 am #13920833

akqaF

Please update me as soon as possible. It's been quite urgent and need to figure it out at the earliest.
Please open a private message so that I can share the admin creds of the system so that you can easily verify and figure it out.

June 30, 2023 at 10:07 am #13922695

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Your next reply is private.

July 3, 2023 at 2:14 pm #13933701

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Hello,

Thank again for the access and for your patience,

Several things got the attention of our developers that some might be related to this issue:

- The database supports uppercase characters for tables names - this is prone to issues.
- Pressidium drop-ins for mu-plugins
- Possible cache issues with CloudFlare
- Cron is disabled – not sure if it is properly set-up

=> We think that we have to get a database and test again locally, otherwise on the server perhaps it is best to test in minimal because there are some security plugins.

On a local environment, re-saving the translation fixed the issue, but this obviously is not working on your site.

I suggest to check with the minimal setup, turn off all caching – including the one from pressidium and all security plugins and test again.

Along with these changes, Please let me know if it is possible to have a copy of this staging site, in that case, I will open a private reply for you to share it.

We appreciate your cooperation and help to solve this issue! 🙂

Best,

July 4, 2023 at 7:27 am #13937449

akqaF

it's very disappointed to say that we have not expected these kind of replies from WPML. even if it's cache issue, how it will work on a live environment. Could you please ask your developer team find the issue. We have already shared environment for you to debug and test. We are not able provide you the database as we have not authorized to do so. This is a serious issue of WPML to not providing the translation in wordpress filter function. You can see the translation for the same when we try to output the same string in arabic environment but not in filter function. Please let me know if you can figure out the issue from your-end. we have purchased and used WPML on multiple sites. if the services is like this, we need to re-think of it. Please escalate the issue and get a feasible solution.

July 5, 2023 at 3:00 pm #13951919

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Hello again,

We apologize for the inconvenience that this may have caused,

We found a fix for your issue, please refer to this video for a brief explanation : hidden link

All forms are in English (Language configuration), none of them are in Arabic and consequently the original forms aren't connected to translations.

In other words, we are overriding the form locale (the translation that you did) with the locale from language details (which is assigned as English), which is always English.

Initially, when we installed WPForms on our servers, WPML automatically detected the correct language, which fixed the issue.

But on your server, It didn't fix it this way. So you only have to manually edit the language of the form to match the language of the translated String (ARABIC)

I hope this made things clearer,

Have a good day!