Page 1 of 1

Small Problem

Posted: Tue Jul 14, 2009 8:25 pm
by ctuga
I've added to a plugin in staticpages utf-8 a translation to my on language(pt) everything is working ok but, after i login and inside my Admin area a try to add for eg. a new static page or anything else it sends me back to login page.But if i remove or change the name of the translated file it works well again.
How can i resolve this please?

Re: Small Problem

Posted: Tue Jul 14, 2009 8:40 pm
by garvinhicking
Hi!

Can you check your custom language file if you have any characters after the last ?> or before the first <?php? Any linebreaks, or even UTF-8 BOM Bytemarks can disturb the whole page flow.

Regards,
Garvin

Re: Small Problem

Posted: Tue Jul 14, 2009 10:52 pm
by ctuga
Hi, Garvin, i don't see any thing befour or after php tags, i've uploaded the file maybe you can see the problem.
Regards,and thanks for your help.

Re: Small Problem

Posted: Wed Jul 15, 2009 9:37 am
by garvinhicking
Hi!

Indeed your file contains the 3-byte UTF-8 BOM at the start. Most editors hide this from you, so you specifically need to save the file in "UTF-8 Format WITHOUT BOM". Or use a linux editor like vim, joe to strip the first 3 bytes.

Sadly this is a problem/error with PHP itself, as it cannot deal with UTF-8 BOM - so it's not really Serendipity related.

Regards,
Garvin

Re: Small Problem

Posted: Wed Jul 15, 2009 7:30 pm
by ctuga
Hi
Ok thanks, always learning.