Hi there,
I can’t save specific page( Page-S ) of my site,
I have tested to get following results:
- Edit UI/Page-Code of " Other Pages " then Save → Ok
- Edit UI of " Page-S " then Save → Ok
- Edit Page-Code of " Page-S " then Save → Failed !!
It kept showing error msg every time I did step 3,

error occurred with following console msg
I have tried the instructions on the dialog,
but still doesn’t work…
Can anyone help ??
Hi,
Since the failure occurs when saving after editing the page-code, please show the code that you are adding to your page?
Thanks,
Yisrael
Hi Yisrael ,
thanks for your reply,
I just resolved it by rebuilding page code part by part to find the code that caused the error.
That means I deleted all code first, and repeated “paste → save” of each part(of the code) until the error occurred.
Code below is the part I found.
After marked 4 lines and rewrite, the page can be saved.
But I don’t really know why this happened.
function InitSavingFunc(){
if (pageInit){
let userItems = checkUserObject.allUserItems;
let user = checkUserObject.userItem;
// let dropUser = $w("#dropUser");
// dropUser.options = [];
$w("#dropUser").options = [];
let opts = [], i;
let defaultIdx = -1;
opts.push({label:"< Summary >", value:String(-1)});
for (i=0; i<userItems.length; i++){
let tmpUser = userItems[i];
opts.push({label:tmpUser.name, value:String(i)});
if (tmpUser.title===user.title){
defaultIdx = opts.length-1;
}
}
// ---> following 2 lines will caused the error !! <---
// dropUser.options = opts;
// dropUser.selectedIndex = defaultIdx;
$w("#dropUser").options = opts;
$w("#dropUser").selectedIndex = defaultIdx;
showUserInfo();
}
}
I’m glad you were able to narrow it down. Don’t know why that code should cause such a severe problem that it would cause a save error. Very strange.
I’ll play with this a little and then report it to QA.
Thanks for sharing this,
Yisrael