This is probably a really stupid problem, but I've been at it the whole day so now I'm asking for help.
I've created two dynamic pages, one profile and one update page as per this link (https://support.wix.com/en/article/how-to-create-member-profile-pages-with-wix-code), (this is something I've done before), but for some reason I can't seem to access either of the pages.
I have checked permissions, set up links, coded links, pretty much everything I can think of. I did notice that every time I create a new site member, it doesn't create the member in the database...., I assume this to be the reason the url is not working.
ANY advice?
Hallo, I'm new on wix, i created a website recently and my dynamic page was working well, but know even when i switch to preview mode i get an error message saying: page not located
Hi all,
Urgently require support please!
We also experiencing the same issue of error 404. Our process flow as below:
The user signs up on WIX sign up page and by right should be re-directed to member registration dynamic page.
However Error 404 would appear. We realize that if the page is refreshed, the member dynamic page appears fine.
This error only occur for new member sign up. For existing member who login from WIX, it will be auto routed to our home page without issue.
We realized after clearing cache and re-publish the site, the very first sign up at the main home page works, subsequent test on new sign up at the main home page, error 404 appeared and this applied at every single page. site link: www.lifestylzebuddy.com/home
We are unable to launch our site because of this. Can some experts share advise with us to solve this issue?
I had the same problem, loggin out and showing error 404.
i just update my permission as following:
who can read? anyone
who can create? site member
who can update? site member author
who can delete? admin
Now it works great! Xx
Hi,
I'm having the same problem and still can't figure it out.
Can you please check this out?
https://www.wix.com/code/home/forum/questions-answers/problem-with-save-new-members-to-database
Thanks,
Jakub
Hi Rajesh,
Answers:
1. Select button -> press Database icon -> define "When successful, navigate to".
2. See here a discussion about things to take into consideration when creating login system (especially with extra sensitive information)
3. No need for Wix code - o to Wix app market and search 'Forum' - install it and you're done.
4. See these images:
If you have other questions that are not related to this topic (error 404, please post them in a new thread).
Thanks,
Liran.
Hi Liran,
Very Urgent
Thanks for your immediate reply,
Now it is working,but Please answer following questions:
Q : (1) -- i have seen in Nayeli's Video tutorials that, when we "SAVE UPDATE" then Page automatically redirected to Logout Page...it is not happening in my profile page.
Q :(2) --I want to Make Account Page Menu's Like Account Number or ID, Cash Deposit, Withdraw , Balance in Table Format, How to make Coding for the Account with the same custom login page coding.
Q :(4) -- i am verymuch Interested to Make Page like Wix Forum like current page...how to make coding ??
Q : (3) -- Want to Remove Header and Footer, because want to display full Page like Wix Forum and www.wix.com
Please Reply Urgent
Regards
Rajesh Dudhat
Hi Rajesh,
Update did work for me in preview mode... See here:
Can you please elaborate more about the broken flow?
Liran.
Hi Liran,
Very Urgent
i had followed custom member login page video by Nayeli and made the same coding and done coding accordingly but unable to save update in the save button does not perform, where i missed the linkages , please do needful for the same,
This is the link : https://editor.wix.com/html/editor/web/renderer/edit/7b1a1493-bd68-433a-889f-7c382be000cc?metaSiteId=cc46de08-d072-4d32-896e-6612cf62d781&editorSessionId=4BBD2432-9991-47D4-B5AF-6118367E3978
My website : https://www.gdexindia.com/member-login
Reply on Urgent Basis
Regards
Rajesh Dudhat
Hi Faidda,
So I took a look in your site, and beside the 'My Profile' button, there some moe code missing.
The thing is that a member page is not automatically created when a user signs up to your site (confusing, I know)...
In the example we have the following code.... note the 'if' statement, which is checking if we have already created a member page, and if not, create it ourselves (using wixData.insert).
// prompt the user to log in wixUsers.promptLogin( {"mode": "login"} ).then( (user) => { /* Some code here.... */ return wixData.query("Members") .eq("_id", userId) .find(); } ).then(results = > { // if an item for the user is not found if (results.items.length === 0) { // create an item const toInsert = { "_id": userId, "email": userEmail }; // add the item to the collection wixData.insert("Members", toInsert) .catch( (err) => { console.log(err); } ); }
You're missing this code, therefore, users that sign up to your site do not have a page created.
So now your stuck in a slightly annoying state where you have users without their own member page.
Two thing to do here:
1. Fix this for new users being registered.
2. Use the login button you have to do the same thing so that existing users will have their page created next time they log in.
This is only a partial code use to focus on the issue so if your going to copy, I suggest doing it from the article.
* Note that you need to change the collection name to your own collection name.
Try to get this going, I'll continue to help as you go.
Liran.
Hi Inbar,
Thanks for your reply, now it is working but when i insert my information in the user input boxes and try to click on SAVE UPDATE Button but it is not responding, i want update for changes that my members make in their login page,...how to do it?
Please reply
Regards
Rajesh Dudhat
Hi Inbar,
Im missing coding just because I've hided all the "My profile" part since it didn't work.
I have a "My profile" button and this is my code that sits in the Site section and not in the page code:
Hi Rajesh,
Please note that your member button code is incorrect.
You should change it to:
export function button2_onclick() { wixLocation.to(`/Member/Update/${wixUsers.currentUser.id}`); }
Faida,
I went over your editor's code and noticed that there are parts missing from your code.
To solve the issue simply re-copy the code from the article and change the variables accordingly.
In addition, please make sure to follow the article through since you are also missing the member page button and relevant coding.
Hi Mikhail,
I have also changes the permissions but still showing same error of 404
Please do the needful on urgent basis
Regards
Rajesh Dudhat
Hi Mikhail,
I've changed the permissions to anyone but it still doesn't work. keep getting 404.
Hi All
Guys, we're investiagting the problem. But as for now i ask you all to change write permissions to Anyone on the collection - this should (probably) resolve the issue
I mean like here:
https://www.screencast.com/t/AX9mATG6
Hi Mikhail ,
Is this above Problem figure out now ?
Please do the needful as soon as possible
Regards
Rajesh Dudhat
Hi all! We're figuring out the problem right now, i will update later. And thanks for your patience
i Have the same error as Tiaan, Mr. Mikhail Spirin,can you please help me to resolve this error, i already sent you my link in your facebook messanger and also check details mentioned below :
i have followed all your steps for creating custome member login page and done coding accordingly but it is not working showing some error, please help me...the below is the links Page Link : https://editor.wix.com/html/editor/web/renderer/edit/7b1a1493-bd68-433a-889f-7c382be000cc?metaSiteId=cc46de08-d072-4d32-896e-6612cf62d781&editorSessionId=FC3DE292-3B89-44DC-93A5-5C7A9CDDADEC Error link: https://gdexindia.wixsite.com/gdexindia11/Member/Update/ID My Wix Account Log in Link : https://www.wix.com/my-account/sites/cc46de08-d072-4d32-896e-6612cf62d781/site-settings/overview?referrer=site-home my coding : import wixUsers from 'wix-users'; import wixData from 'wix-data'; import wixLocation from 'wix-location'; $w.onReady( () => { if(wixUsers.currentUser.loggedIn) { $w("#button1").label = "Logout"; $w("#button2").show(); } else { $w("#button1").label = "Login"; $w("#button2").hide(); } } ); export function button1_onclick() { // user is logged in if(wixUsers.currentUser.loggedIn) { // log the user out wixUsers.logout() .then( () => { // update buttons accordingly $w("#button1").label = "Login"; $w("#button2").hide(); } ); } // user is logged out else { let userId; let userEmail; // prompt the user to log in wixUsers.promptLogin( {"mode": "login"} ) .then( (user) => { userId = user.id; return user.getEmail(); } ) .then( (email) => { // check if there is an item for the user in the collection userEmail = email; return wixData.query("Member") .eq("_id", userId) .find(); } ) .then( (results) => { // if an item for the user is not found if (results.items.length === 0) { // create an item const toInsert = { "_id": userId, "email": userEmail }; // add the item to the collection wixData.insert("Member", toInsert) .catch( (err) => { console.log(err); } ); } // update buttons accordingly $w("#button1").label = "Logout"; $w("#button2").show(); } ) .catch( (err) => { console.log(err); } ); } } export function button2_onclick() { wixLocation.to(`/Member/Update/ID ${wixUsers.currentUser.id}`); } Note : I want to Add and Additional Accounting Area or Table through which my member can view their Balance and account statement (How to Add it i dont know) because i just follow your steps in coding and creating website....i am not technical and IT Person ....but interested to create website according to my requirement Request you to Please give or add coding for Basic account statement generation like Account No., Amount Deposit,Withdraw, Final Balance in Table form in the above mention code So Please Help me as soon as possible
doing it with a facebook...
Hi,
thanks for your response.
I have two pages one's URL is (MycollectionName)/UserId
and the other one is (MycollectionName)/Update/UserId.
Its happaning when Im trying to navigate to my profile page.
I cant get the screencast to work for some reason, but thats the scenario:
1) Im logged in as a member and my details are exist in the collection.
2) Im clicking the My Profile button:
Then Im keep getting the 404 Error but I can see that the web address is being shown as it supposed to:
(siteAddress)/(MycollectionName)/UserId: