Send to email

33 views
Skip to first unread message

pcargill

unread,
Aug 29, 2012, 2:56:09 PM8/29/12
to BugLogHQ
I am trying to implement BugLogHQ and I am having a problem with all
of the e-mail features.

When I try to use the 'Send to email' feature I receive the following
error.

Application: bugLogHQ
Host: WEBDEV
Server Date/Time: Aug 29, 2012 2:39 PM
Message: Complex object types cannot be converted to simple values.
Type: Expression
Detail: The expression has requested a variable or an intermediate
expression result as a simple value. However, the result cannot be
converted to a simple value. Simple values are strings, numbers,
boolean values, and date/time values. Queries, arrays, and COM objects
are examples of complex values. <p> The most likely cause of the error
is that you tried to use a complex value as a simple one. For example,
you tried to use a query variable in a cfif tag.
Tag Context:
E:\bugLog\components\hq\appService.cfc [236]
E:\bugLog\hq\handlers\ehGeneral.cfc [376]
E:\bugLog\hq\handlers\ehGeneral.cfc [366]
E:\bugLog\hq\handlers\ehGeneral.cfc [365]
E:\bugLog\core\coreApp.cfc [210]
E:\bugLog\core\coreApp.cfc [95]
E:\bugLog\hq\index.cfm [25]

Oscar Arevalo

unread,
Aug 29, 2012, 3:02:25 PM8/29/12
to bugl...@googlegroups.com
Is this the 1.6.x or the 1.7 version?
--
Oscar Arevalo

Oscar Arevalo

unread,
Aug 29, 2012, 3:05:46 PM8/29/12
to bugl...@googlegroups.com
nevermind, i found the error. 

go to /bugLog/components/hq/appService.cfc

and change line 236

from:
<a href="#arguments#">#arguments#</a>

to:
<a href="#buglogHref#">#buglogHref#</a>

and then logout of buglog and click on the "Reset BugLogHQ" link on the login page. That should fix it.

Oscar

pcargill

unread,
Aug 30, 2012, 12:52:48 PM8/30/12
to BugLogHQ
Thanks. This fixed that problem. I have found another email related
problem though. When I set a rule, say mailAlert, I receive an error
in when I rerun your test code that is in the /test folder. I never
receive an email either. The error is below.

The RECIPIENTEMAIL parameter to the init function is required but was
not passed in.

The error occurred in E:\bugLog\components\bugLogListener.cfc: line
302
Called from E:\bugLog\components\bugLogListener.cfc: line 50
Called from E:\bugLog\components\bugLogListenerAsync.cfc: line 19
Called from E:\bugLog\components\service.cfc: line 117
Called from E:\bugLog\components\service.cfc: line 51
Called from E:\bugLog\listeners\listener.cfc: line 37
Called from E:\bugLog\listeners\bugLogListenerWS.cfc: line 27
Called from E:\bugLog\client\bugLogService.cfc: line 172
Called from E:\bugLog\test\client.cfm: line 89

300 :
301 : if(thisRule.enabled) {
302 : oRule = createObject("component",
thisRule.component ).init( argumentCollection = thisRule.config );
303 : oRule.setListener(this);
304 :




On Aug 29, 3:05 pm, Oscar Arevalo <oarev...@gmail.com> wrote:
> nevermind, i found the error.
>
> go to /bugLog/components/hq/appService.cfc
>
> and change line 236
>
> from:
>
> > <a href="#arguments#">#arguments#</a>
>
> to:
>
> > <a href="#buglogHref#">#buglogHref#</a>
>
> and then logout of buglog and click on the "Reset BugLogHQ" link on the
> login page. That should fix it.
>
> Oscar
>
>
>
>
>
>
>
>
>
> On Wed, Aug 29, 2012 at 12:02 PM, Oscar Arevalo <oarev...@gmail.com> wrote:
> > Is this the 1.6.x or the 1.7 version?
>

Oscar Arevalo

unread,
Aug 30, 2012, 1:02:27 PM8/30/12
to bugl...@googlegroups.com
When you created the mailAlert rule, did you set a value on the "recipientEmail" field? Also, if you go the Settings page, do you see a value set for "Admin Email". Both fields being blank will trigger the error you are seeing. If you have one but not the other then it is probably a bug. 

Oscar


pcargill

unread,
Aug 30, 2012, 1:07:09 PM8/30/12
to BugLogHQ
The admin e-mail field under settings contains an e-mail, and I
entered an e-mail when creating the rule. However if I go back to edit
the rule the e-mail address that I entered is no longer there, and has
been replaced by the admin email value.
> > > >http://www.coldbricks.com-Content Management System
> > Management Systemhttp://www.oscararevalo.com-My Blog

Oscar Arevalo

unread,
Aug 30, 2012, 1:07:57 PM8/30/12
to bugl...@googlegroups.com
after saving the rule, did you stop/start the buglog service?

pcargill

unread,
Aug 30, 2012, 1:09:16 PM8/30/12
to BugLogHQ
I stopped the service, but I am unable to restart the service as I
receive the error that I posted above. I have to remove the rules and
then I can start the service again.
> > > > > >http://www.coldbricks.com-ContentManagement System

Oscar Arevalo

unread,
Aug 30, 2012, 1:15:04 PM8/30/12
to bugl...@googlegroups.com
never seen that before. let me try to reproduce it locally to see what's wrong. In the meantime can you describe your environment? os / railo or adobe cf/version?

pcargill

unread,
Aug 30, 2012, 1:18:32 PM8/30/12
to BugLogHQ
Windows 2008 R2 Enterprise
Coldfusion 9

pcargill

unread,
Aug 31, 2012, 10:33:29 AM8/31/12
to bugl...@googlegroups.com
I found the problem.

We had 'Prefix serialized JSON with //' turned on in CF administrator.

When turned off it now works.

Oscar Arevalo

unread,
Aug 31, 2012, 10:41:54 AM8/31/12
to bugl...@googlegroups.com

That makes sense! The rule properties are serialized to json before saving to the DB.
I'll make a note on the documentation about this.

Thanks!

Reply all
Reply to author
Forward
0 new messages