Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError wet-boew.js 10524 #9753

Closed
IceBane opened this issue Apr 22, 2024 · 5 comments
Closed

Uncaught TypeError wet-boew.js 10524 #9753

IceBane opened this issue Apr 22, 2024 · 5 comments

Comments

@IceBane
Copy link

IceBane commented Apr 22, 2024

I get the following error in my console in my implementation of the Session Timeout component.

_wet-boew.js:10524 Uncaught TypeError: Cannot read properties of undefined (reading 'textContent')
    at u.open (wet-boew.js:10524:34)
    at z (jquery.magnific-popup.min.js:4:710)
    at u.open (jquery.magnific-popup.min.js:4:4018)
    at u._openClick (jquery.magnific-popup.min.js:4:6989)
    at a.fn.magnificPopup (jquery.magnific-popup.min.js:4:9866)
    at h (wet-boew.js:14099:23)
    at f (wet-boew.js:14009:17)
    at HTMLSpanElement.<anonymous> (wet-boew.js:14348:10)
    at HTMLDocument.dispatch (jquery.min.js:2:42571)
    at v.handle (jquery.min.js:2:40572)_

Here is my implemenation of the component;

$(document).on("wb-ready.wb", function (event) {
    var settings = {
        inactivity: 60000,                          // 1 mins
        reactionTime: 30000,                         //  30 secs
        sessionalive: 60000,                        // 1 mins
        refreshCallbackUrl: "./keepAlive",
        logouturl: "./login",
        method: "GET",
        refreshCallback: checkSessionValidity
    }

    $(".wb-sessto").trigger("reset.wb-sessto", settings);
});

Why am I getting this error?

@mercury64
Copy link

Do you have an H1 tag in your page?

put <h1 id="wb-cont" property="name">Session Timeout</h1> in your page, see if that helps.

If not, view line # 10524 of your wet-boew.js.

What version of WET?

@IceBane
Copy link
Author

IceBane commented May 3, 2024

Do you have an H1 tag in your page?

put <h1 id="wb-cont" property="name">Session Timeout</h1> in your page, see if that helps.

If not, view line # 10524 of your wet-boew.js.

What version of WET?

I do not have an H1 component on the page that hold the session timeout component. Line 10524 of wet-boew.js is a blank line, the numbering must be off.

The wet version indicated at the top of the wet-boew.js file is v4.0.27

@mercury64
Copy link

Put an H1 tag at on your page <h1>What ever you Want in for Header One</h1> and see if the error goes away.
My testing showed that this should fix your error.

But whether this is required or a bug is another question. Same issue with v4.0.75.

@IceBane
Copy link
Author

IceBane commented May 6, 2024 via email

@IceBane
Copy link
Author

IceBane commented May 7, 2024

So far so good. Weird that it requires an H1. Thank you so much for your help mercury64

@IceBane IceBane closed this as completed May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants