FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Lot of errors on nntp.inc
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Lot of errors on nntp.inc [message #27904] Fri, 30 September 2005 07:23 Go to next message
dany31 is currently offline  dany31   France
Messages: 9
Registered: September 2005
Karma: 0
Junior Member
(this message is translated from french with Google Translate)

Hello,

I use the newsgroup function but my hebergor does not manage the "cron"... I thus modified the file nntp.php to transmit the variable in this way : /nntp.php?forum=1

all functions well...


BUT... if the forum is synchronized, I have lot of errors when I post a message Sad

Notice: Undefined property: fs in /home3/www/FUDforum/include/nntp.inc on line 81

Warning: fputs(): supplied argument is not a valid stream resource in /home3/www/FUDforum/include/nntp.inc on line 81

Notice: Undefined property: fs in /home3/www/FUDforum/include/nntp.inc on line 28

Warning: fgets(): supplied argument is not a valid stream resource in /home3/www/FUDforum/include/nntp.inc on line 28

Notice: Undefined property: fs in /home3/www/FUDforum/include/nntp.inc on line 529

Warning: fputs(): supplied argument is not a valid stream resource in /home3/www/FUDforum/include/nntp.inc on line 529

Notice: Undefined property: fs in /home3/www/FUDforum/include/nntp.inc on line 530

Warning: fputs(): supplied argument is not a valid stream resource in /home3/www/FUDforum/include/nntp.inc on line 530

Notice: Undefined property: fs in /home3/www/FUDforum/include/nntp.inc on line 531

Warning: fputs(): supplied argument is not a valid stream resource in /home3/www/FUDforum/include/nntp.inc on line 531

Notice: Undefined property: fs in /home3/www/FUDforum/include/nntp.inc on line 534

Warning: fputs(): supplied argument is not a valid stream resource in /home3/www/FUDforum/include/nntp.inc on line 534

Notice: Undefined property: fs in /home3/www/FUDforum/include/nntp.inc on line 537

Warning: fputs(): supplied argument is not a valid stream resource in /home3/www/FUDforum/include/nntp.inc on line 537

Notice: Undefined property: fs in /home3/www/FUDforum/include/nntp.inc on line 538

Warning: fputs(): supplied argument is not a valid stream resource in /home3/www/FUDforum/include/nntp.inc on line 538

Notice: Undefined property: fs in /home3/www/FUDforum/include/nntp.inc on line 539

Warning: fputs(): supplied argument is not a valid stream resource in /home3/www/FUDforum/include/nntp.inc on line 539

Notice: Undefined property: fs in /home3/www/FUDforum/include/nntp.inc on line 542

Warning: fputs(): supplied argument is not a valid stream resource in /home3/www/FUDforum/include/nntp.inc on line 542

Notice: Undefined property: fs in /home3/www/FUDforum/include/nntp.inc on line 548

Warning: fputs(): supplied argument is not a valid stream resource in /home3/www/FUDforum/include/nntp.inc on line 548

Notice: Undefined property: fs in /home3/www/FUDforum/include/nntp.inc on line 549

Warning: fputs(): supplied argument is not a valid stream resource in /home3/www/FUDforum/include/nntp.inc on line 549

Notice: Undefined property: fs in /home3/www/FUDforum/include/nntp.inc on line 559

Warning: fputs(): supplied argument is not a valid stream resource in /home3/www/FUDforum/include/nntp.inc on line 559

Notice: Undefined property: fs in /home3/www/FUDforum/include/nntp.inc on line 28

Warning: fgets(): supplied argument is not a valid stream resource in /home3/www/FUDforum/include/nntp.inc on line 28

Warning: Cannot modify header information - headers already sent by (output started at /home3/www/FUDforum/include/nntp.inc:559) in /home3/www/forum/theme/default/post.php on line 3928







help me please Sad Sad

Thanks Wink

[Updated on: Fri, 30 September 2005 11:04]

Report message to a moderator

Re: Lot of errors on nntp.inc [message #27910 is a reply to message #27904] Fri, 30 September 2005 13:12 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #27911 is a reply to message #27910] Fri, 30 September 2005 13:58 Go to previous messageGo to next message
dany31 is currently offline  dany31   United States
Messages: 9
Registered: September 2005
Karma: 0
Junior Member
at which place I must remove "@" please ???


(precision, importation with nntp.php work properly)
Re: Lot of errors on nntp.inc [message #27915 is a reply to message #27904] Fri, 30 September 2005 17:43 Go to previous messageGo to next message
dany31 is currently offline  dany31   France
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 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #27917 is a reply to message #27904] Fri, 30 September 2005 17:52 Go to previous messageGo to next message
dany31 is currently offline  dany31   France
Messages: 9
Registered: September 2005
Karma: 0
Junior Member
no Sad

you can test on http://www.planetemultimedia.com

actually is whitout the "@"


user : test
password : test
Re: Lot of errors on nntp.inc [message #27929 is a reply to message #27917] Fri, 30 September 2005 20:19 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #27934 is a reply to message #27929] Fri, 30 September 2005 21:02 Go to previous messageGo to next message
dany31 is currently offline  dany31   France
Messages: 9
Registered: September 2005
Karma: 0
Junior Member
exactly !
Re: Lot of errors on nntp.inc [message #27938 is a reply to message #27904] Sun, 02 October 2005 00:30 Go to previous messageGo to next message
dany31 is currently offline  dany31   France
Messages: 9
Registered: September 2005
Karma: 0
Junior Member
if add a "echo $this->fs", the value returned is

$this->fs = "Resource id #28"

next, this error appear :


Notice: Undefined property: fs in
/home3/.... /FUDforum/include/nntp.inc on line 81


in the error log i see :

Failed to recieve proper response to POST command, NNTP server replied:
Posting Failed, NNTP Server Said:
Unable to use uk.test newsgroup NTTP Msg: 501 user Name|pass Password
Re: Lot of errors on nntp.inc [message #27951 is a reply to message #27934] Mon, 03 October 2005 14:27 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
This patch will fix the warning messages:
http://cvs.prohost.org/c/index.cgi/FUDforum/chngview?cn=7362

But there is still the authentication issue, did you provide login/pass in the nntp settings?


FUDforum Core Developer
Re: Lot of errors on nntp.inc [message #27956 is a reply to message #27904] Mon, 03 October 2005 15:13 Go to previous messageGo to next message
dany31 is currently offline  dany31   United States
Messages: 9
Registered: September 2005
Karma: 0
Junior Member
thanks for this patch Wink

yes.. I think that my NNTP server does not allow posting.

So, I tested with a new account NNTP.. and is little better : whith the new nntp server, i can post a "new message" but if I reply to a post, I have an error and that does not work.
Re: Lot of errors on nntp.inc [message #27957 is a reply to message #27956] Mon, 03 October 2005 15:20 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Interesting, is the error from the NNTP server, is so what is it?

FUDforum Core Developer
Re: Lot of errors on nntp.inc [message #27964 is a reply to message #27957] Mon, 03 October 2005 17:22 Go to previous messageGo to next message
dany31 is currently offline  dany31   France
Messages: 9
Registered: September 2005
Karma: 0
Junior Member
Failed to recieve proper response to POST command, NNTP server replied: 501 Command syntax error
Re: Lot of errors on nntp.inc [message #27966 is a reply to message #27964] Mon, 03 October 2005 17:44 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #27967 is a reply to message #27904] Mon, 03 October 2005 17:48 Go to previous messageGo to next message
dany31 is currently offline  dany31   France
Messages: 9
Registered: September 2005
Karma: 0
Junior Member
the first server is news.free.fr and the second is news.club-internet.fr

if you want I give you the login and password for acces to this servers

thank you for your assistance, the patch work correctly, I do not have any more a page of errors Smile
Re: Lot of errors on nntp.inc [message #27968 is a reply to message #27967] Mon, 03 October 2005 18:00 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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
Re: Lot of errors on nntp.inc [message #28569 is a reply to message #27968] Mon, 31 October 2005 22:13 Go to previous messageGo to next message
viktor is currently offline  viktor   United States
Messages: 12
Registered: November 2004
Karma: 0
Junior Member
Hi!
I use 2.7.2 version of fudforum. I have valid NNTP account with login and passwd, but i can't make any new and reply on any imported messages via forum script.

this is from the error_log right after any attempt to post:

-------------- cut here --------------
Unable to use alive.religion newsgroup NTTP Msg: 501 bad authentication

Failed to recieve proper response to POST command, NNTP server replied:
Posting Failed, NNTP Server Said:
--------------------------------------

can anybody help me?
Re: Lot of errors on nntp.inc [message #28571 is a reply to message #28569] Mon, 31 October 2005 22:25 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Can you try the 2.7.3 version.

FUDforum Core Developer
Re: Lot of errors on nntp.inc [message #28574 is a reply to message #28571] Mon, 31 October 2005 22:50 Go to previous message
viktor is currently offline  viktor   United States
Messages: 12
Registered: November 2004
Karma: 0
Junior Member
thanks, upgrade to 2.7.3 did fix the posting problem! Razz
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How to apply the censorship management on already written words?
Next Topic: Anonymous User Blasting our forum
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 10:30:40 GMT 2024

Total time taken to generate the page: 0.02420 seconds