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

TypeError: this.rows.get(...) is undefined #72

Closed
Onako2 opened this issue Aug 25, 2023 · 3 comments
Closed

TypeError: this.rows.get(...) is undefined #72

Onako2 opened this issue Aug 25, 2023 · 3 comments
Labels
bug Something isn't working frontend Related to the JavaScript code

Comments

@Onako2
Copy link

Onako2 commented Aug 25, 2023

I am getting that strange error when visiting my site. It suddendly didn't work. Could it be that paper/purpur broke something? Paper broke a plugin because the API was changed and the plugin wasn't updated
Current: git-Purpur-2043 (MC: 1.20.1)
grafik
I didn't change anything to the page except the CSS Background and the HTML to translate it into German

That page is on https://ontopia.de/stats/

@Dantevg
Copy link
Owner

Dantevg commented Aug 26, 2023

Thanks for the bug report and for including the link to your webpage! I found the issue and will fix it shortly.

Background info:
It has to do with WebStats not creating rows for players with only 0 or empty scores for the selected columns. When populating the scores, it tries to set the values of such a player with only 0 scores and fails because there is no row for that player.

@Dantevg Dantevg changed the title [HELP/SUPPORT] TypeError: this.rows.get(...) is undefined TypeError: this.rows.get(...) is undefined Aug 26, 2023
@Dantevg Dantevg added bug Something isn't working frontend Related to the JavaScript code labels Aug 26, 2023
@Dantevg
Copy link
Owner

Dantevg commented Aug 26, 2023

It should be fixed in the latest commit and it will make its way into the next major release (which should be right around the corner, any time now / soon™). For now, you can get the new WebStats-dist.js and put it where it needs to be (plugins/WebStats/web/WebStats-dist.js when using the internal web server).

@Onako2
Copy link
Author

Onako2 commented Aug 26, 2023

It should be fixed in the latest commit and it will make its way into the next major release (which should be right around the corner, any time now / soon™). For now, you can get the new WebStats-dist.js and put it where it needs to be (plugins/WebStats/web/WebStats-dist.js when using the internal web server).

Yes it's fixed and I changed it now. I am using nginx for the frontend(HTML and CSS) and I am using a reverse proxy for the data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend Related to the JavaScript code
Projects
None yet
Development

No branches or pull requests

2 participants