• I have attempted to follow the instructions step-by-step, and have encoutered the following troubles:

    SQL/DB Error --
    [
    Error selecting database blog!
    Are you sure it exists?
    Are you sure there is a valid database connection?
    ]
    WordPress
    Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/cgolden/public_html/wordpress/b2-include/wp-db.php on line 147
    Welcome to WordPress. We’re now going to go through a few steps to get you up and running with the latest in personal publishing platforms. Before we get started, remember that we require a PHP version of at least 4.0.6, you have 4.3.3. Look good? You also need to set up the database connection information in wp-config.php. Have you looked at the readme? If you’re all ready, let's go!

    My server is currently using PHP 4.3.3 and MySql 4.0.15-standard, whereas I was using IE. My attempt to create the wp-config.php file:

    <?php
    /** WordPress's config file **/
    // ** MySQL settings **
    define('DB_NAME', 'blog'); // The name of the database
    define('DB_USER', 'admin'); // Your MySQL username
    define('DB_PASSWORD', '[password removed]'); // ...and password
    define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
    // Database tables' names
    //
    // Change them if you want to have multiple blogs in a single database.
    // If you already have custom names leave table_prefix empty and just
    // edit the names.
    $table_prefix = 'wp_'; // eg 'wp_' or 'b2' or 'mylogin_'
    $tableposts = $table_prefix . 'posts';
    $tableusers = $table_prefix . 'users';
    $tablesettings = $table_prefix . 'settings'; // only used during upgrade
    $tablecategories = $table_prefix . 'categories';
    $tablecomments = $table_prefix . 'comments';
    $tablelinks = $table_prefix . 'links';
    $tablelinkcategories = $table_prefix . 'linkcategories';
    $tableoptions = $table_prefix . 'options';
    $tableoptiontypes = $table_prefix . 'optiontypes';
    $tableoptionvalues = $table_prefix . 'optionvalues';
    $tableoptiongroups = $table_prefix . 'optiongroups';
    $tableoptiongroup_options = $table_prefix . 'optiongroup_options';
    // This is the name of the include directory. No "/" allowed.
    $b2inc = 'b2-include';
    /* Stop editing */
    $HTTP_HOST = getenv('HTTP_HOST'); /* domain name */
    $REMOTE_ADDR = getenv('REMOTE_ADDR'); /* visitor's IP */
    $HTTP_USER_AGENT = getenv('HTTP_USER_AGENT'); /* visitor's browser */
    $server = DB_HOST;
    $loginsql = DB_USER;
    $passsql = DB_PASSWORD;
    $base = DB_NAME;
    $abspath = dirname(__FILE__).'/';
    // pull in the day and month translations and the smilies
    require_once($abspath.'wp-config-extra.php');
    require_once($abspath.$b2inc.'/wp-db.php');
    require_once($abspath.$b2inc.'/b2functions.php');
    require_once($abspath.'wp-settings.php');
    ?>

    Anyone able to understand my madness and cure me?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Well, there’s a problem with your config file. Did you actually create a database called ‘blog’? The install doesn’t create that for you. (It creates and populates the tables, not the db itself.) Double check your settings…but that’s what this message means. Something’s not right in Config.php City.

    Thread Starter lyteforce

    (@lyteforce)

    Okay, now I’m getting this problem when I go to login:

    Warning: Cannot modify header information - headers already sent by (output started at /home/cgolden/public_html/wordpress/wp-config.php:55) in /home/cgolden/public_html/wordpress/b2login.php on line 125
    Warning: Cannot modify header information - headers already sent by (output started at /home/cgolden/public_html/wordpress/wp-config.php:55) in /home/cgolden/public_html/wordpress/b2login.php on line 129
    Warning: Cannot modify header information - headers already sent by (output started at /home/cgolden/public_html/wordpress/wp-config.php:55) in /home/cgolden/public_html/wordpress/b2login.php on line 132
    Warning: Cannot modify header information - headers already sent by (output started at /home/cgolden/public_html/wordpress/wp-config.php:55) in /home/cgolden/public_html/wordpress/b2login.php on line 134
    Warning: Cannot modify header information - headers already sent by (output started at /home/cgolden/public_html/wordpress/wp-config.php:55) in /home/cgolden/public_html/wordpress/b2login.php on line 135
    Warning: Cannot modify header information - headers already sent by (output started at /home/cgolden/public_html/wordpress/wp-config.php:55) in /home/cgolden/public_html/wordpress/b2login.php on line 136
    Warning: Cannot modify header information - headers already sent by (output started at /home/cgolden/public_html/wordpress/wp-config.php:55) in /home/cgolden/public_html/wordpress/b2login.php on line 137
    Warning: Cannot modify header information - headers already sent by (output started at /home/cgolden/public_html/wordpress/wp-config.php:55) in /home/cgolden/public_html/wordpress/b2login.php on line 157

    Sure earning my grey hair trying to figure this out. Anyone able to shed some light?

    Thread Starter lyteforce

    (@lyteforce)

    Problem solved via the good people in the IRC channel!

    same problem here. lyteforce, can you post the fix?

    comment out line 553 in wp-includes/functions.php (add “//” in front of the line – no quotes)
    It seems one of the settings is missing and the error message is causing premature output which breaks the header data and cookies.

    Thread Starter lyteforce

    (@lyteforce)

    Essentially the second error was created by a whitespace at the end of the wp-config.php. I modified it in notepad and then uploaded the correct version. Did the trick.

    Hi, I’ve had this same problem re. posted headers.
    Commenting out line 553:
    error_log("get_settings: Didn't find setting $setting");
    did seem to work – no more announced errors…
    BUT.
    Now when I try and login i get nowhere – submitting on the wp-login.php page just refreshes the page with username and password fields blanked out.
    The url is modified to :
    http://www.blogshit.com/wp-login.php?redirect_to=%2Fwp-admin%2Fpost.php
    but there is no change to the displayed page.
    I am sure i am using correct login/password.
    Haven’t actually managed to get past my own front page yet….
    Any suggestions??
    Thanks.

    aaaaah,
    foolishly i had disabled cookies for my website when trying to fix the first error.
    re-enabling them fixed the second.
    Would be nice to have some error message about cookies being required though…..
    Rupert.

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

The topic ‘Newb Installation Issues’ is closed to new replies.