Re: code suddenly stops working for no apparent reason

2014-09-02 Thread Bobby

It isn¹t being explicitly passed, it is being explicitly referenced. The
template assumes it was passed in as part of the attributes
collection/scope (as per argumentcollection=#attributes#²). The error is
telling you that it is not in the attributes scope. The error is not wrong
so, like Phillip suggested, step back until you find where you think it is
being set and figure out why it isn¹t. Nothing you¹ve said or pasted will
let anywhere here give you much more info than that.


On 8/30/14, 3:44 PM, Phillip Vector vec...@mostdeadlygame.com wrote:


Apparently, it isn't. Go back further.


On Sat, Aug 30, 2014 at 12:08 PM, Matthew Smith chedders...@gmail.com
wrote:


 But it is being explicitly passed. That's where I'm lost.

  On Aug 30, 2014, at 12:44, Phillip Vector vec...@mostdeadlygame.com
 wrote:
 
 
  The reason is apparent.
 
  Element USERID is undefined in ATTRIBUTES.
 
  Trace the attribute back and figure out where it was set and see why
it
  isn't being set.
 
 
  On Sat, Aug 30, 2014 at 11:31 AM, Matthew Smith
chedders...@gmail.com
  wrote:
 
 
   cfcase value=createUser
   cfinvoke
  component=cfcs.qry-todatabase
  method=qry_peopleCreateNewUser
 argumentcollection=#attributes#
  returnvariable=qry_peopleCreateNewUser
   cfif qry_peopleCreateNewUser.returnKey eq -1
 cfset XFA.badLogin = #fusebox.thisCircuit#.go
 cfmodule fuseaction=#XFA.badLogin#
  error=badPassword
  emailaddress = #attributes.emailAddress#
  cfid=#cfid# cftoken=#session.cftoken#
  template=#fusebox.rootpath##modself#
 cfelse
 cfmodule
  fuseaction=#fusebox.thisCircuit#.startSession
  userid=#qry_peopleCreateNewUser.returnKey#
  template=#fusebox.rootpath##modself#
  cfid=#cfid# cftoken=#session.cftoken#
   /cfif
   /cfcase
   cfcase value=startSession
   cflock
  scope=SESSION
  timeout=10
  type=EXCLUSIVE
 cfset session.loggedIn = 1
 cfset variables.tmp = structdelete(session, billinginfo)
   /cflock
   cfset client.userID = attributes.userID
   cfset XFA.defaultReturnFuseaction = #fusebox.homeCircuit#.home
   cfif
 listFirst(evaluate(client.#fusebox.thiscircuit#returnFuseaction),
  .) eq SECUREOrderApp
 cfobject component=cfcs.qry-todatabase name=qry /
 cfset qry_orderInfoBufferCreate = qry.qry_orderInfoBufferEdit(
  cfuserid=#session.CFID#0#session.CFTOKEN#) /
 cfset qry_cartAssignPersonKey = qry.qry_cartAssignPersonKey(
  cfuserid=#session.CFID#0#session.CFTOKEN#, app_user_id =
  #CLIENT.USERID#) /
   /cfif
   cfinclude template=url_thisCircuit_returnFuseAction.cfm
   /cfcase
 
 
  getting this error even though explicitly passed...
 
  Element USERID is undefined in ATTRIBUTES.  The error occurred in
 
 
 
*D:/Inetpub/redhotkitties/site_theartoflovingcatsanddogs_com/authenticati
on/fbx_Switch.cfm:
  line 91*
  *Called from*
 
 
D:/Inetpub/redhotkitties/site_theartoflovingcatsanddogs_com/fbx_fusebox30
_CF50.cfm:
  line 273
  *Called from*
 
 
D:/Inetpub/redhotkitties/site_theartoflovingcatsanddogs_com/fbx_fusebox30
_CF50.cfm:
  line 33
  *Called from*
 
 
D:/Inetpub/redhotkitties/site_theartoflovingcatsanddogs_com/fbx_fusebox30
_CF50.cfm:
  line 1
  *Called from*
  
D:/Inetpub/redhotkitties/site_theartoflovingcatsanddogs_com/index.cfm:
  line 9
  *Called from*
 
 
D:/Inetpub/redhotkitties/site_theartoflovingcatsanddogs_com/Application.c
fc:
  line 62
 
  89 : cfset variables.tmp = structdelete(session, billinginfo)
  90 :   /cflock*91 :   cfset client.userID = attributes.userID*
  92 :   cfset XFA.defaultReturnFuseaction =
 #fusebox.homeCircuit#.home
  93 :   cfif
  listFirst(evaluate(client.#fusebox.thiscircuit#returnFuseaction),
  .) eq SECUREOrderApp
 
 

 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359221
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: code suddenly stops working for no apparent reason

2014-09-02 Thread Mark A Kruger

I would echo what Bobby said :)   

(cfbrickwall)

-Original Message-
From: Bobby [mailto:bo...@acoderslife.com] 
Sent: Tuesday, September 02, 2014 6:52 AM
To: cf-talk
Subject: Re: code suddenly stops working for no apparent reason


It isn¹t being explicitly passed, it is being explicitly referenced. The
template assumes it was passed in as part of the attributes
collection/scope (as per argumentcollection=#attributes#²). The error is
telling you that it is not in the attributes scope. The error is not wrong
so, like Phillip suggested, step back until you find where you think it is
being set and figure out why it isn¹t. Nothing you¹ve said or pasted will
let anywhere here give you much more info than that.


On 8/30/14, 3:44 PM, Phillip Vector vec...@mostdeadlygame.com wrote:


Apparently, it isn't. Go back further.


On Sat, Aug 30, 2014 at 12:08 PM, Matthew Smith chedders...@gmail.com
wrote:


 But it is being explicitly passed. That's where I'm lost.

  On Aug 30, 2014, at 12:44, Phillip Vector vec...@mostdeadlygame.com
 wrote:
 
 
  The reason is apparent.
 
  Element USERID is undefined in ATTRIBUTES.
 
  Trace the attribute back and figure out where it was set and see why
it
  isn't being set.
 
 
  On Sat, Aug 30, 2014 at 11:31 AM, Matthew Smith
chedders...@gmail.com
  wrote:
 
 
   cfcase value=createUser
   cfinvoke
  component=cfcs.qry-todatabase
  method=qry_peopleCreateNewUser
 argumentcollection=#attributes#
  returnvariable=qry_peopleCreateNewUser
   cfif qry_peopleCreateNewUser.returnKey eq -1
 cfset XFA.badLogin = #fusebox.thisCircuit#.go
 cfmodule fuseaction=#XFA.badLogin#
  error=badPassword
  emailaddress = #attributes.emailAddress#
  cfid=#cfid# cftoken=#session.cftoken#
  template=#fusebox.rootpath##modself#
 cfelse
 cfmodule
  fuseaction=#fusebox.thisCircuit#.startSession
  userid=#qry_peopleCreateNewUser.returnKey#
  template=#fusebox.rootpath##modself#
  cfid=#cfid# cftoken=#session.cftoken#
   /cfif
   /cfcase
   cfcase value=startSession
   cflock
  scope=SESSION
  timeout=10
  type=EXCLUSIVE
 cfset session.loggedIn = 1
 cfset variables.tmp = structdelete(session, billinginfo)
   /cflock
   cfset client.userID = attributes.userID
   cfset XFA.defaultReturnFuseaction = #fusebox.homeCircuit#.home
   cfif
 listFirst(evaluate(client.#fusebox.thiscircuit#returnFuseaction),
  .) eq SECUREOrderApp
 cfobject component=cfcs.qry-todatabase name=qry /
 cfset qry_orderInfoBufferCreate = qry.qry_orderInfoBufferEdit(
  cfuserid=#session.CFID#0#session.CFTOKEN#) /
 cfset qry_cartAssignPersonKey = qry.qry_cartAssignPersonKey(
  cfuserid=#session.CFID#0#session.CFTOKEN#, app_user_id =
  #CLIENT.USERID#) /
   /cfif
   cfinclude template=url_thisCircuit_returnFuseAction.cfm
   /cfcase
 
 
  getting this error even though explicitly passed...
 
  Element USERID is undefined in ATTRIBUTES.  The error occurred in
 
 
 
*D:/Inetpub/redhotkitties/site_theartoflovingcatsanddogs_com/authenticati
on/fbx_Switch.cfm:
  line 91*
  *Called from*
 
 
D:/Inetpub/redhotkitties/site_theartoflovingcatsanddogs_com/fbx_fusebox30
_CF50.cfm:
  line 273
  *Called from*
 
 
D:/Inetpub/redhotkitties/site_theartoflovingcatsanddogs_com/fbx_fusebox30
_CF50.cfm:
  line 33
  *Called from*
 
 
D:/Inetpub/redhotkitties/site_theartoflovingcatsanddogs_com/fbx_fusebox30
_CF50.cfm:
  line 1
  *Called from*
  
D:/Inetpub/redhotkitties/site_theartoflovingcatsanddogs_com/index.cfm:
  line 9
  *Called from*
 
 
D:/Inetpub/redhotkitties/site_theartoflovingcatsanddogs_com/Application.c
fc:
  line 62
 
  89 : cfset variables.tmp = structdelete(session, billinginfo)
  90 :   /cflock*91 :   cfset client.userID = attributes.userID*
  92 :   cfset XFA.defaultReturnFuseaction =
 #fusebox.homeCircuit#.home
  93 :   cfif
  listFirst(evaluate(client.#fusebox.thiscircuit#returnFuseaction),
  .) eq SECUREOrderApp
 
 

 





~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359222
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


OT, but stil...

2014-09-02 Thread Claude Schnéegans

This is not really CF related, but since this list is mainly read by Web 
developers, I thought it could be interesting  anyway.

First, let me say that my system logs CF executions error in a database with 
many details that help a lot to clean my code.
However it does not trap Javascript errors on client side, and with so many 
types of browsers, in many versions and each one with parameters that the user 
can de-activate without even knowing what the parameter is intended to, the 
developper can never be sure his code will run correctly in any circumstance.

Now, thanks to window.onerror, I just developped a Javascript error tracker 
able to ajax some information to my server, including the url where the error 
occured, the line number, stack, etc. and there it is: I even get errors in 
code which is not mine!
It seems that some code which is not in my server runs somewhere in the client 
browser and cause errors I can trap!

Some examples
Stack : TypeError: Argument or incorrect procedure at _watcherReady (Unknown 
script code:5:13)
User agent : Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; ASU2JS; rv:11.0) 
like Gecko
... there is no string like watcherReady anywhere in my code.

Template : https://in2.perfectnavigator.com/injectScripts/index.php?id=Pj8sNyM
Message : Script error.
User agent : Mozilla/5.0 (Windows NT 6.2; WOW64; rv:31.0) Gecko/20100101 
Firefox/31.0
How come this code at in2.perfectnavigator.com (which is not on my server) can 
be executed from one of my pages, or at least the error event reported to one 
of my pages ?

How about this one from Madagascar?
Template : http://www.youradexchange.com/script/java.php?option=rotateur
Message : Script error.
User agent : Mozilla/5.0 (Windows NT 6.0; rv:31.0) Gecko/20100101 Firefox/31.0
IP = 197.149.47.173 pays = Madagascar

Template : http://www.myDomain.com/ line : 418
Message : 'JSON' is undefined
User agent : Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; 
chromeframe/32.0.1700.107; GTB7.5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET 
CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.3)
This one is in my code, but there is no Javascript at line 418 and JSON is 
never used anywhere.


Ah! This one is in my code, very handy to know where to look at when there is a 
problem on a Mac and you don't have a Mac.
Template : http://www.myDomain.org/commun/customTags/textEditor/popupresize.js 
ligne : 72
Message : TypeError: 'undefined' is not a function (evaluating 
'Number(frameObject.width)')
User agent : Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) 
AppleWebKit/537.78.2 (KHTML, like Gecko) Version/7.0.6 Safari/537.78.2



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359223
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: OT, but stil...

2014-09-02 Thread Dave Watts

 How come this code at in2.perfectnavigator.com (which is not on my server) 
 can be executed from one
 of my pages, or at least the error event reported to one of my pages ?

Users can choose to run their own scripts, or install plugins that run
scripts for them. This is pretty common. The in2.perfectnavigator.com
is an ad-server script of some sort.

Dave Watts, CTO, Fig Leaf Software
1-202-527-9569
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359224
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm