Can anyone see what the issue is here please
This is supposed to generate a first and last name string but i get this error message
Can anyone see what the issue is here please
This is supposed to generate a first and last name string but i get this error message
I’m hoping this is a bug, as i’ve been through hundreds of manually saved versions to see where i’ve made a mistake and way before this error appeared in real time was the site content working properly, so i really hope a bug is the issue and it is fixed or someone smart tells me what i’ve done wrong
Try this
$w("#text103").text = firstName + ' ' + lastName + `'s`;
Hello @adcatch02 ,
Are you trying to pull this from the Members database?
Thanks Shan i tried that code and still not working i think it’s something else i’ve done. But not sure what as it was working.
Hi Robert, yes this is coming from the members dataset. I did see a comment about permissions to read only for admin but i can’t understand why this used to work. I have confused myself with two sets of code on the profile page though as shown below and can see from the after query js file i have lost the code for concatenating the first and last name of the member from the member database
I really don’t know which code i should be using now at all?
Dataset2 is the members collection database
also this is the snippet of the member collection
For the error, note that the permission for this collection should be set to Site Member Author and read only, however it is currently being set as Admin and hence why you are getting this error.
Permissions
The PrivateMembersData collection has the following permissions :
Read: Site member author
Create: None
Update: None
Delete: None
You cannot change the PrivateMembersData collection permissions.
This issue is known of and a fix will hopefully be coming soon for it. The workaround for it is to use Wix Data Options to suppress any checks etc.
https://www.wix.com/corvid/reference/wix-data.html#WixDataOptions
Hi @GOS,
I have been having the same issue over the last week. Can you please show your code to see how we all can solve this problem? My code looks like this and even with the options feature my code still gives the same error message. Here is my code:
$w.onReady( function () {
let options = {
“suppressAuth”: true ,
“suppressHooks”: true
};
wixData.query(“Members/PrivateMembersData”)
.eq(“_id”, wixUsers.currentUser.id)
.find(options)
.then( (results) => {…}
})//end
Can Wix change the Private Members database back to Read Only? I feel like this would be the simplest solution to this issue many of us Wix users are having. The options parameter does not work for my site and I have tried it on multiple pages.