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

Cannot read properties of undefined (reading 'playtime_30d') #3941

Closed
Mr-Saitam opened this issue Jan 21, 2025 · 4 comments
Closed

Cannot read properties of undefined (reading 'playtime_30d') #3941

Mr-Saitam opened this issue Jan 21, 2025 · 4 comments
Labels
Bug Issues that contain unintended behavior

Comments

@Mr-Saitam
Copy link

Describe the problem

When navigating to the website, then selecting Playerbase > Playerlist and clicking on a player to view their information, the following error occurs. The page fails to load the player's information correctly.

Exceptions and other logs

No errors appear in the plugin logs, but the browser console throws the following error:

TypeError: Cannot read properties of undefined (reading 'name')
 at q (PlayerOverview-Dj9MGU_u.js:1:2519)
 at D7 (index-DqYUlt5r.js:39:17173)
 at It (index-DqYUlt5r.js:41:43959)
 at Ft (index-DqYUlt5r.js:41:39721)
 at JC (index-DqYUlt5r.js:41:39649)
 at a8 (index-DqYUlt5r.js:41:39502)
 at m9 (index-DqYUlt5r.js:41:35864)
 at Vt (index-DqYUlt5r.js:41:34815)
 at W (index-DqYUlt5r.js:26:1625)
 at MessagePort.H2 (index-DqYUlt5r.js:26:2008)
K7 @index-DqYUlt5r.js:41
m.componentDidCatch.s.callback @ index-DqYUlt5r.js:41
At @index-DqYUlt5r.js:39
[email protected]:41
At @index-DqYUlt5r.js:41
At @index-DqYUlt5r.js:41
At @index-DqYUlt5r.js:41
XC @index-DqYUlt5r.js:41
eg @ index-DqYUlt5r.js:41
Z3 @index-DqYUlt5r.js:41
[email protected]:41
[email protected]:26
H2 @index-DqYUlt5r.js:26
index-DqYUlt5r.js:41 TypeError: Cannot read properties of undefined (reading 'playtime_30d')
 at V (PlayerOverview-Dj9MGU_u.js:1:6825)
 at D7 (index-DqYUlt5r.js:39:17173)
 at It (index-DqYUlt5r.js:41:43959)
 at Ft (index-DqYUlt5r.js:41:39721)
 at J.C. (index-DqYUlt5r.js:41:39649)
 at a8 (index-DqYUlt5r.js:41:39502)
 at m9 (index-DqYUlt5r.js:41:35864)
 at Vt (index-DqYUlt5r.js:41:34815)
 at W (index-DqYUlt5r.js:26:1625)
 at MessagePort.H2 (index-DqYUlt5r.js:26:2008)
K7 @index-DqYUlt5r.js:41
m.componentDidCatch.s.callback @ index-DqYUlt5r.js:41
At @index-DqYUlt5r.js:39
[email protected]:41
At @ index-DqYUlt5r.js:41
At @index-DqYUlt5r.js:41
At @index-DqYUlt5r.js:41
XC @index-DqYUlt5r.js:41
eg @index-DqYUlt5r.js:41
Z3 @index-DqYUlt5r.js:41
[email protected]:41
[email protected]:26
H2 @index-DqYUlt5r.js:26
index-DqYUlt5r.js:581 TypeError: Cannot read properties of undefined (reading 'playtime_30d')
 at V (PlayerOverview-Dj9MGU_u.js:1:6825)
 at D7 (index-DqYUlt5r.js:39:17173)
 at It (index-DqYUlt5r.js:41:43959)
 at Ft (index-DqYUlt5r.js:41:39721)
 at JC (index-DqYUlt5r.js:41:39649)
 at a8 (index-DqYUlt5r.js:41:39502)
 at m9 (index-DqYUlt5r.js:41:35864)
 at Vt (index-DqYUlt5r.js:41:34815)
 at W (index-DqYUlt5r.js:26:1625)
 at MessagePort.H2 (index-DqYUlt5r.js:26:2008)

Steps to reproduce

  1. Go to the plugin's web interface.
  2. Navigate to Playerbase > Playerlist.
  3. click on a player's name to view their details.

Versions from the plugin

Plan-5.6-build-2959.jar

@Mr-Saitam Mr-Saitam added the Bug Issues that contain unintended behavior label Jan 21, 2025
@AuroraLS3
Copy link
Collaborator

AuroraLS3 commented Jan 21, 2025

Try deleting contents of json_cache and public_html inside Plan folder if those exist

@Mr-Saitam
Copy link
Author

Try deleting contents of json_cache and public_html inside Plan folder if those exist

I tried it and the error continues

@Mr-Saitam
Copy link
Author

Try deleting contents of json_cache and public_html inside Plan folder if those exist

I fixed it, deleted everything and reconfigured it again and it worked for me. Thank you very much for your time anyway.

@AuroraLS3
Copy link
Collaborator

Sounds like I forgot to instruct to clear browser cache as well and the old data was in there causing the error again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues that contain unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants