Problems, need help? Have a tip or advice? Post it here.
5 posts Page 1 of 1
I have been batteling for two days to upload an image, I keep on getting the error :

Warning: Cannot modify header information - headers already sent by (output started at /home/sddswebc/public_html/test2/couch/config.php:1) in /home/sddswebc/public_html/test2/couch/includes/kcfinder/core/browser.php on line 103

Warning: Cannot modify header information - headers already sent by (output started at /home/sddswebc/public_html/test2/couch/config.php:1) in /home/sddswebc/public_html/test2/couch/includes/kcfinder/core/browser.php on line 104

I have read all the Posts and threads on similar, I have downloaded Notepad++ to view the code, and there are no white spaces in my code,

<?php
if ( !defined('K_COUCH_DIR') ) die(); // cannot be loaded directly

the charset is right
// 3.
// Define the charset used by your site. If in any doubt, leave the default utf-8.
define( 'K_CHARSET', 'UTF-8' );

The PAge Code Looks Right :
<?php require_once( 'couch/cms.php' ); ?>
<cms:template title='Test' />
<!doctype html>
<html>
<head>
<meta charset="UTF-8">


Please help me, as I am now at the end of my tether (Hands in Hair)
Hi :)

It'd be difficult to pin-point the exact location of the problem without taking a look at the setup first hand.

If possible please PM me the FTP+Couch access creds and I can try to see if I can spot it.
Thanks KK, I have sent it all through to you :D
Thanks.

The warning mentioned 'couch/config.php' -
Warning: Cannot modify header information - headers already sent by (output started at /home/sddswebc/public_html/test2/couch/config.php:1)

I had a look and indeed couch/config.php was encoded as simply UTF8 - so it had to have the BOM bytes problem mentioned at viewtopic.php?f=4&t=53

Please use your text editor (e.g. Notepad++) and save the file with an encoding of UTF without BOM and that should rectify the problem.
KK - You are DA MAN !!!!! :P

Just for the next newbie who reads this and wonders how you save the code correctly in Notepad++ - here is the LINK[http://stackoverflow.com/questions/8432584/how-to-make-notepad-to-save-text-in-utf-8-without-bom]

One more Newbie Question KK, if you don't mind please

If I have an Image on the Page already, lets call it 'Image1' and I want the client to be able to replace it with the same size image, how would I go about that ?
5 posts Page 1 of 1