Skip Navigation

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

Problem:
The client experienced issues with the translation status not updating correctly after switching from a child theme to a parent theme. They suspected the issue might be related to custom PHP code added to edit the product page. After switching themes back and forth and toggling a cache plugin, the problem seemed to be resolved, but the client was unsure what specifically fixed the issue.

Solution:
1. We asked the client to confirm the specific page where the translation was not completing.
2. We requested to view the custom PHP code that the client mentioned, which could be found in the Flatsome Child theme's

functions.php

file and a

custom-shortcode.php

file. We also inquired if the issue persists when the custom PHP code is temporarily removed.
3. We pointed out that the Advanced Translation Editor error log indicated an issue with the custom code and provided a link for the client to check it: Advanced Translation Editor error log.
4. We asked for confirmation on whether removing the custom code resolved the issue with the Advanced Translation Editor.

If this solution doesn't look relevant to your situation, please open a new support ticket here.

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

Last updated by jakubP-13 1 year, 5 months ago.

Assisted by: Kor.

Author Posts
January 25, 2024 at 6:23 pm #15227797

jakubP-13

Some of the translations stay in "refreshing translation status".

I've tried some of the solutions which were suggested in similar situations reported on WPML forum, and nothing worked.

Each new translated element has the same problem.

January 25, 2024 at 8:13 pm #15228063

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Hi there,

Thanks for contacting WPML support.

Please update all WPML plugins to the latest version and see if it helps.

If the issue persits, I will need to closely examine your website. Therefore, I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.

Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.

Your upcoming reply will be treated with confidentiality and will only be visible to you and me.

✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.

January 29, 2024 at 8:15 am #15236445

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

I've checked this page hidden link that shows "update translation" and when I completed the translation, it showed the pencil icon on the translation status. This means the page is fully translation.

May I know which specific page are you having issues with completing the translation?

January 29, 2024 at 8:16 am #15236449

jakubP-13

I've noticed one thing.

As i have also a problem with a UXbuilder (visual editor from theme we are using).
I've changed our theme from the child to parent theme and after that the translation status updated itself.

So there must be a problem with custom php code i've added to edit our product page.

Right now the parent theme is activated

January 29, 2024 at 8:38 am #15236536

jakubP-13

If a change the theme back to the child theme the problem I've submitted remains.

January 29, 2024 at 9:10 am #15236723

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

I believe you've missed my response above. Anyway, could you tell me where can I see the PHP code that you're referring to? Does it work correctly when you temporarily remove that PHP code? Let me know how it goes.

January 29, 2024 at 9:27 am #15236832

jakubP-13

I've seen your message above. I think at the moment you were checking our website. I had theme changed to the "Parent theme" thats why you could not see a problem.

Now after switching back to the child theme the problem i've reported seems to be solved.

So probably switching the themes back and fourth fixed/refreshed something?
Or turning on and off cache plugin?

If you want to see the custom php code it is visible in the Flatsome Chilt theme functions.php file in wordpress theme file editor.

And one more piece of code in: custom-shortcode.php file

January 29, 2024 at 10:04 am #15237127

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

I could see the Advanced Translation Editor error log is pointing to your custom code here hidden link . Could you check on it? If the issue is already resolved, you can safely ignore this error.

January 29, 2024 at 10:13 am #15237211

jakubP-13

This is how this line looks like in functions.php

this piece of code is supposed to create a shortcode for "Product description" as i wanted to move it outside of the Product Tabs

functions php 55 line.jpg
January 29, 2024 at 10:37 am #15237378

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

Could you please confirm that if the code is removed, the Advanced Translation Editor works fine?

January 29, 2024 at 10:40 am #15237397

jakubP-13

I didn't remove the code. But everything seems to be working fine. So i will leave it like this for now. We will investigate the php code further with the theme support.

Thank you for your help Kor - i will mark My issue as resolved.

Have a nice day!
Greetings from Poland,

Daniel