@ahoh said in TypeError: Cannot read properties of undefined (reading 'length'):
plugin nodebb-plugin-sso-beer-qq
remove plugin nodebb-plugin-sso-beer-qq
Hello
I use nodebb-plugin-user-level plugin on my forum. It's a great and fun plugin .
But I see a little bug:
Sometimes, the badge doesnt’ appear / dissapear / doesn't load.
On the old post, badge is OK
It only appears if you reload the page or access the thread again after viewing something else in the site.
I have test to uninstall and reinstall, it’s the same.
Possible to fix this bug or too hard ?
Thanks in advance.
This seems like a 3rd party plugin, report it here https://github.com/dealbee/nodebb-plugin-user-level
arf sorry.
Open here
https://github.com/dealbee/nodebb-plugin-user-level/issues/5
Hope the author is alive
This plugin is forked to https://github.com/NodeBB-Community/nodebb-plugin-user-level
Latest version is 1.0.0 and its scoped to @nodebb now.
Install with npm i @nodebb/nodebb-plugin-user-level
. Let me know if you encounter any issues.
Many thanks @baris !!!
Will test this on my VM tonight
@baris is plugin works on v1.19.3?
@cagatay Certainly does. I am running it
@baris forum is working v1.19.03, plugin user level is 1.0.1
the problem is rank does not appear automatically in the last post, it comes after the page is refreshed.
@cagatay A known bug - hence the title of this post - "Bug: badge dissapear"
@cagatay I will take a look and see if I can reproduce. How many posts does that topic have?
@phenomlab its not correct definition, coz badge is working and shown correctly but it not comes by last post, badge appears in previous posts.
@baris ok i hold tongue!
@cagatay Yes, it only shows when you refresh the page.
This should be fixed in 1.0.2 of the plugin but requires a new hook from core, https://github.com/NodeBB/NodeBB/commit/e4bd4f3107527070d709f0fb1f9515735648099e added to the 1.19.x branch as well so update core to get that new hook.
I can't see the plugin in plugin list when I search him on nodebb 2.0.0.
It's normal ?
but the installation with npm i @nodebb/nodebb-plugin-user-level
is OK
@DownPW same issues for me. Incomplete plugin list when searching