Elxis CMS Forum

Support => General => Topic started by: BlackMuddler on June 21, 2008, 22:16:34

Title: PHP Warning - Cannot send header ...
Post by: BlackMuddler on June 21, 2008, 22:16:34
Hi ..

In my development site using Elxis 2008.0 default danish frontend language i recieved following php warnings:

Code: [Select]
PHP: Cannot modify header information - headers already sent by (output started at /webroot/language/danish/danish.php:1)
uri: index.php?mylang=danish
path:
version: Elxis 2008.0 Stable rev1891 [ Olympus ] 10-February-2008 00:39 GMT+2
WARNING(2): /webroot/includes/Core/elxis.php, line 434

If I click on another language in top of template, in my case, english, it goes away. Then I can click back to danish, and surf around on site without warnings.

I use ubuntu linux server with apache, php and mysql.

Php version 5.2.3
MySQL 5.0.45

Caching is disabled also is GZip

Any hints or guiding for me  ???
Title: Re: PHP Warning - Cannot send header ...
Post by: Ivan Trebješanin on June 21, 2008, 22:31:18
Hi again,

This problem can appear if language is not utf-8 encoded. I have tried your translation after few fixes, and it is working perfectly. Please try to uninstall danish language and install the one downloaded from elxis-downloads.com All the file MUST be utf-8 encoded.
Title: Re: PHP Warning - Cannot send header ...
Post by: BlackMuddler on June 21, 2008, 22:45:24
This problem can appear if language is not utf-8 encoded.

Weird .. I use Notepad++ and it shows me UTF-8 down in right corner when i editing the languages files.

I have tried your translation after few fixes, and it is working perfectly. Please try to uninstall danish language and install the one downloaded from elxis-downloads.com All the file MUST be utf-8 encoded.

These fixes your talking about - is that UTF-8 fixes ? I have tested all files i Elxis before sending them. My mistake. I'll try bee more carefully before i send translate backend files.

I will download the packages from elxis-download.

Thanks for your help.
Title: Re: PHP Warning - Cannot send header ...
Post by: Ivan Trebješanin on June 21, 2008, 22:53:51
OK, now danish language is fixed! You may download it at http://www.elxis-downloads.com/languages/front-end/danish-2008-frontend.html
Sorry for any inconvinience. :P
Title: Re: PHP Warning - Cannot send header ...
Post by: Farhad Sakhaei on June 22, 2008, 10:08:22
It is because for existing BOM beginning characters , I mean these characters : 
In utf-8 for windows always adds these characters in beginning of the files with utf-8 windows encoding ...
You can use UTF-8 without BOM ... If it is disabled , First click on ANSI and after it click on UTF-8 without BOM  :)