Warning: Cannot modify header information….again
-
I feel like I have tried every thing that every post has said about this issue and it still doesn’t work.
Here is the error:
Warning: Cannot modify header information – headers already sent by (output started at /home/xxx/public_html/sunshinecoastskipbags.com.au/wp-config.php:1) in /home/xxx/public_html/sunshinecoastskipbags.com.au/wp-includes/ms-settings.php on line 183
I have removed all blank (whitespace) from the wp_config.php file and it still doesn’t work. I am at a lose.
Here is my wp-config.php file.
<?php /** * The base configuration for WordPress * * The wp-config.php creation script uses this file during the * installation. You don't have to use the web site, you can * copy this file to "wp-config.php" and fill in the values. * * This file contains the following configurations: * * * MySQL settings * * Secret keys * * Database table prefix * * ABSPATH * * @link https://codex.wordpress.org/Editing_wp-config.php * * @package WordPress */ // ** MySQL settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define('DB_NAME', 'redacted'); /** MySQL database username */ define('DB_USER', 'redacted'); /** MySQL database password */ define('DB_PASSWORD', 'redacted'); /** MySQL hostname */ define('DB_HOST', 'localhost'); /** 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 and Salts. * * Change these to different unique phrases! * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org 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', 'kh2nxOd6lvDu7eNU2WIJiyBJU4c1TjosIQBQiuuTZVHfeYp6mX1HVI67BOusAKFQ'); define('SECURE_AUTH_KEY', 'LVWxN68E56YsgmriTAG9hG6Vc3zVNUZkvXTTjp20tSy2ofreCpXBeVk8OwyEaAbl'); define('LOGGED_IN_KEY', 'hr4UIqkTqUz1saBk1Cp08B76cmGQIypJsORppgMuJUr5qDQJXUviswMOtpBHlDZT'); define('NONCE_KEY', 'Kr2ZHHvEFHerJO3OcEf6YC19AL33FZJWBF9KjLAWcF4BHwtGiS9BJ4ybxbReXBIt'); define('AUTH_SALT', 'zaWdbV0LCuGevC6HBHJpMgdgxa8oWIU0IuiPa0rSpV8In9WNO56Muf6e2ye7gBsz'); define('SECURE_AUTH_SALT', 'T2bVhMny42KZiyGJsgblbNtEGV2rVOSo8HlqOCtM0TZ5LDrdt1jb2YEPmySr8eSc'); define('LOGGED_IN_SALT', 'unhY5hkXkl2EIFipbeSM9U8Yuj0nS7qNIvDYxzsDdSvYeKgjgORJHkKPcMXnPSu6'); define('NONCE_SALT', 'puromGKo2osidUiCnWmL2EifMueqDkRtDcuatRmg8natCMrXlEfMiwUL6gWEplUk'); /** * Other customizations. */ define('FS_METHOD','direct');define('FS_CHMOD_DIR',0755);define('FS_CHMOD_FILE',0644); define('WP_TEMP_DIR',dirname(__FILE__).'/wp-content/uploads'); /** * Turn off automatic updates since these are managed upstream. */ define('AUTOMATIC_UPDATER_DISABLED', true); /** * Multi-site * */ define('MULTISITE', true); define('SUBDOMAIN_INSTALL', false); $base = '/'; define('DOMAIN_CURRENT_SITE', 'sunshinecoastskipbags.com.au'); define('PATH_CURRENT_SITE', '/'); define('SITE_ID_CURRENT_SITE', 1); define('BLOG_ID_CURRENT_SITE', 1); define('WP_ALLOW_MULTISITE', true); /**#@-*/ /** * 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_'; /** * For developers: WordPress debugging mode. * * Change this to true to enable the display of notices during development. * It is strongly recommended that plugin and theme developers use WP_DEBUG * in their development environments. * * For information on other constants that can be used for debugging, * visit the Codex. * * @link https://codex.wordpress.org/Debugging_in_WordPress */ define('WP_DEBUG', false); /* That's all, stop editing! Happy blogging. */ /** 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');Line 183 of ms_settings.php is
header( 'Location: ' . $destination );There is no whitespace in that file either.
Not sure what to do. Cannot find a solution.
Thanks for any help in advance.
The topic ‘Warning: Cannot modify header information….again’ is closed to new replies.