Solution To 500 Internal Server Error When Installing WordPress

When installing WordPress themes onto your site sometimes you may receive a warning reads: ” 500 Internal Server Error”

Annoying as it is, the solution to it may be simple, you just need to find the  line in the codes under ./wp-includes/class-http.php , it’s in about the 291th lines and change it to:

$request_order = apply_filters( ‘http_api_transports’, array( ‘streams’ ), $args, $url );

Meaning that you just delete ‘curl’.

 


 

 

Beware that in some cases the aforementioned line won’t be in 291th line, then you might want to ctrl+f the following code:

$request_order = apply_filters( ‘http_api_transports’, array( ‘curl’, ‘streams’ ), $args, $url );

then replace it with:

$request_order = apply_filters( ‘http_api_transports’, array( ‘streams’ ), $args, $url );

 


 

 

and place it under filefolder wp-includes, best to backup your files before doing so.

 

 

About the author: Magee