[nodebb-plugin-blog-comments] Blog Commenting Engine (Ghost, Wordpress widget)

  • Global Moderator

    @c3do it's just a warning. You can ignore it. Are you having any actual issues with the functionality of the plugin?

  • @PitaJ yesterday, i could not go on the settings page. i saw this warning, so i thought it was the problem.
    I had run the command "./nodebb build" but the warning was always here. So, I was obsessed with the warning.
    Finally, the command had solved the problem without me realizing it. I can access the settings page despite the warning.

  • I am on ghost. I can create the new topic and comment from ghost. But, last comments does not appear in ghost post.

  • I installed the plugin, setup comments.php on Wordpress and I see the following on Wordpress:

    "Commenting has been disabled" with the "Publish this article to NodeBB"


    However, when I push the button, I get this error:

    Internal Error.
    Oops! Looks like something went wrong!
    Unexpected end of JSON input


    Could this be a problem with my forum being installed in a subdir?

    cc: @psychobunny @baris

  • I'm also seeing this in the logs:

    2019-02-07T22:14:16.880Z [4567/23701] - warn: [nodebb-plugin-blog-comments] Origin (undefined) does not match hostUrls: https://www.axisandallies.org
    2019-02-07T22:14:42.601Z [4567/23701] - error: /forums/comments/publish
    SyntaxError: Unexpected end of JSON input
        at JSON.parse (<anonymous>)
        at Comments.publishArticle (/var/srv/nodebb/node_modules/nodebb-plugin-blog-comments/library.js:135:15)
        at Layer.handle [as handle_request] (/var/srv/nodebb/node_modules/express/lib/router/layer.js:95:5)
        at next (/var/srv/nodebb/node_modules/express/lib/router/route.js:137:13)
        at Route.dispatch (/var/srv/nodebb/node_modules/express/lib/router/route.js:112:3)
        at Layer.handle [as handle_request] (/var/srv/nodebb/node_modules/express/lib/router/layer.js:95:5)
        at /var/srv/nodebb/node_modules/express/lib/router/index.js:281:22
        at Function.process_params (/var/srv/nodebb/node_modules/express/lib/router/index.js:335:12)
        at next (/var/srv/nodebb/node_modules/express/lib/router/index.js:275:10)
        at rewrite (/var/srv/nodebb/src/controllers/home.js:33:10)

    It's odd that Origin is undefined, right?

    Also, here's the forum data being posted, it's not JSON and it's missing a bunch of stuff.


    Oddly I get the same error with and without the JSON API wordpress plugin activated. (It is currently activated)

  • This post is deleted!

  • Okay, the solution to this is that the comment in the Wordpress php that the categoryID is options is not correct. You need the category ID.

    But there are still some subdir issues happening for me.

  • Does the plugin not show the comments from the nodebb post?

  • Admin

    @djensen47 will look into this Monday, are you on latest WP /JSON API (though I think the latter hasn't been updated in a while)?

    Dear PHP, I thought I didn't have to deal with you anymore 😄

  • @psychobunny I filed some bugs and included a PR for one of the bugs.

  • This post is deleted!

Log in to reply

Suggested Topics

| |