Fixed BackWPup plugin Dropbox upload failing with cURL timeout error

How to fix the Dropbox upload failure of the BackWPup plugin with a cURL timeout error?

Recently reconnected BackWPup with my Dropbox account, but every attempt to run the BackWPup plugin backup job fails with the following error ▼

Fixed BackWPup plugin Dropbox upload failing with cURL timeout error

/home/user/public_html/wp-content/plugins/backwpup/src/Http/Client/WpHttpClient.php: Dropbox API: cURL error 28: Operation timed out after 5000 milliseconds with 0 bytes received

It tries 3 times with the same error each time and then aborts the job.

Test removing Dropbox authentication in the job and reconnecting (changed to the first option, which only allows access to the app, not full access to Dropbox).It still has the same error.

Why does the BackWPup plugin show Dropbox API: cURL error 28: Operation timed out?

Regarding the Dropbox timeout issue of the BackWPup plugin 3.10.0, this version actually uses the native Wordpress Http class, so the default setting is 5 seconds, which is too short, causing this error problem.

How to fix BackWPup plugin Dropbox upload failed with cURL timeout error?

directly in the WordPress themefunctions.phpfile, add the following code ▼

//解决Dropbox 上传失败并出现 cURL 超时错误
function __extend_http_request_timeout( $timeout ) {
return 60;
}
add_filter( 'http_request_timeout', '__extend_http_request_timeout' );

Extended reading:

Comment

Your email address will not be published. Required fields * Callout

Scroll to Top