nodebb-plugin-category-sections - ACP still broken
DISCLAIMER: First post here, I discovered nodebb less than 24 hours ago and my node.js experience is fairly limited. If I'm missing something blatantly obvious, forgive the noob in me. All in all the forum software is brilliantly executed as far as I can see, and doesn't suffer from the same issues as Discourse concerning extensibility. Well played devs.
So, there doesn't appear to be a centralized topic for this particular plugin, so I thought I'd create a new topic.
Here's the issue: The category sections plugin (IMHO) is pretty core for forum functionality. I'd love to use the plugin but sadly it doesn't appear to be working with 1.x.x
I've already installed Lavendar as the base theme. I've attempted to use this fork of the main git as it was updated 15 days ago. Seeing as 1.x.x was released 16 days ago, you'd assume this would resolve the issue at hand... But it doesn't appear to.
I'm getting no in-browser js errors, and I'm just getting a generic
The following plugins may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing. * nodebb-plugin-category-sectionsfrom the log.
It's really strange, since
sections.jsdoesn't seem to be executing client-side at all. No errors, click and drag functionality is non-existent, and there's no event listener attached to the buttons despite them being declared via jQuery in
category-sections.tplIS loading in the ACP, but the "Add Section" button does nothing and there's no click and drag functionality.
Strangely, hitting "Save Sections" DOES have an effect as the homepage will go entirely blank when clicked (Assuming that no sections = no content on the homepage)
@psychobunny, I'm sure you're super busy with all the awesomeness happening here with nodebb, but perhaps you have some thoughts into your brainchild here?
As I've stated, I'm less than 24 hours into exploring nodebb and I'm at a complete loss as to what's occurring here to prevent ACP functionality. Thanks for any insights you all could provide here.
- I'm running a DO droplet, Ubuntu 14.04, there are no conflicting containers, app was installed via NPM, server is up to date and the application is running naked, no docker.
- There's not a FQDN attached to the instance of nodebb however.
config.jsonis using the static IP of the VPS, and I'm running nodebb on port
Guest last edited by Guest
I spun up a test instance of NodeBB running 1.x, and pulled from @psychobunny's actual repo. Recieved a bombartment of errors logged to browser console, but no issues logged in terminal when running NodeBB under ./nodebb dev You can view my browser's log on this raw pastebin link.
Hmm... Weird. Why am I not seeing any of this in my browser's console?
I can confirm with the neutrino84 forked git that
./nodebb devdoesn't spit anything out in the terminal either.
'Tis a puzzlement.
Guest last edited by
I'll see if I can pull a log from that fork today for you. Personally, I'm a fan of tabs, so if like to see this working with some js to turn these sections into tabs.
@Jason-Neal the plugin is not updated for NodeBB v1.0. There was a change in NodeBB v1.0 related to ACP scripts for plugins.
Sent a PR to make it compatible with NodeBB v1.x.x
In the mean time to make the ACP work, change this line
"acpScripts"and then restart NodeBB.
Guest last edited by Guest
@pichalite, my test board seems to crash when this plugin is activated now.
Issues I noticed:
- Making the change in your PR to the plugin.json allowed the use of the buttons in the ACP
- Trying to add more than one category and hitting save resulted in content a message reading "ERR" being shown
- After disabling the plugin and re-enabling it, the board crashes as soon as it is activated.
As soon as I try to open category sections from within the ACP
@ThingBreaker may be there is some error if using Redis as DB. I have no problems running it using Mongo.
Will try to spin a new instance using Redis and see if it works.
Guest last edited by
@pichalite, I'd be curious to hear your results. I haven't worked with mongo previously though it seems to be the new standard for NodeBB installations.
@ThingBreaker I am getting the same error if I use Redis. not sure what the fix is...
@ThingBreaker I think I found a fix for this...
remove existing plugin settings from Redis (if any saved)
connect to redis using
DEL plugins:category-sections:sectionsto remove any saved settings
add the following code before this line https://github.com/NodeBB/nodebb-plugin-category-sections/blob/master/static/lib/admin/sections.js#L66
sections = JSON.stringify(sections);
I have to say, I'm loving the active community here for NodeBB. Reminds me of when SMF was still pretty new.
Would it help if I forked the repository, made the fix and asked for a pull into the master?
Not sure about the order of operations expected here in the community.
@Jason-Neal already sent the PR to the repository. no need to do it again.
@Jason-Neal @ThingBreaker new version of plugin published with compatibility for NodeBB v1.x.x and fix for settings save when using redis.
@pichalite You're awesome man.
Very excited about nodebb and what it can do.
I look forward to becoming an active part of the community here.
Kudos to @psychobunny for all of the AWESOME plugins he's developed here too!
Danny McWilliams last edited by
Don't think starting a new topic is necessary for my question - is this only compatible with Lavender and if not is there a way of doing this with Persona?
phit last edited by
is this only compatible with Lavender and if not is there a way of doing this with Persona?
seems to be compatible with persona, but I haven't tried it