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
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Tagged: 

This topic contains 7 replies, has 2 voices.

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

Assisted by: Long Nguyen.

Author Posts
June 23, 2023 at 1:00 pm

Chainalysis

I'm having a problem where I can't edit translations. Getting an error on hidden link:

We're sorry, but something went wrong.
If you are the application owner check the logs for more information....

June 23, 2023 at 3:52 pm
June 26, 2023 at 3:29 am #13891825

Long Nguyen
Supporter

Languages: English (English )

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

Hi Joe,

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

I've tested to edit the translation homepage from frontend but did not see that issue. Here is the screen record
hidden link

It could be a temporary issue with ATE at that time. I also recommend completing the translation (until you see the pen icon) before making changes to the content in the English language and update the translation.

Look forward to your reply.
Thanks

June 26, 2023 at 8:25 pm #13898117

Chainalysis

Hi Long, thank you for trying this and sharing that video.

I tried again today, and it seems that sometimes the ATE sync works when I use "Edit Translation", and most of the time, it does not.

And there is almost always an error message, stating that "something went wrong", regardless of which browser I use.

hidden link (4m 12s)

In this video, you'll see that I was able to recreate the ATE "We're sorry, but something went wrong." error in two browsers.

And the first attempt to edit the translation seemed to work but the second attempt did not.

June 27, 2023 at 3:32 am #13898919

Long Nguyen
Supporter

Languages: English (English )

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

Hi,

Now I also experience this issue with the shared account. I'm asking our 2nd tier support about this and update you here when I have something to share.

Meanwhile, please edit the translation from the admin area to prevent this issue.

Thanks.

June 27, 2023 at 8:16 pm #13906091

Chainalysis

Thank you, Long.

June 28, 2023 at 1:29 am #13906545

Long Nguyen
Supporter

Languages: English (English )

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

Hi,

This issue has been escalated to our development team and I will update you here once I have any information. Meanwhile, there are two workarounds to fix this issue:

1. Edit the translation from the admin area.

2. Or edit the file wp-content\plugins\sitepress-multilingual-cms\classes\filters\class-wpml-tm-translation-status-display.php, around line 430-434
- Replace

if ( ! isset( $_SERVER['HTTP_REFERER'] ) ) {
	return null;
}

$url = remove_query_arg( $args, $_SERVER['HTTP_REFERER'] );

with

$url = remove_query_arg( $args, admin_url('admin.php?page='. WPML_TM_FOLDER . '/menu/translations-queue.php') );

This will redirect the users to the translation queue after completing the translation.
❌ IMPORTANT: Please backup your database and website before proceeding ❌

Look forward to your reply.
Thanks

June 28, 2023 at 7:38 pm #13913409

Chainalysis

Thank you, Long. We'll use the translation management tools / admin area for now as a workaround, as you suggested.

I won't apply the

remove_query_arg

code changes unless you tell me that I should, because even if we fix the redirect, the ATE changes fail to sync when we edit translations directly via "Edit Translation".

Thank you for escalating this.

June 29, 2023 at 1:22 am #13914477

Long Nguyen
Supporter

Languages: English (English )

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

Hi,

I will let you know when I have any information.

Thanks.