Hello There,
Thanks for writing in! You should be able to download the demos even if you have a slow connection. Please make sure to increase the curl time out and increase also the PHP memory limit. Please do this things:
1.) To increase the PHP memory limit, please edit your wp-config.php file and insert these lines:
define( 'WP_MEMORY_LIMIT', '256M' );
define( 'WP_MAX_MEMORY_LIMIT', '512M' );
You can add it before the line
/*That's all, stop editing! Happy Blogging. */
2.) And for the curl time out, please insert this custom code in your theme’s functions.php file
//adjustments to wp-includes/http.php timeout values to workaround slow server responses
add_filter('http_request_args', 'bal_http_request_args', 100, 1);
function bal_http_request_args($r) {
$r['timeout'] = 15;
return $r;
}
add_action('http_api_curl', 'bal_http_api_curl', 100, 1);
function bal_http_api_curl($handle) {
curl_setopt( $handle, CURLOPT_CONNECTTIMEOUT, 15 );
curl_setopt( $handle, CURLOPT_TIMEOUT, 15 );
}
We would loved to know if this has work for you. Thank you.