Opened 4 years ago
Last modified 4 years ago
#52967 new defect (bug)
error: without the possibility of downloading translations:
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Upgrade/Install | Keywords: | |
Focuses: | Cc: |
Description (last modified by )
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’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
Hi there!
As per my search wp_remote_post function use WP_Http::request() function and
blocking
default argument istrue
https://github.com/WordPress/WordPress/blob/master/wp-includes/class-http.php#L202