Project

General

Profile

Wt internal error; code: undefined, description: Wt4_8_0.WPopupWidget is not a constructor

Added by Harm ​ over 1 year ago

Hi,
 
 
I'm facing a problem I've had earlier: Wt internal error; code: undefined, description: Wt3_3_7....

Logging out and back in to my application breaks the WPopupWidgets I have in my top bar:

After refreshing my page, opening a WDialog is paired with this error message, and a sizeable JavaScript error in console.

[2022-Aug-22 10:48:33.544] 77276 [/ 2Bouuflj6251f9TN] [error] "WApplication: JavaScript error: {""exception_description"":""Wt4_8_0.WPopupWidget is not a constructor"",""exception_js"":""Wt._p_.response(3188691356);Wt4_8_0.WDialog = function(h,a,i,D,m,n,w,x,E){function y(){if(w){var b=c.pxself(a,\""left\""),d=c.pxself(a,\""top\"");if(b!=s||d!=t){s=b;t=d;h.emit(a,w,s,t)}}}function z(b,d){if(!A)if(b!=u||d!=v){u=b;v=d;x&&h.emit(a,x,u,v)}}function F(b){var d=b||window.event;b=c.pageCoordinates(d);d=c.windowCoordinates(d);var e=c.windowSize();if(d.x>0&&d.x<e.x&&d.y>0&&d.y<e.y){m=n=false;if(a.style.right===\""auto\""||a.style.right===\""\""){a.style.left=c.px(a,\""left\"")+b.x-o+\""px\"";a.style.right= \""\""}else{a.style.right=c.px(a,\""right\"")+o-b.x+\""px\"";a.style.left=\""auto\""}if(a.style.bottom===\""auto\""||a.style.bottom===\""\""){a.style.top=c.px(a,\""top\"")+b.y-p+\""px\"";a.style.bottom=\""\""}else{a.style.bottom=c.px(a,\""bottom\"")+p-b.y+\""px\"";a.style.top=\""auto\""}o=b.x;p=b.y}}function G(b,d,e,f){if(a.style.position==\""\"")a.style.position=c.isIE6?\""absolute\"":\""fixed\"";a.style.visibility=\""visible\"";c.windowSize();k=c.parsePct(a.style.height,k);l=c.parsePct(a.style.width,l);if(f){a.style.height=Math.max(0,e)+\""px\"";a.style.width=Math.max(0, d)+\""px\""}z(d,e);j.centerDialog();b=l!=-1;f=k!=-1;if(b&&f){q=B();r=C();j.onresize(q,r,true)}else if(b){q=B();j.onresize(q,e,true)}else if(f){r=C();j.onresize(d,r,true)}}function B(){return c.windowSize().x*l/100}function C(){return c.windowSize().y*k/100}function H(b,d,e,f){if(f){if(d>0)g.style.width=d+c.parsePx($(g).css(\""borderLeftWidth\""))+c.parsePx($(g).css(\""borderRightWidth\""))+\""px\"";if(e>0)g.style.height=e+c.parsePx($(g).css(\""borderTopWidth\""))+c.parsePx($(g).css(\""borderBottomWidth\""))+\""px\""}j.centerDialog(); a.wtResize&&a.wtResize(a,d,e,true)}function I(){j.centerDialog();h.layouts2&&h.layouts2.adjust()}a.wtObj=this;var j=this,g=$(a).find(\"".dialog-layout\"").get(0),c=h.WT,o,p,s=-1,t=-1,u=-1,v=-1,A=false,l=-1,k=-1,q=-1,r=-1;if(i&&D){i.onmousedown=function(b){b=b||window.event;c.capture(i);b=c.pageCoordinates(b);o=b.x;p=b.y;i.onmousemove=F};i.onmouseup=function(){i.onmousemove=null;y();c.capture(null)}}this.centerDialog=function(){var b=c.parsePct(c.css(a,\""max-width\""),0),d=c.parsePct(c.css(a,\""max-height\""), 0);if(b!==0){var e=c.windowSize(),f=g.firstChild.wtLayout;f&&f.setMaxSize&&f.setMaxSize(e.x*b/100,e.y*d/100)}if(a.parentNode==null)a=i=null;else if(a.style.display!=\""none\""){e=c.windowSize();b=a.offsetWidth;d=a.offsetHeight;if(l!=-1)m=true;if(k!=-1)n=true;if(m){a.style.left=Math.round((e.x-b)/2+(c.isIE6?document.documentElement.scrollLeft:0))+\""px\"";a.style.marginLeft=\""0px\""}if(n){a.style.top=Math.round((e.y-d)/2+(c.isIE6?document.documentElement.scrollTop:0))+\""px\"";a.style.marginTop=\""0px\""}if(a.style.position!= \""\"")a.style.visibility=\""visible\"";y()}};this.bringToFront=function(){var b=c.maxZIndex();if(b>a.style.zIndex){b=b+1;a.style.zIndex=b;h.emit(a,E,b)}};this.onresize=function(b,d,e){m=n=false;A=!e;H(a,b,d,true);var f=g.firstChild.wtLayout;f&&f.setMaxSize&&f.setMaxSize(0,0);h.layouts2&&h.layouts2.scheduleAdjust();e&&z(b,d)};g.wtResize=G;a.wtPosition=I;if(a.style.width!=\""\"")g.style.width=c.parsePx(a.style.width)>0?a.style.width:a.offsetWidth+\""px\"";if(a.style.height!=\""\"")g.style.height=c.parsePx(a.style.height)> 0?a.style.height:a.offsetHeight+\""px\"";j.centerDialog()};\nWt4_8_0.FlexLayout = function(i,h){function j(){var b=f.getElement(h);if(b){b=b.childNodes;for(var g=0;g<b.length;++g){var e=b[g];if(!(e.style.display==\""none\""||$(e).hasClass(\""out\"")||e.className==\""resize-sensor\"")){var c=f.css(e,\""overflow\"");if(c===\""visible\""||c===\""\"")e.style.overflow=\""hidden\""}}}}var f=i.WT;setTimeout(j,0);this.adjust=function(){setTimeout(function(){var b=f.getElement(h);if(b){b=b.childNodes;for(var g=0,e=f.styleAttribute(\""flex-grow\""),c=0;c<b.length;++c){var a= b[c];if(!(a.style.display==\""none\""||$(a).hasClass(\""out\"")||a.className==\""resize-sensor\"")){var d=a.getAttribute(\""flg\"");if(d!==\""0\""){d=f.css(a,e);g+=parseFloat(d)}}}for(c=0;c<b.length;++c){a=b[c];if(!(a.style.display==\""none\""||$(a).hasClass(\""out\"")||a.className==\""resize-sensor\"")){a.resizeSensor&&a.resizeSensor.trigger();if(g===0)d=1;else{d=a.getAttribute(\""flg\"");if(d===\""0\"")d=0;else d=d=f.css(a,e)}a.style[e]=d}}}},0)}};\nWt4_8_0.WIntValidator = function(e,b,c,d,f,g,h,i){this.validate=function(a){a=String(a);if(a.length==0)return e?{valid:false,message:f}:{valid:true};if(d!=\""\"")a=a.replace(d,\""\"",\""g\"");a=Number(a);if(isNaN(a)||Math.round(a)!=a)return{valid:false,message:g};if(b!==null)if(a<b)return{valid:false,message:h};if(c!==null)if(a>c)return{valid:false,message:i};return{valid:true}}};\nWt4_8_0.WRegExpValidator = function(e,b,f,g,h){var c=b?new RegExp(b,f):null;this.validate=function(a){if(a.length==0)return e?{valid:false,message:g}:{valid:true};if(c){var d=c.exec(a);return d!==null&&d[0].length===a.length?{valid:true}:{valid:false,message:h}}else return{valid:true}}};\nWt4_8_0.WSpinBox = function(C,c,u,j,i,f,h,n,r,s){function o(){return c.readOnly}function t(){var a=c.wtLObj,b=\""\"";if(a!==undefined){b=a.getValue();if(b===\""\"")b=j+\""0\""+i}else b=c.value;if(b.substr(0,j.length)==j){b=b.substr(j.length);if(b.length>i.length&&b.substr(b.length-i.length,i.length)==i){b=b.substr(0,b.length-i.length);if(s)b=b.split(s).join(\""\"");b=b.replace(r,\"".\"");return Number(b)}}return null}function v(a){var b=c.wtLObj;if(a>h)if(w){range=h-f;a=f+(a-f)%(range+ 1)}else a=h;else if(a<f)if(w){range=h-f;a=h-(Math.abs(a-f)-1)%(range+1)}else a=f;var e=a.toFixed(u);e=e.replace(\"".\"",r);var l=e.indexOf(r),k=\""\"";if(l!==-1){for(var m=0;m<l;m++){k+=e.charAt(m);if(m<l-1&&(l-m-1)%3===0)k+=s}k+=e.substr(l)}else k=e;e=c.value;if(b!==undefined)b.setValue(j+k+i);else c.value=j+k+i;p=true;D.jsValueChanged(e,a)}function x(){var a=t();if(a!==null){a+=n;v(a)}}function y(){var a=t();if(a!==null){a-=n;v(a)}}c.wtObj=this;var D=this,d=C.WT,g=$(c),q=null,A,p=false,B=null,z=false,w= false;this.setIsDoubleSpinBox=function(a){z=a;this.configure(u,j,i,f,h,n)};this.setWrapAroundEnabled=function(a){w=a};this.configure=function(a,b,e,l,k,m){u=a;j=b;i=e;f=l;h=k;n=m;B=z||typeof d.WIntValidator===\""undefined\""?new d.WDoubleValidator(true,false,f,h,\"".\"",\""\"",\""Must be a number\"",\""Must be a number\"",\""The number must be at least \""+f,\""The number may be at most \""+h):new d.WIntValidator(true,f,h,\""\"",\""Must be a number\"",\""Must be a number\"",\""The number must be at least \""+f,\""The number may be at most \""+ h)};this.mouseOut=function(){g.removeClass(\""dn\"").removeClass(\""up\"")};this.mouseMove=function(a,b){if(!o())if(q){a=d.pageCoordinates(b).y-q.y;b=A;if(b!==null){b-=a*n;v(b)}}else{a=d.widgetCoordinates(c,b);if(g.hasClass(\""dn\"")||g.hasClass(\""up\""))g.removeClass(\""dn\"").removeClass(\""up\"");b=-1;if(typeof d.theme===\""object\""&&d.theme.type===\""bootstrap\"")b=d.theme.version;if(b>=4&&a.x>c.offsetWidth-30&&a.x<c.offsetWidth-10){b=c.offsetHeight/2;if(a.y>=b-3&&a.y<=b+3)c.style.cursor=\""crosshair\"";else{c.style.cursor=\""default\""; a.y<b-1?g.addClass(\""up\""):g.addClass(\""dn\"")}}else if(b<4&&a.x>c.offsetWidth-22){b=c.offsetHeight/2;if(a.y>=b-3&&a.y<=b+3)c.style.cursor=\""crosshair\"";else{c.style.cursor=\""default\"";a.y<b-1?g.addClass(\""up\""):g.addClass(\""dn\"")}}else if(c.style.cursor!=\""\"")c.style.cursor=\""\""}};this.mouseDown=function(a,b){d.capture(null);if(!o())if(c.style.cursor==\""crosshair\""){d.capture(null);d.capture(c);g.addClass(\""unselectable\"");q=d.pageCoordinates(b);A=t()}else{a=d.widgetCoordinates(c,b);var e=-1;if(typeof d.theme===\""object\""&& d.theme.type===\""bootstrap\"")e=d.theme.version;if(e>=5&&a.x>c.offsetWidth-30&&a.x<c.offsetWidth-10){d.cancelEvent(b);d.capture(c);g.addClass(\""unselectable\"");b=c.offsetHeight/2;a.y<b?d.eventRepeat(function(){x()}):d.eventRepeat(function(){y()})}else if(e<4&&a.x>c.offsetWidth-22){d.cancelEvent(b);d.capture(c);g.addClass(\""unselectable\"");b=c.offsetHeight/2;a.y<b?d.eventRepeat(function(){x()}):d.eventRepeat(function(){y()})}}};this.mouseUp=function(a){g.removeClass(\""unselectable\"");if(!o()){if(p||q!=null){q= null;p=false;a.onchange()}d.stopRepeat()}};this.keyDown=function(a,b){if(!o())if(b.keyCode==40)d.eventRepeat(function(){y()});else b.keyCode==38&&d.eventRepeat(function(){x()})};this.keyUp=function(a){if(!o()){if(p){p=false;a.onchange()}d.stopRepeat()}};this.setLocale=function(a,b){r=a;s=b};this.validate=function(){var a=t();if(a===null)a=\""a\"";return B.validate(a)};this.jsValueChanged=function(){};this.setIsDoubleSpinBox(z)};\nWt4_8_0.validate = function() { return (function(a){var b;b=a.options?a.options.item(a.selectedIndex)==null?\""\"":a.options.item(a.selectedIndex).text:typeof a.wtLObj===\""object\""&&typeof a.wtLObj.getValue===\""function\""?a.wtLObj.getValue():a.value;b=a.wtValidate.validate(b);this.setValidationState(a,b.valid,b.message,1)}).apply(Wt4_8_0, arguments) };\nWt4_8_0.setValidationState = function() { return (function(a,b,i,e){var j=b==1&&(e&2)!=0;e=b!=1&&(e&1)!=0;var d=$(a),c=\""Wt-valid\"",k=\""Wt-invalid\"",f=this.theme;if(typeof f===\""object\""){c=f.classes.valid;k=f.classes.invalid}d.toggleClass(c,j).toggleClass(k,e);var g,h;c=d.closest(\"".control-group\"");if(c.length>0){g=\""success\"";h=\""error\""}else{c=d.closest(\"".form-group\"");if(c.length>0){g=\""has-success\"";h=\""has-error\""}}if(c.length>0){if(d=c.find(\"".Wt-validation-message\""))b?d.text(a.defaultTT):d.text(i); c.toggleClass(g,j).toggleClass(h,e)}if(typeof a.defaultTT===\""undefined\"")a.defaultTT=a.getAttribute(\""title\"")||\""\"";b?a.setAttribute(\""title\"",a.defaultTT):a.setAttribute(\""title\"",i)}).apply(Wt4_8_0, arguments) };\nWt4_8_0.addCss('div.Wt-dialog','left: 0px; top: 0px;');\nvar j145=Wt4_8_0.$('o1xs8wkf');\nvar j146=document.createElement('div');j145.appendChild(j146);\nj146.setAttribute('id', 'o1xs8wqt');\n\nj146.className='Wt-popup modal-dialog Wt-dialog';\nj146.style.position='fixed';\nj146.style.zIndex='5500';\nj146.style.marginTop='0.0px';\nj146.style.marginRight='0.0px';\nj146.style.marginBottom='0.0px';\nj146.style.marginLeft='0.0px';\nfunction f147(event) { var e=event||window.event,o=this;if($(o).hasClass('disabled')){Wt4_8_0.cancelEvent(e);return;}(function(o,e) {  if (Wt4_8_0.WPopupWidget && o.wtPopup) {Wt4_8_0.WPopupWidget.popupClicked = o;$(document).trigger('click', e);Wt4_8_0.WPopupWidget.popupClicked = null; }})(o,e);Wt4_8_0.cancelEvent(e,0x1);}\nj146.onclick=f147;\nfunction f148(event) { var e=event||window.event,o=this;if(e.keyCode && (e.keyCode == 27)){Wt._p_.update(o,'s1be',e,true);}}\nj146.onkeydown=f148;\nWt4_8_0.setHtml(j146,'\\r\\n    \\r\\n    <div id=\""o1xs8wqw\"" class=\""modal-content dialog-layout movable\"" style=\""max-width:999999.0px;display:flex;flex-flow:column;-moz-flex-flow:column;\""><div id=\""o1xs8wqz\"" flg=\""0\"" class=\""modal-header\"" style=\""flex:0 0 auto;-moz-flex:0 0 auto;\""><div id=\""o1xs8wr0\"">\\r\\n    <h4>Status wijzigen</h4>\\r\\n  </div></div><div id=\""o1xs8wr1\"" class=\""modal-body\"" style=\""flex:1 1 auto;-moz-flex:1 1 auto;\""><div id=\""o1xs8wr4\"" style=\""width:400.0px;height:70.0px;\""><div id=\""o1xs8wr5\"" class=\""pull-left\"" style=\""width:320.0px;\""><label id=\""o1xs8wr8\"" for=\""o1xs8wra\""><span id=\""o1xs8wr9\"" style=\""white-space:nowrap;\"">Centrale</span></label><select id=\""o1xs8wra\"" name=\""o1xs8wra\"" onchange=\""var e=event||window.event,o=this;Wt._p_.update(o,\\'s1b6\\',e,true);\"" class=\""form-control\""><option value=\""0\"" selected=\""selected\""></option><option value=\""1\"">MD2400L</option><option value=\""2\"">Nieuwe IP-interface</option></select></div><span id=\""o1xs8wr6\"" style=\""display:none;\"">...</span><div id=\""o1xs8wr7\"" class=\""form-group pull-right\"" style=\""width:75.0px;\""><label id=\""o1xs8wrc\"" for=\""o1xs8wre\""><span id=\""o1xs8wrd\"" style=\""white-space:nowrap;\"">Groep</span></label><input id=\""o1xs8wre\"" name=\""o1xs8wre\"" size=\""10\"" title=\""\"" type=\""text\"" onclick=\""var e=event||window.event,o=this;if($(o).hasClass(\\'disabled\\')){Wt4_8_0.cancelEvent(e);return;}{var f=function(o){Wt4_8_0.validate(o)};f(o,e);}\"" onchange=\""var e=event||window.event,o=this;{var f=function(o){Wt4_8_0.validate(o)};f(o,e);}Wt._p_.update(o,\\'s19e\\',e,true);\"" onmousemove=\""var e=event||window.event,o=this;(function(obj, event) {var o = Wt4_8_0.$(\\'o1xs8wre\\');if (o &amp;&amp; o.wtObj) o.wtObj.mouseMove(obj, event);})(o,e);\"" onmouseout=\""var e=event||window.event,o=this;(function(obj, event) {var o = Wt4_8_0.$(\\'o1xs8wre\\');if (o &amp;&amp; o.wtObj) o.wtObj.mouseOut(obj, event);})(o,e);\"" onmouseup=\""var e=event||window.event,o=this;if($(o).hasClass(\\'disabled\\')){Wt4_8_0.cancelEvent(e);return;}Wt4_8_0.mouseUp(e);(function(obj, event) {var o = Wt4_8_0.$(\\'o1xs8wre\\');if (o &amp;&amp; o.wtObj) o.wtObj.mouseUp(obj, event);})(o,e);\"" onmousedown=\""var e=event||window.event,o=this;if($(o).hasClass(\\'disabled\\')){Wt4_8_0.cancelEvent(e);return;}Wt._p_.saveDownPos(event);Wt4_8_0.capture(this);Wt4_8_0.mouseDown(e);(function(obj, event) {var o = Wt4_8_0.$(\\'o1xs8wre\\');if (o &amp;&amp; o.wtObj) o.wtObj.mouseDown(obj, event);})(o,e);\"" onkeyup=\""var e=event||window.event,o=this;{var f=function(o){Wt4_8_0.validate(o)};f(o,e);}(function(obj, event) {var o = Wt4_8_0.$(\\'o1xs8wre\\');if (o &amp;&amp; o.wtObj) o.wtObj.keyUp(obj, event);})(o,e);\"" onkeypress=\""if (Wt4_8_0.isKeyPress(event)){var e=event||window.event,o=this;{var f=function(o,e){Wt4_8_0.filter(o,e,\\'[-+0-9]\\')};f(o,e);}}\"" onkeydown=\""var e=event||window.event,o=this;(function(obj, event) {var o = Wt4_8_0.$(\\'o1xs8wre\\');if (o &amp;&amp; o.wtObj) o.wtObj.keyDown(obj, event);})(o,e);\"" value=\""1\"" class=\""form-control Wt-spinbox\"" /></div></div><div id=\""o1xs8wri\"" style=\""height:50.0px;margin-top:5.0px;margin-right:0.0px;margin-bottom:0.0px;margin-left:0.0px;\""><div id=\""o1xs8wrj\"" class=\""pull-left\"" style=\""width:250.0px;height:50.0px;padding:10.0px 0 0 25.0px;\""><label id=\""o1xs8wrl\"" name=\""o1xs8wrl\"" class=\""radio-inline\""><input id=\""ino1xs8wrl\"" name=\""o1xs8wrk\"" type=\""radio\"" value=\""o1xs8wrl\"" onchange=\""var e=event||window.event,o=this;Wt._p_.update(o,\\'s1b7\\',e,true);\"" checked=\""checked\"" /><span id=\""to1xs8wrl\"" name=\""to1xs8wrl\"" style=\""white-space:normal;\"">Groep</span></label><label id=\""o1xs8wrm\"" name=\""o1xs8wrm\"" class=\""radio-inline\""><input id=\""ino1xs8wrm\"" name=\""o1xs8wrk\"" type=\""radio\"" value=\""o1xs8wrm\"" onchange=\""var e=event||window.event,o=this;Wt._p_.update(o,\\'s1b8\\',e,true);\"" /><span id=\""to1xs8wrm\"" name=\""to1xs8wrm\"" style=\""white-space:normal;\"">Net</span></label><label id=\""o1xs8wrn\"" name=\""o1xs8wrn\"" class=\""radio-inline\""><input id=\""ino1xs8wrn\"" name=\""o1xs8wrk\"" type=\""radio\"" value=\""o1xs8wrn\"" onchange=\""var e=event||window.event,o=this;Wt._p_.update(o,\\'s1b9\\',e,true);\"" /><span id=\""to1xs8wrn\"" name=\""to1xs8wrn\"" style=\""white-space:normal;\"">Detector</span></label></div><div id=\""o1xs8wro\"" class=\""pull-left\"" style=\""width:45.0px;\""><label id=\""o1xs8wrr\"" name=\""o1xs8wrr\"" class=\""radio-inline\""><input id=\""ino1xs8wrr\"" name=\""o1xs8wrq\"" type=\""radio\"" value=\""o1xs8wrr\"" /><span id=\""to1xs8wrr\"" name=\""to1xs8wrr\"" style=\""white-space:normal;\"">In</span></label><div id=\""o1xs8wrs\"" name=\""o1xs8wrs\"" class=\""radio\"" style=\""margin-top:0.0px;margin-right:0.0px;margin-bottom:0.0px;margin-left:0.0px;display:block;\""><label id=\""lo1xs8wrs\"" name=\""lo1xs8wrs\""><input id=\""ino1xs8wrs\"" name=\""o1xs8wrq\"" type=\""radio\"" value=\""o1xs8wrs\"" /><span id=\""to1xs8wrs\"" name=\""to1xs8wrs\"" style=\""white-space:normal;\"">Uit</span></label></div></div><div id=\""o1xs8wrp\"" class=\""pull-left\""><label id=\""o1xs8wru\"" name=\""o1xs8wru\"" class=\""radio-inline\""><input id=\""ino1xs8wru\"" name=\""o1xs8wrt\"" type=\""radio\"" value=\""o1xs8wru\"" /><span id=\""to1xs8wru\"" name=\""to1xs8wru\"" style=\""white-space:normal;\"">Test</span></label><div id=\""o1xs8wrv\"" name=\""o1xs8wrv\"" class=\""radio\"" style=\""margin-top:0.0px;margin-right:0.0px;margin-bottom:0.0px;margin-left:0.0px;display:block;\""><label id=\""lo1xs8wrv\"" name=\""lo1xs8wrv\""><input id=\""ino1xs8wrv\"" name=\""o1xs8wrt\"" type=\""radio\"" value=\""o1xs8wrv\"" checked=\""checked\"" /><span id=\""to1xs8wrv\"" name=\""to1xs8wrv\"" style=\""white-space:normal;\"">Dienst</span></label></div></div></div><div id=\""o1xs8wrw\"" style=\""height:200.0px;padding:5.0px;margin-top:0.0px;margin-right:0.0px;margin-bottom:10.0px;margin-left:0.0px;border-top:1.0px solid rgb(204,204,204);border-right:1.0px solid rgb(204,204,204);border-bottom:1.0px solid rgb(204,204,204);border-left:1.0px solid rgb(204,204,204);background-color:rgb(238,238,238);\""></div><span id=\""o1xs8wry\"" style=\""display:none;\"">...</span></div><div id=\""o1xs8ws5\"" flg=\""0\"" class=\""modal-footer\"" style=\""flex:0 0 auto;-moz-flex:0 0 auto;\""><button id=\""o1xs8ws7\"" type=\""button\"" onclick=\""var e=event||window.event,o=this;if($(o).hasClass(\\'disabled\\')){Wt4_8_0.cancelEvent(e);return;}Wt._p_.update(o,\\'s1ba\\',e,true);\"" class=\""btn-warning btn with-label\"" style=\""width:100.0px;\"">Annuleren</button><button id=\""o1xs8ws8\"" type=\""button\"" onclick=\""var e=event||window.event,o=this;if($(o).hasClass(\\'disabled\\')){Wt4_8_0.cancelEvent(e);return;}Wt._p_.update(o,\\'s1bb\\',e,true);\"" disabled=\""disabled\"" class=\""btn-danger disabled btn with-label\"" style=\""width:100.0px;\"">Toepassen</button><button id=\""o1xs8ws9\"" type=\""button\"" onclick=\""var e=event||window.event,o=this;if($(o).hasClass(\\'disabled\\')){Wt4_8_0.cancelEvent(e);return;}Wt._p_.update(o,\\'s1bc\\',e,true);\"" disabled=\""disabled\"" class=\""btn-danger disabled btn with-label\"" style=\""width:100.0px;\"">OK</button></div></div>\\r\\n  ');\nnew Wt4_8_0.WDialog(Wt,Wt4_8_0.$('o1xs8wqt'),Wt4_8_0.$('o1xs8wqz'),1,1,1,null,null,\""zIndexChanged\"");\nsetTimeout(function() {Wt._p_.updateGlobal('o1xs8wqw') }, 0);\ntry {var ae=document.activeElement;if (ae && ae.blur && ae.nodeName != 'BODY') {document.activeElement.blur();}} catch (e) { }\nnew Wt4_8_0.WPopupWidget(Wt,Wt4_8_0.$('o1xs8wqt'),false,0,true);\n\nvar j149=document.createElement('div');j145.appendChild(j149);\nj149.setAttribute('id', 'o1xs8wsa');\nj149.setAttribute('data-object-name','dialog-cover');\nj149.className='Wt-popup modal-backdrop in';\nj149.style.zIndex='5499';\nfunction f144(event) { var e=event||window.event,o=this;if(e.keyCode && (e.keyCode == 27)){Wt._p_.update(o,'s1bd',e,true);}}\nWt._p_.bindGlobal('keydown', 'o1xs8wqw', f144)\nsetTimeout(function() {var o = Wt4_8_0.$('o1xs8wra');if (o) {if (!$(o).hasClass('disabled')) {try { o.focus();} catch (e) {}}}}, 10);\nWt4_8_0.$('o1xs8wre').defaultTT='';\nWt4_8_0.$('o1xs8wre').wtValidate=new Wt4_8_0.WIntValidator(false,1,64,'','Dit veld mag niet leeg zijn.','Gelieve enkel getallen in te vullen.','Gelieve een waarde te kiezen tussen 1 en 64.','Gelieve een waarde te kiezen tussen 1 en 64.');;\nnew Wt4_8_0.WSpinBox(Wt,Wt4_8_0.$('o1xs8wre'),0,'','',1,64,1,'.','');\nWt4_8_0.setValidationState(Wt4_8_0.$('o1xs8wre'),1,'',1);\nWt4_8_0.$('o1xs8wre').wtObj.setWrapAroundEnabled(false);\nWt4_8_0.$('o1xs8wqw').layout=new Wt4_8_0.FlexLayout(Wt,'o1xs8wqw');;\n\nWt._p_.setFormObjects(['ino1xs8wrl','ino1xs8wrm','ino1xs8wrn','ino1xs8wrr','ino1xs8wrs','ino1xs8wru','ino1xs8wrv','o1xs8wkh','o1xs8woc','o1xs8wou','o1xs8wqb','o1xs8wqd','o1xs8wra','o1xs8wre','o1xs8wrk','o1xs8wrq','o1xs8wrt']);var j150=Wt4_8_0.$('o1xs8wry');\nvar j151=document.createElement('div');j150.parentNode.replaceChild(j151,j150);\nj151.setAttribute('id', 'o1xs8wry');\nj151.style.height='65.0px';\nj151.style.display='none';\nWt4_8_0.setHtml(j151,'<div id=\""o1xs8wrz\"" class=\""form-group pull-left\"" style=\""width:190.0px;\""><label id=\""o1xs8ws0\"" for=\""o1xs8ws2\""><span id=\""o1xs8ws1\"" style=\""white-space:nowrap;\"">Opmerkingen</span></label><input id=\""o1xs8ws2\"" maxLength=\""20\"" name=\""o1xs8ws2\"" size=\""10\"" type=\""text\"" onclick=\""var e=event||window.event,o=this;if($(o).hasClass(\\'disabled\\')){Wt4_8_0.cancelEvent(e);return;}{var f=function(o){Wt4_8_0.validate(o)};f(o,e);}\"" onchange=\""var e=event||window.event,o=this;{var f=function(o){Wt4_8_0.validate(o)};f(o,e);}\"" onkeyup=\""var e=event||window.event,o=this;{var f=function(o){Wt4_8_0.validate(o)};f(o,e);}\"" class=\""form-control\"" /></div><button id=\""o1xs8ws3\"" type=\""button\"" onclick=\""var e=event||window.event,o=this;if($(o).hasClass(\\'disabled\\')){Wt4_8_0.cancelEvent(e);return;}Wt._p_.update(o,\\'s1b4\\',e,true);\"" class=\""button btn-success pull-right btn with-label\"" style=\""width:100.0px;margin-top:25.0px;\"">Opslaan</button><button id=\""o1xs8ws4\"" type=\""button\"" onclick=\""var e=event||window.event,o=this;if($(o).hasClass(\\'disabled\\')){Wt4_8_0.cancelEvent(e);return;}Wt._p_.update(o,\\'s1b5\\',e,true);\"" class=\""button btn-danger pull-right btn with-label\"" style=\""width:100.0px;margin-top:25.0px;margin-right:5.0px;\"">Verwijderen</button>');\nWt4_8_0.$('o1xs8ws2').defaultTT='';\nWt4_8_0.$('o1xs8ws2').wtValidate=new Wt4_8_0.WRegExpValidator(false,'[a-zA-Z0-9 _.-]+','','Dit veld mag niet leeg zijn.','Ongeldige invoer');;\nWt4_8_0.setValidationState(Wt4_8_0.$('o1xs8ws2'),1,'',1);\n\nWt4_8_0.unstub(j150,j151,1);\nvar j152=Wt4_8_0.$('o1xs8wr6');\nvar j153=document.createElement('div');j152.parentNode.replaceChild(j153,j152);\nj153.setAttribute('id', 'o1xs8wr6');\nj153.className='form-group pull-right';\nj153.style.width='75.0px';\nj153.style.marginLeft='5.0px';\nj153.style.display='none';\nWt4_8_0.setHtml(j153,'<label id=\""o1xs8wrf\"" for=\""o1xs8wrh\""><span id=\""o1xs8wrg\"" style=\""white-space:nowrap;\"">Detector</span></label><input id=\""o1xs8wrh\"" name=\""o1xs8wrh\"" size=\""10\"" type=\""text\"" onclick=\""var e=event||window.event,o=this;if($(o).hasClass(\\'disabled\\')){Wt4_8_0.cancelEvent(e);return;}{var f=function(o){Wt4_8_0.validate(o)};f(o,e);}\"" onchange=\""var e=event||window.event,o=this;{var f=function(o){Wt4_8_0.validate(o)};f(o,e);}Wt._p_.update(o,\\'s1a3\\',e,true);\"" onmousemove=\""var e=event||window.event,o=this;(function(obj, event) {var o = Wt4_8_0.$(\\'o1xs8wrh\\');if (o &amp;&amp; o.wtObj) o.wtObj.mouseMove(obj, event);})(o,e);\"" onmouseout=\""var e=event||window.event,o=this;(function(obj, event) {var o = Wt4_8_0.$(\\'o1xs8wrh\\');if (o &amp;&amp; o.wtObj) o.wtObj.mouseOut(obj, event);})(o,e);\"" onmouseup=\""var e=event||window.event,o=this;if($(o).hasClass(\\'disabled\\')){Wt4_8_0.cancelEvent(e);return;}Wt4_8_0.mouseUp(e);(function(obj, event) {var o = Wt4_8_0.$(\\'o1xs8wrh\\');if (o &amp;&amp; o.wtObj) o.wtObj.mouseUp(obj, event);})(o,e);\"" onmousedown=\""var e=event||window.event,o=this;if($(o).hasClass(\\'disabled\\')){Wt4_8_0.cancelEvent(e);return;}Wt._p_.saveDownPos(event);Wt4_8_0.capture(this);Wt4_8_0.mouseDown(e);(function(obj, event) {var o = Wt4_8_0.$(\\'o1xs8wrh\\');if (o &amp;&amp; o.wtObj) o.wtObj.mouseDown(obj, event);})(o,e);\"" onkeyup=\""var e=event||window.event,o=this;{var f=function(o){Wt4_8_0.validate(o)};f(o,e);}(function(obj, event) {var o = Wt4_8_0.$(\\'o1xs8wrh\\');if (o &amp;&amp; o.wtObj) o.wtObj.keyUp(obj, event);})(o,e);\"" onkeypress=\""if (Wt4_8_0.isKeyPress(event)){var e=event||window.event,o=this;{var f=function(o,e){Wt4_8_0.filter(o,e,\\'[-+0-9]\\')};f(o,e);}}\"" onkeydown=\""var e=event||window.event,o=this;(function(obj, event) {var o = Wt4_8_0.$(\\'o1xs8wrh\\');if (o &amp;&amp; o.wtObj) o.wtObj.keyDown(obj, event);})(o,e);\"" value=\""1\"" class=\""form-control Wt-spinbox\"" />');\nWt4_8_0.$('o1xs8wrh').defaultTT='';\nWt4_8_0.$('o1xs8wrh').wtValidate=new Wt4_8_0.WIntValidator(false,1,126,'','Dit veld mag niet leeg zijn.','Gelieve enkel getallen in te vullen.','Gelieve een waarde te kiezen tussen 1 en 126.','Gelieve een waarde te kiezen tussen 1 en 126.');;\nnew Wt4_8_0.WSpinBox(Wt,Wt4_8_0.$('o1xs8wrh'),0,'','',1,126,1,'.','');\nWt4_8_0.setValidationState(Wt4_8_0.$('o1xs8wrh'),1,'',1);\nWt4_8_0.$('o1xs8wrh').wtObj.setWrapAroundEnabled(false);\n\nWt4_8_0.unstub(j152,j153,1);\nWt._p_.wsRqsDone(0);"",""stack"":""@https://localhost/overzicht line 17 > injectedScript line 234 > eval:28:1\n@https://localhost/overzicht line 17 > injectedScript line 234 > eval:71:23\nEa@https://localhost/overzicht line 17 > injectedScript:234:285\nO@https://localhost/overzicht line 17 > injectedScript:235:89\nb/c.onmessage@https://localhost/overzicht line 17 > injectedScript:240:51\nEventHandlerNonNull*b@https://localhost/overzicht line 17 > injectedScript:239:188\nwa@https://localhost/overzicht line 17 > injectedScript:237:100\nwindow.WtLoadWidgetTree@https://localhost/overzicht line 17 > injectedScript:310:9\nua@https://localhost/overzicht line 17 > injectedScript:233:110\n@https://localhost/overzicht line 17 > injectedScript:312:66\nready@https://localhost/overzicht line 17 > injectedScript:24:54\n@https://localhost/overzicht line 17 > injectedScript:312:40\nv/<@https://localhost/overzicht line 17 > injectedScript:246:256\nsetTimeout handler*v@https://localhost/overzicht line 17 > injectedScript:246:218\n@https://localhost/overzicht line 17 > injectedScript:257:8\nloadScript/m.onreadystatechange@https://localhost/overzicht:17:341\nEventHandlerNonNull*loadScript@https://localhost/overzicht:17:196\na@https://localhost/overzicht:24:309\nsetTimeout handler*@https://localhost/overzicht:24:362\n@https://localhost/overzicht:24:369\n""}"`

 
 
 
 
