Howdy, howdy howdy,
Ghost 2.9.1 (most recent installation) and practically new blog. I’m trying to invite a user but when I send it i get the error:
main content Validation (FieldIsInvalid) failed for [“role_id”]
They also never receive the email. I have used the email testing under labs and I do receive the email from that, so it seems like it just flat out fails with this error.
Kate
January 3, 2019, 8:42am
2
Hey @Shadowbottle !
This looks very similar to an issue we have fixed recently:
opened 01:00PM - 26 Oct 18 UTC
closed 02:33PM - 15 Jan 19 UTC
bug
affects:admin
### Issue Summary
On Ubuntu Xenial, can't send invitation email to my team.
Be… cause I get the following:
<img width="1680" alt="screen shot 2018-10-26 at 3 57 06 pm" src="https://user-images.githubusercontent.com/29832557/47567654-d254c680-d937-11e8-8739-8733e3f52cd6.png">
### To Reproduce
1. Tried sending invitation to a team member with following different mail configuration in the config file (used `ghost restart` after each configuration change)
a.
```json
"mail": {
"transport": "SMTP",
"options": {
"service": "Sendgrid",
"auth": {
"user": "MYUSERHERE",
"pass": "MYPASSHERE"
}
}
}
```
b.
```json
"mail": {
"transport": "Direct"
}
}
```
c.
```json
"mail": {
"transport": "SMTP",
"options": {
"service": "Sendmail"
}
}
```
ghost log brings the following:
```
+ sudo systemctl is-active ghost_blog-mallabee-com
[2018-10-26 12:50:35] WARN Ghost has shut down
[2018-10-26 12:50:44] WARN Theme's file locales/en.json not found.
[2018-10-26 12:50:45] INFO Ghost is running in production...
[2018-10-26 12:50:45] INFO Your blog is now available on https://blog.mallabee.com/
[2018-10-26 12:50:45] INFO Ctrl+C to shut down
[2018-10-26 12:50:45] INFO Ghost boot 6.3s
[2018-10-26 12:50:45] INFO Bootstrap client was closed.
[2018-10-26 12:50:55] INFO "GET /ghost/" 200 80ms
[2018-10-26 12:50:56] INFO "GET /ghost/assets/img/favicon.ico" 200 46ms
[2018-10-26 12:50:56] INFO "GET /ghost/api/v2/admin/users/me/?include=roles" 200 100ms
[2018-10-26 12:50:56] INFO "GET /ghost/api/v2/admin/configuration/" 200 8ms
[2018-10-26 12:50:56] INFO "GET /ghost/api/v2/admin/configuration/private/" 200 35ms
[2018-10-26 12:50:56] INFO "GET /ghost/api/v2/admin/settings/?type=blog%2Ctheme%2Cprivate" 200 78ms
[2018-10-26 12:50:56] INFO "GET /ghost/api/v2/admin/notifications/" 200 55ms
[2018-10-26 12:50:57] INFO "GET /ghost/api/v2/admin/users/?limit=all&filter=status%3Ainactive&include=roles" 200 145ms
[2018-10-26 12:50:57] INFO "GET /ghost/api/v2/admin/invites/?limit=all" 200 151ms
[2018-10-26 12:50:57] INFO "GET /ghost/api/v2/admin/users/?limit=15&page=1&modelPath=controller.activeUsers&filter=status%3A-inactive&include=roles" 200 163ms
[2018-10-26 12:50:57] INFO "GET /ghost/api/v2/admin/roles/" 200 153ms
[2018-10-26 12:50:57] INFO "GET /favicon.ico?t=1540558257094" 200 6ms
[2018-10-26 12:50:59] ERROR "POST /ghost/api/v2/admin/invites/" 500 90ms
NAME: InternalServerError
MESSAGE: The server has encountered an error.
level: normal
empty
empty
ERROR DETAILS:
empty
InternalServerError: The server has encountered an error.
at new GhostError (/srv/www/blog-mallabee/versions/2.3.0/core/server/lib/common/errors.js:10:26)
at permsPromise.then.catch (/srv/www/blog-mallabee/versions/2.3.0/core/server/api/v2/utils/permissions.js:48:31)
at tryCatcher (/srv/www/blog-mallabee/versions/2.3.0/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/srv/www/blog-mallabee/versions/2.3.0/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/srv/www/blog-mallabee/versions/2.3.0/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/srv/www/blog-mallabee/versions/2.3.0/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/srv/www/blog-mallabee/versions/2.3.0/node_modules/bluebird/js/release/promise.js:689:18)
at Async._drainQueue (/srv/www/blog-mallabee/versions/2.3.0/node_modules/bluebird/js/release/async.js:133:16)
at Async._drainQueues (/srv/www/blog-mallabee/versions/2.3.0/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues (/srv/www/blog-mallabee/versions/2.3.0/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:789:20)
at tryOnImmediate (timers.js:751:5)
at processImmediate [as _immediateCallback] (timers.js:722:5)
Error: Undefined binding(s) detected when compiling SELECT query: select `roles`.* from `roles` where `roles`.`id` = ? limit ?
at QueryCompiler_MySQL.toSQL (/srv/www/blog-mallabee/versions/2.3.0/node_modules/knex/lib/query/compiler.js:151:13)
at Builder.toSQL (/srv/www/blog-mallabee/versions/2.3.0/node_modules/knex/lib/query/builder.js:119:44)
at /srv/www/blog-mallabee/versions/2.3.0/node_modules/knex/lib/runner.js:52:32
at tryCatcher (/srv/www/blog-mallabee/versions/2.3.0/node_modules/bluebird/js/release/util.js:16:23)
at /srv/www/blog-mallabee/versions/2.3.0/node_modules/bluebird/js/release/using.js:185:26
at tryCatcher (/srv/www/blog-mallabee/versions/2.3.0/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/srv/www/blog-mallabee/versions/2.3.0/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/srv/www/blog-mallabee/versions/2.3.0/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/srv/www/blog-mallabee/versions/2.3.0/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/srv/www/blog-mallabee/versions/2.3.0/node_modules/bluebird/js/release/promise.js:693:18)
at Promise._fulfill (/srv/www/blog-mallabee/versions/2.3.0/node_modules/bluebird/js/release/promise.js:638:18)
at PromiseArray._resolve (/srv/www/blog-mallabee/versions/2.3.0/node_modules/bluebird/js/release/promise_array.js:126:19)
at PromiseArray._promiseFulfilled (/srv/www/blog-mallabee/versions/2.3.0/node_modules/bluebird/js/release/promise_array.js:144:14)
at Promise._settlePromise (/srv/www/blog-mallabee/versions/2.3.0/node_modules/bluebird/js/release/promise.js:574:26)
at Promise._settlePromise0 (/srv/www/blog-mallabee/versions/2.3.0/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/srv/www/blog-mallabee/versions/2.3.0/node_modules/bluebird/js/release/promise.js:693:18)
```
### Technical details:
* Ghost Version:
2.3.0
* Node Version:
8.9.0
* Browser/OS:
Chrome/Mac OSX
* Database:
mysql
We will investigate asap.
They also never receive the email.
If the invite fails with an error, the email won’t be sent.
Thanks for the reply - checking the other thread now. Be aware that when the error is encountered, at least on one attempt, a notification was generated claiming the user had been invited and displaying a countdown of 7 days before the invite expired, making it appear as though the invite had been issued. Thanks!
1 Like
system
Closed
January 18, 2019, 8:39pm
4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.