We’re attempting to “bulk insert” data into the back-end of a site. The coding works on PC, but is not working on Mac - regardless of whether we use Safari or Chrome. Any tips or advice?
Please explain what you mean by “bulk insert” data into the back-end of a site . What are you doing? How are you doing it?
Hey Yisrael!I’m the developer that created the functionalitty.
Basically it is an availability system, and there is an admin dashboard on which the admin can insert the availability dates .
I have sent you in PM the url of the admin page, along with the information.
After an initial inspection…
It seems that you don’t have #dropdown3 initialized. So that when you click on “Add Times”, the value of #dropdown3 is null. If you first select a month from the dropdown and then click “Add Times”, #dropdown3 then returns a value and the times are added.
I don’t see how this would work on a PC and not on an Apple, although it might be that the underlying web page rendering on a PC might by default initialize a dropdown menu.
I tried on Safari and Chrome on my Mac and both seem to work OK if I select a month first.
@yisrael-wix
Thank so much Yisrael!
I did indeed missed that part on initializing it.
However, we tried inserting dates on December, which did change the value of the dropdown.
Not Working Video:
Working Video:
@maria-fikata I’m trying this on my Mac (Safari) and it works fine. I do exactly what you’re doing in the video (choose Dec from 8 AM till 6 PM). It goes through the whole month just as the “working” video shows. Does it work for you in Preview (in the Editor) and in Live?
One thing of concern is that when I run Preview in the Editor I get the following warning messages:
They may “only” be warnings, but they indicate that something isn’t quite right. If I delete #dataset2 and #dataset3 from the page these warnings go away.
You also have a couple of errors. They may not “matter”, but it’s not good to have errors in the code. If you really need this code, just comment it out to save it for later.
@yisrael-wix
It works great in the preview as well.
Dataset 3 was indeed unnecessary, i was using it from something else that i deleted and i forgot to delete it.
I’m really not sure why this happened with Jenn’s computer, because everywhere i tried to, it works.
For the errors in code i assume you mean the error you got on the console about the .chefName on the editor, that’s just because on the sandbox database there isn’t the same information.Only in live database.
Anyways, thank you so much for the help!Maybe it’s a specific computer issue.
@maria-fikata If you don’t have the same database in the Sandbox as you have in the Live, this can cause problems. This means that your Live database doesn’t have the proper schema, as the DB schema is defined in the Sandbox. See the article Wix Code: About Database Collection Schemas for more information.
@maria-fikata As far as the problem on not working on a specific computer (Jenn’s), this might be due to an unsupported version of the browsers. Strange problem.
@yisrael-wix
I meant not the same information in the database, not a different database
I just didn’t sync it so that it gets the chefName(that is filled only in live) and it gets a null, because no data is entered in editor.
Again thank so much for looking in to this, really appreciate it!
@maria-fikata Do you have some use of users logging in then you should check the computer with the errors if that browser have some kind of Cookie Protection Activated because that can give you issues regarding wixUsers usage.
@andreas-kviby Haven’t restricted the admin page yet, i had it open as i was testing it.
Thanks for the reply!
most often there are problems with Windows but not with Mac
How have you resolved this problem?