This thread is resolved. Here is a description of the problem and solution.
Problem:
You are trying to update WPML but receive a red warning that 'WPML could not load configuration files, which your site needs.' Additionally, there is an error regarding an undefined array key 'localization' and a cURL error 7 indicating a failure to connect to the server.
Solution:
First, ensure that your server firewall is not blocking the WPML API. You should whitelist the following domains:
- wpml.org
- cdn.wpml.org
- api.wpml.org
- api.toolset.com
- cloudfront.net
Since specific IP addresses are dynamic and not provided, whitelisting by domain is necessary. Additionally, it's possible that another plugin is blocking the connection. We recommend temporarily deactivating all other plugins except WPML to check for conflicts. Always ensure to back up your database before making these changes. For more details, visit https://wpml.org/faq/wpml-plugin-cannot-connect-to-wpml-org/.
If this solution does not resolve your issue or seems outdated, please check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. If the problem persists, we highly recommend opening a new support ticket at WPML support forum.
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.