Installation/upgrade 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!
The topic ‘Installation/upgrade issue’ is closed to new replies.