This thread is resolved. Here is a description of the problem and solution.
Problem:
If you're experiencing issues with registering your WPML on a WordPress multisite setup.
Solution:
We recommend activating WPML on your main site. Once activated, you should be able to unregister and then re-register the site key. This step is crucial for ensuring that WPML functions correctly across your multisite environment.
Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket.
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 topic is split from https://wpml.org/forums/topic/wordpress-database-error-could-not-perform-query-because-it-contains-invalid-data-3/