Please make sure to update to WPML to the latest and check our list of Known Issues before reporting
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.
This thread is resolved. Here is a description of the problem and solution.
Problem: Suddenly I realized that my main page doesn’t have the language switcher anymore. The German translation of the front page is 100% complete. But on the page overview there it still shows a “+”. And I see this error: An error of type E_ERROR was caused in line 130 of the file /home/philipps/public_html/wp-content/plugins/wpml-media-translation/classes/media-translation/class-wpml-media-post-images-translation.php. Error message: Uncaught TypeError: Argument 1 passed to WPML_Media_Post_Images_Translation::translate_images_in_post_content() must be an instance of WP_Post, null given Solution: This solution does the trick:
- go to Dashboard → WPML → Support;
- press the troubleshooting link;
- use the Remove ghost entries from the translation tables option;