Trying to understand an error

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Trying to understand an error

Justin Will
I have a page that I am intermittently receiving an error on, but I don't understand why.  Here is what I'm getting sent to me from my error logger:

Error Classification: 6
Error Description: An operation on incompatible types was attempted
Error Path: /programs.html
Error Source Method:
Error Before Token: $vtProgID:=_query{"program_id"
Error Token: }
Error After Token:
Error Line Number: 26
Error Err Code: 0

Form Variables:
Query Params:
program_id: 2444
selected: 2444

$vtProgID  is declared as C_Text($vtProgID )

What might cause this?

Thanks
Justin
_______________________________________________
Active4D-dev mailing list
[hidden email]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/
Reply | Threaded
Open this post in threaded view
|

Re: Trying to understand an error

Aparajita Fishman
What does the Active4D log show?

All the best,

  - Aparajita

> On Apr 12, 2017, at 9:34 PM, Justin Will <[hidden email]> wrote:
>
> I have a page that I am intermittently receiving an error on, but I don't understand why.  Here is what I'm getting sent to me from my error logger:
>
> Error Classification: 6
> Error Description: An operation on incompatible types was attempted
> Error Path: /programs.html
> Error Source Method:
> Error Before Token: $vtProgID:=_query{"program_id"
> Error Token: }
> Error After Token:
> Error Line Number: 26
> Error Err Code: 0
>
> Form Variables:
> Query Params:
> program_id: 2444
> selected: 2444
>
> $vtProgID  is declared as C_Text($vtProgID )
>
> What might cause this?
>
> Thanks
> Justin
> _______________________________________________
> Active4D-dev mailing list
> [hidden email]
> http://list.aparajitaworld.com/listinfo/active4d-dev
> Archives: http://active4d-nabble.aparajitaworld.com/


_______________________________________________
Active4D-dev mailing list
[hidden email]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/
Reply | Threaded
Open this post in threaded view
|

Re: Trying to understand an error

Justin Will
In reply to this post by Justin Will
Apr 12 18:52:45 Active4D: [error] An operation on incompatible types was attempted: /F/a4dweb/50000/includes/programStandard.a4d, line 26

Apr 12 13:51:23 Active4D: [error] An operation on incompatible types was attempted (expected a numeric expression or a text expression or a boolean expression): /F/a4dweb/50000/includes/programStandard.a4d, line 27
Apr 12 13:51:23 Active4D: [error] An operation on incompatible types was attempted (expected a numeric expression or a text expression or a boolean expression): /F/a4dweb/50000/includes/programStandard.a4d, line 27
Apr 12 14:27:46 Active4D: [error] An operation on incompatible types was attempted (expected a numeric expression or a text expression or a boolean expression): /F/a4dweb/50000/includes/programStandard.a4d, line 27

Here's the lines of code called out as erroring.

$vtProgID:=_query{"program_id"}
$vnSelected:=Num(_query{"selected"})

The following declarations are slightly above the assigments.

C_Longint($vnSelected)
C_Text($vtProgID)
_______________________________________________
Active4D-dev mailing list
[hidden email]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/
Reply | Threaded
Open this post in threaded view
|

Re: Trying to understand an error

Oliver Brodwolf-2
Hello

Could it be, that you submit more then one parameter with the name selected?

I tested your code with ?selected=12&selected=13
And then geht the same error, because Active4D  creates an array from selected.

a4d.debug.dump collection (_query)   // will return  selected [0] {"", "12", "13"}


Regards, Oliver




> Am 13.04.2017 um 06:05 schrieb Justin Will <[hidden email]>:
>
> Apr 12 18:52:45 Active4D: [error] An operation on incompatible types was attempted: /F/a4dweb/50000/includes/programStandard.a4d, line 26
>
> Apr 12 13:51:23 Active4D: [error] An operation on incompatible types was attempted (expected a numeric expression or a text expression or a boolean expression): /F/a4dweb/50000/includes/programStandard.a4d, line 27
> Apr 12 13:51:23 Active4D: [error] An operation on incompatible types was attempted (expected a numeric expression or a text expression or a boolean expression): /F/a4dweb/50000/includes/programStandard.a4d, line 27
> Apr 12 14:27:46 Active4D: [error] An operation on incompatible types was attempted (expected a numeric expression or a text expression or a boolean expression): /F/a4dweb/50000/includes/programStandard.a4d, line 27
>
> Here's the lines of code called out as erroring.
>
> $vtProgID:=_query{"program_id"}
> $vnSelected:=Num(_query{"selected"})
>
> The following declarations are slightly above the assigments.
>
> C_Longint($vnSelected)
> C_Text($vtProgID)
> _______________________________________________
> Active4D-dev mailing list
> [hidden email]
> http://list.aparajitaworld.com/listinfo/active4d-dev
> Archives: http://active4d-nabble.aparajitaworld.com/

_______________________________________________
Active4D-dev mailing list
[hidden email]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/
Reply | Threaded
Open this post in threaded view
|

Re: Trying to understand an error

Aparajita Fishman
That’s a possibility. Check the web log and correlate the time of the error with the request that generated it, then you’ll see what the query was.

All the best,

  - Aparajita

> On Apr 13, 2017, at 4:36 AM, Oliver Brodwolf <[hidden email]> wrote:
>
> Hello
>
> Could it be, that you submit more then one parameter with the name selected?
>
> I tested your code with ?selected=12&selected=13
> And then geht the same error, because Active4D  creates an array from selected.
>
> a4d.debug.dump collection (_query)   // will return  selected [0] {"", "12", "13"}
>
>
> Regards, Oliver
>
>
>
>
>> Am 13.04.2017 um 06:05 schrieb Justin Will <[hidden email]>:
>>
>> Apr 12 18:52:45 Active4D: [error] An operation on incompatible types was attempted: /F/a4dweb/50000/includes/programStandard.a4d, line 26
>>
>> Apr 12 13:51:23 Active4D: [error] An operation on incompatible types was attempted (expected a numeric expression or a text expression or a boolean expression): /F/a4dweb/50000/includes/programStandard.a4d, line 27
>> Apr 12 13:51:23 Active4D: [error] An operation on incompatible types was attempted (expected a numeric expression or a text expression or a boolean expression): /F/a4dweb/50000/includes/programStandard.a4d, line 27
>> Apr 12 14:27:46 Active4D: [error] An operation on incompatible types was attempted (expected a numeric expression or a text expression or a boolean expression): /F/a4dweb/50000/includes/programStandard.a4d, line 27
>>
>> Here's the lines of code called out as erroring.
>>
>> $vtProgID:=_query{"program_id"}
>> $vnSelected:=Num(_query{"selected"})
>>
>> The following declarations are slightly above the assigments.
>>
>> C_Longint($vnSelected)
>> C_Text($vtProgID)
>> _______________________________________________
>> Active4D-dev mailing list
>> [hidden email]
>> http://list.aparajitaworld.com/listinfo/active4d-dev
>> Archives: http://active4d-nabble.aparajitaworld.com/
>
> _______________________________________________
> Active4D-dev mailing list
> [hidden email]
> http://list.aparajitaworld.com/listinfo/active4d-dev
> Archives: http://active4d-nabble.aparajitaworld.com/


_______________________________________________
Active4D-dev mailing list
[hidden email]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/