Problem: Client was experiencing a fatal error (Fatal error: Uncaught Error: Call to a member function get_source_language_code()), when trying to translate a page automatically.
Solution:
There seemed to be the problem with page's records in DB, perhaps corrupted, which we fixed with the following steps:
1. Open the product for editing in the default language. 2. Switch to the target language using the top admin language bar. 3. Click "Copy content from [default language]" and then save. 4. Repeat these steps for each language you want to translate to. 5. Go to WPML -> Translation Management and send the product for automatic translation again.
Problem: The client is experiencing an issue where the German homepage redirects to the default language homepage. Solution: 1. We recommend checking if the German homepage status is set to 'Published' and not 'Draft'. This can be confirmed by seeing if the issue persists when logged into the site. If the page works correctly for logged-in users, changing the status from 'Draft' to 'Publish' should resolve the issue. 2. We also noticed the 'Redirect Redirection' plugin is installed. It's advisable to check if any redirections have been set up using this plugin and consider disabling it temporarily to see if that solves the issue.