Skip to content Skip to sidebar

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.

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by alexW-27 1 year, 10 months ago.

Assisted by: Mohamed Sayed.

Author Posts
September 21, 2023 at 11:10 am #14437935

alexW-27

When I add my site key I get the message "Unable to parse data from service response.".

This is because the request to WPML is returning a 403 forbidden response.

Captura de pantalla 2023-09-21 a las 13.06.28.png
September 21, 2023 at 11:38 am #14438157

Mohamed Sayed

Hi Alex,
Thanks for contacting WPML support.

Our systems team just fixed another issue that might be related, could you please try again and check if the issue is resolved?

Kind regards,
Mohamed

September 21, 2023 at 12:10 pm #14438529

alexW-27

Hi,

Unfortunately I have the same problem.

Thanks,
Joaquim

September 21, 2023 at 12:50 pm #14439175

alexW-27

It seems the problem was the User Agent being set in the request to hidden link.

I have fixed it with this filter:

// The default User Agent is 'WordPress/6.3.1; $SITE_URL'
// This fails if the SITE_URL is hidden link
add_filter('http_headers_useragent', function ($user_agent) {
return 'WordPress/6.3.1';
});