|
Re: Lot of errors on nntp.inc [message #27910 is a reply to message #27904] |
Fri, 30 September 2005 13:12 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
I suspect the problem is a connection failure to the NNTP server. You can verify that is the case by editing nntp.inc and removing the @ inside tghe connect() method.
FUDforum Core Developer
|
|
|
|
Re: Lot of errors on nntp.inc [message #27915 is a reply to message #27904] |
Fri, 30 September 2005 17:43 |
dany31
Messages: 9 Registered: September 2005
Karma: 0
|
Junior Member |
|
|
ok i found the function
function connect()
{
$this->fs = @fsockopen($this->server, $this->port, $errno, $errstr, $this->timeout);
if (!@is_resource($this->fs)) {
$this->error = "Unable to establish connection to $this->server on port $this->port failed\nWith Error #$errno : $errstr\n";
return false;
}
if (!socket_set_blocking($this->fs, true)) {
$this->error = "Unable to make socket to blocking mode\n";
return false;
}
$ret = $this->get_return_code();
if (!$this->compare_return_codes(200, $ret) && !$this->compare_return_codes(201, $ret)) {
$this->error = "Failed to recieve proper response from NNTP Server, got ".$this->lrc."\n";
return false;
}
$ret = $this->cmd("MODE reader");
if (($this->cmd("GROUP ".$this->newsgroup) != 211)) {
$this->error = "Unable to use ".$this->newsgroup." newsgroup NTTP Msg: ".$this->lrc."\n";
return false;
} else {
$tmp = explode(" ", $this->lrc);
$this->group_na = $tmp[1];
$this->group_first = $tmp[2];
$this->group_last = $tmp[3];
}
return true;
}
I suppose that it is necessaru to replace
$this->fs = @fsockopen($this->server, $this->port, $errno, $errstr, $this->timeout);
if (!@is_resource($this->fs)) {
by
$this->fs = fsockopen($this->server, $this->port, $errno, $errstr, $this->timeout);
if (!@is_resource($this->fs)) {
but is the same errors !!
"fs" it's not recognized by php (look the errors page in benining of my topic)
|
|
|
Re: Lot of errors on nntp.inc [message #27916 is a reply to message #27911] |
Fri, 30 September 2005 17:44 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
When you removed the @ you didn't get any new errors messages about connection failure?
FUDforum Core Developer
|
|
|
|
Re: Lot of errors on nntp.inc [message #27929 is a reply to message #27917] |
Fri, 30 September 2005 20:19 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Are you getting this error while posting a message back to NNTP from the forum?
If so check the errors/.nntp/error_log file for error text.
FUDforum Core Developer
|
|
|
|
|
|
|
|
|
Re: Lot of errors on nntp.inc [message #27966 is a reply to message #27964] |
Mon, 03 October 2005 17:44 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Interesting, the error is in response to just the "POST" command so it maybe that this functionality is simply not support by the particular mail server.
FUDforum Core Developer
|
|
|
|
Re: Lot of errors on nntp.inc [message #27968 is a reply to message #27967] |
Mon, 03 October 2005 18:00 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Sure, send me the authentication information (via PM) and I'll see if perhaps the POST error can be the result of a forum bug.
FUDforum Core Developer
|
|
|
|
|
|