Skip Navigation

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.

This topic contains 1 reply, has 0 voices.

Last updated by Andrey 1 month ago.

Assisted by: Andrey.

Author Posts
April 8, 2025 at 8:45 am #16907526

stevel-9

Background of the issue:
I am trying to update WPML on my site. I had a previous conversation with support, but the issue was not resolved. I received a red warning 'WPML could not load configuration files, which your site needs.' WPML suggested whitelisting the update servers, but my host can only whitelist IPs, not server names. They whitelisted the server by IP, but I still cannot update. I also receive an error 'Warning: Undefined array key "localization" in /home/httpd/vhosts/velolegi.ch/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/otgs/installer/includes/class-wp-installer.php on line 2618' on the plugins commercial tab. Hosting support says it looks like an error in a function and not the update server blocking. Link to a page where the issue can be seen: hidden link

Symptoms:
Red warning: 'WPML could not load configuration files, which your site needs.' Error in log file: 'code: http_request_failed message: cURL error 7: Failed to connect to 3.165.239.128: Invalid argument'. Error: 'Warning: Undefined array key "localization" in /home/httpd/vhosts/velolegi.ch/httpdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/otgs/installer/includes/class-wp-installer.php on line 2618'.

Questions:
How can I resolve the issue with WPML not loading configuration files?
What should I do about the cURL error 7 and the undefined array key warning?

April 8, 2025 at 9:32 pm #16911045

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for reaching out to WPML support.

I have contacted our systems team, and they confirmed that we are not blocking your site on our end.

Please ensure that your server firewall is not blocking the WPML API. To do this, you need to whitelist the following domains as you mentioned:

- wpml.org
- cdn.wpml.org
- api.wpml.org
- api.toolset.com
- cloudfront.net

We cannot provide specific IP addresses, as they are dynamic; however, these domains are available for whitelisting.

Additionally, it is possible that one of the plugins on your installation is blocking the connection. I recommend temporarily deactivating all plugins except for WPML to check for conflicts.

https://wpml.org/faq/wpml-plugin-cannot-connect-to-wpml-org/

Before making any changes, please remember to back up your database.