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.
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.
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.
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.