NodeBB crash errors with package.config installed plugins but not when installed from admin interface.
-
So the two plugins that are causing me issues are:
nodebb-plugin-emailer-mandrill
nodebb-plugin-imgur
When installed from the admin interface, they're fine. Everything works nicely and I have no problems. But of course, running on Heroku that's not really safe for recycles or what ever it is.
So I wanted to install them into the package.config file with NPM. Then each of them, seprately, throw errors when run in localhose and cause app errors on Heroku.Console log of the imgur plugin error:
2014-12-12T22:44:19.062Z - error: TypeError: Cannot read property 'applyCSRF' of undefined at Object.imgur.init (C:\Users\Jason\Documents\Projects\tartarus\node_modules\nodebb-plugin-imgur\index.js:24:62) at C:\Users\Jason\Documents\Projects\tartarus\src\plugins.js:489:23 at C:\Users\Jason\Documents\Projects\tartarus\node_modules\async\lib\async.js:125:13 at Array.forEach (native) at _each (C:\Users\Jason\Documents\Projects\tartarus\node_modules\async\lib\async.js:46:24) at Object.async.each (C:\Users\Jason\Documents\Projects\tartarus\node_modules\async\lib\async.js:124:9) at Object.Plugins.fireHook (C:\Users\Jason\Documents\Projects\tartarus\src\plugins.js:487:12) at Plugins.reloadRoutes (C:\Users\Jason\Documents\Projects\tartarus\src\plugins.js:135:11) at C:\Users\Jason\Documents\Projects\tartarus\node_modules\async\lib\async.js:656:23 at fn (C:\Users\Jason\Documents\Projects\tartarus\node_modules\async\lib\async.js:641:34) TypeError: Cannot read property 'applyCSRF' of undefined at Object.imgur.init (C:\Users\Jason\Documents\Projects\tartarus\node_modules\nodebb-plugin-imgur\index.js:24:62) at C:\Users\Jason\Documents\Projects\tartarus\src\plugins.js:489:23 at C:\Users\Jason\Documents\Projects\tartarus\node_modules\async\lib\async.js:125:13 at Array.forEach (native) at _each (C:\Users\Jason\Documents\Projects\tartarus\node_modules\async\lib\async.js:46:24) at Object.async.each (C:\Users\Jason\Documents\Projects\tartarus\node_modules\async\lib\async.js:124:9) at Object.Plugins.fireHook (C:\Users\Jason\Documents\Projects\tartarus\src\plugins.js:487:12) at Plugins.reloadRoutes (C:\Users\Jason\Documents\Projects\tartarus\src\plugins.js:135:11) at C:\Users\Jason\Documents\Projects\tartarus\node_modules\async\lib\async.js:656:23 at fn (C:\Users\Jason\Documents\Projects\tartarus\node_modules\async\lib\async.js:641:34) 2014-12-12T22:44:19.067Z - info: [app] Shutdown (SIGTERM/SIGINT) Initialised. 2014-12-12T22:44:19.067Z - info: [app] Database connection closed.
Console log of the Mandrill plugin error:
2014-12-12T22:54:38.729Z - info: [meta/templates] Compiling templates 2014-12-12T22:54:39.371Z - error: TypeError: Cannot read property 'admin' of undefined at C:\Users\Jason\Documents\Projects\tartarus\node_modules\nodebb-plugin-emailer-mandrill\index.js:19:75 at C:\Users\Jason\Documents\Projects\tartarus\src\meta\settings.js:12:4 at try_callback (C:\Users\Jason\Documents\Projects\tartarus\node_modules\redis\index.js:573:9) at RedisClient.return_reply (C:\Users\Jason\Documents\Projects\tartarus\node_modules\redis\index.js:661:13) at ReplyParser.<anonymous> (C:\Users\Jason\Documents\Projects\tartarus\node_modules\redis\index.js:309:14) at ReplyParser.EventEmitter.emit (events.js:95:17) at ReplyParser.send_reply (C:\Users\Jason\Documents\Projects\tartarus\node_modules\redis\lib\parser\javascript.js:300:10) at ReplyParser.execute (C:\Users\Jason\Documents\Projects\tartarus\node_modules\redis\lib\parser\javascript.js:211:22) at RedisClient.on_data (C:\Users\Jason\Documents\Projects\tartarus\node_modules\redis\index.js:534:27) at Socket.<anonymous> (C:\Users\Jason\Documents\Projects\tartarus\node_modules\redis\index.js:91:14)
If anyone is available to help me have these installed persistently rather than from the admin interface then that would be very appreciated.
Copyright © 2024 NodeBB | Contributors