vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   NNTP Gateway (Usenet/Newsgroups) (https://vborg.vbsupport.ru/showthread.php?t=35247)

jschefdog 06-13-2002 11:45 PM

One more piece of information that might help. I tried running gateway.php again with the debugging version of nntp.php that Gilby posted and showqueries=1. Here is the output (changed the server and group names since they are inside our firewall). The reponse from the server would seem to indicate that it's connecting, but IE says done in a few seconds and it never retrieves any posts. Any tips on how to debug this problem would be appreciated. I'm trying this on a test system, not my production vBulletin install, so I can try just about anything.

Quote:

1 group(s) gatewayed.
200 internal.server.name.com NNTPcache server V2.3.3 [see www.nntpcache.org] (c) 1996-1998 Julian Assange May 30 2000 ready (posting ok).
Logging in to internal.server.name.com, group group.name
Query: SELECT post.postid,post.username,post.userid,post.datelin e,post.attachmentid,post.pagetext,post.showsignatu re,post.ipaddress,thread.pollid,thread.title,post. threadid,thread.forumid FROM thread,post WHERE post.isusenetpost=0 AND thread.threadid=post.threadid AND post.dateline=thread.dateline AND post.userid=thread.postuserid AND (thread.forumid=10)
Time before: 0.524605035782
Time after: 0.528924942017

--------------------------------------------------------------------------------

Query: SELECT post.postid,post.username,post.userid,post.datelin e,post.attachmentid,post.pagetext,post.showsignatu re,post.ipaddress,thread.title,post.threadid,threa d.forumid,thread.msgid,thread.prefix FROM thread,post WHERE post.isusenetpost=0 AND thread.threadid=post.threadid AND (thread.forumid=10)
Time before: 0.529515981674
Time after: 0.533061981201

--------------------------------------------------------------------------------

Query: UPDATE session SET lastactivity=1024014495,location='/test_vb2/gateway.php?showqueries=1' WHERE sessionhash='b70bb4c090bf80e2c6b0b5e5b1ab3daa'
Time before: 0.535089015961
Time after: 0.536486029625

--------------------------------------------------------------------------------

Query: UPDATE user SET lastactivity=1024014495,inforum='0' WHERE userid='1'
Time before: 0.53685605526
Time after: 0.538607001305

jschefdog 06-14-2002 10:07 PM

I don't know if anyone's listening. I think I have found the source of the problem, but don't know how to fix it. If I add an echo to line 86 of gateway.php (v1.9) as follows:

echo $max = $news->max();

I get the following message when I run it.
Quote:

1 group(s) gatewayed.
200 news.server.company.com NNTPcache server V2.3.3 [see www.nntpcache.org] (c) 1996-1998 Julian Assange <proff@iq.org> May 30 2000 ready (posting ok).
Logging in to news.server.company.com, group company.news.test
ok).
For some reason the funtion that is trying to determine the max post number is picking up the last part of the prompt returned by the news server login. I don't know PHP so can't figure out why this is happening. Any suggestions?

I put a test post into the forum and discovered that it will add a new post to the newsgroup, but it never downloads any threads probably due to the problem described above.

jschefdog 06-14-2002 10:45 PM

Well, I may not know PHP, but I was able to figure it out by using the echo command to see what was happening. The problem was the extremely long (151 chars) login response being returned by our news server. The fix is to edit line 75 in the nntp.php file:

$response = fgets($fp, 128);

and change the number to 256. After this change all the threads were downloaded.

jschefdog 06-14-2002 11:42 PM

OK, I spoke too soon. Got all the posts downloaded, but I am also seeing the "ignore list" problem. When I open a thread, every post says:

Quote:

This person is on your Ignore List. To view this post click [here]
Did anyone every figure out what causes this problem? I am running vBulletin 2.2.5 like the others who reported it.

jschefdog 06-17-2002 09:27 PM

A search of the vBulleting community forum uncovered that the ignore list problem was fixed in version 2.2.6. It affected any post made by a userid which was not in the user table. Since the NNTP hack set the userid to zero for all imported posts, they were affected by this bug. If you have this problem try upgrading to v2.2.6.

saab340 06-19-2002 01:22 AM

I just upgraded vbulletin from 2.2.4 to 2.2.6 and now my usenet groups are not downloading??? I see it connects to usergroups, but nothing is downloaded. I am using little modded 1.8 version of nntp.

Thanks for help.

Turned the erro log on, and I am getting bunch of these:

Use of undefined constant lastmsg....
Use of undefined constant forum.....
Use of undefined constant flush....
Use of undefined constant prefix - assumed 'prefix' in <b>/home...

And also my host upgraded their PHP. so thats why I upgraded my vbulletin, it was giving some errors. php 4.2.1

Bro_Joey_Gowdy 06-22-2002 08:34 AM

<a href="http://www.joeygowdy.com/forum/gateway.php" target="_blank">http://www.joeygowdy.com/forum/gateway.php</a>

4 group(s) gatewayed.
Could not connect to NNTP-serverLogging in to .dixie-net.com, group alt.music.christian

Ive inputted all the usenet servers i want downloaded to my site... yet it still doesnt work... any thoughts ?

Dmitriy 06-22-2002 11:56 AM

I don't konw if this has already been asked before, I could not find an answer: Does the php have to be compiled --with-imap in order for this hack to work?

Bro_Joey_Gowdy 06-22-2002 04:17 PM

Quote:

Originally posted by Bro_Joey_Gowdy
http://www.joeygowdy.com/forum/gateway.php

4 group(s) gatewayed.
Could not connect to NNTP-serverLogging in to *.dixie-net.com, group alt.music.christian


Ive inputted all the usenet servers i want downloaded to my site... yet it still doesnt work...


So does anyone have any thoughts ?

Bro_Joey_Gowdy 06-22-2002 09:12 PM

Lovely - just found out my isp doesnt support usenet --

so does anyone know of any cheap servers that do ?


All times are GMT. The time now is 11:57 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02125 seconds
  • Memory Usage 1,747KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete