Cannot read property 'getAppToken' of undefined

Hi, community

I have a booking page similar to the timetable example on my website.
While loading this booking page, I encounter an error like in the image.
I think the cause of the error is from Wix’s backend functions. What is the cause and solution of the error?

it seems like Wix issue related to the new imporvements we are rolling out, can you please add the URL for you site?

https://www.remote.acrome.net/

I think so because I tried the timetable example and encountered the same error.

To see the booking page you need to register on the site and click the try free button on the landing page

the page where the error occurred
https://www.remote.acrome.net/account/book-session

@serhanargun Hi. Thank you for sharing this info. The issue should be fixed for your site now. Please let me know if it is okay.

Regards, Alex

@aleksander-denga
Yes, problem is solved.
Corvid code runs without errors

Many thanks,

Hello, I have the same problem, how can i fix it ?

https://wix www.lawhero.ca/booking/registration can u pls check this url ?

@aleksander-denga @avigu

@aleksander-denga @ Avi Guzansky (Wix)

Could you, please, provide the URL of the site?

@lebedenkodd Hello. The original issue should’ve been fixed by now. Can you please give more details about what exactly is not working on your website (steps to reproduce) so that we can check if it is a different issue or the old one wasn’t fixed properly.

Thank you in advance
Regards, Alex

@aleksander-denga Hi. url ==> www. lawhero. ca / booking / .Go through the flow, choose the “Family law” specialization, than any lawyer and service, then in the Add Your Info section, choose any value in “Select at day” and look at the console. Sometimes it works correctly, and often an error on getAppToken

@aleksander-denga link without spaces

@viktoriian www.lawhero .ca/booking/registration

@lebedenkodd Hello. I tried to reproduce the issue on your website, but didn’t get the result you mentioned. Here is my video recording with open console. Any chance you could share similar video fragment describing the way to reproduce the issue with the screenshot of the console error?

Tank you in advance,
Regards, Alex.

@aleksander-denga Hi, same error here.

This is the code:

let current = $w("#dynamicDataset").getCurrentItem.File();
 if (!current) { 
  $w("#button1").disable();
  $w('#text29').text='No file to download. Button disabled!';
}
else {
  $w("#button1").enable();
  $w('#text29').text='Button functional! Proceed with download';
}

This is the error:
Cannot read property ‘File’ of undefined

This is the page:
https://gemats.wixsite.com/gkmatsaridis/lawdatabase/κυα-4865%2F2004%2F04-(φεκ-β’-636%2F30-04-04)

@gemats This is not the same error.

First, this code needs to be inside of a dataset onReady() to ensure that the dataset is available to use. And then the whole thing needs to be inside of a page onReady() .

In addition, getCurrentItem() is a function and needs the parentheses. And, there is no File() function on getCurrentItem() and therefore it is undefined.

Perhaps, what you want is the following?

let current Item = $w("#dynamicDataset").getCurrentItem()
let file = currentItem.file;

It’s best to start a new post instead of commenting on another unrelated issue. You’ll have a better chance of getting assistance.