• Resolved shaniblog

    (@shaniblog)


    Hi there,

    I am new here and have installed my blog page but when I log into my admin area I only get the following: –

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/s/h/a/shanimiller/html/wordpress/wp-config.php:2) in /home/content/s/h/a/shanimiller/html/wordpress/wp-login.php on line 290

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/s/h/a/shanimiller/html/wordpress/wp-config.php:2) in /home/content/s/h/a/shanimiller/html/wordpress/wp-login.php on line 302

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/s/h/a/shanimiller/html/wordpress/wp-config.php:2) in /home/content/s/h/a/shanimiller/html/wordpress/wp-includes/pluggable.php on line 671

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/s/h/a/shanimiller/html/wordpress/wp-config.php:2) in /home/content/s/h/a/shanimiller/html/wordpress/wp-includes/pluggable.php on line 672

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/s/h/a/shanimiller/html/wordpress/wp-config.php:2) in /home/content/s/h/a/shanimiller/html/wordpress/wp-includes/pluggable.php on line 673

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/s/h/a/shanimiller/html/wordpress/wp-config.php:2) in /home/content/s/h/a/shanimiller/html/wordpress/wp-includes/pluggable.php on line 865

    Any help would be appreciated

    Thanks

    Shani

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter shaniblog

    (@shaniblog)

    alism

    (@alism)

    Re-do your wp-config.php file.

    Start with the wp-config-sample.php file that comes with fresh installs. Copy and paste the required information into it from your existing wp-config.php, then upload the new one to replace the one you’ve got.

    Make sure that you don’t have any spaces, extra characters or blank lines at the top. Only edit and save it with a text editor like Notepad.

    Thread Starter shaniblog

    (@shaniblog)

    Thanks, I’ll give it a go.

    Thread Starter shaniblog

    (@shaniblog)

    I gave it a go in TextEdit but it didn’t work. Now I can’t even get the page up . I’m getting this error: –

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/s/h/a/shanimiller/html/wordpress/wp-config.php:2) in /home/content/s/h/a/shanimiller/html/wordpress/wp-includes/functions.php on line 2824
    Error establishing a database connection

    Can’t I use dreamweaver to edit the php page?

    Shani

    Thread Starter shaniblog

    (@shaniblog)

    PS. I’m on a Mac so I don’t have Notepad

    alism

    (@alism)

    The error is telling you that there’s a problem on line 2 of the wp-config.php file, ie this bit “wp-config.php:2”.

    So you’re not doing something right here. Make sure it is text mode that you’re saving in, and that there’s no fancy formatting etc. When you come to FTP it to your server, make sure it’s uploaded in Ascii mode.

    More info here.

    Thread Starter shaniblog

    (@shaniblog)

    Hi again,

    Now I’m getting this error

    Parse error: parse error, unexpected T_STRING in /home/content/s/h/a/shanimiller/html/wordpress/wp-config.php on line 19

    This is what I am using now:-

    <meta http-equiv=”content-type” content=”text/html;charset=utf-8″>
    <?php/**
    * The base configurations of the WordPress.
    *
    * This file has the following configurations: MySQL settings, Table Prefix,
    * Secret Keys, WordPress Language, and ABSPATH. You can find more information by
    * visiting {@link https://codex.www.ads-software.com/Editing_wp-config.php Editing
    * wp-config.php} Codex page. You can get the MySQL settings from your web host.
    *
    * This file is used by the wp-config.php creation script during the
    * installation. You don’t have to use the web site, you can just copy this file
    * to “wp-config.php” and fill in the values.
    *
    * @package WordPress
    */

    // ** MySQL settings – You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define(‘DB_NAME’, ‘shaniblog’);

    /** MySQL database username */
    define(‘DB_USER’, ‘admin’);

    /** MySQL database password */
    define(‘DB_PASSWORD’, ‘fOs*GWBYD4*S’);

    /** MySQL hostname */
    define(‘DB_HOST’, ‘h50mysql53.secureserver.net’);

    /** Database Charset to use in creating database tables. */
    define(‘DB_CHARSET’, ‘utf8’);

    /** The Database Collate type. Don’t change this if in doubt. */
    define(‘DB_COLLATE’, ”);

    /**#@+
    * Authentication Unique Keys.
    *
    * Change these to different unique phrases!
    * You can generate these using the {@link https://api.www.ads-software.com/secret-key/1.1/ www.ads-software.com secret-key service}
    * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
    *
    * @since 2.6.0
    */
    define(‘AUTH_KEY’, ‘cZ9yP7{:&RTF2F`/&i06+g@l3@]Mqer,mj~om-V+K.dKmF-bM01B@MyIi_5N5x]F’);
    define(‘SECURE_AUTH_KEY’, ‘G-hAO!gh~gF.b3__-CFrR@tE{kMNZ628LfMq4,0Sp-+TYC9gaV:gZCsAbsD/|(oy’);
    define(‘LOGGED_IN_KEY’, ‘m :Ef#`:P+|J#kPETY{7vUj-ZgVe1|ltRCu3257-wE]-B^oExyV&=FJ&3N|J+Y|1’);
    define(‘NONCE_KEY’, ‘6Hf744+T~_)II4lgLj%3GT~j+Ftb:q`]c] zCa6*c<UL+?I{PB!UUZ@.=#-h+n(j’);
    /**#@-*/

    /**
    * WordPress Database Table prefix.
    *
    * You can have multiple installations in one database if you give each a unique
    * prefix. Only numbers, letters, and underscores please!
    */
    $table_prefix = ‘wp_’;

    /**
    * WordPress Localized Language, defaults to English.
    *
    * Change this to localize WordPress. A corresponding MO file for the chosen
    * language must be installed to wp-content/languages. For example, install
    * de.mo to wp-content/languages and set WPLANG to ‘de’ to enable German
    * language support.
    */
    define (‘WPLANG’, ”);

    /* That’s all, stop editing! Happy blogging. */

    /** WordPress absolute path to the WordPress directory. */
    if ( !defined(‘ABSPATH’) )
    define(‘ABSPATH’, dirname(__FILE__) . ‘/’);

    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . ‘wp-settings.php’);?>

    Can you see where it is going wrong.

    Thanks for your help.

    Shani

    Thread Starter shaniblog

    (@shaniblog)

    Well I’ve got the page back but still cant login to the admin page. getting the first error again and I have rewritten and resaved and reloaded the config page at least 5 times. Desperate now.

    Please help
    Shani

    alism

    (@alism)

    Posting your WordPress username, password, and secret keys for the whole world to see isn’t the best move!! I would strongly recommend you change all of them.

    The first line of your wp-config.php file shouldn’t start with <meta http-equiv="content-type" content="text/html;charset=utf-8">

    The only five characters on the very first line should be:
    <?php

    You might want to download a fresh copy of WordPress, with a shiny fresh new wp-config-sample.php file and just start again using new secret keys and passwords etc:
    https://www.ads-software.com/download/

    Thread Starter shaniblog

    (@shaniblog)

    Yeah, I’ve already changed all the secret keys etc. Thanks. I will try your new advice.

    Thread Starter shaniblog

    (@shaniblog)

    Yay!!! It is finally working. Thank you alism.

    alism

    (@alism)

    Hooray! ??

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Get this error after logging into my admin page’ is closed to new replies.