• status93

    (@status93)


    Hi.
    The installation on the website went OK, but when I try to login, this errormessage come at the wp_admin page:

    Warning: Cannot modify header information – headers already sent by (output started at /home/sana/public_html/wp-config.php:1) in /home/sana/public_html/wp-login.php on line 368

    Warning: Cannot modify header information – headers already sent by (output started at /home/sana/public_html/wp-config.php:1) in /home/sana/public_html/wp-login.php on line 380

    After ignoring this, and completing login, I geet multiple errors:
    Warning: Cannot modify header information – headers already sent by (output started at /home/sana/public_html/wp-config.php:1) in /home/sana/public_html/wp-login.php on line 368

    Warning: Cannot modify header information – headers already sent by (output started at /home/sana/public_html/wp-config.php:1) in /home/sana/public_html/wp-login.php on line 380

    Warning: Cannot modify header information – headers already sent by (output started at /home/sana/public_html/wp-config.php:1) in /home/sana/public_html/wp-includes/pluggable.php on line 680

    Warning: Cannot modify header information – headers already sent by (output started at /home/sana/public_html/wp-config.php:1) in /home/sana/public_html/wp-includes/pluggable.php on line 681

    Warning: Cannot modify header information – headers already sent by (output started at /home/sana/public_html/wp-config.php:1) in /home/sana/public_html/wp-includes/pluggable.php on line 682

    Warning: Cannot modify header information – headers already sent by (output started at /home/sana/public_html/wp-config.php:1) in /home/sana/public_html/wp-includes/pluggable.php on line 876

    The username for the db is correct and so is the passord.
    And IP to db is ok.
    I’ve never had any problems installing WP before, so I really need some help now.
    The page is so far on http://sana.nettkroken.com and firsty errormessage arrives at http://sana.nettkroken.com/wp-login.php

    Brgds,

    Baard L.

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

    (@esmi)

    Thread Starter status93

    (@status93)

    Hi, Esmi.
    I’ve done that, but no luck.
    Here is the file:

    <?php
    /**
     * Grunnkonfigurasjonen til WordPress.
     *
     * Denne filen inneholder følgende konfigurasjoner: MySQL-innstillinger, tabellprefiks,
     * hemmelige nøkler, WordPress-språk og ABSPATH. Du kan finne mer informasjon
     * ved å besøke {@link http://codex.wordpress.org/Editing_wp-config.php Editing
     * wp-config.php} Codex-siden. Du kan få MySQL-innstillingene fra din nettjener.
     *
     * Denne filen brukes av koden som lager wp-config.php i løpet av
     * installasjonen. Du trenger ikke å bruke nettstedet til å gjøre det, du trenger bare
     * å kopiere denne filen til "wp-config.php" og fylle inn verdiene.
     *
     * @package WordPress
     */
    
    // ** MySQL-innstillinger - Dette får du fra din nettjener ** //
    /** Navnet på WordPress-databasen */
    define('DB_NAME', 'sana_as');
    
    /** MySQL-databasens brukernavn */
    define('DB_USER', 'sana_as');
    
    /** MySQL-databasens passord */
    define('DB_PASSWORD', 'PASSWORD REMOVED');
    
    /** MySQL-tjener */
    define('DB_HOST', 'IP REMOVED');
    
    /** Tegnsettet som skal brukes i databasen for å lage tabeller. */
    define('DB_CHARSET', 'utf8');
    
    /** Databasens "Collate"-type. La denne være hvis du er i tvil. */
    define('DB_COLLATE', '');
    
    /**#@+
     * Autentiseringsnøkler og salter.
     *
     * Endre disse til unike nøkler!
     * Du kan generere nøkler med {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
     * Du kan når som helst endre disse nøklene for å gjøre aktive cookies ugyldige. Dette vil tvinge alle brukere å logge inn igjen.
     *
     * @since 2.6.0
     */
    define('AUTH_KEY',         '');
    define('SECURE_AUTH_KEY',  '');
    define('LOGGED_IN_KEY',    '');
    define('NONCE_KEY',        '');
    define('AUTH_SALT',        '');
    define('SECURE_AUTH_SALT', '');
    define('LOGGED_IN_SALT',   '');
    define('NONCE_SALT',       '');
    
    /**#@-*/
    
    /**
     * WordPress-databasens tabellprefiks.
     *
     * Du kan ha flere installasjoner i en databasehvis du gir dem hver deres unike
     * prefiks. Kun tall, bokstaver og understrek (_), takk!
     */
    $table_prefix  = 'wp_';
    
    /**
     * WordPress-språk, forhåndsinnstilt til norsk (bokmål).
     *
     * Du kan endre denne linjen for å bruke WordPress på et annet språk. En tilsvarende MO-fil for
     * det valgte språket må installeres i wp-content/languages. For eksempel, installer
     * de.mo i wp-content/languages og sett WPLANG til 'de' for å aktivere språkstøtte
     * på tysk.
     */
    define('WPLANG', 'nb_NO');
    
    /**
     * For utviklere: WordPress-feilsøkingstilstand.
     *
     * Sett denne til "true" for å aktivere visning av meldinger under utvikling.
     * Det er sterkt anbefalt at innstikks- og tema-utviklere bruker WP_DEBUG
     * i deres utviklermiljøer.
     */
    define('WP_DEBUG', false);
    
    /* That's all, stop editing! Happy blogging. */
    
    /** Absolute path to the WordPress directory. */
    if ( !defined('ABSPATH') )
    	define('ABSPATH', dirname() . '/');
    
    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');
    
    ?>

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    esmi

    (@esmi)

    Look at the error message. You have added something to wp-config.php at line 1 when creating/editing the file.

    Thread Starter status93

    (@status93)

    The first line is:
    <?php
    and nothing else.
    Please advice.

    esmi

    (@esmi)

    Please see the page at the link I posted above.

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

The topic ‘Install ok – by error on login’ is closed to new replies.