Many peoples have troubles with updating WP blog to latest version 3.6.1

The update proccess didn't do anything and in the error log we can found an error –


[warn] mod_fcgid: stderr: PHP Fatal error: Call to undefined function wp_safe_remote_get() in /var/www/vhosts/domain.com/httpdocs/wp-admin/includes/file.php on line 500


After googling I didn't find any helpfull answers and decided to check this problem more deeply

How I see the update proccess searching for some function , named <wp_safe_remote_get()> and did't find anything

I founded that this function is implemented only on beta version of WP – http://wpseek.com/wp_safe_remote_get/



Retrieve the raw response from a safe HTTP request using the GET method.

This function is ideal when the HTTP request is being made to an arbitrary URL. The URL is validated to avoid redirection and request forgery attacks.


And here is the function :


function wp_safe_remote_get( $url, $args = array() ) {
	$args['reject_unsafe_urls'] = true;
	$http = _wp_http_get_object();
	return $http->get( $url, $args );


So what to do with it?

We need to update file named – wp-includes/http.php

and to add at the bottom of file this lines :

function wp_safe_remote_get( $url, $args = array() ) {
	$args['reject_unsafe_urls'] = true;
	$http = _wp_http_get_object();
	return $http->get( $url, $args );

After this we saving the file and trying to do an update one more time

Tadada – WP UPDATED!


  1. Danny says:

    All work!

  2. Arnold says:

    Thanx dude save my time

    Also can just rename a finction name to –


  3. Stefan says:

    Didn't work for me πŸ™ I did a manual update also. deactivate plugins, themes. It seems that it doesn't want to work. Is there something else that I can try?

    Thanks, Stefan

  4. admin says:

    HI Stefan

    Sorry to hear about it

    If it didn't help try also to rename this funtion to wp_remote_get (into file  wp-includes/http.php)

    If even it will not work for you, So just download an archive of new WP version and overwrite all files

    Then run DB update


  5. admin says:

    Glad to help you ))

  6. emil says:

    Thank you!