Hello

To have better chances to find my mistakes in the code I added a view lines to 
my Request handler, where A4D Execute … is called.


if($httpStatus=500)
  $tResponse:=BLOB to text($response;UTF8 text without length)
  LOG EVENT(Into 4D Diagnostic Log;"Active4D Status: 500 -  Internal Server 
Error"+"\n-----------------------------\n"+Replace 
string($httpReqHead;"\r\n";"\n")+"\n-----------------------------\n"+$tResponse+"\n-------------------------";2)
end if

// ($httpReqHead is the request with the URI and the Request Headers


in the startup method include
SET DATABASE PARAMETER(Diagnostic Log Recording;1)


You can open the Log-File .e.g. with bbedit and select menu /Markup/preview in 
bbedit to see the logfile as html page, to read very easy the Active4D Error 
Blocks.

Regards, Oliver



Am 23.04.2013 um 13:32 schrieb Oliver Brodwolf:

> Hello
> 
> I found the mistake, and with this another reason for this message: … 
> <anonymous text>, line 1.
> 
> In some cases $design was undefined.
> 
> <%
> $cont:='<div class="artikel `$design`">'
> %>
> 
> 
> Regards, Oliver
> 
> Am 23.04.2013 um 13:18 schrieb Oliver Brodwolf:
> 
>> Hello
>> 
>> I try to find the reason of a error, which I see in the Active4D.log
>> Active4D: [error] Reference to an undefined variable or value: <anonymous 
>> text>, line 1
>> 
>> I can provoke similar messages with code like this.
>> 
>> <%
>>      execute("$a:=$b")
>> %>
>> 
>> Are there other reasons for such messages?
>> 
>> in Active4D.ini the LOG LEVEL has the default value 7 (all messages)
>> 
>> 
>> Regards, Oliver
>> _______________________________________________
>> Active4D-dev mailing list
>> [email protected]
>> http://list.aparajitaworld.com/listinfo/active4d-dev
>> Archives: http://active4d-nabble.aparajitaworld.com/
> 
> _______________________________________________
> Active4D-dev mailing list
> [email protected]
> http://list.aparajitaworld.com/listinfo/active4d-dev
> Archives: http://active4d-nabble.aparajitaworld.com/

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

Reply via email to