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: Africa/Cairo (GMT+02:00)

This topic contains 5 replies, has 2 voices.

Last updated by Mohamed Sayed 1 year, 7 months ago.

Assisted by: Mohamed Sayed.

Author Posts
June 14, 2023 at 12:08 am #13820647

alanaP-2

I am trying to:

Translate a post and have the translated featured image set as featured image in the translated post.

Link to a page where the issue can be seen:

N/A

I expected to see:
The featured image set

Instead, I got:
Featured image not set

Additional Notes:

1. All media translation options set
2. Post options will not remain checked when selected:
Duplicate uploaded media to translations
Duplicate featured image to translations
3. Featured images are being translated and can be seen in media translations, they are just not set as featured imaged
4. Image fields set to translate

media_translation_settings.png
custom_fields_images.png
2023-06-13 17_07_09-Edit Post “June 13th 3_50 Image Translate test” ‹ Trade and Invest BC — WordPres.png
June 14, 2023 at 10:33 am #13824067

Mohamed Sayed

Hi James,
Thanks for contacting WPML support.

1. To ensure the quickest and most accurate support, please provide your debug information so that I can get a look at some of your configurations. You can find it in WPML > Support > click on “Debug information” link. Please check this link for more info: http://wpml.org/faq/provide-debug-information-faster-support/

2. Please try the following steps and check if the issue is resolved:

- Edit the post in the original language
- Select the Media attachments translation options (Kindly check the attached screenshot)
- Update the post
- Click on the "Pencil" icon and update the translation (Kindly check the attached screenshot)

3. If the issue persists, please create a full backup then go to WPML > Settings > Media Translation > Click on the Start button (With all the available options checked).

Let me know please how that goes.

Kind regards,
Mohamed

Media attachments options.png
Screenshot_1.png
June 14, 2023 at 3:21 pm #13826717

alanaP-2

When I set the options in the first snip:

Duplicate uploaded media to translations
Duplicate featured image to translations

And then save the post, the options become unchecked.

We need this to work as expected and the translated post to reference the translated featured image after it is translated.

June 14, 2023 at 4:16 pm #13827051

alanaP-2

Also - when saving post we get the following log errors:
14-Jun-2023 16:13:52 UTC] PHP Warning: Attempt to read property "post_content" on null in E:\InetPub\EXT-APP\WP_TradeBC_DEV\Web\wp-content\plugins\sitepress-multilingual-cms\inc\translation-proxy\wpml-pro-translation.class.php on line 420
[14-Jun-2023 16:13:52 UTC] PHP Warning: Attempt to read property "post_type" on null in E:\InetPub\EXT-APP\WP_TradeBC_DEV\Web\wp-content\plugins\sitepress-multilingual-cms\inc\translation-proxy\wpml-pro-translation.class.php on line 421

June 14, 2023 at 8:59 pm #13828285

Mohamed Sayed

- Please provide your debug information for your site. You can find it in WPML > Support > click on “Debug information” link (http://wpml.org/faq/provide-debug-information-faster-support/)

- To best troubleshoot the issue, kindly create a copy of your site and provide a link to download it. You can use the Duplicator plugin (https://wordpress.org/plugins/duplicator/)

The plugin will create a package file that you can download then upload again to Google Drive or Dropbox and share the download link in the next reply which I have marked as private. Then I’ll escalate this issue to our developers for further investigation.

Please check here for more details: https://wpml.org/faq/provide-supporters-copy-site/
Thanks for your cooperation.

June 17, 2023 at 9:29 am #13843483

Mohamed Sayed

Hi,

It is hard to tell what is causing this issue without further investigation, so I suggest trying the following:

1. I have created this clean sandbox setup on our servers here:
hidden link (one-click login)

I would need you to please set up WPML + the WPML add-ons as you have them on your site (they are already installed) and try to recreate the issue with a new post.

Please don't install anything else like plugins that are not necessary, on a clean sandbox we try to use just the WPML plugins and the plugin/theme that's part of the issue.

If the issue is going to take place on this clean setup on our servers too, then I can forward this to our developers.

2. If the issue doesn't happen on the sandbox site then it could be a conflict with one of your plugins or the theme. Please check if it happens in a minimal environment by following these steps:

- Deactivate all the plugins that are not related to WPML (Keep String Translations enabled).
- Switch for a moment to a WordPress default theme like Twenty Twenty-one.
- If the issue is gone, activate one by one to see with which one there is an interaction issue.

❌ Please backup your database and website before performing the above test ❌

The topic ‘[Closed] Translated Post Featured Image Not Set’ is closed to new replies.