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

Supporter timezone: America/Los_Angeles (GMT-08:00)

This topic contains 5 replies, has 2 voices.

Last updated by Bobby 1 year, 10 months ago.

Assisted by: Bobby.

Author Posts
April 3, 2023 at 9:25 pm #13394527

alanaP-2

We are facing an issue where some translated pages featured image is not dsplaying. When i go to edit the image in a different language i get a post type permission error. We have ran the WPML media generator a few times as my thought was the image was not generated but it has no effect.

I am trying to:
Access a translated image in the media library in Chinese.

Link to a page where the issue can be seen:
N/A

I expected to see:
The image editor.

Instead, I got:
A permission error for the post type.

sorry_post_type.png
2023-04-03 14_21_09-Edit Media “bc-homepage-discover-bc” ‹ Trade and Invest BC — WordPress.png
April 3, 2023 at 11:11 pm #13394827

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi there,

Is this error happening for all media or just the ones that are missing in the translations?

As a test add a new page or product and assign the media then translate it -> does it show ok?

Let me know your results, please.

NOTE: Please update your plugins to their latest versions. Go to Plugins->add new->commercial tab->check for updates

April 11, 2023 at 4:40 pm #13448709

alanaP-2

Hey,

I added a test post, added a featured imaged and images in the post body, translated, and the images appear on the translation. I can see the images are available in WPM > Media Translation.

The problem is therefore with existing imaged being generated. Can you tell what role, if any, that admin-ajax.php may have in generating media translation entries for existing media?

As you can see when i try to access the image translation of some existing images no entry/file is found which leads me to believe the issue is with the WPML Media generation operation.

2023-04-11 09_37_57-Media Translation-jp-image-not-showing.png
April 11, 2023 at 8:09 pm #13450021

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Thank you for updating me!

I am not sure if admin-ajax.php is playing a major role in this issue. Based on the error you are getting it seems as if some of the previous media entries might be corrupted in the database.

Did you recently migrate or change anything that could have affected this?

I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)

**Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken **

I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/
You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you enter is private which means only you and I have access to it.

NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.

Thank you,
Bobby

April 11, 2023 at 11:24 pm #13450749

alanaP-2

Hey unfortunately the data security protocols for this environment prohibit me sharing login, or a duplicate of the site.

i asked about admin-ajax because it does not have permission to be used by third party plugins on our install.

We migrate and change things that could affect any number of things all the time. We will investigate database curruption. Perhaps there is a query that will delete all wpml media entries and they could be re-generated? Let me know what you think.

April 13, 2023 at 12:43 am #13460331

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

I am not able to find any information regarding admin-ajax.php causing this behavior. I have asked my colleagues ad will update you with the feedback.

What are your results if you replace the image, I suppose it works then right?

Please check the database for any potential corruption in the media file and let me know your reesults.

The topic ‘[Closed] Some featured images are not showing in different languages.’ is closed to new replies.