Page 1 of 1

UDT validation bugs?

Posted: Thu May 05, 2011 7:52 am
by zygote
Hi,
There seems to be a problem with the latest CMSMS (1.9.4.1) where it will not accept UDT with:

php assigning to a variable ending in a number, where the variable is assigned a number. eg:

$shortvar1 = 1;

Is this just me or does this happen for others as well? I discovered I couldn't modify my php code in the UDT section, and these kinds of variables stopped it from submitting. If I click apply, nothing happens, and if I click submit I reach a 404 page! When I remove the code, then everything works fine.

Thanks.

Re: UDT validation bugs?

Posted: Thu May 05, 2011 9:19 am
by Jos
I created a new UDT with

Code: Select all

$shortvar1 = 1;
and it works just fine over here. I used cmsms 1.9.4 and 1.9.4.1

Re: UDT validation bugs?

Posted: Thu May 05, 2011 9:38 am
by zygote
Thanks Jos,
I did a verify of my install,

148 Files Not found
Files Not found:
/tmp/cache/SITEDOWN
/tmp/cache/index.html
/tmp/templates_c/index.html
/install/*

What do you think I should do? I have already tried safari and firefox 3/4.

Re: UDT validation bugs?

Posted: Thu May 05, 2011 10:11 am
by zygote
It gets weirder:

Code: Select all

$shortvar1=1;
seems to work for me,

Code: Select all

$shortvar1= 1;
fails! But
$shortvar1a= 1;
works!?

Re: UDT validation bugs?

Posted: Fri May 27, 2011 4:26 pm
by Dr.CSS
You don't have the code wrapped in <? php code code code ?> do you?...

Re: UDT validation bugs?

Posted: Sat May 28, 2011 4:05 am
by zygote
Dr.CSS wrote:You don't have the code wrapped in <? php code code code ?> do you?...
Nope. Also, this bug is not repeatable on one of my other CMSMS systems. I will probably investigate it at another time. For now I just validate the code on php manually, then copy the code into the database directly.