WIX TEAM Please help because suddenly all ma pages get this error like crazy.
Does anybody get this error as well?
@yisrael-wix @stevendc PLEASE HELP
Any wix team moderators please help. all my pages suddenly get 100 or more the same errors. Now all pages when connecting to collection, like insert, save get this error. Site was working perfect before week. And i didnt touch some pages for weeks. my clents call me becasue some people can not insert new entries.
site www.ceglarnia.com
you need to log in to see it in console. Try to add soeting in LISTA GOSCI for example
log misiewicz@hpworldwide.pl
pass info
[@Krs Mis] Hi Krs
I think you need to look at what you are doing in your addItem() function. You have this call:
await wixData.insert('listagosci', { imie: "" });
Which appears to insert a blank row in your data collection. Which is really not a good idea and could lead to problems if your user abandons their session or there is an internet connection issue. It’s a better idea to collect some of the information you need in a record before creating the record.
Additionally your code assumes success. If you are going to you await on a promise based function then you really need to surround the code in a try catch scope so that any errors you get are detected and you can handle them.
So for example your button click function should look like this:
export async function button71_click(event) {
try {
await disableall();
await addItem();
await $w("#text815").show();
await enableall();
await $w("#text815").hide('FadeOut');
} catch (error) {
console.log(`oops an Error! ${(error.stack?error.stack?error.message)});
}
}
This might give you other clues to the problem.
Start there and if it persists we can escalate to QA.
Cheers
really thanks for help.
I GOT IT AND ITS EDITOR MISTAKE i think
Its very intresting becasue i was switching off function after function and got it.
function disableaall() and enableaall() is responsible for this. But its not my mistake. Its something with editor.
-
It happend sudenly, it was working well for month almost and i was not touching those functions
-
it happened only to some diable() functions
-
if You go to KARTOTEKA PAGE. i found elements that make error. its “input 20” and “radioGroup3”. When i // them there is no error. So those elements have some compId property that are null. What compId is ???
Probably wix made some upgrading which made this error. Good think is that it doeasnt affect so far code because seems to work. But who knows when starts affect or if effect in some cases. -
In some other pages i have like 200 errors so all elemenst disable made it. I tried to switch off all diableaall() and i’m wright. Unfortunetly i made disableall function at all pages becasue when people click during code it stopped.
-
Conclustion. - I have no idea why those elements are different from other. Maybe i copy them and when editor gave them new Id didnt gave them compId or something … Solution i need to give to almost all elements new ID but i think they should find in editor problem when You copy element why this compID is null. Should i write to someone about it? I wrote before to wixsupport and no answer for 2 days
function disableall() {
$w(‘#imiemlodej’).disable();
$w(‘#input3’).disable();
$w(‘#input5’).disable();
$w(‘#input4’).disable();
$w(‘#input6’).disable();
$w(‘#input7’).disable();
$w(‘#input8’).disable();
$w(‘#input9’).disable();
$w(‘#input12’).disable();
$w(‘#input13’).disable();
$w(‘#input14’).disable();
$w(‘#input15’).disable();
$w(‘#input16’).disable();
$w(‘#input18’).disable();
$w(‘#input19’).disable();
// $w(‘#input20’).disable();
$w(‘#datePicker1’).disable();
// $w(‘#radioGroup3’).disable();
$w(‘#radioGroup2’).disable();
$w(‘#radioGroup4’).disable();
$w(‘#radioGroup5’).disable();
$w(‘#radioGroup6’).disable();
}
Hi Krs
Double check that the elements are on the page. I think compId means component id. So if you are missing an element called $w(“#input20”) or $w(“#radioGroup3”) that might be the problem although the code editor should highlight that.
Cheers
look at my editor if You can. If there would not be those elements i would have error in code. And there is no error in code in editor.
THATS problem they are. I tried to change Id of those elemnt and there is no problem.
i checked at KARTOTEKA page becasue there were only 4 errors. Rest of the pages have much more and when i swich of disable() no error. It means most of my elemtns LOST ids one day ???
Hi, I have a similar error :TypeError: Cannot read properties of undefined (reading ‘comp’), also many time and all of a sudden. Do you have an idea for me as i did not understand how you get read of it, it seems linked to a dataset velo javascript new filter problem, some complements info in chrome dev i see:
at componentSdkState.ts:27:31
at set rows [as rows] (make namespace object:6:9)
at u.value.u.set.d.set [as rows] ((index):1:104423)
at Object.setValue (gridAdapter.ts:40:17)
at set rows [as rows] (gridAdapter.ts:46:19)
at eval (gridBindingApi.ts:103:19)
at Object.Results (queryResults.js:8:16)
at Object.eval [as matchWith] (union.js:7:22)
at Object.eval [as chain] (queryResults.js:5:20)
at Object.bind (gridBindingApi.ts:102:32)
If your issue came → all of a sudden ← and you did no changes on your website before → then the generated ERROR came from → Wix-side.
→ contact the wix-customer-care ! (only they can help you, since it is a wix-generated error)