PDA

View Full Version : Unable to add cookies, header already sent.


sekel
09-13-2013, 02:30 AM
can you help me , about my problem ?

Unable to add cookies, header already sent.
File: /home/piceaon1/public_html/forums/includes/config.php
Line: 1

please help me now !!

Max Taxable
09-13-2013, 03:10 AM
Did you recently edit config.php file?

If so, did you use a real text editor, or just wordpad?

Zachery
09-13-2013, 03:25 AM
You've got white space, or something like a UTF-8 bom before the <?php. If its a UTF8 bom, php files are supposed to be stored in ASCII plaintext, not anything else.

sekel
09-13-2013, 06:26 AM
Max Taxable : yes , I'm opened file config.php with notepad,
Zachery : what a UTF-8 bom and ASCII plaintext ,
please tell me step by step for my trouble ! help me please

Max Taxable
09-13-2013, 12:47 PM
Max Taxable : yes , I'm opened file config.php with notepad,
Zachery : what a UTF-8 bom and ASCII plaintext ,
please tell me step by step for my trouble ! help me pleaseOpen the file with TextEdit, Notepad++ or some other actual text editor.

Just the common notepad puts either a white space or a character at the top that shouldn't be there and breaks the PHP code. You cannot see this white space or extra character in notepad. You must use a real text editor.

Remove the blank space or rouge character, just like Zachary said, before the "<?php" at the top, and mean old problem solved.