Title: Login error (/wp-config.php:1)
Last modified: March 30, 2017

---

# Login error (/wp-config.php:1)

 *  [mauriciodido](https://wordpress.org/support/users/mauriciodido/)
 * (@mauriciodido)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/login-error-wp-config-php1/)
 * Hi everybody, this is my first post in the forum. I hope if somebody can help
   me.
    I moved my site files to a new domain and host. After updating wp-config
   and changing the site urls, i get this error:
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home2/chapi278/comorecuperararchivos.com/wp-config.php:1) in /home2/chapi278/
   comorecuperararchivos.com/wp-includes/pluggable.php on line 1179
 * I understand it is a mistake in my wp-config.php
 * My wp-config :
 *     ```
       <?php
       /** 
        * Configuración básica de WordPress.
        *
        * Este archivo contiene las siguientes configuraciones: ajustes de MySQL, prefijo de tablas,
        * claves secretas, idioma de WordPress y ABSPATH. Para obtener más información,
        * visita la página del Codex{@link http://codex.wordpress.org/Editing_wp-config.php Editing
        * wp-config.php} . Los ajustes de MySQL te los proporcionará tu proveedor de alojamiento web.
        *
        * 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
        */
   
       // ** Ajustes de MySQL. Solicita estos datos a tu proveedor de alojamiento web. ** //
       /** El nombre de tu base de datos de WordPress */
       define('DB_NAME', 'xxxx');
   
       /** Tu nombre de usuario de MySQL */
       define('DB_USER', 'xxxx');
   
       /** Tu contraseña de MySQL */
       define('DB_PASSWORD', 'xxxx');
   
       /** Host de MySQL (es muy probable que no necesites cambiarlo) */
       define('DB_HOST', 'localhost');
   
       /** Codificación de caracteres para la base de datos. */
       define('DB_CHARSET', 'utf8');
   
       /** Cotejamiento de la base de datos. No lo modifiques si tienes dudas. */
       define('DB_COLLATE', '');
   
       /**#@+
        * Claves únicas de autentificación.
        *
        * Define cada clave secreta con una frase aleatoria distinta.
        * Puedes generarlas usando el {@link https://api.wordpress.org/secret-key/1.1/salt/ servicio de claves secretas de WordPress}
        * Puedes cambiar las claves en cualquier momento para invalidar todas las cookies existentes. Esto forzará a todos los usuarios a volver a hacer login.
        *
        * @since 2.6.0
        */
       define('AUTH_KEY', 'pon aquí tu frase aleatoria'); // Cambia esto por tu frase aleatoria.
       define('SECURE_AUTH_KEY', 'pon aquí tu frase aleatoria'); // Cambia esto por tu frase aleatoria.
       define('LOGGED_IN_KEY', 'pon aquí tu frase aleatoria'); // Cambia esto por tu frase aleatoria.
       define('NONCE_KEY', 'pon aquí tu frase aleatoria'); // Cambia esto por tu frase aleatoria.
       define('AUTH_SALT', 'pon aquí tu frase aleatoria'); // Cambia esto por tu frase aleatoria.
       define('SECURE_AUTH_SALT', 'pon aquí tu frase aleatoria'); // Cambia esto por tu frase aleatoria.
       define('LOGGED_IN_SALT', 'pon aquí tu frase aleatoria'); // Cambia esto por tu frase aleatoria.
       define('NONCE_SALT', 'pon aquí tu frase aleatoria'); // Cambia esto por tu frase aleatoria.
   
       /**#@-*/
   
       /**
        * Prefijo de la base de datos de WordPress.
        *
        * Cambia el prefijo si deseas instalar multiples blogs en una sola base de datos.
        * Emplea solo números, letras y guión bajo.
        */
       $table_prefix  = 'wp_';
   
       /**
        * Para desarrolladores: modo debug de WordPress.
        *
        * Cambia esto a true para activar la muestra de avisos durante el desarrollo.
        * Se recomienda encarecidamente a los desarrolladores de temas y plugins que usen WP_DEBUG
        * en sus entornos de desarrollo.
        */
       define('WP_DEBUG', false);
   
       /* ¡Eso es todo, deja de editar! Feliz 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');
       ```
   
    -  This topic was modified 9 years, 1 month ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
      Reason: put code in backticks

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

 *  [sinip](https://wordpress.org/support/users/sinip/)
 * (@sinip)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/login-error-wp-config-php1/#post-8974782)
 * Look here as well – [https://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F](https://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F)
 *  Thread Starter [mauriciodido](https://wordpress.org/support/users/mauriciodido/)
 * (@mauriciodido)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/login-error-wp-config-php1/#post-8974975)
 * [@sinip](https://wordpress.org/support/users/sinip/) I looked at it, but there
   was no solution, ty
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years, 1 month ago](https://wordpress.org/support/topic/login-error-wp-config-php1/#post-8975216)
 * Make sure there’s no blank space before or blank line above `<?php`
 *  Thread Starter [mauriciodido](https://wordpress.org/support/users/mauriciodido/)
 * (@mauriciodido)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/login-error-wp-config-php1/#post-8976126)
 * [@sterndata](https://wordpress.org/support/users/sterndata/) I already checked
   it and it does not have any space. The code is as shown above.
 * _[Moderator note: Please, [no bumping](https://codex.wordpress.org/Forum_Welcome#No_Bumping).]_
    -  This reply was modified 9 years, 1 month ago by [mauriciodido](https://wordpress.org/support/users/mauriciodido/).
    -  This reply was modified 9 years, 1 month ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years, 1 month ago](https://wordpress.org/support/topic/login-error-wp-config-php1/#post-8978426)
 * This may be a plugin or theme conflict. Please attempt to disable all plugins,
   and use one of the default (Twenty*) themes. If the problem goes away, enable
   them one by one to identify the source of your troubles.
 * See [http://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/](http://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/)
 *  Thread Starter [mauriciodido](https://wordpress.org/support/users/mauriciodido/)
 * (@mauriciodido)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/login-error-wp-config-php1/#post-8978596)
 * [@sterndata](https://wordpress.org/support/users/sterndata/) Hi steve, the first
   thing I did was disable all the plugins but it still does not work. What I can
   not do is change the theme since I can not enter the site.
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years, 1 month ago](https://wordpress.org/support/topic/login-error-wp-config-php1/#post-8979056)
 * rename your theme directory from wp-content/themes/mytheme to wp-content/themes/
   mytheme.old — that will force WP to fall back to one of the twenty* themes.
 *  Thread Starter [mauriciodido](https://wordpress.org/support/users/mauriciodido/)
 * (@mauriciodido)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/login-error-wp-config-php1/#post-8979104)
 * [@sterndata](https://wordpress.org/support/users/sterndata/) , Already rename
   the theme folder, but this does not return to the twenty theme, continues with
   eliza-lite
 *  Thread Starter [mauriciodido](https://wordpress.org/support/users/mauriciodido/)
 * (@mauriciodido)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/login-error-wp-config-php1/#post-8984693)
 * [@sterndata](https://wordpress.org/support/users/sterndata/) I noticed that all
   the changes I make have no effect.
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years, 1 month ago](https://wordpress.org/support/topic/login-error-wp-config-php1/#post-8984705)
 * I’m not seeing it, so maybe try this– rename wp-config.php to wp-config-old.php,
   and wp-config-sample.php to wp-config.php, then edit wp-config.php to put in 
   the DB_ values.
 * If that doesn’t help, use the manual update to reinstall WordPress: [https://codex.wordpress.org/Updating_WordPress#Manual_Update](https://codex.wordpress.org/Updating_WordPress#Manual_Update)
 *  Thread Starter [mauriciodido](https://wordpress.org/support/users/mauriciodido/)
 * (@mauriciodido)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/login-error-wp-config-php1/#post-8984932)
 * [@sterndata](https://wordpress.org/support/users/sterndata/) , Try everything.
   Erase all the theme and still eliza-lite, I do not know how can be.

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

The topic ‘Login error (/wp-config.php:1)’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 13 replies
 * 3 participants
 * Last reply from: [mauriciodido](https://wordpress.org/support/users/mauriciodido/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/login-error-wp-config-php1/#post-8984932)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
