[SOLVED] Strange xajax error caused by module TruetypeText

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
User avatar
dam
Forum Members
Forum Members
Posts: 136
Joined: Sat Jan 14, 2006 6:07 pm

[SOLVED] Strange xajax error caused by module TruetypeText

Post 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 belowImage


I really don't know what is the matter in my en_US.php file  :-\ :-\

An idea ?
Last edited by dam on Mon Sep 17, 2007 10:02 am, edited 1 time in total.
User avatar
aln_cms
Forum Members
Forum Members
Posts: 88
Joined: Mon Jan 08, 2007 7:09 pm
Location: Ireland

Re: Strange xajax error caused by module TruetypeText

Post by aln_cms »

is there a space before the opening php (<php) tag in listcontent.php? Whitespace in that file can cause this.
--
Alan Ryan
Lead Developer
CodeCrunchers Internet Software Development - Ireland
http://www.codecrunchers.ie
User avatar
dam
Forum Members
Forum Members
Posts: 136
Joined: Sat Jan 14, 2006 6:07 pm

Re: Strange xajax error caused by module TruetypeText

Post 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 ?
alby

Re: Strange xajax error caused by module TruetypeText

Post 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
User avatar
dam
Forum Members
Forum Members
Posts: 136
Joined: Sat Jan 14, 2006 6:07 pm

Re: Strange xajax error caused by module TruetypeText

Post 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 ?
newbie2k7
Forum Members
Forum Members
Posts: 56
Joined: Mon Aug 27, 2007 11:03 am

Re: [SOLVED] Strange xajax error caused by module TruetypeText

Post by newbie2k7 »

hallo dam.
i have the same fault as you. which languagefiles you have converted.
thanks alot
User avatar
dam
Forum Members
Forum Members
Posts: 136
Joined: Sat Jan 14, 2006 6:07 pm

Re: [SOLVED] Strange xajax error caused by module TruetypeText

Post 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).
newbie2k7
Forum Members
Forum Members
Posts: 56
Joined: Mon Aug 27, 2007 11:03 am

Re: [SOLVED] Strange xajax error caused by module TruetypeText

Post 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.

??? ??? ??? ???
User avatar
aln_cms
Forum Members
Forum Members
Posts: 88
Joined: Mon Jan 08, 2007 7:09 pm
Location: Ireland

Re: [SOLVED] Strange xajax error caused by module TruetypeText

Post 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?
--
Alan Ryan
Lead Developer
CodeCrunchers Internet Software Development - Ireland
http://www.codecrunchers.ie
newbie2k7
Forum Members
Forum Members
Posts: 56
Joined: Mon Aug 27, 2007 11:03 am

Re: [SOLVED] Strange xajax error caused by module TruetypeText

Post by newbie2k7 »

great.
thats it.  :D :D
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
Post Reply

Return to “Developers Discussion”