cachet icon indicating copy to clipboard operation
cachet copied to clipboard

Error when inviting members

Open lyandr opened this issue 9 years ago • 18 comments

Hello,

i installed cachet on cloud foundry successfully. But the only things that don't work is when i try to invite a new member: each time i entered an email address and click on invite button i stay on the same page with the following error message: "Whoops. The invite could not be sent, please try again. The emails must be a valid email address."

The test mail and mails for subscriptions work so for me it is not a mail configuration issue. Or maybe i didn't undesrtand the purpose of this fonctionnality :s

Cachet version: 2.4.0-dev Php: 5.6.30

lyandr avatar Aug 02 '17 14:08 lyandr

I too experience the same issue with Cachet 2.4.0-dev and php 5.6.31

Phelzier avatar Aug 14 '17 15:08 Phelzier

What email addresses did you try?

ConnorVG avatar Aug 14 '17 15:08 ConnorVG

I've tried any email address. My work, my colleagues, my personal. No matter what address I enter, it says "The emails must be a valid email address.". The format is correct [email protected]. Don't want to put email addresses on a public forum.

Phelzier avatar Aug 14 '17 15:08 Phelzier

Yeah I understand, I don't need an exact email just a solid comparison. Could you attain an error log?

Edit: don't forget to redact your email if so.

ConnorVG avatar Aug 14 '17 15:08 ConnorVG

I can add users manually and the email address is accepted and works with the notification engine.

Phelzier avatar Aug 14 '17 15:08 Phelzier

Nothing in settings > log. No laravel log for 4 days, do I need to enable a higher level of logging?

Edie: Set debug to true in app.php

Phelzier avatar Aug 14 '17 15:08 Phelzier

Are emails being sent? It could be that you have the QUEUE_DRIVER setting to database or redis but nothing is running the queue.

jbrooksuk avatar Aug 21 '17 18:08 jbrooksuk

Hi James,

Please see .env config below. I've hidden some identifiable information.

Thanks, Ben

APP_ENV=production
APP_DEBUG=false
APP_URL=http://localhost
APP_KEY=base64:******************************

DB_DRIVER=mysql
DB_HOST=localhost
DB_UNIX_SOCKET=null
DB_DATABASE=cachet
DB_USERNAME=**************
DB_PASSWORD=********************
DB_PORT=null
DB_PREFIX=null

CACHE_DRIVER=apc
SESSION_DRIVER=file
QUEUE_DRIVER=sync

CACHET_BEACON=true
CACHET_EMOJI=false
CACHET_AUTO_TWITTER=true

MAIL_DRIVER=smtp
MAIL_HOST=smtp.uk.v***********.***
MAIL_PORT=25
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_ADDRESS=UKITStatus@v******c.***
MAIL_NAME=null
MAIL_ENCRYPTION=null

REDIS_HOST=null
REDIS_DATABASE=null
REDIS_PORT=null

GITHUB_TOKEN=null

NEXMO_KEY=null
NEXMO_SECRET=null
NEXMO_SMS_FROM=Cachet

Phelzier avatar Aug 21 '17 19:08 Phelzier

Well, you need to set MAIL_NAME I believe. Try that.

jbrooksuk avatar Aug 21 '17 19:08 jbrooksuk

I have added some text in to Mail_Name field, still no joy :(

Mail leaves Cachet if I do test: image

But sending invite still fails: image

Phelzier avatar Aug 21 '17 20:08 Phelzier

Same problem here. Using normal email address.

optsysonl avatar Aug 23 '17 14:08 optsysonl

At least it's not just me, that makes me happier that I didn't screw something up lol

Phelzier avatar Aug 23 '17 17:08 Phelzier

This is so weird... I just tried out on 2.3 and It worked fine, both from the dashboard and invitation page.

screen shot 2017-08-27 at 11 48 27

screen shot 2017-08-27 at 11 47 47

jbrooksuk avatar Aug 27 '17 10:08 jbrooksuk

Same problem here on a new install.

Your demo site doesn't work either. https://dev.cachethq.io/dashboard/team/invite

EDIT

Just to clarify, these are the Team invites.

paulnus avatar Aug 29 '17 16:08 paulnus

Just to clarify, these are the Team invites.

Ah right! I'll investigate this shortly.

jbrooksuk avatar Aug 30 '17 07:08 jbrooksuk

Got the same problem and was able to fix it quickly by removing the rule in

app\Bus\Commands\User\InviteUserCommand.php

public $rules = [
        #'emails' => 'required|array|email',
    ];

Apparently, there's some problem with de validation rule.

Diogo-Ferreira avatar Sep 04 '17 12:09 Diogo-Ferreira

Fixed in v2.4

jbrooksuk avatar Sep 09 '17 12:09 jbrooksuk

Nice work guys, working now. :)

Phelzier avatar Sep 11 '17 12:09 Phelzier