I had a fully functional website but looks like somethings have changed in Wix backend. Out of sudden, I have weird errors coming in that don’t seem to have anything to do with the code I have written. I’m not stuck to not be able to release my website to users.
As soon as users login through the login lightbox, log shows following error:
"message":"TypeError: Cannot convert undefined or null to object at Function.entries (<anonymous>) at Gt (https://static.parastorage.com/services/challenges-web-ooi/1.2168.164/ChallengesListPageController.bundle.min.js:1:41624) at eval (https://static.parastorage.com/services/challenges-web-ooi/1.2168.164/ChallengesListPageController.bundle.min.js:1:41794) at Array.forEach (<anonymous>) at Gt (https://static.parastorage.com/services/challenges-web-ooi/1.2168.164/ChallengesListPageController.bundle.min.js:1:41635) at Wt (https://static.parastorage.com/services/challenges-web-ooi/1.2168.164/ChallengesListPageController.bundle.min.js:1:41859) at eval (https://static.parastorage.com/services/challenges-web-ooi/1.2168.164/ChallengesListPageController.bundle.min.js:1:65708) at eval (https://static.parastorage.com/services/challenges-web-ooi/1.2168.164/ChallengesListPageController.bundle.min.js:1:47201) at e.<anonymous> (https://www.faai.online/_partials/wix-thunderbolt/dist/clientWorker.17613c86.bundle.min.js:2:398543) at https://www.faai.online/_partials/wix-thunderbolt/dist/clientWorker.17613c86.bundle.min.js:2:509129"
}
When I checked the debug window of the browser, it seems its is some wix internal code which is going rogue. Here is the snapshot.
I really don’t have a clue what it means and how to get it fixed since it doesn’t seem to be related to anything that I have coded or configured. Any pointers or help will be much appreciated.
Hi there …
Could you please share the page where this error occur?
Thank Ahmad for responding. I have a MasterPage.js that executes before any page loads. After login lightbox, this error is coming even before first line of MasterPage.js is executed.
I shared the snapshot of browse debugging. Let me know if there is anything in particular you want to check out and share with you.
Hi Ahmad, would really appreciate if you could look into it and share anything that you might know about it.
Based on the screenshots and error message you provided, it looks like flattenParams() is being called with the “data” parameter undefined. Try doing a console.log(data) to see what is being passed to the function. You can also add some validation for “data” like you have for the “path” parameter. The screenshots do not show when the function is called, so you’ll need to track down the code that is calling it and confirm that it is passing a valid parameters to the function.
Hi Rob, I’m afraid that this error doesn’t seem to have anything to do with my code. And I’m sharing the evidence that you please look at and suggest if my conclusion is wrong.
When I login, I get an error in the console.log which I have shared earlier in my first post. To know more, I opened the browser’s “Inspect” option that allows me to see the error trace. As I posted earlier, that error is about some Wix service function. I opened up the link reference of the code in the error to the code file workerlogger.js in the logger folder under webpack master folder somewhere, line number 103, attaching the snapshot. It shows an error of some undefined stuff. Now that doesn’t seem like anything to do with my code. I could be wrong. If you have any clue about it, please guide me.
Much thanks.
Btw, I suspect, this has got to do with onLogin() processing module in Wix. Same page, when I refresh, then onLogin portion doesn’t run and I don’t get this error.
Discovered something more. After login, user is taken to a page that loads list of all available online programs for users to enroll into. This page uses a programList object provided by Wix that lists all the program. I noticed that whenever I get the concerned error (TypeError: Cannot convert undefined or null to object at Function.entries), for some reason that object is not loaded. But if I refresh the page, this error goes away and object is loaded. So I had to add page refresh.
This error is on Wix side, the post owner can do nothing to debug it.
You’re right, this error is not caused by your code, I suggest that you contact Wix support if you’re still experincing the same error.