Uncaught (in promise) TypeError: Cannot read property 'masterPage' of undefined

Hello. I am new to this forum so please any guidance and assistance is appreciated.

I’m unsured what is going on. All I did was arrange a strip in my header to move backwards, published and now none of my elements are loading up but one strip in my header on the live site . I’ve tried restoring back to weeks ago and it still doesn’t work. The editor preview works perfectly.

I’m completely lost with this. And unsure how to get the site back to proper function.

Also, I understand the masterPage code probably has a lot of cleaning up but I’m trying to get the site back up again first.

healthyufit. com

Below is the masterPage.js


import wixLocation from "wix-location";

let fadeInOptions = {

 "duration":   15,

 "delay":      0

};

let fadeOutOptions = {

 "duration":   0,

 "delay":    15

}

////////// MENU MOUSE I/O /////////////////
//Interactive color rotation on mouse proximity location

export function RegMenu_mouseIn(event) {
 //Add your code for this event here: 

    $w("#HoverMenu").show("fade",fadeInOptions);

    $w("#RegMenu").hide("fade",fadeOutOptions);
}

export function hoverHead_mouseIn(event) {
 //Add your code for this event here: 
 
    $w("#HoverMenu").show("fade",fadeInOptions);

    $w("#RegMenu").hide("fade",fadeOutOptions);
}

export function HoverMenu_mouseOut(event) {
 //Add your code for this event here: 
    $w("#RegMenu").show("fade",fadeOutOptions);

    $w("#HoverMenu").hide("fade",fadeOutOptions);
}

//Main Drop Down Menu for Healthy U button
export function DropDown1_mouseIn(event) {
 // Add your code for this event here: 
    $w("#HoverMenu").show("fade",fadeInOptions);
}

export function DropDown1_mouseOut(event) {
 //Add your code for this event here: 
 
    $w("#RegMenu").show();

    $w("#HoverMenu").hide();
    $w("#DropDown1").hide();
}

//Main Social Drop Down Menu
export function SocialDrop_mouseIn(event) {
 // Add your code for this event here: 
    $w("#HoverMenu").show("fade",fadeInOptions);
}

export function SocialDrop_mouseOut(event) {
 // Add your code for this event here: 
 
    $w("#RegMenu").show();

    $w("#HoverMenu").hide();
    $w("#SocialDrop").hide();
    $w("#DropDown1").hide();
}

//Healthy U Button
export function AboutButton_mouseIn(event) {
 //Add your code for this event here: 
        $w("#DropDown1").show('fade',fadeInOptions);
        $w("#HoverMenu").show('fade',fadeInOptions);
        $w("#SocialDrop").hide();
}
export function AboutButton_mouseOut(event) {
 // Add your code for this event here: 
        $w("#DropDown1").hide();
}
// Social Button
export function SocialButton_mouseIn(event) {
 // Add your code for this event here: 

    $w("#SocialDrop").show('fade',fadeInOptions);
    $w("#HoverMenu").show('fade',fadeInOptions);
    $w("#DropDown1").hide();
}

//////////// MOUSE I/O ////////////////////

$w.onReady(function () {
 //TODO: write your page related code here...
    $w("#headerTransitionPoint").onViewportLeave(() => {
        $w("#transStrip").show();
        $w("#RegMenu").hide();
        $w("#HoverMenu").hide();
    })
    $w("#headerTransitionPoint").onViewportEnter(() => {
        $w("#RegMenu").show();
        $w("#transStrip").hide();
    })  
});

/////*******************************************************************
///////TEXT CLICK
export function columnStrip_click(event) {

    wixLocation.to("/PAGE");
}

//Healthy U Drop Down Menu
export function DiscoverTxt_click(event, $w) { 
    wixLocation.to("/red-zone");
}
export function DiscoverUTxt_click(event) {
    wixLocation.to("/red-zone");
}
//////////UTeam
export function UTrainingTxt(event) {
 // Add your code for this event here:
    wixLocation.to("/u-training"); 
}
export function TeamTxt(event) {
 // Add your code for this event here: 
    wixLocation.to("/u-team");
}
export function AboutUSTxt_click(event) {
    wixLocation.to("/u-team");
}
//////////JUICEBar
export function JuiceTxt_click(event) {
    wixLocation.to("/juice-bar");
}
export function BarTxt_click(event) {
    wixLocation.to("/juice-bar");
}
//////////INSTAGram
export function InstaText_click(event, $w) {
    wixLocation.to("/social-frenzy");   
}
export function GramText_click(event) {
    wixLocation.to("/social-frenzy");
}
//////////COVIDResponse
export function COVIDtext_click(event) {
 // Add your code for this event here: 
    wixLocation.to("/COVID Respond");
}
/////TEXT CLICK

///// SCROLLING MENU
export function transAbout_mouseOut(event) {
 // Add your code for this event here: 
    $w("#transAbout").hide();
}

export function transAboutButton_mouseIn(event) {
 // Add your code for this event here: 
    $w("#transAbout").show();
}

export function transAboutButton_mouseOut(event) {
 // Add your code for this event here: 
    $w("#transAbout").hide();
}
export function transHomeButton_click(event) {
 // Add your code for this event here: 
    wixLocation.to("/Home");
}
//Trans Drop-Down Bar
export function TransDisc_click(event) {
 // Add your code for this event here: 
    wixLocation.to("/red-zone");
}
export function TransU_click(event) {
 // Add your code for this event here: 
    wixLocation.to("/red-zone");
}
export function TransTeamU_click(event) {
 // Add your code for this event here: 
    wixLocation.to("/u-team");
}

export function TransTeam_click(event) {
 // Add your code for this event here: 
    wixLocation.to("/u-team");
}

Does no one have any idea what to do about this? :confused: I’m really hoping to get this site back up and running as soon as possible.

Site resolved itself. I’m not sure what happened whether it was a lockout due to too many requests or what happened. I’m tired of running into constant issues with wix.