NicolasSiver / nodebb-plugin-ns-points

Additional metrics for User Profiles. It's like experience in video games. Plugin is good for gamification of your board.
MIT License
22 stars 20 forks source link

Plugin dont workin at 1.10.1 of NodeBB #13

Closed necrosoul closed 5 years ago

necrosoul commented 6 years ago

Version - 1.10.1 base - mongodb version of plugin - 4.0 and 5.0

I inserted code with at my theme (profile)

But at /points i see only one GUEST with 0 points. I writed messages / new topics and i still not exist at /points and at my profile zero info about it.

What i need to do?

https://ibb.co/e6vUrK

this is my /points page.

andrewdmaclean commented 6 years ago

Receiving Error "Failed to load resource: the server responded with a status of 404 (Not Found)" when trying to view community.xxx.ca/api/user?_=1535151407119 on V1.10.1. Any Ideas?

fais3000 commented 5 years ago

@NicolasSiver In our case, it is crashing nodebb. On version 1.10.2

2018-12-01T08:33:11.010Z [4694] - warn: [plugins/load] The following plugins may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing. In the event of an unresponsive NodeBB caused by this plugin, run `./nodebb reset -p PLUGINNAME` to disable it.  * nodebb-plugin-ns-points


    at /var/www/nodebb/node_modules/nodebb-plugin-ns-points/plugin/filters.js:68:37
    at /var/www/nodebb/node_modules/async/dist/async.js:1135:9
    at eachOfArrayLike (/var/www/nodebb/node_modules/async/dist/async.js:1069:9)
    at eachOf (/var/www/nodebb/node_modules/async/dist/async.js:1117:5)
    at _asyncMap (/var/www/nodebb/node_modules/async/dist/async.js:1133:5)
    at Object.map (/var/www/nodebb/node_modules/async/dist/async.js:1122:16)
    at Object.Filter.postGetPosts [as method] (/var/www/nodebb/node_modules/nodebb-plugin-ns-points/plugin/filters.js:67:15)
    at /var/www/nodebb/src/plugins/hooks.js:121:12
    at /var/www/nodebb/node_modules/async/dist/async.js:2516:9
    at replenish (/var/www/nodebb/node_modules/async/dist/async.js:1011:17)
    at /var/www/nodebb/node_modules/async/dist/async.js:1016:9
    at eachOfLimit (/var/www/nodebb/node_modules/async/dist/async.js:1041:24)
    at /var/www/nodebb/node_modules/async/dist/async.js:1046:16
    at Object.reduce (/var/www/nodebb/node_modules/async/dist/async.js:2515:5)
    at fireFilterHook (/var/www/nodebb/src/plugins/hooks.js:113:9)
    at Object.Plugins.fireHook (/var/www/nodebb/src/plugins/hooks.js:93:4)
2018-12-01T08:33:05.867Z [3665] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.```
NicolasSiver commented 5 years ago

The plugin is compatible with 1.9.x only.

K87N commented 5 years ago

Can you please make it compatible with 1.12.x? I use this plugin a lot on my communities.

kotritrona commented 5 years ago

I somehow got it working in 1.12.0.

I may make a pull request after cleaning up the mess here.