Navigating to dynamic pages Err404 - I'm missing something

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 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 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 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 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 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 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

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,

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,
I’m having the same problem and still can’t figure it out.
Can you please check this out?

Thanks,
Jakub

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 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?

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