Skip Navigation

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

Problem:
The client is experiencing an issue where a page translated from English to Hungarian appears empty.
Solution:
1. We recommended ensuring that the translation is 100% complete. The client should slightly modify the original page, save it, and then navigate to the WPML translation editor to save the translation.
2. We asked the client to check for any fatal errors by enabling the debug mode. This involves modifying the

wp-config.php

file:

define('WP_DEBUG', true);

define('WP_DEBUG_DISPLAY', false);

define('WP_DEBUG_LOG', true);

This setup will log errors to a debug.log file in the /wp-content/ directory. For more details on debugging WPML, visit https://wpml.org/documentation/support/debugging-wpml/.

If these steps do not resolve the issue, or if the solution seems outdated or irrelevant to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket at WPML support forum.

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

Last updated by Andrey 6 months, 2 weeks ago.

Assisted by: Andrey.

Author Posts
May 14, 2024 at 10:12 am #15624672

richardK-49

Hello,
Tell us what you are trying to do?
Translated from original ( hidden link) to a Hungarian.
The translated page is empty:
hidden link

Is there any documentation that you are following?
https://wpml.org/documentation/translating-your-contents/
Regards,
Zsolt

May 14, 2024 at 12:49 pm #15625429

Andrey
Supporter

Languages: English (English ) Russian (Русский )

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

Thank you for contacting WPML support.

Have you completed the translation 100%? Please try to slightly modify the original page, save it, and navigate to the WPML translation editor to save the translation.

Can you explain how you created your page?

May 14, 2024 at 1:33 pm #15625582

richardK-49

You said: Have you completed the translation 100%? Please try to slightly modify the original page, save it, and navigate to the WPML translation editor to save the translation.

I did it.

You ask: Can you explain how you created your page?
- Yesterday the hungarian version was ok.
- We modified the english verions: put <br> elements into rich text editor of Brick editor
-We started a translation job and translated again
-the Hungarian page doesn't work any more.

It is a live site, your support is essential.
Thank you in advance.
Zsolt

May 14, 2024 at 8:09 pm #15626964

Andrey
Supporter

Languages: English (English ) Russian (Русский )

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

Could you please show me which elements you added in the screenshots? Also, please check if there is no fatal error in the debug.log on this page.

You can do this by adding a few lines to the site’s wp-config.php file. With error log enabled, you will see what the actual problem is.

To enable it, open your wp-config.php file and look for define(‘WP_DEBUG’, false);. Change it to:

define('WP_DEBUG', true);

// Disable display of errors and warnings

define( 'WP_DEBUG_DISPLAY', false );

In order to enable the error logging to a file on the server you need to add yet one more similar line:

define( 'WP_DEBUG_LOG', true );

In this case, the errors will be saved to a debug.log log file inside the /wp-content/directory.

https://wpml.org/documentation/support/debugging-wpml/

Let me know what you see after the debug mode has been enabled.

May 15, 2024 at 6:12 am #15627704

richardK-49

Hello,

Hello, this is the debug:

[15-May-2024 06:09:46 UTC] PHP Deprecated: Creation of dynamic property WPML_LS_Menu_Item::$current is deprecated in /home/precogno/staging.precognox.com/wp-includes/nav-menu-template.php on line 394
[15-May-2024 06:09:46 UTC] PHP Deprecated: Creation of dynamic property WPML_LS_Menu_Item::$current_item_ancestor is deprecated in /home/precogno/staging.precognox.com/wp-includes/nav-menu-template.php on line 540
[15-May-2024 06:09:46 UTC] PHP Deprecated: Creation of dynamic property WPML_LS_Menu_Item::$current_item_parent is deprecated in /home/precogno/staging.precognox.com/wp-includes/nav-menu-template.php on line 541
[15-May-2024 06:09:46 UTC] PHP Deprecated: Creation of dynamic property WPML_LS_Menu_Item::$current is deprecated in /home/precogno/staging.precognox.com/wp-includes/nav-menu-template.php on line 394
[15-May-2024 06:09:46 UTC] PHP Deprecated: Creation of dynamic property WPML_LS_Menu_Item::$current_item_ancestor is deprecated in /home/precogno/staging.precognox.com/wp-includes/nav-menu-template.php on line 540
[15-May-2024 06:09:46 UTC] PHP Deprecated: Creation of dynamic property WPML_LS_Menu_Item::$current_item_parent is deprecated in /home/precogno/staging.precognox.com/wp-includes/nav-menu-template.php on line 541
[15-May-2024 06:09:50 UTC] PHP Deprecated: Creation of dynamic property WPML_LS_Menu_Item::$current is deprecated in /home/precogno/staging.precognox.com/wp-includes/nav-menu-template.php on line 394
[15-May-2024 06:09:50 UTC] PHP Deprecated: Creation of dynamic property WPML_LS_Menu_Item::$current_item_ancestor is deprecated in /home/precogno/staging.precognox.com/wp-includes/nav-menu-template.php on line 540
[15-May-2024 06:09:50 UTC] PHP Deprecated: Creation of dynamic property WPML_LS_Menu_Item::$current_item_parent is deprecated in /home/precogno/staging.precognox.com/wp-includes/nav-menu-template.php on line 541
[15-May-2024 06:09:50 UTC] PHP Deprecated: Creation of dynamic property WPML_LS_Menu_Item::$current is deprecated in /home/precogno/staging.precognox.com/wp-includes/nav-menu-template.php on line 394
[15-May-2024 06:09:50 UTC] PHP Deprecated: Creation of dynamic property WPML_LS_Menu_Item::$current_item_ancestor is deprecated in /home/precogno/staging.precognox.com/wp-includes/nav-menu-template.php on line 540
[15-May-2024 06:09:50 UTC] PHP Deprecated: Creation of dynamic property WPML_LS_Menu_Item::$current_item_parent is deprecated in /home/precogno/staging.precognox.com/wp-includes/nav-menu-template.php on line 541
[15-May-2024 06:09:53 UTC] PHP Deprecated: Creation of dynamic property WPML_LS_Menu_Item::$current is deprecated in /home/precogno/staging.precognox.com/wp-includes/nav-menu-template.php on line 394
[15-May-2024 06:09:53 UTC] PHP Deprecated: Creation of dynamic property WPML_LS_Menu_Item::$current_item_ancestor is deprecated in /home/precogno/staging.precognox.com/wp-includes/nav-menu-template.php on line 540
[15-May-2024 06:09:53 UTC] PHP Deprecated: Creation of dynamic property WPML_LS_Menu_Item::$current_item_parent is deprecated in /home/precogno/staging.precognox.com/wp-includes/nav-menu-template.php on line 541
[15-May-2024 06:09:53 UTC] PHP Deprecated: Creation of dynamic property WPML_LS_Menu_Item::$current is deprecated in /home/precogno/staging.precognox.com/wp-includes/nav-menu-template.php on line 394
[15-May-2024 06:09:53 UTC] PHP Deprecated: Creation of dynamic property WPML_LS_Menu_Item::$current_item_ancestor is deprecated in /home/precogno/staging.precognox.com/wp-includes/nav-menu-template.php on line 540
[15-May-2024 06:09:53 UTC] PHP Deprecated: Creation of dynamic property WPML_LS_Menu_Item::$current_item_parent is deprecated in /home/precogno/staging.precognox.com/wp-includes/nav-menu-template.php on line 541

May 15, 2024 at 6:13 am #15627708

richardK-49

Hello,
I copied the live site into staging area. I can give you credentials to solve this problem quickly. Please reply asap.
One more info: The translated (Hungarian) page maybe edited in brick editor.
Zsolt

May 15, 2024 at 12:11 pm #15630248

richardK-49

Hello Andrey,
I don't want to delete the translated page, because it's a lot of work to regenerate the translation. Would you please find another solution. Why this could be happened?
Zsolt

May 15, 2024 at 1:22 pm #15630628

richardK-49

Hello, Andrey,
There is another reason why I cannot delete the translation: There are many subpages belongs to it. If I delete the page, the new parent of subpages will be the root. I'm sure that when I translate the page again, the subpages won't be subpages any longer and i have to translate all subpages again.
Am I true?
Zsolt

May 15, 2024 at 1:26 pm #15630665

Andrey
Supporter

Languages: English (English ) Russian (Русский )

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

Please show me how the page was modified to make it start showing as broken. Why do you think that the page translations need to be deleted?

I need to request temporary access (wp-admin and FTP) to your site – preferably to a test site where the problem has been replicated if possible – in order to be of better help. 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.

May 15, 2024 at 1:30 pm #15630671

richardK-49

Open a new ticket