akhoury / nodebb-plugin-emailer-mandrill

An emailer plugin for NodeBB using Mandrill as a third party service
MIT License
3 stars 11 forks source link

Not working with the newest version of NodeBB 0.5.4 #7

Closed ThomasK33 closed 9 years ago

ThomasK33 commented 9 years ago

Tried installing the plugin either by the web gui and afterwards by console, but only got this error:

2014-11-24T20:53:09.356Z - error: Error creating index text search not enabled
2014-11-24T20:53:09.358Z - warn: [plugins] The `action:app.load` hook is deprecated in favour of `static:app.load`, please notify the developers of the following plugins:
  * nodebb-plugin-featured-threads
2014-11-24T20:53:09.417Z - error: [plugins/emailer-mandrill] API key not set!
2014-11-24T20:53:09.420Z - error: TypeError: Cannot read property 'admin' of undefined
    at /Users/thomas/Projects/abifdg/node_modules/nodebb-plugin-emailer-mandrill/index.js:19:75
    at /Users/thomas/Projects/abifdg/src/meta/settings.js:12:4
    at /Users/thomas/Projects/abifdg/node_modules/mongodb/lib/mongodb/collection/query.js:164:5
    at /Users/thomas/Projects/abifdg/node_modules/mongodb/lib/mongodb/cursor.js:758:35
    at Cursor.close (/Users/thomas/Projects/abifdg/node_modules/mongodb/lib/mongodb/cursor.js:989:5)
    at Cursor.nextObject (/Users/thomas/Projects/abifdg/node_modules/mongodb/lib/mongodb/cursor.js:758:17)
    at commandHandler (/Users/thomas/Projects/abifdg/node_modules/mongodb/lib/mongodb/cursor.js:727:14)
    at /Users/thomas/Projects/abifdg/node_modules/mongodb/lib/mongodb/db.js:1890:9
    at Server.Base._callHandler (/Users/thomas/Projects/abifdg/node_modules/mongodb/lib/mongodb/connection/base.js:448:41)
    at /Users/thomas/Projects/abifdg/node_modules/mongodb/lib/mongodb/connection/server.js:481:18
TypeError: Cannot read property 'admin' of undefined
    at /Users/thomas/Projects/abifdg/node_modules/nodebb-plugin-emailer-mandrill/index.js:19:75
    at /Users/thomas/Projects/abifdg/src/meta/settings.js:12:4
    at /Users/thomas/Projects/abifdg/node_modules/mongodb/lib/mongodb/collection/query.js:164:5
    at /Users/thomas/Projects/abifdg/node_modules/mongodb/lib/mongodb/cursor.js:758:35
    at Cursor.close (/Users/thomas/Projects/abifdg/node_modules/mongodb/lib/mongodb/cursor.js:989:5)
    at Cursor.nextObject (/Users/thomas/Projects/abifdg/node_modules/mongodb/lib/mongodb/cursor.js:758:17)
    at commandHandler (/Users/thomas/Projects/abifdg/node_modules/mongodb/lib/mongodb/cursor.js:727:14)
    at /Users/thomas/Projects/abifdg/node_modules/mongodb/lib/mongodb/db.js:1890:9
    at Server.Base._callHandler (/Users/thomas/Projects/abifdg/node_modules/mongodb/lib/mongodb/connection/base.js:448:41)
    at /Users/thomas/Projects/abifdg/node_modules/mongodb/lib/mongodb/connection/server.js:481:18
2014-11-24T20:53:09.420Z - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
data error: MongoError: Connection Closed By Application
2014-11-24T20:53:09.422Z - info: [app] Database connection closed.
akhoury commented 9 years ago

can you tell me which version of emailer are you using?

cat /Users/thomas/Projects/abifdg/node_modules/nodebb-plugin-emailer-mandrill/package.json | grep "version"
ThomasK33 commented 9 years ago

Result:

"version": "0.2.2",
akhoury commented 9 years ago

could you install 0.1.41 Sorry about the confusion, the 0.2.x branch is designed to work with NodeBB@0.6.x, not NodeBB@0.5.x, NodeBB should have prevented you from doing that, but I know that prevention logic was buggy in NodeBB@0.5.4 and was fixed in NodeBB@0.5.5

In your terminal

cd /Users/thomas/Projects/abifdg/
npm uninstall nodebb-plugin-emailer-mandrill
npm install nodebb-plugin-emailer-mandrill@0.1.41

Future updates should be smoother. Close the bug if that works.

ThomasK33 commented 9 years ago

Yes work's like a charm, thanks :-D