Wix Editor went down - now I cannot save!

Is anyone else getting this?

Is there an ETA for it being back up? I was working furiously on this project before this happened, 30mins - 1 hr ago

Hi, you still see it? Can you please send a link, i can check what happens

It’s back now, thanks

Actually, the editor is “back”, in the sense that it loads, but I cannot save!!

I have followed all the instructions, and also done things like restarting my browser and even clearing all cookies temp files.

Please help!! Cannot continue working for my client until this is solved.

Excuse me. but this forum is dedicted only to questions regarding new Wix Code product. And i actually can’t help you with save issue, if you still experience it

If you do, please create ticket in support…

And how long should I expect “support” to take in getting around to addressing my issue? The reason I posted here is because people with some knowledge tend to respond in a timely fashion.

And, please post a link to ticket here (from your brower), i can try to escalate your issue

Okay thanks.

Hello Mikhail,

The ticket is here:

https://support.wix.com/en/ticket/110fa021-a415-4f42-8740-d1a1dae72f6d

I appreciate the escalation - this is extremely frustrating and a waste of my development time.

Hi again!
So i see that site was succsessfully saved 15 minutes ago. What is your problem right now, can you please describe more?

We actually have autosave mechanizm, so just try to reload site to see last saved version

The site was successfully saved when I loaded the site and immediately tried saving without making changes.

The next thing I did was make changes, and it failed.

And right now I can’t even load the site. I am hoping that is Support putting a lock on it while they work this out.

I just opened your site, i’m able to save and publish your site. So i actually can’t see your problem at all… You still can open editor? With what error?

Oh, i probably got you, i’m looking to different site. What’s your site name?

I just logged out and back in again, then the editor loaded.

There is a strange problem. When I make a small change, it saves successfully. But what I am actually doing, is pasting a whole page of site code. When the editor first crashed, I saved the entire code for the “site” section into notepad.

Now that the editor is loadable again, I am trying to paste the code from notepad back into Wix. But every time I do, it fails.

https://www.autismaloud.com/ is the site.

Ok same site - it’s good) What is the code you trying to insert then?

This is the code I am pasting in…

import wixUsers from “wix-users”;
import wixLocation from “wix-location”;
import wixData from “wix-data”;
import wixWindow from “wix-window”;

debugger;

var toInsert;
var userEmail, userID;
var errorMsg;

export async function createNewMember(email, id) {
toInsert = {
“_id”: id,
“email”: email
};
// add the item to the collection
var member = await wixData.insert(“members”, toInsert);
console.log(“Created member:”);
console.log(member);
}

