• Resolved wcrosbie

    (@wcrosbie)


    My problem is with get_settings()
    I’m trying to upgrade from WP 1.2.2 to 2, via 1.5.
    Attempting to run wp-admin/upgrade.php, I get the following error message:

    Fatal error: Call to undefined function: get_settings()
    in /…/wp-settings.php on line 53

    line 53 inlcudes: get_settings('siteurl')
    Can you suggest where I might look to manually set the siteurl?

    Will I run into a similar problem with wp_cache_get() ?
    Cheers
    Warren

    // Code from filename: wp-settings.php
    if (!strstr($_SERVER['PHP_SELF'], 'install.php') && !strstr($_SERVER['PHP_SELF'], 'wp-admin/import')) {

    $querystring_start = '?';
    $querystring_equal = '=';
    $querystring_separator = '&';
    //}
    // Used to guarantee unique cookies
    $cookiehash = md5(get_settings('siteurl'));
    define('COOKIEHASH', $cookiehash);
    } //end !$_wp_installing

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’d either check for, or delete and reupload the files in your wp-includes/ directory. Sounds like they either got corrupted during upload, or are just not there.

    Thread Starter wcrosbie

    (@wcrosbie)

    1st I tried wp-includes from backed up WP 1.2.2 no change.

    Then tried wp-includes from WP ver 2.O – error message follows
    Warning: main(/…/wp-includes/template-functions.php): failed to open stream: No such file or directory in /…/wp-settings.php on line 41

    What does this mean?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘(get_settings(‘siteurl’) from wp-settings.php’ is closed to new replies.