Open alimuzzaman opened 5 years ago
Is there any update on this?
It appears that this plugin is still not compatible with WPML. This is really unfortunate, as this plugin is very cool.
Any chances to release a fix on this issue, waiting for this fix since 2019?
It appears that the field WP-Stateless sm_cloud
from the original media is not copied. Maybe when WPML duplicates the post when that field isn't there. So this appears to be a race condition.
Things I've tried:
stateless
and ephemeral
).However there is a workaround. It envolves asking WPML to duplicate the successfully GCS uploaded media post fields to the linked/translated (and not uploaded to GCS) one. I think this is not good UX. I would prefer my clients to just upload the media again.
I think I got something working.
Basically, there is a wp_stateless_media_synced
filter being applied by the plugin after the media is successfully uploaded to GCS. Using that hook, the sm_cloud
field is copied to all other translations.
I don't know if there is a better way of doing it, but it's seems to be working via WordPress interface.
Thank you @diogoterremoto It works 💯
https://wordpress.org/support/topic/wpml-support-101/ https://wpml.org/forums/topic/incompatibility-between-wpml-and-wp-stateless-plugin/