I dug deeper and the issue is with the checkStatusL.php JavaScript. The JS is looking for Google analytic codes (and FB, etc...)
At around line 2244, the MetaData objects are all defined as empty objects:
this.MetaData = {
facebook: {},
gtag_js: {},
analytics_js: {},
ga_js: {},
gtag_aw: {},
}
However, the subsequent function for gtag_js is checking for null around line 2349:
if(this.MetaData.gtag_js != null){
gtag('config', this.MetaData.gtag_js._value, {'linker': {
'domains': ['.e-junkie.com','www.e-junkie.com', '.fatfreecartpro.com','www.fatfreecartpro.com', '.fatfreecart.com','www.fatfreecart.com'],
'decorate_forms': true,
'decorateForms': true
}
});
this.MetaData.gtag_js._params = ga.getAll()[0].get("linkerParam")
return true;
}
The if check should be doing something along the lines of:
if(Object.keys(this.MetaData.gtag_js).length > 0)
Or better yet, just assign null or undefined as the default value and check accordingly.
This same ReferenceError will occur for the other MetaData objects; all of them probably need to be fixed.