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
- - 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00
- - - - - - -

Supporter timezone: America/Lima (GMT-05:00)

This topic contains 10 replies, has 2 voices.

Last updated by Andreas W. 1 year ago.

Assisted by: Andreas W..

Author Posts
May 24, 2024 at 12:14 pm #15667656

mateusz-sitarzM

Background of the issue:
I am experiencing an issue with the ACF Gutenberg block when using the auto-translate feature. I have a text field within a block that is repeated multiple times on the same page. Despite setting the text field to 'translate', one instance of the block is not being translated correctly.

Symptoms:
All instances of the ACF block are translated except for one, even though they contain different content but are the same block type.

Questions:
Why is one instance of the ACF block not translating when all others are?
Is there a specific setting or error that might be causing this issue with the auto-translate feature?

May 25, 2024 at 4:44 am #15669625

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

The reason seems to be the field name.

If more than one field in ACF uses the same field name "title" then the field will not longer be translatable.

Make sure that each field within and between all field groups has unique field names and then test again.

Let us know if further assistance will be required.

Best regards
Andreas

May 27, 2024 at 5:58 am #15672010

mateusz-sitarzM

Good morning,
I understand, but we are talking about one block used several times. I am unable to register a group of fields with different field names "title".
The problem that occurs is that out of 5 occurrences of the same block, only one does not translate (checked in two languages).

May 28, 2024 at 2:00 pm #15679033

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

I am sorry, but I am not fully understanding.

You are saying:

"I am unable to register a group of fields with different field names "title"

Do those fields use different field names or not?

If all groups use the same field name "title" then this will cause unexpected issues.

I would like to offer to have a closer look at the problem and request temporary access (wp-admin and FTP) to the website to investigate this issue further.

You can find the required fields below the comment section when you log in to leave the next reply. The information you provide is private, which means only you and I can see and access it.

IMPORTANT
Please be sure to make a backup copy of the website and database before allowing us access.
If you can't see the wp-admin / FTP fields, your post and website credentials are set as PUBLIC. DO NOT publish the data unless you see the required wp-admin / FTP fields.

The private response form looks like this:
hidden link

Next time you reply, click "I still need assistance."

Video:
hidden link

Please note that we are obliged to request this information individually on each ticket. We may not access any access information not specifically submitted on this ticket in the private response form.

Best regards
Andreas

May 29, 2024 at 2:33 pm #15684542

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

I am sorry if I repeat myself, but it seems I did not explain clearly enough.

You can not use the same field name in different groups.

For example:

Various groups have the field name "title".

If there is more than one field in your ACF Groups with the same field name, then not all fields will show up for translation.

From our docs:
Make sure each of the custom fields across your different field groups has a unique Field Name. If you use the same Field Name with more than one custom field, you may not see all your field values available for translation in the Advanced Translation Editor.

Source:
https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/

June 3, 2024 at 5:29 am #15696155

mateusz-sitarzM

Hello,

Please go ahead and change the name in one of the group of block fields on the dev version and verify the error by adding the same block several times on the same page, and then check whether all fields are translatable in ATE.

June 4, 2024 at 9:35 am #15700738

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

You will need to go through all your groups for such a test.

The field name "title" can only exist once between all your groups.

I suggest you give each field on each group a prefix using the group's name as a value.

Like:

groupname_fieldname
June 7, 2024 at 9:51 am #15714532

mateusz-sitarzM

I tried this solution on my local env, that's why im asking you to do that.

June 8, 2024 at 2:38 pm #15718371

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

You are using 134 Field Groups with a few hundred fields.

My apologies, but it is timely not possible for our support team to go through all your groups and revise and re-assign any single field.

This is not the responsibility of our support team.

We were able to confirm that the site is not following the recommended workflow and I would kindly like to ask you to revise this issue, make the suggested adjustments, and then test again.

If following the suggested workflow will not solve the issue, then please contact us again and if possible, provide us access to a staging site on which we can see the issue.

We hope for your understanding.

WPML Support Policy:
https://wpml.org/purchase/support-policy/#:~:text=WPML%20Support%20Policy%20If%20you%20have%20a%20valid,you%20to%20get%20the%20most%20out%20of%20WPML.

June 11, 2024 at 10:17 am #15725780

mateusz-sitarzM

Good morning,

I am not asking you to change all the field groups, but just try to fix the error for one field group for the Gutenberg block, so that I can fix the others later. The main problem concerns the [BLOCK] – CTA field group.

In another ticket (https://wpml.org/forums/topic/auto-translate-sometimes-doesnt-translate-acf-gutenberg-blocks/), another support person changed the group properties without any problems.

June 11, 2024 at 1:56 pm #15727229

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

My apologies, if it seems that I am repeating myself:

You will need to make sure that each field</Strong>, in each group and between all groups has a unique name.

The same field name should not exist more than once.

I suggest you give each field a prefix using the field name group.

Then test again.

If this will not solve the issue, please let me know.

The topic ‘[Closed] Auto translation in ACF blocks’ is closed to new replies.