Problems with nodebb-plugin-blog-comments
-
Hi there, I set up a new nodebb installation following the "for dummies" instructions, and it seemed to work, although I got a few warnings that plugins may not be compatible with my version of nodebb. Then I installed the blog comments plugin and started getting this error message:
error: [app] Encountered Uncaught Exception: Cannot call method 'toString' of undefined
TypeError: Cannot call method 'toString' of undefined
at /home/tapestrymaker/NodeBB/node_modules/nodebb-plugin-blog-comments/library.js:151:29
at fs.js:207:20
at Object.oncomplete (fs.js:107:15)
error: [app] Could not restart server. Shutting down.Suggestions?
-
@planner Agreed, but given the way sometimes edge versions break backwards compatibility (especially with 0.4.0, patch versions shouldn't exhibit this problem), plugins updated to the latest version are liable to break on older versions too!
problems problems...
-
Thanks all. After pulling the latest version from git and upgrading the plugin (now v 0.1.19) I still get a warning about
warn: [plugins/nodebb-plugin-blog-comments] Hook method mismatch: filter:server.create_routes => addRoute
but it seems to restart properly. I'll let you know how the attempt to use the plugin goes.
It sounds like I would have been better off installing the 0.3.2 branch and the versions of the plugins that are known to work with that branch. I know it's still early days with the software but for those of us who are interested in kicking the tires, it'd be great if the "dummies" instructions led me to a stable version with working plugins, and then described the "edge" instructions setting expectations appropriately. [Yeah, yeah, I know, easy to say ]
-
I might just go and update that guide at some point We just finished updating almost all of our plugins to 0.4x, and I don't see ourselves having to do that again (because there was a pretty massive overhaul in the codebase en route). So you should be relatively safe with Edge right now (or just wait for 0.4x to be released... very soon)
-
Sigh, no joy. I'm not getting the Blog Comments section in the ACP.
Not sure if this is related but I'm getting a message in the Dashboard "A new version (v0.4.0) has been released. Consider upgrading your NodeBB." But after doing a ./nodebb/upgrade, I'm still on v 0.3.2.
-
You would have to
git pull
to the latest before upgrading. If you're on the 0.3x branch you'll also have to switch to 0.4x or master firstedit: actually hold the boat, think I found an issue with my latest update of blog comments
-
Okay, I found the issue causing it to not show up on the previous version. Update to blog comments 0.0.21, and you'd need to be fairly latest on NodeBB as well (or just switch over to 0.4x/master and pull latest)
-
rofl! yeah that would be twice that my plugin's been screwed on launch
-
-
Ah, please update to 0.0.22
Edit: Looks like you figured out the problem yourself
Edit2: Sorry for making you my guinea pig, I was waiting for us to publish the 0.4x release blog post before actually testing my changes
-
haha yup. Next time I'm just going to let you handle it yourself