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.

WordPress 6.7 has introduced a new issue that impact translations, please update WooCommerce and WPML to the latest versions before you report issues. More about this here - https://wpml.org/errata/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called/
Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 -
- 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 -

Supporter timezone: Europe/Vienna (GMT+01:00)

This topic contains 30 replies, has 2 voices.

Last updated by Bigul 3 years, 2 months ago.

Assisted by: Bigul.

Author Posts
June 30, 2021 at 6:17 pm #9098453

billL-7

When updating a post with "Duplicate uploaded media to translations" and "Duplicate featured image to translations" checked the page is hitting a 502 error after taking over 60 seconds to update and hitting the WP Engine kill script for long running processes.

The rest API is showing as disabled on the WPML support tab, but it appears to be accessible as expected by hitting rest API endpoints, but the WPML endpoints 404. hidden link

Not sure these two issues are related, but wanted to share.

July 1, 2021 at 4:49 am #9100019

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Welcome to the WPML support forum. I will do my best to help you to resolve these issues.

Please share with me the WordPress debug.log (not WPML debug information) for collecting more details on this. Refer to this page for instructions https://wpml.org/documentation/support/debugging-wpml/

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

// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
 
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
 
// Disable display of errors and warnings 
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );

// Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
define( 'SCRIPT_DEBUG', true );

In this case, the errors will be saved to a debug.log log file inside the */wp-content/* directory. Please do the steps to reproduce the bug and check you are getting any errors or warnings related to WPML in the log file.

If you can paste your debug.log to http://pastebin.com/index.php and provide me that link it would be great! (This is the cleanest way because sometimes the logs are long and create a complete mess of discussion).

--
Thanks!

Bigul

July 2, 2021 at 4:39 pm #9121513

billL-7

I checked out the error logs for any PHP errors before opening this ticket. WP Engine always maintains error logs. I just triggered the 502 error again and no new errors were generated during the process.

WP Engine was able to do disable their kill script and do a trace while the update ran and shared this image. You can see its WPML_Media_Attachments_Duplication::duplicate_post_attachments method is taking an extremely long time.

I'm wondering if some media that was attached to the post at some point is missing and causing this to error out. Is there a way to refresh the media attached to posts?

Or do you have any additional ideas?

2021-06-24_17-02-05.png
July 3, 2021 at 2:58 pm #9124777

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Thank you for the updates. I have a couple of requests for tracking this issue.

a) Please let me know the exact steps to reproduce the issue on your site

b) Please fill the private details fields after a full site backup. I would like to access the admin area of your site for further checking.

Please refer to the following links for more details about our private information sharing policies.

https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

hidden link

--
Thanks!

Bigul

July 7, 2021 at 9:04 am #9145279

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Thank you for the login information. It is working for me as expected when I tried with the following post and page on your site(both are private posts).

hidden link

hidden link

So please check and let me know your feedback. If the issue exists, please share the exact steps to reproduce the issue on your site.

--
Thanks!

Bigul

July 7, 2021 at 2:42 pm #9149675

billL-7

New and small pages work fine. Click Update on the Amenities page that has a significant amount of content and media and it 502s every time.

July 8, 2021 at 7:44 am #9153867

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Thank you for the updates. I can reproduce the issue while updating the Amenities page. The Debug.log file is not showing, so it will be great if you can check is there any error in the Server Error Log while having this issue.

I have a couple of requests. It may help to resolve the issue. Please try the following steps and check is there any difference in the result. Refer to the attached images for more details.

a) REST API is not enabled on the site now. Please enable it.

b) Most of the Image fields are set as *Copy Once*. Please set it as *Copy* and save the changes.

--
Thanks!

Bigul

2021-07-08_12-57-38.png
2021-07-08_12-56-01.png
July 12, 2021 at 3:16 pm #9179585

billL-7

I did see the REST API was showing as disabled on the site and reached out to WP Engine about that. There's nothing at the server level blocking the REST API. Though the site is using HTTP Auth user and password so I'm wondering if that is causing the REST API to show as disabled on WPML.

That said this is 1 of 12 sites that have very similar setups and those also use HTTP Auth, but the other sites do not have the issue where updating fails with duplicate media / featured image checked. And those sites also show the REST API as disabled.

As for Copy vs Copy Once the pages are translated manually after the initial creation of the page translation. We don't want the fields to be Copied each time as it can cause issues with component placement.

For example if we were to add a new component to the top of the flexible field section on the English page only it would move each component down the list so components_4_tabs_2_mobile_image would become components_5_tabs_2_mobile_image on English, but still be components_4_tabs_2_mobile_image on French. This throws off the components and the translated page breaks. Which is why Copy Once is used, so that value is only copied on the initial duplication of the translated page from English.

The ACF fields that begin with `_` are also linked to the particular field ID (e.g. field_3435wsedrsrf23" the non-underscore keys hold the actual value entered in the field.

The need for "Duplicate uploaded media to translations" is so if new media is uploaded while making edits to an English page it will be available in the translated Media Library when manually editing the translated version of the page without needing to re-upload it.

It doesn't seem like the ACF field translation value should matter in that scenario as I would think the "Duplicate uploaded media to translations" option is tied to media attached to the particular Post ID, whether it is used in an ACF field or not.

That's why I'm wondering if some data of the attachments attached to the Post has become corrupt. Is there a way to essentially force a re-scan of the post for attached media?

July 13, 2021 at 9:06 am #9183837

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Thank you for the feedback. Please check you are getting any errors in the Server Error log while having this bug. It may help us to track this issue.

Also please tries the following troubleshooting steps after a full site backup{mandatory} and make sure the issue is existing or not.

1) Go to WPML>>Support page, click on the Troubleshooting link (blue link in the middle of the page)

2) On the Troubleshooting page, please click on the following options of the *Clean up* section. Wait for confirmation of processing after each one.

- Clear the cache in WPML
- Remove ghost entries from the translation tables
- Fix element_type collation
- Set language information
- Fix WPML tables collation
- Assign translation status to duplicated content
- Fix terms count
- Fix post type assignment
- Cleanup and optimize string tables

--
Thanks!

Bigul

July 14, 2021 at 7:24 pm #9199187

billL-7

I performed all of the above and the issue still persists.

I did use the Duplicate Post plugin to duplicate that post and am actually able to update that version of the page, but the original homepage and other pages still have the update issue with the Media Duplication.

July 15, 2021 at 9:46 am #9202845

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Thank you for the updates. I hope hidden link is your staging site. Because we would like to make sure the issue is existing in minimal setup and the beta version of WPML 4.5(upcoming version). May it needs further escalation to our developers.

--
Thanks!

Bigul

July 15, 2021 at 9:46 pm #9212421

billL-7

It is a staging environment and takes daily backups. Though the site is reliant on ACF so disabling that plugin would cause issues and not really help resolve the overall issue even if it worked with ACF disabled.

July 16, 2021 at 4:40 pm #9218753

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Thank you for the updates and permission. I am continuing the testing on your staging site now, will get back to you as early as possible. Please wait.

--
Thanks!

Bigul

July 17, 2021 at 4:20 pm #9222477

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

The bug is existing with the latest version of WPML(4.4.11) and WPML Beta version. So I will consult about this with our team for an expert opinion and get back to you as early as possible. Please wait.

--
Thanks!

Bigul

July 20, 2021 at 3:30 pm #9238251

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

We are still working on this bug and get back to you as early as possible. Please wait.

--
Thanks!

Bigul