Replacing the WPopupWidgets with WPopupMenus doesn't make the error appear, but the dropdowns are still broken.

The flags change the language with setLocale(), clicking one of those while the Menus are broken spawns this error:

[2022-Aug-22 11:24:07.697] 89046 [/ 8AkAhwEilb5Z1wBk] [error] "WApplication: JavaScript error: {""exception_description"":""a is null"",""exception_js"":""Wt._p_.response(2731819738);var j318=Wt4_8_0.$('od6pie3');\nj318.style.display='none';\nWt4_8_0.$('od6pie3').wtObj.setHidden(1);\n\nvar j319=Wt4_8_0.$('od6pidy');\nWt4_8_0.setHtml(j319,'Log',false);\nvar j320=Wt4_8_0.$('od6pidx');\nWt4_8_0.setHtml(j320,'Overzicht',false);\nvar j321=Wt4_8_0.$('od6pie0');\nWt4_8_0.setHtml(j321,'Functies <span class=\""caret\""></span>',false);\n$('#od6pie0').removeClass('active');\n\nvar j322=Wt4_8_0.$('od6pied');\nWt4_8_0.setHtml(j322,'Beheer <span class=\""caret\""></span>',false);\nvar j323=Wt4_8_0.$('od6pif6');\nWt4_8_0.setHtml(j323,'Installateur <span class=\""caret\""></span>',false);\nvar j324=Wt4_8_0.$('od6pifk');\nWt4_8_0.setHtml(j324,'Aangemeld als &lt;strong&gt;Administrator&lt;/strong&gt; <span class=\""caret\""></span>',false);\nvar j325=Wt4_8_0.$('od6pie7');\nWt4_8_0.setHtml(j325,'Analoog',false);\nvar j326=Wt4_8_0.$('od6pieb');\nWt4_8_0.setHtml(j326,'Relais',false);\nvar j327=Wt4_8_0.$('od6piek');\nWt4_8_0.setHtml(j327,'Centrale',false);\nvar j328=Wt4_8_0.$('od6pieo');\nWt4_8_0.setHtml(j328,'Map',false);\nvar j329=Wt4_8_0.$('od6pies');\nWt4_8_0.setHtml(j329,'Mail',false);\nvar j330=Wt4_8_0.$('od6pif4');\nWt4_8_0.setHtml(j330,'Systeem',false);\nvar j331=Wt4_8_0.$('od6pifd');\nWt4_8_0.setHtml(j331,'Overzicht',false);\nvar j332=Wt4_8_0.$('od6piew');\nWt4_8_0.setHtml(j332,'Gebruiker',false);\nvar j333=Wt4_8_0.$('od6pif0');\nWt4_8_0.setHtml(j333,'Printers',false);\nvar j334=Wt4_8_0.$('od6pifh');\nWt4_8_0.setHtml(j334,'Configuratie',false);\nvar j335=Wt4_8_0.$('od6pifr');\nWt4_8_0.setHtml(j335,'Gebruikersdetails',false);\nvar j336=Wt4_8_0.$('od6pifv');\nWt4_8_0.setHtml(j336,'Afmelden',false);\nvar j337=Wt4_8_0.$('od6pih1');\nWt4_8_0.setHtml(j337,'Gebruiker',false);\nvar j338=Wt4_8_0.$('od6pih3');\nWt4_8_0.setHtml(j338,'←',false);\nj338.setAttribute('title','Ga naar de bovenliggende map.');\nvar j339=Wt4_8_0.$('od6pih4');\nWt4_8_0.setHtml(j339,'Selecteer map',false);\nj339.setAttribute('title','Ga naar een specifieke map.');\nvar j340=Wt4_8_0.$('od6pih5');\nWt4_8_0.setHtml(j340,'Detector zoeken',false);\nj340.setAttribute('title','Zoek op welk plan een specifieke detector staat.');\nvar j341=Wt4_8_0.$('od6pihb');\nWt4_8_0.setHtml(j341,'Functies',false);\nvar j342=Wt4_8_0.$('od6pihc');\nWt4_8_0.setHtml(j342,'Status wijzigen',false);\nj342.setAttribute('title','Wijzig de status van een groep, net of detector.');\nvar j343=Wt4_8_0.$('od6pihe');\nWt4_8_0.setHtml(j343,'Reset',false);\nj343.setAttribute('title','Herstelt de centrale in zijn originele toestand.');\nvar j344=Wt4_8_0.$('od6pihf');\nWt4_8_0.setHtml(j344,'Evacuatie',false);\nj344.setAttribute('title','Stuur evacuatie naar de centrale');\nvar j345=Wt4_8_0.$('od6pih2');\nWt4_8_0.setHtml(j345,'Toon hoofdmap',false);\nj345.setAttribute('title','Ga naar de hoofdmap voor mijn gebruiker.');\nWt._p_.setTitle('Embedded Web Server Limotec');\nWt._p_.setLocale('');\nWt._p_.wsRqsDone(0);"",""stack"":""window.Wt4_8_0</this.setHtml@https://localhost/login line 17 > injectedScript:169:143\n@https://localhost/login line 17 > injectedScript line 234 > eval:20:9\n@https://localhost/login line 17 > injectedScript line 234 > eval:70:23\nEa@https://localhost/login line 17 > injectedScript:234:285\nO@https://localhost/login line 17 > injectedScript:235:89\nb/c.onmessage@https://localhost/login line 17 > injectedScript:240:51\n""}"

 
 
 
 
