Warning: Cannot modify header information – headers already sent by (output started at /data/web/Perfkdk/Perfk.dk/wp-config.php:1)
The error message tells you exactly what you need to know. You changed your wp-config.php file incorrectly.
You’re supposed to only modify the username and password and mysql server and such. Not insert blank or empty lines at the beginning of the file.
It is very, very important that wp-config.php start with <?php and end with ?> with nothing outside of those lines. Not blank lines, not spaces, not tabs, not anything.
Correct your wp-config.php file and try again.
This is my wp-config.php file
<?php
define('DB_NAME', 'Perfkdk');
define('DB_USER', 'Perfkdk');
define('DB_PASSWORD', 'XXXXXXXXX');
define('DB_HOST', 'mysql.webzero.dk');
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
$table_prefix = 'wp_';
define ('WPLANG', '');
define('ABSPATH', dirname(__FILE__).'/');
require_once(ABSPATH.'wp-settings.php');
?>
there is no blank spaces anywere… π
There’s not any room for debate on this, something is before the initial <?php line. Just because you can’t see it doesn’t necessarily mean that it isn’t there.
What text editor are you using? Try using a very simple text editor, like notepad. Start with a fresh copy of the wp-config-sample.php file if you have to do so.
It took me some time.
but now it works π
I went trugh evry file that it told me was an error in (8-9 files)
put them trough Wordpad, deleted the <?php and ?> and typed it in my selth.
And then it worked π thx for the help π
Hello, I couldn’t believe what is written above, but tried ist myself. And yes: The downloaded Version itself is wrong programmed – even if one only writes in the asked data and leaves everything as it is. This is the code which – after hours – does work:
<?php // ** MySQL settings ** //
define(‘DB_NAME’, ‘XXX’); // The name of the database
define(‘DB_USER’, ‘XXX’); // Your MySQL username
define(‘DB_PASSWORD’, ‘XXX’); // …and password
define(‘DB_HOST’, ‘XXX’); // 99% chance you won’t need to change this value
define(‘DB_CHARSET’, ‘utf8’);
define(‘DB_COLLATE’, ”);
define(‘WPLANG’, ‘de’);
// You can have multiple installations in one database if you give each a unique prefix
//$table_prefix = ‘wpkho_’; // Only numbers, letters, and underscores please!
// 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.
/* That’s all, stop editing! Happy blogging. */
define(‘ABSPATH’, dirname(__FILE__).’/’);
require_once(ABSPATH.’wp-settings.php’); ?>
Maybe this helps someone else.
Greetings from Germany.
798274
Make sure nothing is after the ?> at the end of the wp-config.php file… no spaces and no line returns. A couple line breaks showed up at the end when I was editing in Dreamweaver for some reason. Once I took them out, all was good. Thanks for the help Otto42!
i solved this problem
use this code
<?
//dont use header function in wordpress-wp_signup.php
global $domain;
global $path;
//change urlnew variable as per requirment
$urlnew = “http://”.$domain.$path.”/wp-admin/admin.php;
echo “<script>”;
echo “location = ‘$urlnew’;”;
echo “</script>”;
echo $urlnew;
?>
Purab Kharat