Skip Navigation

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

Problem:
Kadence block Advanced Image does not display the custom field image on the translation post.
- The post template is created by Appearance > Kadence > Elements.
- The block Advanced Image in the template gets the data from ACF custom field image, field preference is set to Copy.
- Translate the Kadence template.
- Add a new post, add the image to the custom field, and translate the post.
- The image displays in the original language but displays the default/fallback image of the Advanced Image block in the second language.
Solution:
Duplicate the Kadence template instead of translating it independently.

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

Last updated by pierreB-56 1 year, 11 months ago.

Assisted by: Long Nguyen.

Author Posts
March 1, 2023 at 8:18 am #13142301

pierreB-56

I am trying to: Translate Posts (with Custom fields and Kadence elements)

Link to a page where the issue can be seen:

hidden link (original post in Dutch)
the issue is that all translations are not displaying the right images from the same post but from the "preview" post
hidden link

I expected to see:
The same image after the translating... also the translations tend to 'disappear'

Instead, I got:
the wrong images and missing translation screen

Wrong-images on Translated Post_Johannes_Bosboom_NC.jpg
March 2, 2023 at 7:31 am #13151733

Long Nguyen
Supporter

Languages: English (English )

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

Hi there,

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

According to the debug log I see the plugin WPML Media Translation is activated on your site. Do you use this plugin to translate different images across languages? Please read more on the documentation https://wpml.org/documentation/getting-started-guide/media-translation/

While checking the debug info, I see that the WordPress Memory Limit is below the requirements. The minimum requirements are 128M, but we do recommend 256M and the debug information of your site shows it set to 40M. Please check this link for more details
https://wpml.org/home/minimum-requirements/.
You can increase it by adding the following code in your wp-config.php file, right before the /* That’s all, stop editing! Happy publishing. */ line:


define( 'WP_MAX_MEMORY_LIMIT', '256M' );
define( 'WP_MEMORY_LIMIT', '128M' );

After adding the code you can confirm that the memory was changed correctly from WPML > Support > WordPress > Memory limit.

Look forward to your reply.
Thanks

March 2, 2023 at 10:23 am #13153361

pierreB-56

Dear Long,

I have now corrected the Memory settings as recommended.

Regarding my image issue
the translation are used in two places
- the Kadence element templates "Single Project template NL"
Element tpe = "Template"
Display on language = "Nederlans" (Dutch)

The issue is that ALL the posts I translate, the images from the "element preview posts" which is obviously not what I want.

I need the English post to use the SAME images set in the original Dutch post

What I have done so far
1. I have deactivated deleted the plugins WPML Media Translation
2. In my customs image fields: For the "Translation preferences",
I have tried ALL 4 settings for
("Don't translate",
"Copy",
"Copy once"
and "Translate")
for 4 separate image custom fields (They are all "Image array" field type)

3. I have also recreate the top sections of the element 5delete and recreate the whole "header" section of the element
4. I have re-applied the translation

The right images are still not picked in the English translation - It has worked
The text are correctly translated...

I have no idea what is going on... I am not able to move forward and deploy it to the live site

March 3, 2023 at 3:39 am #13159815

Long Nguyen
Supporter

Languages: English (English )

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

Hi,

Thank you for your feedback.

I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to a testing site where the issue is replicated. Your next reply is set to private to share the info.

❌ IMPORTANT: Please backup your database and website before proceeding ❌
You can use this plugin to create the backup: 
https://wordpress.org/plugins/duplicator/

Look forward to your reply.
Thanks

March 6, 2023 at 2:16 am #13174975

Long Nguyen
Supporter

Languages: English (English )

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

Hi,

Thank you for your feedback.

After reviewing the block template on your site, I see that the images on the frontend are built with the block Advanced Image of the Kadence block addon and get the value from the ACF field image.

So it could be a compatibility issue between three plugins. To be able to report the compatibility issues we need to replicate the issue on a clean installation. I created a clean installation of WordPress, WPML, and all necessary WPML add-ons. You can access the WordPress dashboard using the link below:
hidden link

Kindly follow the steps below:

- Install ACF and Kadence block addons plugins
- Try to replicate the issue.

This will help us to report the probable issue to the compatibility team and solve the possible problem faster.

Look forward to your reply.
Thanks

March 9, 2023 at 8:55 am #13204615

pierreB-56

On Monday I have responded via email ... you must have missed it

-----------See my response below-----

Mon, 6 Mar, 13:29 (3 days ago) to WPML

Hello support,

I have done the following:
- Activate Dutch as default language and added English as I am translation from Dutch to English
- Created two posts on as a "sample post for preview" that I would use as preview and a second post " that will be using the Kadence element template
- Installed Kadence theme
installed the following
- ACF plugins
and all the kadence plugins (Pro as well with my product key)
Looking at the one I have used on my site staging.nadaclare.nl
Kadence Captcha (this one is active now but it could be potentially deactivated as I do not use it anymore... no form and no subscription/input from web users)
Kadence Custom Fonts (in use)
Kadence Blocks - PRO Extension (in use)
Kadence Pro - Premium addon for the Kadence Theme
I have NOT installed "Kadence Starter Templates" as I do not think this plugin is relevant anymore... I am not using it as well on my staging (also disabled it there)...
Furthermore,
I have checked the version WPML Multilingual CMS I am using on my staging is Version 4.5.14 and for WPML String Translation is Version 3.2.3
Exactly like it is on your sandbox site!!
- I have activated the Hooked Elements, I have been using for that specific issue and created a template element for single posts and also for the translation

Since the issue is with the translation of images I do need you
=> I am afraid I also needed the "Advanced Custom Fields Multilingual" wpml plugin... version 1.10.4... so I have installed it as well
=> I have tried to install it together with WPML String Translation plugin but I have got the following error message (maybe a licence issue for this demo site).

I am trying to reproduce the same issue I am having on my "staging.nadaclare.nl" site
SOMETHING IS DIFFERENT ALREADY - The ACF group is NOT translated in My staging site... it was requested (required) on your sandbox site!!!

=> I was able to reproduce the issue as you can see Dutch post is NOT the sunset picture but the picture with the bench

Email image 2.png
Email image 1.png
March 10, 2023 at 1:48 am #13212643

Long Nguyen
Supporter

Languages: English (English )

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

Hi,

Thank you for your feedback.

I see the issue on the sandbox site. I'm discussing the issue with my 2nd tier support and I will update you here when I have something to share.

FYI, the ACF field group should not be translatable. Please read more on the documentation https://wpml.org/errata/advanced-custom-fields-field-group-should-be-set-as-not-translatable/

Regards.

March 11, 2023 at 7:32 am #13222307

Long Nguyen
Supporter

Languages: English (English )

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

Hi,

I've escalated this issue to our Compatibility team. I'll update you as soon as I have something to share.

Also, can you please contact the plugin author and ask about this issue? They may aware of this issue already and have some information about that.

Thanks for your patience.

March 14, 2023 at 7:13 am #13239319

Long Nguyen
Supporter

Languages: English (English )

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

Hi,

I got some information from the 2nd tier support, please check it below.

There is a workaround to fix this issue, please duplicate the Kadence element for translation instead of translating it independently. Then you can see the custom field image displayed on the translation post correctly.

Please check the element Appearance > Kadence > Element > WPML template.
and your post hidden link

Look forward to your reply.
Thanks

March 14, 2023 at 9:15 am #13240325

pierreB-56

Hi Long,
I am not sure your explanation are clear to me.
My issue is when I am translation the Kadence element from the default language (Dutch) to the 2nd language (English). If I duplicate the element then I will NOT SEE that element in English.
Could you please record your screen so I can see the actions I should take (You may record your screen using CloudApp)?

March 14, 2023 at 9:44 am #13240599

Long Nguyen
Supporter

Languages: English (English )

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

Hi,

Thank you for your feedback.

The Kadence Element actually does not need to translate independently. It just needs to be duplicated. On your staging site, if you've translated the Kadence Element, you can switch the language in the menu at the topbar, then click on the button "Overwrite with Dutch content." to set the translation as a Duplicate.
Please check this screenshot hidden link

Look forward to your reply.
Thanks

March 14, 2023 at 10:33 am #13241185
pierreB-56

Hi Long,
I am sending you an update with the versions status
As I have since update the plugins to have the latest version

- Advanced Custom Fields Multilingual Version 2.0.0 | By OnTheGoSystems
- WPML Multilingual CMS Version 4.6.0 | By OnTheGoSystems
- WPML String Translation Version 3.2.4 | By OnTheGoSystems

I have done what you suggested and it seems to have worked...
So this is a workaround or should it be the way I translate Kadence template elements - I am using it a lot...

I also have another site where I want all the language to display ONLY the English posts is this possible? even if the user is on another language i need to only show the English posts (note English is also NOT the default language)

That site is
hidden link
the posts page is hidden link
the default language is "French" hidden link
I rather NOT have duplicate records... I have 7 languages installed on that site (FR, EN, IT, RO, TR, PT, DE)
Thank you

New threads created by Long Nguyen and linked to this one are listed below:

https://wpml.org/forums/topic/split-my-translation-images-are-not-picked-up-instead-the-image-of-the-preview/

WPML Plugins list and versions.jpg
March 15, 2023 at 1:14 am #13247239

Long Nguyen
Supporter

Languages: English (English )

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

Hi,

Thank you for your feedback.

We can handle one issue per ticket only so if you have another issue/question, please create a new ticket for it. I can help you to split this ticket into a new one then we can discuss the new question there.

If you see the main issue of this ticket with the translation image is resolved, please mark this ticket as Resolved.

Thanks.