Make WordPress Core

Opened 4 years ago

Last modified 4 years ago

#52967 new defect (bug)

error: without the possibility of downloading translations:

Reported by: juans's profile juans Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Upgrade/Install Keywords:
Focuses: Cc:

Description (last modified by SergeyBiryukov)

Good morning, we found the following error in the wordpress logs without the possibility of downloading the translations:
[Sat Apr 03 11:28:45.517438 2021] [php7:warn] [pid 56] [client X.X.X.X:0] PHP Warning: An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/forums/">support forums</a>. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /var/www/html/wp-admin/includes/translation-install.php on line 71, referer: https://blog.fediverse.tv/wp-login.php?redirect_to=https%3A%2F%2Fblog.fediverse.tv%2Fwp-admin%2Foptions-general.php&reauth=1

To solve this we have added the following line to the file
https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/translation-install.php#L47
of the official image of docker wordpress:latest

'blocking'    => true,

This solves the problem of downloading data from
api.wordpress.org

Change History (2)

#1 @SergeyBiryukov
4 years ago

  • Description modified (diff)
  • Keywords translations removed

#2 @mukesh27
4 years ago

Hi there!

As per my search wp_remote_post function use WP_Http::request() function and blocking default argument is true https://github.com/WordPress/WordPress/blob/master/wp-includes/class-http.php#L202

Note: See TracTickets for help on using tickets.