Title: Installation/upgrade issue
Last modified: August 18, 2016

---

# Installation/upgrade issue

 *  Resolved [rdhill316](https://wordpress.org/support/users/rdhill316/)
 * (@rdhill316)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/installationupgrade-issue/)
 * I just decided to update my wordpress installation, so I downloaded the version
   linked to on the download page, and sent everything up to my site.
 * I got the error: “
    Fatal error: Call to undefined function is_blog_installed()
   in /home/content/r/d/h/rdhill316/html/wordpress/wp-settings.php on line 140″
 * I tried deleting everything & doing a fresh install, and got the same error.
 * I can’t find anything in the forums on how to fix this.
 * I did some checking and the function “is_blog_installed” is called in this block
   of code in wp-settings.php:
 *     ```
       if ( !is_blog_installed() && (strpos($_SERVER['PHP_SELF'], 'install.php') === false && !defined('WP_INSTALLING')) ) {
       	if (strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false)
       		$link = 'install.php';
       	else
       		$link = 'wp-admin/install.php';
       	wp_die(sprintf("It doesn't look like you've installed WP yet. Try running <a href='%s'>install.php</a>.", $link));
       }
       ```
   
 * but a search of all files in the wordpress directory reveals no definition of
   the function.
 * the older version of the wp-settings file had the block of code thusly:
 *     ```
       $db_check = $wpdb->get_var("SELECT option_value FROM $wpdb->options WHERE option_name = 'siteurl'");
       if ( !$db_check && (!strstr($_SERVER['PHP_SELF'], 'install.php') && !defined('WP_INSTALLING')) ) {
       	if ( strstr($_SERVER['PHP_SELF'], 'wp-admin') )
       		$link = 'install.php';
       	else
       		$link = 'wp-admin/install.php';
       	die(sprintf(__("It doesn't look like you've installed WP yet. Try running <a href='%s'>install.php</a>."), $link));
       }
       ```
   
 * Is the old method still valid so that I can change the code back?
 * Or am I missing something?
 * Any help is appreciated. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Jeremy Clark](https://wordpress.org/support/users/jeremyclark13/)
 * (@jeremyclark13)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/installationupgrade-issue/#post-610302)
 * Did you run the update script. I believe if you try to login to wordpress it 
   will ask you do update.
 *  Thread Starter [rdhill316](https://wordpress.org/support/users/rdhill316/)
 * (@rdhill316)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/installationupgrade-issue/#post-610349)
 * Update script (wp-admin/upgrade.php)won’t run — same error.
 * Neither will the install script (wp-admin/install.php); it also gives the same
   error.
 * Any page that include()s wp-settings.php gives the same error, so I can’t even
   _try_ to log in.
 * The problem is that the function “is_blog_installed()” doesn’t seem to be defined
   anywhere.
 * I’m going to try defining it myself using the old code as a guide. I’m pretty
   sure that will fix it; the only thing I’m unsure of is whether the method of 
   checking if wordpress is installed based on querying the db to see if ‘siteurl’
   exists is still valid. Guess I’ll find out. Time for a smoke test 🙂
 *  Thread Starter [rdhill316](https://wordpress.org/support/users/rdhill316/)
 * (@rdhill316)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/installationupgrade-issue/#post-610350)
 * Well, I made my own definition of the function is_blog_installed(), just basically
   ripped the database checking from the old code, and got this:
 *     ```
       function is_blog_installed() {
       	$db_check = $wpdb->get_var("SELECT option_value FROM $wpdb->options WHERE option_name = 'siteurl'");
       	return $db_check;
       }
       ```
   
 * Which seemed to fix the problem … at least for that function. Now default-filters.
   php is calling a _different_ undefined function, “add_filter().”
 * I’m beginning to suspect that there is a missing file somewhere that contains
   the definitions for miscellaneous functions, or maybe an old version is mixed
   in with the current code (I’m using the code linked to from the download page,
   [http://wordpress.org/latest.zip](http://wordpress.org/latest.zip))
 * Can someone more familiar with the codebase please check the current downloadable
   files to make sure they are all from the same version?
 * Or have I screwed up something glaringly obvious here during my install?
 * Thanks!
 *  [Jeremy Clark](https://wordpress.org/support/users/jeremyclark13/)
 * (@jeremyclark13)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/installationupgrade-issue/#post-610371)
 * When you uploaded your files did you use ftp and did you use Ascii mode if you
   didn’t use ascii mode then that is your problem reupload the files using ascii
   mode and see if that helped.
 *  Thread Starter [rdhill316](https://wordpress.org/support/users/rdhill316/)
 * (@rdhill316)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/installationupgrade-issue/#post-610395)
 * So what was happening was this:
    My FTP client was cheerfully trying to send 
   over files to the server as fast as possible. Sometimes it would send one before
   the connection for the previous file closed.
 * Whenever that happened, the remote server said “too many conections open from
   this IP” — and closed the connection. So the file didn’t get sent.
 * One of the unlucky files that didn’t get sent was the functions.php which defines
   the functions that were popping up in the errors.
 * This file was particularly unlucky because it (apparently) got left out the first
   time I tried to upgrade, and again when I tried a fresh install.
 * When I compared the contents of the wordpress directories on the server with 
   my local machine, I said “Hey! theres a bunch of files missing!” Then I paid 
   close attention to what was happening with the FTP transfer, and saw the problem
   in the logs.
 * So I used a different FTP client, which was slower, but very thoroughly plodded
   its way through all the files. Problem solved!
 * Needless to say, I’m going to switch FTP clients if I can’t find a way to throttle
   down the one I’ve got.
 * Cheers!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Installation/upgrade issue’ is closed to new replies.

## Tags

 * [function](https://wordpress.org/support/topic-tag/function/)
 * [installation](https://wordpress.org/support/topic-tag/installation/)
 * [upgrading](https://wordpress.org/support/topic-tag/upgrading/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 5 replies
 * 2 participants
 * Last reply from: [rdhill316](https://wordpress.org/support/users/rdhill316/)
 * Last activity: [18 years, 9 months ago](https://wordpress.org/support/topic/installationupgrade-issue/#post-610395)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
