Skip to content Skip to sidebar

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

Problem:
The client is experiencing an issue where saving a page in Oxygen Builder on the main English domain (.com) causes the content on the translated Swedish page on a separate domain (.se) to be erased. This problem seems to be related to the WordPress Address (URL) configuration and occurs across multiple pages, not just a specific one.
Solution:
1. We confirmed that the issue should not occur if the pages are translated separately using the WordPress editor, as each translation should be a separate page.
2. We identified that the custom fields

ct_builder_json

and

ct_builder_shortcodes

might not be working correctly on the translated pages.
3. We suggested copying the content of these fields from the English to the Swedish page to fix the issue on a specific page ('bradhantering').
4. As an alternative, we suggested deleting the translation page, duplicating it from the original, and re-translating to ensure the correct field structure.
If this solution does not seem relevant to your situation, please open a new support ticket with us.

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

Last updated by Long Nguyen 1 year, 6 months ago.

Assisted by: Long Nguyen.

Author Posts
January 10, 2024 at 9:29 pm #15171542

jonniN

So, I have oxygen and wpml installed, earlier you've encounted oxygen shortcodes; oxygen are now using json instead.

I use different domains for different languages. So two domains, the main language is english tld.com and the secondary language is swedish tld.se

When I hit the save button at any english webpage in oxygenbuilder (e.g. frontpage) it will erase the content from the translated swedish frontpage.

My work-around currently is to save the JSON of the swedish page before updating the english page.

I've noticed that the WordPress Address (URL) at /wp-admin/options-general.php

is different from time to time. It seems that the system works well if the wordpress address URL is showing the same for both languages instead of different
Example:
English version of the options-general page .com
Swedish version of the options-general page .com

instead of
.com
.se

I translate with the classical translation system and I do it separately !

January 11, 2024 at 6:46 am #15172289

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Jonni,

Thank you for contacting WPML support, I'd be happy to help you with this issue.

According to the documentation https://wpml.org/plugin/oxygen/
you should translate the page manually with the WordPress editor.

If it still doesn't help, please share some screenshots when you edit the page in English language (full screen).

Look forward to your reply.
Thanks

January 11, 2024 at 11:34 am #15173808

jonniN

Are you saying that I can't use the oxygen builder to make adjustments? Because that used to work before!

I might need to discuss this with the oxygen team... But it could be a good idea to keep this wpml support ticket open so we have some sort of transcript of the problem and some potential fixes!

January 12, 2024 at 2:28 am #15177112

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Are you saying that I can't use the oxygen builder to make adjustments?

No, I mean you need to use the WordPress editor to make changes to the translation page. Like you translate a page manually. Please follow the documentation
https://wpml.org/documentation/translating-your-contents/using-different-translation-editors-for-different-pages/

If it does not help, I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated. Your next reply is set to private to share the info.

❌ IMPORTANT: Please backup your database and website before proceeding ❌
You can use this plugin to create the backup: https://wordpress.org/plugins/duplicator/
✙ I would need your permission to de-activate and re-activate Plugins and the Theme to change configurations on the site if needed. This is also a reason the backup is critical.

Look forward to your reply.
Thanks

Edit Post “Test new post” ‹ WPML Testing — WordPress 2024-01-12 09-26-58.png
January 14, 2024 at 7:27 pm #15182635

jonniN

For some reason that particular page works... I did however make an update on the Boardsorting and the issue was replicated right away!

So you can see the issue on the swedish boardsorting page, and you can try to replicate the issue on your own at the sawline page if you want (I'm quite certain the issue will be replicated on that page aswell)

Also, please don't upload photos showing the brand of the website here, the customer doesn't like that 🙂

January 15, 2024 at 3:05 pm #15185916

jonniN

Yes, so, now that you've done that, if you try to edit the swedish versions of those pages you will see that there's nothing there, they are totally blank and have to be remade! The front end still show properly, but the backend (oxygenbuilder) is blank.

PS: You still kept the name of the brand in your last post! Sorry to nag about that, but they don't want their name showing in the "wrong" places. I really appreciate the help 🙂

January 16, 2024 at 9:51 am #15188626

jonniN

This is so weird! Please check the /bradhantering/ page to understand the issue... The page exist on the front end, but the backend json code has been removed (and is restoreable on a revision)

For some reason, when You edit pages, it seems to work. Maybe it's because you access the site properly and haven't clicked around on it? Maybe the issue occurs if you try to log in at the .se domain instead?

January 16, 2024 at 10:41 am #15189031

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

It looks like a specific issue with the page "bradhantering" only. The custom field content "ct_builder_json" and "ct_builder_shortcodes" of the translation page "bradhantering" is not working correctly. I've copied the field content of the page from English to Swedish to fix the issue.
Now you can edit the page in Swedish and re-translate the content as well.

Look forward to your reply.
Thanks

January 16, 2024 at 1:51 pm #15190345

jonniN

The thing is, this problem is not a one-time thing, it has happened several time on all pages... The big question is why the english page affects the swedish page? Should they not be totally seperate?

I can assure you that the problem is not on a specific page. I've just had bad luck with showing the problem to you.

At one point, I adjusted about 4-5 english pages, and saw that the swedish pages had nothing in the oxygen builder. The JSON simply became invalid after me adjusting the english versions...

January 17, 2024 at 1:24 pm #15195110

jonniN

Okey, I'm closing this thread then and will investigate further!

Will start of with a clean wordpress installation and hope that it helps!