UDT validation bugs?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
zygote
New Member
New Member
Posts: 8
Joined: Mon Apr 19, 2010 7:20 am

UDT validation bugs?

Post 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.
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: UDT validation bugs?

Post 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
zygote
New Member
New Member
Posts: 8
Joined: Mon Apr 19, 2010 7:20 am

Re: UDT validation bugs?

Post 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.
zygote
New Member
New Member
Posts: 8
Joined: Mon Apr 19, 2010 7:20 am

Re: UDT validation bugs?

Post 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!?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: UDT validation bugs?

Post by Dr.CSS »

You don't have the code wrapped in <? php code code code ?> do you?...
zygote
New Member
New Member
Posts: 8
Joined: Mon Apr 19, 2010 7:20 am

Re: UDT validation bugs?

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

Return to “CMSMS Core”