Unexpected Token

17 views
Skip to first unread message

Pat Bensky

unread,
Apr 24, 2021, 1:25:34 PM4/24/21
to Lightning - 4D Web Applications
I'm getting this error message and having trouble figuring out what is causing it:

token.png
If I click on OK I get a grey screen which is completely inactive and I can't elick the error message to find out what's wrong:
grey.png

I guess there is something wrong with the html but how can I find out what it is?

Pat

Graham Langley

unread,
Apr 25, 2021, 7:41:41 AM4/25/21
to Lightning - 4D Web Applications
You have 3 processing errors, refer to the very top of the form where you have the red bug icon. Usually you can click into the header and you will be provided with a dropdown describing the error(s). If that fails TRACE the connection object (oConnection) at the very end of the Web_Router method and review the "log", "errors", and "messages" collections within this for more information.

It looks to me like you have an undefined property in the oConnection.data

Pat Bensky

unread,
Apr 29, 2021, 3:19:32 AM4/29/21
to Lightning - 4D Web Applications
Thanks Graham.
I have got rid of the error messages.
But I'm still getting a big grey window and if I look at the source code it's obviously all wrong.
I've traced through the methods carefully and as far as I can tell, it runs all the correct code. But the html it spits out isn't right. I can't see how to debug that since I don't have access to the LTG source code.
Help please!!!!!
I've attached a file containing the resulting html. This doesn't contain any of the code that it should for the current page - it contains code for the previous page, duplicated.
Cheers
Pat
section.html

Graham Langley

unread,
Apr 29, 2021, 4:06:42 AM4/29/21
to Lightning - 4D Web Applications
Unfortunately the attached does give out any clues.

The first to check is whether you are publishing the form you want, refer to the method Web_Publish (or whatever you've renamed that to), particularly this bit;

$nError:=Ltg_Conn_PublishForm(oConnection.form)

Is the .form value correct?

For your "big grey window" issue, you should check your browser Web Inspector for errors. I like Safari as the Inspector gives a clearer indication of the error than Chrome. You're now officially a Web Developer :)

Pat Bensky

unread,
Apr 29, 2021, 5:00:57 AM4/29/21
to lightning-...@googlegroups.com
Yes, it's the correct form.
Looking at the source code in Safari or Chrome, it's clear that the code is wrong. 4D is sending out the wrong html. That is the bit that I am stuck on.
Would you be able to jump on a Zoom call with me? I'm sure that if I show you what's occurring you will be able to quickly spot what is wrong :)

Cheers
Pat

--
You received this message because you are subscribed to a topic in the Google Groups "Lightning - 4D Web Applications" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lightning-4d-web-apps/MU91zwQ0UH0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lightning-4d-web...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lightning-4d-web-apps/b345f207-f8c2-4da7-becb-24f95ed74973n%40googlegroups.com.


--
*************************************************
CatBase - Top Dog in Data Publishing
tel: +44 (0) 207 118 7889
w: http://www.catbase.com
skype: pat.bensky
*************************************************
Reply all
Reply to author
Forward
0 new messages