I recently moved my wix website from a free wix domain to a paid wix domain (i.e. hosted by Wix): https://www.vocap.info
However, although everything was working perfectly fine on the free website (and I really tested all the time), I now have code that has gone completely crazy on my premium site.
For example, on this page, the ‘inloggen’ button (English: login button) should trigger the Wix login window. But instead it goes to this https://www.vocap.info/registreren page. Which I did neither define in the code, nor as link in the editor, nor as a database link in the editor.
The code on this page is also broken now: https://www.vocap.info/Evenementen
I am afraid that this is just the tip of the iceberg.
I am in sackloth and ashes as all my hard work of making the code perfect went up in flames.
Please use all means necessary to resolve this issue. I grant you complete permission to the site, the code, the backend etc.
Hey
Did you upgrade from a free site to a premium or did you copy / transfer the site first and then upgraded from a free one to a premium one? The member settings will be cleared if you copy / transfer a site in Wix.
I did not copy/transfer the site. It was directly upgraded to premium in the same ‘project’.
May I stress the urgency of this issue. Our society works with an annual membership and we are soon to collect more than 40.000 euros through this website. We recently bought the a two year Wix subsription, so it has to work!
You should address urgent matters to support@wix.com or call them
@andreas-kviby I sent them a message.
@info85223 I hope you get swift help
Dear @andreas-kviby ,
The Wix support refused to help me, as I am using custom code on my wix site, and just sent me back here. I am thus shuttled from pillar to post.
They did point out the following error in the console, but I never gave me any problems on my Wix free site:
What could be the reason of this error in the first place? Could it explain my sites odd behaviour and how do I resolve it?
Best regards,
Chiel Buseyne
OK, so it’s like this…
I tried the Live site ( https://www.vocap.info ) and it seems to work fine. However, when I try to run Preview from the Editor I get the error message: " An error occurred in one of datasetReady callbacks TypeError: Cannot read property ‘voornaam’ of null ". This error makes sense in the Editor since your sandbox Leden database collection is empty. In the onReady() function in your site code you have the following:
if(wixUsers.currentUser.loggedIn) {
let voornaamgebruiker = $w("#headerDataset").getCurrentItem().voornaam;
$w("#LoginButton").label = "Dashboard "+ voornaamgebruiker
}
else {
$w("#LoginButton").label = "Aanmelden of registeren"
}
}
Since you are running in the Editor - you are already logged in. The first line of code that runs if you are logged in is:
let voornaamgebruiker = $w(“#headerDataset”).getCurrentItem().voornaam;
Since the Leden collection is empty, there is no current item in the dataset and therefore it is null and can’t have the property voornaam. The Live database is populated so apparently doesn’t have this problem.
Thank you @yisrael-wix . That already rules out one possible error.
For the sake of testing, I created a test page (https://www.vocap.info/testpage) that contains only the following promptLogin() code as defined in the wix code API:
import wixUsers from 'wix-users';
// ...
wixUsers.promptLogin()
.then( (user) => {
let userId = user.id; // "r5me-6fem-45jf-djhe-484349"
let isLoggedIn = user.loggedIn; // true
let userRole = user.role; // "member"
return user.getEmail();
} )
.then( (email) => {
let userEmail = email; // "user@something.com"
} )
.catch( (err) => {
let errorMsg = err; // "The user closed the login dialog"
} );
However, it still goes to the page https://www.vocap.info/registreren instead of the standard wix login page.
This does - ofcourse - not make any sense. It’s like asking your GPS to go to Paris and it returning directions to Rome.
What could be the reason for this odd behaviour? It is, I tink, the essence of my problem. 
@info85223 Are you running this as Preview in the Editor. The wix-users API does not fully work in the Editor.
@yisrael-wix No, I am trying this on the published live site. See the link in my previous post and again here: ( https://www.vocap.info/testpage ) .
@info85223 I need test credentials to try logging in. Just put them in the testpage code so that I can see them.
Dear @yisrael-wix ,
As requested, I have added the test login name and test password as comments on top of the code.
Dear @Yisrael ,
I was so frustrated that I asked a paid professional to have a look, and it seems to be working fine now. If I am still experiencing issues, I’l let you know 
I’m glad it’s OK now because I couldn’t see a problem.