If after updating WPML multilanguage plugin appears error when editing post and pages like this:
Argument 1 passed to WPML_Media_Post_Images_Translation::translate_images_in_post_content() must be an instance of WP_Post, null given, called in wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-post-images-translation.php on line 107
Then the fix is next:
- go to WPML > Support > troubleshooting link, and use the “Clear the cache” button
- And same page push button “Remove ghost entries from the translation tables”