Hi wonderful Wix/EditorX/WixStudio developers!
I’ve been beating my head against the wall trying to figure out why ALL of my member accounts after 7/28/23 have been having issue adding content to my site, and I’ve realized that it’s an issue with accessing backend members data but only for member accounts created AFTER 7/28/23.
I built a custom members’ social feed that uses a lightbox to capture member inputs (post text + media), and then I use a backend beforeInsert dataHook to add in additional information to the item within my collection.
Here is the beforeInsert dataHook:
(NOTE: I’m adding screenshots because I’m having trouble figuring out how to add code in this new editor. How do we do that with this new forum?)
beforeInsert code in backend data.js
This works PERFECTLY on a ALL member accounts created before 7/28/23 including Admin, Collaborator, and Individual Member roles, BUT it does NOT WORK on any of these exact same account types with the exact same permissions and the exact same code if they were created after 7/28/23. Literally, the only difference between the accounts is creation date.
When I pull the member data for all accounts (both before and after 7/28) from the frontend, I am able to get Full Member data and all accounts are ‘status: APPROVED’ and ‘activity status: ACTIVE’. Again, the only difference in these accounts is the created date (same permissions, etc):
As for the code error, for all accounts on or before 7/28/23, no errors.
When I run the code for accounts after 7/28/23, I get the following error: [“Cannot read property ‘value’ of undefined”]
And the full error message from the log is:
The specific sourceLocation referenced is the backend memberData request. So, all of this to say, my site is returning backend memberData requests as undefined, BUT only for accounts created after 7/28/23. Weird.
Does anyone have ANY idea if:
(1) Something changed on the wix-members backend after 7/28/23
(2) Anything else I can possibly try to check what could be different between these accounts (all the registration, permisisons, and accounts statuses are the same)?
This is definitely a LOT and I’ll probably have to go directly to wix support, but ANY ideas or brainstorm options, would be GREATLY appreciated.
Thanks!