Problems, need help? Have a tip or advice? Post it here.
8 posts Page 1 of 1
Hi,
I am totally new to Couch and it looks very good.
However, I am encountering this issue and have applied the prescribed fixes ie, no spaces before the initial <?php require_once( 'couch/cms.php' ); ?> , and all files are UTF-8 (checked in Notepad ++).
The problem can be seen here: http://www.alderley-union-club.co.uk/about.php

Any advice would be appreciated
Thanks
Jerry
Hi Jerry :)

all files are UTF-8 (checked in Notepad ++).
Just 'UTF-8' would actually *cause* this problem. Please check that the encoding shows 'UTF-8 without BOM'.

If the encoding happens to be without BOM and the problem persists, please check your 'couch/config.php' (as this is another file that you'd have certainly edited) - make sure it does not contain any leading spaces and is also encoded as UTF-8 without BOM.

If that does not help and you'd like me to help, feel free to PM me your site's FTP+Couch access creds and I'll look into it.

Thanks.
Hi KK
thanks, you've identified my total lack of knowledge of encoding!
Anyway, I have made the changes but it still comes up with the same error message. For now I've used some php to prevent it being displayed at the top of the page [Couch works fine]
Could it be anything else eg server settings?
cheers
Jerry
Jerry, I've listed out all possible reasons that I could think of.
I really will have to take a look at the problem first-hand to know what else could be causing it.

Anyway, could you please share what PHP code you have used to get rid of the error?
Hi KK,
this is the code to avoid the error message:
<?php
error_reporting(0);?>

What I have now found is that I get a similar error when trying to insert an image, making it impossible to do so. This was not evident before I changed to UTF-8 - BOM!! Removing the above code has no effect.
Rgds
Jerry
Hi
I seem to have fixed this. I used a Hex editor and found that despite having used Notepad++ to encode UTF-8-BOM, there were still 3 leading characters at the head of the files. All sorted now, but I really hadn't expected to get down to this level of coding!!
I can now hopefully get to building my site on Couch :)

cheers
Jerry
I'm glad the problem is solved, Jerry :)
Thanks for letting me know.
JerryDi wrote: Hi KK,
this is the code to avoid the error message:
<?php
error_reporting(0);?>

What I have now found is that I get a similar error when trying to insert an image, making it impossible to do so. This was not evident before I changed to UTF-8 - BOM!! Removing the above code has no effect.
Rgds
Jerry


I've used the same code to my page however it doesn't seem to work, any suggestions?
8 posts Page 1 of 1