Make sure to edit file "cfg.php" at line 238 correctly, so there are outputed no extra characters!
Probably the file includes some extra strings that are outputted by webserver. (most likely they got there when someone was editing the config file)
JoomSEF then cannot send headers anymore and that results to this error.
(more about headers already sent error can be found in PHP documentation)