Same as: Connection test failed. HTTP/2 stream 0 was not closed cleanly

Hi all
I have same problem like this:

I see that “the issue was due to the Apache server update related to HTTP/2.”, please @bojan, could you explain me more details how to solve? Thanks

Hi @evisole

And welcome to the MainWP community.

Unfortunately, I don’t what exactly the hosting support did for the user in that case to solve the issue.
You may try contacting your support and explaining the issue, and hopefully, they can solve it.
If they do, please share the solution here.

You may also try fixing it yourself using this hook:

​add_filter( 'mainwp_curl_http_version', 'myhook_mainwp_curl_http_version', 10, 3 ); 
​function myhook_mainwp_curl_http_version( $input, $site_id, $url = '' ) ​{ 	
​if ( $site_id == SITE_ID_WITH_THE_ISSUE ) ​{ 	   
​return CURL_HTTP_VERSION_1_1;  	
​} 	
​return $input; 
​}


​Replace the SITE_ID_WITH_THE_ISSUE with the IDs of affected sites. You can find the ID by opening an individual Child site overview and looking at the end of the URL. In this screenshot, the ID is 11.

9cadda9bba4cc348da7b7c8c8bab99b2

​The hook can be inserted using our free extension Custom Dashboard or by inserting it into the functions.php file of the active theme on your MainWP Dashboard.

1 Like