apAuthLocalUserPlugin: 500 error when creating new user and sending mail

Bug #621394 reported by Monpelaud

This bug report was converted into a question: question #161697: apAuthLocalUserPlugin: 500 error when creating new user and sending mail.

14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
AuthPuppy
Invalid
Low
Unassigned

Bug Description

apAuthLocalUserPlugin v0.1.4.

1- When I try to create a new local user I always get this error :

500 | Internal Server Error | Swift_RfcComplianceException
Address in mailbox given [] does not comply with RFC 2822, 3.6.2.
at ()
in SF_ROOT_DIR/lib/vendor/symfony/lib/vendor/swiftmailer/classes/Swift/Mime/Headers/MailboxHeader.php line 309 ...

       306. if (!preg_match('/^' . $this->getGrammar('addr-spec') . '$/D',
       307. $address))
       308. {
       309. throw new Swift_RfcComplianceException(
       310. 'Address in mailbox given [' . $address .
       311. '] does not comply with RFC 2822, 3.6.2.'
       312. );

2- All e-mail addresses are rejected.

Revision history for this message
gbastien (gbastien02) wrote :

Do you still have this problem?

It seems to be something with the email configuration, I cannot reproduce it. Did you change anything in the apps/frontend/config/factories.yml (where the mailer is configured)? If not, maybe you need to? Depending on your server's email configuration.

Changed in authpuppy:
status: New → Incomplete
importance: Undecided → Low
Revision history for this message
Monpelaud (monpelaud) wrote :

I set the mailer configuration in the file factories.yml and now it works fine.
Many thanks.

Revision history for this message
Monpelaud (monpelaud) wrote :

Why the title displayed on the screen of the menu "Manage local users" is "Nodes list" ?
"Local users list" should be the right title !

Revision history for this message
gbastien (gbastien02) wrote :

Yep, that's a copy/paste bug! Will change it in the next release...

Just in case someone else has this problem, what did you change in the factories.yml file and how is your mail server configured?

Revision history for this message
Monpelaud (monpelaud) wrote :

I found this post :
http://www.metulo.net/how-to-send-an-email-with-symfony-and-gmail

In the file factories.yml I added this "mailer:" section at the end of the "all:" section :

  mailer:
    param:
      transport:
        class: Swift_SmtpTransport
        param:
          host: smtp.myprovider.fr
          port: 25
          encryption: ~
          username: my.email
          password: ~

Monpelaud (monpelaud)
Changed in authpuppy:
status: Incomplete → Invalid
Revision history for this message
nward (norrisward) wrote :

Hi,

I am still having this issue. I just started setting up authpuppy.

I have followed the thread and added the lines as illustrated above by Monpelaud and I am still getting this error.

I am using authpuppy and followed these instructions. It is not working for me.

Anyone have any tips to help me complete this?

Revision history for this message
gbastien (gbastien02) wrote :

Many questions come and end up linking to this bug, which is really not a bug

Changed in authpuppy:
status: Invalid → Won't Fix
status: Won't Fix → Invalid
summary: - In the menu "Manage local users" impossible to add a "New local user"
+ apAuthLocalUserPlugin: 500 error when creating new user and sending mail
Revision history for this message
gbastien (gbastien02) wrote :

Another possible cause for this error is if the "Email from" hasn't been configured correctly:

1- Login with administrative account

2- Click on the "Server configuration" link

3- Enter an email in the "Email from" field (do not leave this field empty, it will accept an empty value but will cause problem when sending email...)

Revision history for this message
gbastien (gbastien02) wrote :

Some more doc on configuring emails with symfony:

http://www.symfony-project.org/jobeet/1_4/Doctrine/en/16

Revision history for this message
arron (lvzheng1984) wrote :

When I click "Sign me up", I always get this error:
Oops! An Error Occurred
The server returned a "500 Internal Server Error".
I have changed the file factories.yml, but the error still existed. How can I do?

Revision history for this message
Tiger Guo (14125174-l) wrote :

Hi,

I meet the same question . It is excruciating for me.

So,what I want to know is where is the "Changed in authpuppy" and How to change it.

Revision history for this message
rakesh (rakesh-iitm) wrote :

Hey
I am facing this same problem. Getting above error when creating a new user at "network login".
When I use http://yourserver/frontend_dev.php ; I am able to create a user.
I have added gmail smtp configurations in factories.yml, but still it doesn't work.

Revision history for this message
Satish Kumar (satty12) wrote :

hi,
Solved it with the following changes :

Step 1:
Check if httpd_can_sendmail is on , run this getsebool httpd_can_sendmail

When you get: httpd_can_sendmail --> off , run setsebool httpd_can_sendmail=1
When you get: httpd_can_sendmail --> on that's fine move on step 2.
Step 2:
Check also if httpd_can_network_connect is on, run getsebool httpd_can_network_connect
When you get httpd_can_network_connect --> off run setsebool -P httpd_can_network_connect 1
When you get: httpd_can_network_connect --> on that's fine move on step 3.
Step 3
Use the following settings for smtp : 'host' => '<IPADDRESS>' 'port' => '465'

regards
Satish Kumar V

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.