#59842
closed
defect (bug)
( fixed )
WordPress 6.4 wp_remote_get (cURL error 28: Operation timed out)
|
|
|
|
---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Description (last modified by )
$request = wp_remote_get( ' https://example.com/test.json ' ); var_dump($request);
object(WP_Error)#4571 (3) { ["errors"]=> array(1) { ["http_request_failed"]=> array(1) { [0]=> string(95) "cURL error 28: Operation timed out after 5001 milliseconds with 2050 out of 2766 bytes received" } } ["error_data"]=> array(0) { } ["additional_data":protected]=> array(0) { } }
Change History (18)
#1
@
11 months ago
#2
@
11 months ago
-
Keywords has-patch added -
Severity changed from normal to critical -
Version set to six point four
#3
@
11 months ago
Given the impact, this should be hotfixed right away in WP Core (not waiting for a Requests release) and then we need to talk to the WP systems team to see how we can get that hotfix onto the running systems. I assume that this might be something that can be fixed at the server level for api.wordpress.org.
This ticket was mentioned in Slack in #core-upgrade-install by pbiron. View the logs .
11 months ago
This ticket was mentioned in Slack in #meta by hellofromtonya. View the logs .
11 months ago
This ticket was mentioned in Slack in #core by hellofromtonya. View the logs .
11 months ago
#7
@
11 months ago
#!/ bin/bash # Define the pattern to search for and the replacement string search_for="if (\$this->version < self::CURL_7_22_0 && !isset(\$headers\['Connection'\])) {" replace_with="if (!isset(\$headers['Connection'])) {" # Define the path to the Curl.php files relative to the WordPress installations relative_path="wp-includes/Requests/src/Transport/Curl.php" # Find all Curl.php files under the specified directory # Usually, WordPress installations are under /var/www/vhosts/ in Plesk find /var/www/vhosts/ -type f -name "Curl.php" | while read file; do # Check if the file contains the string we want to replace if grep -q "$search_for" "$file"; then # Take a backup of the original file cp "$file" "$file.bak" # Replace the string sed -i "s/$search_for/$replace_with/" "$file" # Output the file path that was changed echo "Modified: $file" else # Output the file path that was not changed because the pattern was not found echo "Pattern not found, not modified: $file" fi done # Script complete message echo "All matching instances have been updated. "
#8
@
11 months ago
-
Milestone changed from Awaiting Review to 6.4.1
#10
@
11 months ago
#12
@
11 months ago
-
Resolution fixed deleted -
Status changed from closed to reopened