$w.onReady(async function () {
var tid = setInterval(async function(){
if (wixUsers.currentUser.loggedIn) {
$w(“#buttonLogin”).label = “Logout”;
$w(“#profileIcon”).show();
$w(“#repeaterMenu”).expand();
$w(“#textHiUser”).expand();
}
else {
$w(“#buttonLogin”).label = “Login/Signup”;
$w(“#profileIcon”).hide();
$w(“#repeaterMenu”).collapse();
$w(“#textHiUser”).collapse();
}
},250); //delay is in milliseconds

// if the user is not logged in, do no more processing 
if (wixUsers.currentUser.loggedIn) { 
	// Try to find an entry for the logged in user in our 'Members' collection 
	var results = await wixData.query("members") 
							.eq("_id", wixUsers.currentUser.id) 
							.find(); 
	// if an entry in our 'members' collection corresponding  
	// to the logged-in user exists 
	if (results.totalCount >0) { 
		// expand members stuff 
    	$w("#profileIcon").show(); 
    	$w("#repeaterMenu").expand(); 
    	$w("#textHiUser").expand(); 
    	
		var iconsrc = results.items[0].profilePic; 
		if (iconsrc === "" || iconsrc === undefined) iconsrc = " "; 
		$w("#profileIcon").src = iconsrc; 
	
	    // check for unread messages 
	    var convos = await wixData.query("convos") 
	    						.contains("unreadby", wixUsers.currentUser.id) 
	    						.find(); 
	    console.log("Convos totalcount:"); 
	    console.log(convos.totalCount); 
	    console.log("Convos:"); 
	    console.log(convos); 
	    var numUnread = convos.totalCount; 
	    if ( numUnread > 0) { 
	    	$w("#iconButtonNewMail").expand(); 
	    	$w("#groupNewMailCounter").expand(); 
	    	$w("#textNewMailCounter").text = numUnread.toString(); 
	    } 
	    else { 
	    	$w("#iconButtonNewMail").collapse(); 
	    	$w("#textNewMailCounter").text = "0"; 
	    	$w("#groupNewMailCounter").collapse(); 
	    } 
    } 

} 
else { 
	$w("#profileIcon").hide();  
	$w("#repeaterMenu").collapse(); 
	$w("#textHiUser").collapse(); 
} 

// wixUsers.onLogin( async (user) => {
// await processLogin(user);
// } );

});

async function processLogin() {
let userFirstName;

  // if user is logged in 
  if(wixUsers.currentUser.loggedIn) { 
    // log the user out 
    await wixUsers.logout(); 
    // update buttons accordingly 
    $w("#buttonLogin").label = "Login"; 
    $w("#profileIcon").hide(); 
    $w("#textHiUser").hide(); 
    $w("#textHiUser").text = "HiUser Error"; 
	$w("#profileIcon").hide();  
	//hide Members menu 
	$w("#repeaterMenu").collapse(); 
	// hide email icon 
	$w("#iconButtonNewMail").collapse(); 
	$w("#textNewMailCounter").text = "0"; 
	$w("#groupNewMailCounter").collapse(); 
    
  } 
  // else user is logged out 
  else { 
    let userId; 
    let userEmail; 
  
    // prompt the user to log in  
    var user = await wixUsers.promptLogin( {"mode": "login"} ); 
    userId = user.id; 
    var email = await user.getEmail(); 

    // check if there is an item for the user in the collection 
    userEmail = email; 
    var results = await wixData.query("members") 
      						.eq("_id", userId) 
      						.find(); 

	userFirstName = "name not set"; 
    // if an item for the user is not found 
    if (results.items.length === 0) { 
        $w("#textHiUser").hide(); 
        $w("#textHiUser").text = "HiUser Error"; 
    	$w("#profileIcon").hide();  
		// create an item 
        await createNewMember(userEmail, userId); 
    	//open a lightbox to welcome them and redirect them to the Edit Profile page 
	    wixWindow.openLightbox("Welcome - Setup Account"); 
    } 
    else { 
		userFirstName = results.items[0].firstname;    	 
    } 
    
    // update buttons accordingly 
    $w("#buttonLogin").label = "Logout"; 
    $w("#profileIcon").show(); 
    $w("#textHiUser").show(); 
    $w("#textHiUser").text = "Hi, " + userFirstName; 
	$w("#profileIcon").show(); 
	$w("#repeaterMenu").expand(); 
	$w("#profileIcon").src = results.items[0].profilePic; 
	$w("#textHiUser").text = "Hi, " + userFirstName; 

    // check for unread messages 
    var convos = await wixData.query("convos") 
    						.contains("unreadby", wixUsers.currentUser.id) 
    						.find(); 
    console.log("Convos totalcount:"); 
    console.log(convos.totalCount); 
    console.log("Convos:"); 
    console.log(convos); 
    var numUnread = convos.totalCount; 
    if ( numUnread > 0) { 
    	$w("#iconButtonNewMail").expand(); 
    	$w("#groupNewMailCounter").expand(); 
    	$w("#textNewMailCounter").text = numUnread.toString(); 
    } 
    else { 
    	$w("#iconButtonNewMail").collapse(); 
    	$w("#textNewMailCounter").text = "0"; 
    	$w("#groupNewMailCounter").collapse(); 
    } 
    
}    

}

export function profileIcon_onClick(event, $w) {
if (wixUsers.currentUser.loggedIn) {
let id = wixUsers.currentUser.id;
wixLocation.to(“https://www.autismaloud.com/profile/” + id);
}
}

export function buttonDevLogout_onClick(event, $w) {
wixUsers.logout();
}

export function containerMenu_onMouseIn(event, $w) {
}

export function containerMenu_onMouseOut(event, $w) {
}

export function expandMenu(event, $w) {
var data = [
{
“_id” : “0”,
“label” : “Members”
},

	{ 
		"_id" : "1", 
		"label" : "Inbox" 
	}, 
	
	{ 
		"_id" : "2", 
		"label" : "Forums" 
	} 
	]; 
$w("#repeaterMenu").data = data; 
$w("#repeaterMenu").forEachItem( ($w, itemData, index) => { 
	$w("#buttonMenuItem").label = itemData.label; 
}); 

}

export function collapseMenu(event, $w) {
var data = [
{
“_id” : “0”,
“label” : “Members”
}
];

$w("#repeaterMenu").data = data; 
$w("#repeaterMenu").forEachItem( ($w, itemData, index) => { 
	$w("#buttonMenuItem").label = itemData.label; 
}); 

}

export function repeaterMenu_onMouseOut(event, $w) {
collapseMenu(event, $w);
}

export function repeaterMenu_onMouseIn(event, $w) {
expandMenu(event, $w);
}

export function buttonLogin_onClick(event, $w) {
processLogin();
}

It seems the code I am trying to paste is identical (I used diff), so I will leave it at that. Thanks.