Tested with Firefox on Linux and Chrome on Windows.

I can reproduce this with v4.8.0, back to v4.6.0.
So far, I haven't been able to reproduce this with v4.5.2.
 
 
Kind regards,
Harm.


Replies (4)

RE: Wt internal error; code: undefined, description: Wt4_8_0.WPopupWidget is not a constructor - Added by Chris Sykes over 1 year ago

Hi,

We are seeing very similar issues (JS errors, and empty/elipsis menus) with a WPopupMenu since upgrading beyond Wt 4.5.x - most recently to 4.8.0.

I tried to make a minimal project that reproduces the problem to use in a bug report (it includes a navbar with auth widget/login session etc.).
But of course, everything appears to work properly in the mini project :-/

I was wondering if you've also tried to do this, and if so, were you successful?

Kind regards,
Chris.

RE: Wt internal error; code: undefined, description: Wt4_8_0.WPopupWidget is not a constructor - Added by Harm ​ over 1 year ago

Hello Chris,
 
 
Glad to hear I'm not the only one who's plagued with this.

I have not been able to isolate this in a small testcase, unfortunately.
As soon as I remove some things from my project to reduce it down to a testcase, everything works fine again.

Both now and last time I came across this issue, I have not been able to find what exactly triggered this behavior.
I feel like it's caused by a combination of things.
 
 
Harm.

    (1-4/4)