Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    1. Home
    2. vatsal
    V
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    vatsal

    @vatsal

    5
    Reputation
    37
    Posts
    924
    Profile views
    0
    Followers
    3
    Following
    Joined Last Online

    vatsal Follow

    Posts made by vatsal

    • RE: Error thrown while sending mail through socket

      @vatsal said:

      Tried to send a simple form data from a client page to the sever, received data all fine through a custom plugin socket but while sending an email inside same socket connection gives following error:

       error: Cannot read property 'language' of undefined
      TypeError: Cannot read property 'language' of undefined
      at async.map.Plugins.fireHook.to (/root/nodebb/src/emailer.js:35:46)
      at /root/nodebb/node_modules/async/lib/async.js:249:17
      at /root/nodebb/node_modules/async/lib/async.js:125:13
      at Array.forEach (native)
      at _each (/root/nodebb/node_modules/async/lib/async.js:46:24)
      at async.each (/root/nodebb/node_modules/async/lib/async.js:124:9)
      at _asyncMap (/root/nodebb/node_modules/async/lib/async.js:248:13)
      at Object.map (/root/nodebb/node_modules/async/lib/async.js:219:23)
      at /root/nodebb/src/emailer.js:34:9
      at /root/nodebb/node_modules/async/lib/async.js:592:17
      

      It seems inside these lines

        }, function(err, results) {
        async.map([results.html, results.plaintext, params.subject], function(raw, next) {
        	translator.translate(raw, results.settings.language || meta.config.defaultLang || 'en_GB', function(translated) {
        		next(undefined, translated);
        	});
        }, function(err, translated) {
      

      'results' is not defined

      for testing tried removing 'results.settings.language'

      then get

        warn: uid : 9 has no email, not sending.
      

      which I think is again due to 'results.email' being not defined.

      @ankitpr89

      posted in Bug Reports
      V
      vatsal
    • Error thrown while sending mail through socket

      Tried to send a simple form data from a client page to the sever, received data all fine through a custom plugin socket but while sending an email inside same socket connection gives following error:

       error: Cannot read property 'language' of undefined
      TypeError: Cannot read property 'language' of undefined
      at async.map.Plugins.fireHook.to (/root/nodebb/src/emailer.js:35:46)
      at /root/nodebb/node_modules/async/lib/async.js:249:17
      at /root/nodebb/node_modules/async/lib/async.js:125:13
      at Array.forEach (native)
      at _each (/root/nodebb/node_modules/async/lib/async.js:46:24)
      at async.each (/root/nodebb/node_modules/async/lib/async.js:124:9)
      at _asyncMap (/root/nodebb/node_modules/async/lib/async.js:248:13)
      at Object.map (/root/nodebb/node_modules/async/lib/async.js:219:23)
      at /root/nodebb/src/emailer.js:34:9
      at /root/nodebb/node_modules/async/lib/async.js:592:17
      

      It seems inside these lines

        }, function(err, results) {
      	async.map([results.html, results.plaintext, params.subject], function(raw, next) {
      		translator.translate(raw, results.settings.language || meta.config.defaultLang || 'en_GB', function(translated) {
      			next(undefined, translated);
      		});
      	}, function(err, translated) {
      

      'results' is not defined

      for testing tried removing 'results.settings.language'

      then get

        warn: uid : 9 has no email, not sending.
      

      which I think is again due to 'results.email' being not defined.

      posted in Bug Reports
      V
      vatsal
    • NodeBB referral system plugin

      I am creating a plugin for Nodebb forum which works like this:
      User(A) created his account - > he gets a referral code (his username)
      Anyone(B) uses his referral code while registration + earns 150 currency -> User(A) gets 20 points for each such user.

      I have already created the repository and following modules:

      Registration screen has input for referral code.
      If referral is entered is cross checked against all registered user names.
      If founds a matching username, inside a new hash the new user and original users are mapped.
      Else displays the message the wrong "referral code entered".
      If no referral code was entered user is registered as normal and no mapping happens.

      here is the link to the repository https://github.com/ethicalvats/nodebb-plugin-ds-refferal

      posted in NodeBB Plugins
      V
      vatsal
    • New relic nodejs agent is not compatible with NodeBB forum

      As mentioned in their website http://newrelic.com/nodejs

      I tried adding new relic package into my nodeBB install by adding

                   require('newrelic');
      

      above line to app.js at the beginning. I got the data on my New Relic dashboard and forum was seem to working fine but
      after few days I realized my logout and other plugin routes were not working. here is the console log.

        warn: [hotswap] Could not find router in stack with hotswapId `plugins`
      

      and also while logout

        warn: [hotswap] Could not find router in stack with hotswapId `auth`
      

      after removing the new relic agent from app.js its working fine again.

      I just wanted to let other nodeBB forum administrators to know about this issue if they face same problem.

      @ankitpr89 I have looged this issue at there forum. You can alos understand this issue from here.

      posted in General Discussion
      V
      vatsal
    • RE: V8-profiler compatibility

      @mootzville thanks for your help 👍

      posted in General Discussion
      V
      vatsal
    • RE: V8-profiler compatibility

      @vatsal said:

      I am trying to use this script https://github.com/felixge/node-memory-leak-tutorial for testing the nodebb app.js memory leaks and heap allocation profiling. But it doesn't loads up the "Profile" tab ( loads source and console tab properly).

      Is app.js compatible with v8-profiler for memory testing?

      @ankitpr89 we may find solution to our problem in this thread.

      posted in General Discussion
      V
      vatsal
    • V8-profiler compatibility

      I am trying to use this script https://github.com/felixge/node-memory-leak-tutorial for testing the nodebb app.js memory leaks and heap allocation profiling. But it doesn't loads up the "Profile" tab ( loads source and console tab properly).

      Is app.js compatible with v8-profiler for memory testing?

      posted in General Discussion
      V
      vatsal
    • RE: Some Errors? not too sure from where

      @Silvina hmm.... its really weird, everything looks alright for you and even the error is occurring on ACP panel where no third party or external scripts load. This is really strange issue, wait for somebody from the nodeBB dev team to respond on this. I am sorry for not able to resolve this issue for you 😞

      posted in Bug Reports
      V
      vatsal
    • RE: Some Errors? not too sure from where

      @Silvina at this url http://localhost:4567/api/admin/manage/categories/active do you see anything like

      "csrf": "f0TfO3Kb-MZ33i2Z6HBr###########rjH5wo",

      posted in Bug Reports
      V
      vatsal
    • RE: Some Errors? not too sure from where

      @Silvina said:

      Is it happening on ACP or front end?

      posted in Bug Reports
      V
      vatsal