Overview of the Issue
This issue occurs when WPML is activated but its setup is not completed.
The error message starts with: PHP Fatal error: Uncaught exception ‘InvalidArgumentException’ with message ‘Argument $language_code must a non empty string.
Workaround
This issue is fixed. Updating to the latest version solves it on your site, so you only need this workaround if you can’t update yet.
This issue will be fixed in a future release version. However, the problem is quickly resolved by deactivating WPML plugin or completing the setup wizard.