Page 1 of 1
[SOLVED] Strange xajax error caused by module TruetypeText
Posted: Fri Sep 14, 2007 10:08 pm
by dam
Hello all.
I really don't know the origin of the bug apparently caused by TruetypeText : see bug report.
It seems that my module affects xajax functions in listcontent.php : a javascrip error appears, as you cans see below
I really don't know what is the matter in my en_US.php file
An idea ?
Re: Strange xajax error caused by module TruetypeText
Posted: Sun Sep 16, 2007 5:11 pm
by aln_cms
is there a space before the opening php (<php) tag in listcontent.php? Whitespace in that file can cause this.
Re: Strange xajax error caused by module TruetypeText
Posted: Sun Sep 16, 2007 8:56 pm
by dam
aln_cms wrote:
is there a space before the opening php (<php) tag in listcontent.php? Whitespace in that file can cause this.
I didn't see any space in listcontent.php, nor in my en_US.php or TruetypeText.module.php. If I remove en_US.php, the same error appears with my locale file (fr_FR.php).
The matter is I don't have any way to find where the problem is : no explicit output actually. Does anyone have any idea on how to diagnose this bug ?
Re: Strange xajax error caused by module TruetypeText
Posted: Sun Sep 16, 2007 9:56 pm
by alby
dam wrote:
aln_cms wrote:
is there a space before the opening php (<php) tag in listcontent.php? Whitespace in that file can cause this.
I didn't see any space in listcontent.php, nor in my en_US.php or TruetypeText.module.php. If I remove en_US.php, the same error appears with my locale file (fr_FR.php).
The matter is I don't have any way to find where the problem is : no explicit output actually. Does anyone have any idea on how to diagnose this bug ?
With FF try Firebug Addon (JS debug)
Alby
Re: Strange xajax error caused by module TruetypeText
Posted: Mon Sep 17, 2007 10:01 am
by dam
Well, I've finally found the origin : my lang files where coded in UTF-8.
When in ANSI, the bug disappears. Is it something normal ?
Re: [SOLVED] Strange xajax error caused by module TruetypeText
Posted: Tue Sep 18, 2007 10:33 am
by newbie2k7
hallo dam.
i have the same fault as you. which languagefiles you have converted.
thanks alot
Re: [SOLVED] Strange xajax error caused by module TruetypeText
Posted: Tue Sep 18, 2007 10:37 am
by dam
newbie2k7 wrote:
hallo dam.
i have the same fault as you. which languagefiles you have converted.
thanks alot
The two language files of TruetypeText where in UTF-8. I converted them in ANSI and everything is OK now. I published a new release including these modifications (and also additional features).
Re: [SOLVED] Strange xajax error caused by module TruetypeText
Posted: Tue Sep 18, 2007 11:21 am
by newbie2k7
thanks.
but i have the same fault in another module.
this is my errormessage
http://www.bilder-hosting.de/show/F2WZK.html.
unfortunately, your solution do not work. i converted the languagefiles of the module statistic but the fault lasts.

Re: [SOLVED] Strange xajax error caused by module TruetypeText
Posted: Tue Sep 18, 2007 11:35 am
by aln_cms
I seem like a whitespace junkie here, but ... is there a whitespace at the start of your file. It seems that the tag has one before it?
Re: [SOLVED] Strange xajax error caused by module TruetypeText
Posted: Tue Sep 18, 2007 1:11 pm
by newbie2k7
great.
thats it.

at the start of the languagefile i had two whitespaces in front of the php-tag.
i also could have known/ found this myself.

thanks alot for your help.
bye