email " " does not comply with RFC 2822 error

Please report bugs here!

Moderator: Thorsten

Post Reply
treichelt
Posts: 26
Joined: Fri May 20, 2016 12:14 am

email " " does not comply with RFC 2822 error

Post by treichelt »

Hallo
upgraded to the latest phpmyfaq version. now when i add a faq it saves it but shows an error message
FAQ administration
phpMyFAQ Fatal error
Uncaught exception: 'Symfony\Component\Mime\Exception\RfcComplianceException'

Message: 'Email "" does not comply with addr-spec of RFC 2822.'

Stack trace:

#0 D:\phpmyfaq\src\libs\symfony\mime\Address.php(96): Symfony\Component\Mime\Address->__construct('')
#1 D:\phpmyfaq\src\libs\symfony\mime\Address.php(115): Symfony\Component\Mime\Address::create('')
#2 D:\phpmyfaq\src\libs\symfony\mime\Email.php(551): Symfony\Component\Mime\Address::createArray(Array)
#3 D:\phpmyfaq\src\libs\symfony\mime\Email.php(123): Symfony\Component\Mime\Email->setListAddressHeaderBody('From', Array)
#4 D:\phpmyfaq\src\phpMyFAQ\Mail\SMTP.php(64): Symfony\Component\Mime\Email->from('')
#5 D:\phpmyfaq\src\phpMyFAQ\Mail.php(477): phpMyFAQ\Mail\SMTP->send('send()
#7 D:\phpmyfaq\admin\record.add.php(190): phpMyFAQ\Notification->sendNewFaqAdded(Array, 80, 'en')
#8 D:\phpmyfaq\admin\index.php(355): require('D:\\phpmyfaq\\adm...')
#9 {main}
Thrown in 'D:\phpmyfaq\src\libs\symfony\mime\Address.php' on line 54

Danke
Thorsten
Posts: 15565
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: email " " does not comply with RFC 2822 error

Post by Thorsten »

Hi,

did you add an email? Is that email valid?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
Posts: 15565
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: email " " does not comply with RFC 2822 error

Post by Thorsten »

Hi,

it looks like, you added a moderator to a category which is connected to this FAQ. This moderator has no valid mail address. That causes that error.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
treichelt
Posts: 26
Joined: Fri May 20, 2016 12:14 am

Re: email " " does not comply with RFC 2822 error

Post by treichelt »

the faq email field fills out automatically with my email address.
I didn't add a moderator
where would you add the moderator?

Danke
Thorsten
Posts: 15565
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: email " " does not comply with RFC 2822 error

Post by Thorsten »

Hi,

the moderators are handled in the category administration.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
treichelt
Posts: 26
Joined: Fri May 20, 2016 12:14 am

Re: email " " does not comply with RFC 2822 error

Post by treichelt »

The catagory under which I added the faq, shows
active
catagory owner (me)
user permissions -> access for all users

I do not see any moderator field.
My user profile has a valid email.
This also worked without that error prior to the upgrade.
it seems that the upgrade caused this issue.

Schoenen Dank
treichelt
Posts: 26
Joined: Fri May 20, 2016 12:14 am

Re: email " " does not comply with RFC 2822 error

Post by treichelt »

there is also one other weird issue.
when i received that error, I didn't think it saved the faq so i clicked save again
so now i have 2 faqs that are saved after that error but will not delete.
I click delete and answer ok to the popup but won't go away.

Ted
treichelt
Posts: 26
Joined: Fri May 20, 2016 12:14 am

Re: email " " does not comply with RFC 2822 error

Post by treichelt »

tut mir leid fuer die vielen emails
wenn ich die send to a friend benutze und habe alles ausgefuellt die sist was ich dann kriege

Required fields are <strong>your name</strong>, <strong>your email address</strong>, <strong>your question</strong> and, when requested, the <strong><a href="https://en.wikipedia.org/wiki/Captcha" title="Read more on Captcha at Wikipedia" target="_blank">Captcha</a> code</strong>!

Thorsten
Thorsten
Posts: 15565
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: email " " does not comply with RFC 2822 error

Post by Thorsten »

Hi,

I can't reproduce the first error. I'll check the send 2 friend feature.

Do you use Captchas?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
treichelt
Posts: 26
Joined: Fri May 20, 2016 12:14 am

Re: email " " does not comply with RFC 2822 error

Post by treichelt »

i don't use captcha

Thorsten
Thorsten
Posts: 15565
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: email " " does not comply with RFC 2822 error

Post by Thorsten »

Hi,

the second issue with "send to friend" will be fixed with the 3.2.2 release coming this month.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply