Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 13:00 9:00 – 13:00 9:00 – 13:00 8:00 – 12:00 8:00 – 12:00 -
- 14:00 – 17:00 14:00 – 18:00 14:00 – 18:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Europe/Zagreb (GMT+02:00)

This topic contains 0 reply, has 0 voices.

Last updated by Bruno Kos 3 months, 3 weeks ago.

Assisted by: Bruno Kos.

Author Posts
March 11, 2025 at 7:57 am

phyoW

Background of the issue:
I'm using 5 languages on my site. For the default language, I use Myanmar language. I select translation options to 'Duplicate content' method on all pages.

Symptoms:
When I change data in the default language (Myanmar) and save, the second language (English) changes into Myanmar data.

Questions:
What is causing the second language to change into the default language data?
Can I make something wrong method?
Could you please advise me?

March 11, 2025 at 8:58 am
March 11, 2025 at 11:41 am #16801199

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Did you ever change the site’s default language in WPML settings? (Not just the default language for content but the actual site-wide default language setting.)

So this:
https://wpml.org/documentation/translating-your-contents/displaying-untranslated-content-on-pages-in-secondary-languages/manage-archive-listings-default-language-change/

If not, can you install https://wordpress.org/plugins/pexlechris-adminer/ to this site?

March 12, 2025 at 9:38 am #16805946

phyoW

I mean I using duplicate method to create 5 language site page. And I update data in second language (english) manually. That time 2 page are ok. And I again update data in default language (myanmar). That time the data is change into default language.

You can check hidden link that page.

Please see the attachment file for my setting.

sdg-wpml-01.png
sdg-wpml-02.png
March 12, 2025 at 12:59 pm #16807147

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

To troubleshoot this problem, I'll install the Duplicator plugin and generate packages for further debugging purposes. I'll ensure to exclude all media files to maintain a minimal package size.

You can find more information about the process here:
https://wpml.org/faq/checklist-before-opening-a-ticket-in-wpml-support/#get-help-from-support

Please confirm if this approach is acceptable to you!

March 15, 2025 at 6:35 am #16819194

phyoW

Hello,

You mean that you want to install duplicator plugin.
You can test.
I need to update all of the data in language.
Could you please advise for me? How can I do that?

March 17, 2025 at 10:15 am #16823772

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Can you do the following?

1. Edit

wp-config.php

and insert the following lines (just before the

/* That's all, stop editing! Happy publishing. */

section):

  
define( 'WP_DEBUG', true);  
define( 'WP_DEBUG_LOG', true);  
define( 'WP_DEBUG_DISPLAY', false);  

2. Open hidden link and click **"Translate independently."**

3. Locate the debug log at:

/wp-content/debug.log

.

4. Paste the latest lines here. No need to paste the entire log file—10 lines or so will do. Please censor any sensitive information.

Reference: <https://codex.wordpress.org/Debugging_in_WordPress&gt;

We also need the following:

- Perform the steps above to reproduce the issue.
- Retrieve the latest server debug logs (you can check with hosting support if unsure how to locate them).

Additionally, please try the same process under these conditions:

- With only WPML plugins activated. This will help determine if there's an interaction issue with another plugin.
- With the theme set to a WordPress default like Twenty Twenty. This will help identify if the issue is related to the theme.

There may be something preventing WPML from functioning correctly, and I’m trying to pinpoint the cause. It could even be related to database user permissions.

March 21, 2025 at 10:21 am #16843619

phyoW

Hello,

I have already did this debug
define( 'WP_DEBUG', true);
define( 'WP_DEBUG_LOG', true);
define( 'WP_DEBUG_DISPLAY', false);

But in my debug.log, there is no error log showing.

For database user permissions, what can I do that?

Could you please check for me?

March 24, 2025 at 5:12 am #16849583

phyoW

Hello,

Please see the following debug.log file :
[22-Mar-2025 07:54:31 UTC] .../builder/core.php:5382 et_builder_get_google_fonts():
An unkown error has occured while trying to retrieve the fonts from the Google Fonts API. Please ensure your Google API Key is valid and active.

[22-Mar-2025 20:18:40 UTC] PHP Fatal error: Uncaught Error: Call to undefined function get_field_object() in /var/www/shwedagonpagoda.org.mm/wp-content/themes/shwedagon-child/functions.php:67
Stack trace:
#0 /var/www/shwedagonpagoda.org.mm/wp-includes/shortcodes.php(434): custom_pagoda_search_shortcode()
#1 [internal function]: do_shortcode_tag()
#2 /var/www/shwedagonpagoda.org.mm/wp-includes/shortcodes.php(273): preg_replace_callback()
#3 /var/www/shwedagonpagoda.org.mm/wp-content/themes/shwedagon/includes/builder/class-et-builder-element.php(3114): do_shortcode()
#4 /var/www/shwedagonpagoda.org.mm/wp-includes/shortcodes.php(434): ET_Builder_Element->_render()
#5 [internal function]: do_shortcode_tag()
#6 /var/www/shwedagonpagoda.org.mm/wp-includes/shortcodes.php(273): preg_replace_callback()
#7 /var/www/shwedagonpagoda.org.mm/wp-content/themes/shwedagon/includes/builder/main-structure-elements.php(3784): do_shortcode()
#8 /var/www/shwedagonpagoda.org.mm/wp-content/themes/shwedagon/includes/builder/class-et-builder-element.php(3433): ET_Builder_Column->render()
#9 /var/www/shwedagonpagoda.org.mm/wp-includes/shortcodes.php(434): ET_Builder_Element->_render()
#10 [internal function]: do_shortcode_tag()
#11 /var/www/shwedagonpagoda.org.mm/wp-includes/shortcodes.php(273): preg_replace_callback()
#12 /var/www/shwedagonpagoda.org.mm/wp-content/themes/shwedagon/includes/builder/main-structure-elements.php(2274): do_shortcode()
#13 /var/www/shwedagonpagoda.org.mm/wp-content/themes/shwedagon/includes/builder/class-et-builder-element.php(3433): ET_Builder_Row->render()
#14 /var/www/shwedagonpagoda.org.mm/wp-includes/shortcodes.php(434): ET_Builder_Element->_render()
#15 [internal function]: do_shortcode_tag()
#16 /var/www/shwedagonpagoda.org.mm/wp-includes/shortcodes.php(273): preg_replace_callback()
#17 /var/www/shwedagonpagoda.org.mm/wp-content/themes/shwedagon/includes/builder/main-structure-elements.php(1606): do_shortcode()
#18 /var/www/shwedagonpagoda.org.mm/wp-content/themes/shwedagon/includes/builder/class-et-builder-element.php(3433): ET_Builder_Section->render()
#19 /var/www/shwedagonpagoda.org.mm/wp-includes/shortcodes.php(434): ET_Builder_Element->_render()
#20 [internal function]: do_shortcode_tag()
#21 /var/www/shwedagonpagoda.org.mm/wp-includes/shortcodes.php(273): preg_replace_callback()
#22 /var/www/shwedagonpagoda.org.mm/wp-includes/class-wp-hook.php(324): do_shortcode()
#23 /var/www/shwedagonpagoda.org.mm/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#24 /var/www/shwedagonpagoda.org.mm/wp-includes/post-template.php(256): apply_filters()
#25 /var/www/shwedagonpagoda.org.mm/wp-content/themes/shwedagon/page.php(46): the_content()
#26 /var/www/shwedagonpagoda.org.mm/wp-includes/template-loader.php(106): include('...')
#27 /var/www/shwedagonpagoda.org.mm/wp-blog-header.php(19): require_once('...')
#28 /var/www/shwedagonpagoda.org.mm/index.php(17): require('...')
#29 {main}
thrown in /var/www/shwedagonpagoda.org.mm/wp-content/themes/shwedagon-child/functions.php on line 67
[23-Mar-2025 07:15:22 UTC] PHP Warning: Undefined array key "pcat" in /var/www/shwedagonpagoda.org.mm/wp-content/themes/shwedagon-child/pagoda-result-page.php on line 15
[23-Mar-2025 07:15:22 UTC] PHP Warning: Undefined variable $fullwidth in /var/www/shwedagonpagoda.org.mm/wp-content/themes/shwedagon-child/pagoda-result-page.php on line 57
[23-Mar-2025 07:15:22 UTC] PHP Warning: Undefined variable $fullwidth in /var/www/shwedagonpagoda.org.mm/wp-content/themes/shwedagon-child/pagoda-result-page.php on line 60
[23-Mar-2025 07:15:22 UTC] PHP Warning: Undefined variable $fullwidth in /var/www/shwedagonpagoda.org.mm/wp-content/themes/shwedagon-child/pagoda-result-page.php on line 62
[23-Mar-2025 07:15:22 UTC] PHP Warning: Undefined variable $fullwidth in /var/www/shwedagonpagoda.org.mm/wp-content/themes/shwedagon-child/pagoda-result-page.php on line 57
[23-Mar-2025 07:15:22 UTC] PHP Warning: Undefined variable $fullwidth in /var/www/shwedagonpagoda.org.mm/wp-content/themes/shwedagon-child/pagoda-result-page.php on line 60
[23-Mar-2025 07:15:22 UTC] PHP Warning: Undefined variable $fullwidth in /var/www/shwedagonpagoda.org.mm/wp-content/themes/shwedagon-child/pagoda-result-page.php on line 62
[23-Mar-2025 08:06:35 UTC] .../builder/core.php:5382 et_builder_get_google_fonts():
An unkown error has occured while trying to retrieve the fonts from the Google Fonts API. Please ensure your Google API Key is valid and active.

[23-Mar-2025 10:06:05 UTC] PHP Warning: Undefined array key "pname" in /var/www/shwedagonpagoda.org.mm/wp-content/themes/shwedagon-child/pagoda-result-page.php on line 14
[23-Mar-2025 10:06:05 UTC] PHP Warning: Undefined array key "pcat" in /var/www/shwedagonpagoda.org.mm/wp-content/themes/shwedagon-child/pagoda-result-page.php on line 15
[23-Mar-2025 12:31:45 UTC] PHP Warning: Undefined array key "pname" in /var/www/shwedagonpagoda.org.mm/wp-content/themes/shwedagon-child/pagoda-result-page.php on line 14
[23-Mar-2025 12:31:45 UTC] PHP Warning: Undefined array key "pcat" in /var/www/shwedagonpagoda.org.mm/wp-content/themes/shwedagon-child/pagoda-result-page.php on line 15
[23-Mar-2025 12:36:27 UTC] PHP Warning: Undefined array key "pname" in /var/www/shwedagonpagoda.org.mm/wp-content/themes/shwedagon-child/pagoda-result-page.php on line 14
[23-Mar-2025 12:36:27 UTC] PHP Warning: Undefined array key "pcat" in /var/www/shwedagonpagoda.org.mm/wp-content/themes/shwedagon-child/pagoda-result-page.php on line 15
[23-Mar-2025 12:46:40 UTC] PHP Warning: Undefined array key "pname" in /var/www/shwedagonpagoda.org.mm/wp-content/themes/shwedagon-child/pagoda-result-page.php on line 14
[23-Mar-2025 12:46:40 UTC] PHP Warning: Undefined array key "pcat" in /var/www/shwedagonpagoda.org.mm/wp-content/themes/shwedagon-child/pagoda-result-page.php on line 15
[24-Mar-2025 04:36:52 UTC] PHP Warning: wp_update_plugins(): An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /var/www/shwedagonpagoda.org.mm/wp-includes/functions.php on line 6114
[24-Mar-2025 04:37:31 UTC] PHP Warning: wp_version_check(): An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /var/www/shwedagonpagoda.org.mm/wp-includes/functions.php on line 6114

March 24, 2025 at 8:10 am #16850000

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

To confirm, this error:

[22-Mar-2025 20:18:40 UTC] PHP Fatal error: Uncaught Error: Call to undefined function get_field_object() in /var/www/shwedagonpagoda.org.mm/wp-content/themes/shwedagon-child/functions.php:67

shows when you click "translate independently" on any of the duplicates?

If so, can you try when:

- only WPML plugins are activated, as it will tell us if there is an interaction issue with other plugin
- theme is set to a WordPress default like Twenty Twenty as it will tell us if there is an interaction issue with your theme

The error does point to the theme (shwedagon-child), so possibly something there preventing WPML from moving it from duplicate to independent translation.

The topic ‘[Closed] After changing the default language, the second language is change into default languagge’ is closed to new replies.