Title: Fatal Error during update to 3.6 (undefined function)
Last modified: August 21, 2016

---

# Fatal Error during update to 3.6 (undefined function)

 *  [Ward5x5](https://wordpress.org/support/users/ward5x5/)
 * (@ward5x5)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-during-update-to-36-undefined-function/)
 * I updated several sites to 3.6 today and one of them is giving me issues. After
   pressing the Update button inside the Dashboard it starts to download 3.6 and
   then spits out the following error:
 * > Fatal error: Call to undefined function wp_safe_remote_get() in /usr/home/romein/
   > domains/buurtcentrumderomein.nl/public_html/darts/wp-admin/includes/file.php
   > on line 500
 * I checked file.php and like 500 is the following:
 * `$response = wp_safe_remote_get( $url, array( 'timeout' => $timeout, 'stream'
   => true, 'filename' => $tmpfname ) );`
 * I have several wordpress installs on this server and this is the only one that
   is giving me issues. The site which works fine as it but won’t update is [http://darts.buurtcentrumderomein.nl](http://darts.buurtcentrumderomein.nl)
 * Could anyone tell me what this error means. Is it perhaps possible that is has
   something to do with file permissions, since I had to tinker with them on this
   install in the past. If so is there an easy way to check if and what is wrong
   with the permissions?

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/fatal-error-during-update-to-36-undefined-function/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/fatal-error-during-update-to-36-undefined-function/page/2/?output_format=md)

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-during-update-to-36-undefined-function/#post-3990761)
 * Have you gone through the troubleshooting steps here:
 * [http://wordpress.org/support/topic/troubleshooting-wordpress-36-master-list?replies=5](http://wordpress.org/support/topic/troubleshooting-wordpress-36-master-list?replies=5)
 *  [Alison Kirkconnell](https://wordpress.org/support/users/alison-kirkconnell/)
 * (@alison-kirkconnell)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-during-update-to-36-undefined-function/#post-3990847)
 * I’m having this exact issue. I know it’s a permissions issue but don’t want to
   allow the world write ability. How to fix it?
 *  Thread Starter [Ward5x5](https://wordpress.org/support/users/ward5x5/)
 * (@ward5x5)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-during-update-to-36-undefined-function/#post-3990857)
 * I tried setting everything as 777 but that just breaks a lot more than it fixes.
   Is there a list somewhere of exactly what files need what permissions? I went
   through the troubleshoot guide but none of related to file permissions.
 *  [Alison Kirkconnell](https://wordpress.org/support/users/alison-kirkconnell/)
 * (@alison-kirkconnell)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-during-update-to-36-undefined-function/#post-3990861)
 * I tried that too. It’s frustrating. I’ll look into which files need which permissions.
   It has to be out there somewhere.
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-during-update-to-36-undefined-function/#post-3990864)
 * This might be what you want:
 * [http://codex.wordpress.org/Changing_File_Permissions](http://codex.wordpress.org/Changing_File_Permissions)
 *  [steevithak](https://wordpress.org/support/users/steevithak/)
 * (@steevithak)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-during-update-to-36-undefined-function/#post-3990912)
 * I’m getting this error too when trying to update one of my WP blogs. All past
   updates have gone well with no errors, so this seems to a new problem in v3.6.
 * Fatal error: Call to undefined function wp_safe_remote_get() in […]/wp-admin/
   includes/file.php on line 500
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-during-update-to-36-undefined-function/#post-3990913)
 * Try:
    – switching to the default theme by renaming your current theme’s folder
   inside wp-content/themes and adding “-old” to the end of the folder name using
   [FTP](http://codex.wordpress.org/FTP_Clients) or whatever file management application
   your host provides.
 * – [resetting the plugins folder](http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F)
   by FTP or phpMyAdmin.
 * – re-uploading all files & folders – **except** the wp-content folder – from 
   a **fresh** download of WordPress. Make sure that you delete the old copies of
   files & folder before uploading the new ones.
 * – running the upgrade manually via wp-admin/upgrade.php
 *  [steevithak](https://wordpress.org/support/users/steevithak/)
 * (@steevithak)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-during-update-to-36-undefined-function/#post-3990924)
 * Looks like the update may have died half-way through. The admin side of the site
   was completely unusable, nearly everything produced error messages. Couldn’t 
   turn off plugins, change themes, etc.
 * So I did a manual update. Downloaded the 3.6 tar.gz file, and overwrote all the
   files. Seems good as new now.
 * Really weird though, I run dozens of wordpress sites and have never seen one 
   do something like that before during an upgrade.
 * I’ve now done the 3.6 update on several more sites and did not hit similar errors.
 *  [pumka](https://wordpress.org/support/users/pumka/)
 * (@pumka)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-during-update-to-36-undefined-function/#post-3991015)
 * I simply edited the file replacing wp_safe_remote_get to wp_remote_get at the
   line 500 and that allowed me to run the update.
 *  [Anton](https://wordpress.org/support/users/nat0n/)
 * (@nat0n)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-during-update-to-36-undefined-function/#post-3991035)
 * Thanks pumka, that dit it for me too.
 *  [rachellucie](https://wordpress.org/support/users/rachellucie/)
 * (@rachellucie)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-during-update-to-36-undefined-function/#post-3991040)
 * Hi pumka,
 * Can you explain how I find that file using ftp? I am not sure how to do this.
   I am getting the exact same error.
 * thanks
 *  [pumka](https://wordpress.org/support/users/pumka/)
 * (@pumka)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-during-update-to-36-undefined-function/#post-3991058)
 * The path is wp-admin/includes/file.php relative to your WP installation folder.
   
   Hope that helps.
 *  [PlanoNome](https://wordpress.org/support/users/planonome/)
 * (@planonome)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-during-update-to-36-undefined-function/#post-3991093)
 * I too been having problems with V3.6. Only thing is, after updating it, both 
   backend an frontend of the site goes blank! I cant edit anything whatsoever. 
   I took Pumka’s advice and renamed wp_safe_remote_get to wp_remote_get at the 
   line 500 and the site is still blank. Thankfully my client understands that the
   internet isn’t perfect, but I need this resolved asap. Any more suggestions as
   to what to do?? Thanks. The link to the site is [http://www.beautifulpeoplemas.com/](http://www.beautifulpeoplemas.com/)
 *  [pesikov](https://wordpress.org/support/users/pesikov/)
 * (@pesikov)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-during-update-to-36-undefined-function/#post-3991150)
 * Try this FAQ ,it was helpful for me:
    [http://www.pesikov.tk/blog/php-fatal-error-call-to-undefined-function-wp_safe_remote_get/](http://www.pesikov.tk/blog/php-fatal-error-call-to-undefined-function-wp_safe_remote_get/)
 *  [PaulJHopkinson](https://wordpress.org/support/users/pauljhopkinson/)
 * (@pauljhopkinson)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-during-update-to-36-undefined-function/#post-3991161)
 * Thanks Denis / Pesikov! Altering wp-includes/ http.php with the code
 *     ```
       function wp_safe_remote_get( $url, $args = array() ) {
       	$args['reject_unsafe_urls'] = true;
       	$http = _wp_http_get_object();
       	return $http->get( $url, $args );
       }
       ```
   
 * did the trick! =)

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/fatal-error-during-update-to-36-undefined-function/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/fatal-error-during-update-to-36-undefined-function/page/2/?output_format=md)

The topic ‘Fatal Error during update to 3.6 (undefined function)’ is closed to new
replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 16 replies
 * 13 participants
 * Last reply from: [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-during-update-to-36-undefined-function/page/2/#post-3991162)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
