• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

fgets() fwrite() in Xenforo error log

Andy.N

Well-known member
#1
I have been getting dozen of these errors in Xenforo server log. I know Mike and Kier are busy working on XF 1.1 so I will try this venue first before sending them a ticket.

I notice that all of these errors come from the Mail class and looking at the detail of each error, it resulted from actions that will generate an email from the server (such as when a member sends another member a PC which will generate an email notification).

And it's important to note that I use Google STMP service instead of the server email.

Here are the errors I get (just posting the message)

  • fgets(): SSL: Connection reset by peer library/Zend/Mail/Protocol/Abstract.php:364
  • fwrite(): SSL operation failed with code 1. OpenSSL Error messages: error:1409F07F:SSL routines:SSL3_WRITE_PENDING:bad write retry library/Zend/Mail/Protocol/Abstract.php:324
  • fwrite(): SSL: Broken pipe library/Zend/Mail/Protocol/Abstract.php:324
 

Jake Bunce

XenForo moderator
Staff member
#2
Are any emails getting out?

This looks like a failed SMTP connection. Possible causes include:

1) A problem with OpenSSL on your server.

2) Wrong port. I found reports of people fixing this problem by changing the SMTP port:

http://mail.google.com/support/bin/answer.py?hl=en&answer=13287

If you're having trouble sending mail but you've confirmed that encryption is active for SMTP in your mail client, try to configure your SMTP server on a different port (465 or 587).
 

Andy.N

Well-known member
#3

Andy.N

Well-known member
#6
Google only allows 465 with SSL doesn't it?
That's correct. The link Jake posted make it look like you can change the port but it does not work
If you're having trouble sending mail but you've confirmed that encryption is active for SMTP in your mail client, try to configure your SMTP server on a different port (465 or 587).
 

Brogan

XenForo moderator
Staff member
#7
I think that just means to switch from one to the other, for those who aren't sure if they're using SSL or not.

From the same page:

Outgoing Mail (SMTP) Server - requires TLS3 or SSL
Port for TLS/STARTTLS: 587
Port for SSL: 465