when I installed `nodebb-plugin-poll`,Log display warning information.

Technical Support
  • 2019-03-09T03:14:55.233Z [4567/26838] - ?[33mwarn?[39m: [deprecated] requiring core modules with `module.parent.require('./database')` is deprecated. Please use `require.main.require("./src/<module_name>")` instead. 
        at /root/nodebb/node_modules/nodebb- plugin-poll/lib/nodebb.js:5:14 
    2019-03-09T03:14:55.234Z [4567/26838] - ?[33mwarn?[39m: [deprecated] requiring core modules with `module.parent.require( './settings')` is deprecated. Please use `require.main.require("./src/<module_name>")` instead.
        at /root/nodebb/node_modules/nodebb-plugin-poll/lib/nodebb.js:6:20
    2019-03-09T03:14:55.234Z [4567/26838] - ?[33mwarn?[39m: [deprecated] requiring core modules with `module.parent.require('./meta')` is deprecated. Please use ` require.main.require("./src/<module_name>")` instead. 
        at /root/nodebb/node_modules/nodebb-plugin-poll/lib/nodebb.js:7:16 
    2019-03-09T03:14: 55.235Z [4567/26838] - ?[33mwarn?[39m: [deprecated] requiring core modules with `module.parent.require('./user')` is deprecated. Please use `require.main.require(". /src/<module_name>")` instead. 
        at /root/nodebb/node_modules/nodebb-plugin-poll/lib/nodebb.js:8:16 
    2019-03-09T03:14:55.235Z [4567/26838] - ?[33mwarn?[39m: [deprecated] requiring core modules with `module.parent.require('./posts')` is deprecated. Please use `require.main.require("./src/<module_name>")` instead.
        at /root/nodebb/node_modules/nodebb-plugin-poll/lib/nodebb.js:9:17 
    2019-03-09T03:14:55.236Z [4567/26838] - ?[33mwarn?[39m: [deprecated] requiring core modules with `module.parent.require('./topics')` is deprecated. Please use `require.main.require("./src/<module_name>")` instead. 
        at /root/nodebb/node_modules/ nodebb-plugin-poll/lib/nodebb.js:10:18 
    2019-03-09T03:14:55.236Z [4567/26838] - ?[33mwarn?[39m: [deprecated] requiring core modules with `module.parent. require('./privileges')` is deprecated. Please use `require.main.require("./src/<module_name>")` instead. 
        at /root/nodebb/node_modules/nodebb-plugin-poll/lib/ nodebb.js:11:22
    2019-03-09T03:14:55.236Z [4567/26838] - ?[33mwarn?[39m: [deprecated] requiring core modules with `module.parent.require('./socket.io/plugins')` is deprecated . Please use `require.main.require("./src/<module_name>")` instead. 
        at /root/nodebb/node_modules/nodebb-plugin-poll/lib/nodebb.js:12:25 
    2019-03- 09T03:14:55.237Z [4567/26838] - ?[33mwarn?[39m: [deprecated] requiring core modules with `module.parent.require('./socket.io/admin')` is deprecated. Please use ` require.main.require("./src/<module_name>")` instead.  
        at /root/nodebb/node_modules/nodebb-plugin-poll/lib/nodebb.js:13:24
    2019-03-09T03:14:55.237Z [4567/26838] - ?[33mwarn?[39m: [deprecated] requiring core modules with ` module.parent.require('./socket.io/index')` is deprecated. Please use `require.main.require("./src/<module_name>")` instead.
        at /root/nodebb/node_modules/nodebb-plugin-poll/lib/nodebb.js:14:23 
    2019-03-09T03:14:55.238Z [4567/26838] - ?[33mwarn?[39m: [deprecated] requiring core modules with `module.parent.require('../public/src/modules/translator')` is deprecated. Please use `require.main.require("./src/<module_name>")` instead. 
        at /root/nodebb/node_modules/nodebb-plugin-poll/lib/nodebb.js:15:22 
    
  • This happen because it need some maintenance. module.parent.require is outdated and needs to be replaced with require.main.require.
    Just ignore that, the plugin is working perfectly anyway. I believe that the creator of the plugin will update that briefly.

  • @jtsimoes You are really nice!


Suggested Topics


  • 0 Votes
    6 Posts
    293 Views

    @baris said in plugins.browsingUsers.getBrowsingUsers error:

    @crazycells Yeah it could be since each topic page calls the browsing users plugin. Give it a try with fewer tabs if it stops happening that's probably why.

    Thanks a lot 👍

  • 1 Votes
    2 Posts
    233 Views

    @nguyễn-bảo hey there, can you reach out to us at [email protected] so we can take a look?

  • 0 Votes
    5 Posts
    467 Views

    @Lewis-Adams when you added the subdomain did you make sure to edit the url in config.json and on NGINX?

    as @scottalanmiller mentioned this will be the main cause for the disconnection

  • Free HTTPS for NodeBB

    Technical Support
    0 Votes
    7 Posts
    2k Views

    @jimmyc2018 said in Free HTTPS for NodeBB:

    I just setup "Let's Encrypt" yesterday but today noticed "Secure" doesn't always show up beside my URL as I'm browsing back and forth through my NodeBB forum.

    There's even one forum Topic/Page that always shows up without the "Secure" sign. Even if I repeatedly refresh the page and clear my browser out and come back to it.

    Has anyone else experienced this?

    On top of changing the URL to HTTPS, you should setup forwarding so people always hit your https page.

    With CloudFlare I have these setup:
    0_1518196963653_70ff6121-ce58-4336-b215-43bb9d20aa12-image.png

    For good measure, I have the following in my nginx config too:

    server { listen 80; server_name gamingexodus.com www.gamingexodus.com; return 301 https://$host$request_uri; }

    Though looking at my nginx block now, I probably need to say return 301 https://gamingexodus.com$request_uri; to ensure www is not used.

  • best OS for NodeBB

    Technical Support
    0 Votes
    15 Posts
    4k Views

    In this time I have run Nodebb on /Debian8/Arch/Ubuntu16/ and all runs perfect especially I liked work on arch cuz in arch very small load on ram and nodebb work faster/ but I have problem with plugin , they disappear))) when I install new plugin another plugin was lost and delete himself/ I have this problem on arch and Debian 8 / and only on Ubuntu 16 all work perfect, but Ubuntu have many processes on System wich load common system/