App Connect Data Formatter Support Product Page

Under investigation

Uncaught TypeError: Cannot read property 'toLowerCase' of undefined

Reported 16 Mar 2018 17:02:30
1
has this problem
16 Mar 2018 17:02:30 Dan Everton posted:
Hi I'm getting few issues on my page

Go to www.redhousebarn.co.uk/secure/

Login with megan-harry-20180910 / test

You will see no display - inspect page and you will see js issues

Please help asap

Dan

Replies

Replied 19 Mar 2018 16:46:05
19 Mar 2018 16:46:05 Dan Everton replied:
hello - is there any update on this please - i really need support and have paid a lot of money for extensions
Replied 19 Mar 2018 18:16:41
19 Mar 2018 18:16:41 Teodor Kuduschiev replied:
Hello Dan,
Our support is not available during the weekends, and you posted this after our working time on Friday. Just for your info - there are many other people who also paid money for the extension and who also need help, so it takes time to answer all the requests and also it takes time to inspect the page you provided link to ... so it is not possible to provide an exact answer and solution withing an hour. I really hope you understand that.

Now on your issue: we found some syntax and logic issues which you need to fix first in order for us to be able to see the other problem.

1. Why is your log out server action is trying to auto run on page load? You need to disable auto load for it, as there is no logic in running log out, as soon as you log in.
2. There is a syntax error here: {{connecteduser.data.sessionuser[0].WeddingDate.formatDate("yyyy"}}"}} -> remove the last few closing brackets: "}}

Fix these issues and we will take another look on your page.
Replied 19 Mar 2018 21:50:42
19 Mar 2018 21:50:42 Dan Everton replied:
Hi Teodor, Thanks for your reply.

It is not my intention to upset you and understand you have other clients - your support used to be very responsive on live chat (back when Miro worked with you)

Any way - i have removed the elements you mentioned but still have issues.

Your time to look into it will be appreciated.
Dan
Replied 20 Mar 2018 07:43:28
20 Mar 2018 07:43:28 Teodor Kuduschiev replied:
More syntax errors are now on your page:
{{connecteduser.data.sessionuser[0].WeddingDate.formatDate("MMMM" must be
{{connecteduser.data.sessionuser[0].WeddingDate.formatDate("MMMM"}}
Replied 20 Mar 2018 23:23:28
20 Mar 2018 23:23:28 Dan Everton replied:
HI Teodor

Thanks - that has helped there seem to be 2 other bugs - can you take a quick look please?

Uncaught TypeError: Cannot read property 'toLowerCase' of undefined
at t (string.js:441)
at n.daysUntil (string.js:319)
at parser.js:712
at h (parser.js:466)
at Object.dmx.parse (dataScope.js:6)
at dataScope.js:1
at String.replace (<anonymous>
at Object.dmx.parse (parser.js:378)
at n.<anonymous> (BaseComponent.js:304)
at Array.forEach (<anonymous>
Replied 22 Mar 2018 08:53:32
22 Mar 2018 08:53:32 Teodor Kuduschiev replied:
Hello Dan,
It seems to be this is not returning anything ...
connecteduser.data.sessionuser[0].WeddingDate and as it is being used in:

Quote{{var1.datetime.daysUntil(connecteduser.data.sessionuser[0].WeddingDate)}}


it returns the error you see. Please check your data sources and bindings ...

Reply to this topic