cannot convert the value "''" to a boolean

330 views
Skip to first unread message

JC

unread,
Oct 15, 2008, 3:32:43 PM10/15/08
to Skweegee Development
In a fresh install, when I try to create a new project, I get the
following error:

An Unhandled Exception Occurred
An unhandled exception has occurred. Please look at the diagnostic
information below:
Type Expression
Message cannot convert the value "''" to a boolean
Detail
Extended Info
Message cannot convert the value "''" to a boolean
Tag Context D:\dev\wwwroot\skweegee\views\project\form.cfm (37)
D:\dev\wwwroot\coldbox\system\plugins\renderer.cfc (119)
D:\dev\wwwroot\skweegee\layouts\Layout.Green.cfm (65)
D:\dev\wwwroot\coldbox\system\plugins\renderer.cfc (200)
D:\dev\wwwroot\coldbox\system\coldbox.cfc (165)
D:\dev\wwwroot\skweegee\Application.cfc (38)

Any suggestions? :)

Russ Johnson

unread,
Oct 16, 2008, 3:04:17 PM10/16/08
to Skweegee Development
I replied to this yesterday. Not sure why it didnt show up here.

Are you running the lastest version from riaforge? what database are
you using?

I havent seen that error on any of my installs yet so this makes me
curious.

- Russ

Ernst van der Linden

unread,
Oct 16, 2008, 3:57:13 PM10/16/08
to skweeg...@googlegroups.com
Russ,

I looked at your code:

line 37 of view/project/form : <cfif application.allowAnonymous>

So it looks like the application var is not set. Maybe you should
always check for boolean, like this

<cfif isBoolean(application.allowAnonymous) and application.allowAnonymous>

Ernst

JC

unread,
Oct 20, 2008, 11:44:16 AM10/20/08
to Skweegee Development
Sorry for the delay in responding:
Running 0.4.0 from RIAForge, most recent non-meta file modification
date is 10/4/2008 8:32:44 PM
I'm using MS SQL 2000, Coldfusion 8.0.1 Enterprise

JC

unread,
Oct 20, 2008, 11:49:26 AM10/20/08
to Skweegee Development
One thing of note... in .sql files in the install, the MySQL version
has an insert into settings which the MSSQL and MSSQL 2005 don't have:

INSERT INTO `settings` (`id`,`allowAnonymous`) VALUES ('1','false');

I'm going to guess that's the problem.

On Oct 16, 3:04 pm, Russ Johnson <russ.cfco...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages