vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   NNTP Gateway for Usenet ( Newsgroups ), Mailing Lists (https://vborg.vbsupport.ru/showthread.php?t=92588)

jgrtap 01-20-2007 10:07 PM

Quote:

Originally Posted by Rik Brown (Post 1163650)
I hate to say it but the vb scheduler has worked flawlessly for us over the past several months that we have had this mod installed.

Rik, to double check, would you mind telling me exactly what the settings are that you have in nntp_groups, nntp_settings (substituting for any private info) and the scheduled task manager? I'd appreciate it.

KW802 01-21-2007 04:06 AM

Quote:

Originally Posted by jgrtap (Post 1163225)
I'm totally baffled. The gateway works, no problem. But the scheduler is a disaster. It starts, it stops, no error messages, no nothing. I can't figure it out for the life of me.

By any chance, are you trying to bring in all of the articles in a particular group or groups? The script will time itself out after 30 minutes so if you're trying to bring in thousands of articles and the script is still running for greater than 30 minutes the next time the scheduled task runs then it'll kill the prior task and try over again.

jgrtap 01-21-2007 04:47 AM

Quote:

Originally Posted by KW802 (Post 1164036)
By any chance, are you trying to bring in all of the articles in a particular group or groups? The script will time itself out after 30 minutes so if you're trying to bring in thousands of articles and the script is still running for greater than 30 minutes the next time the scheduled task runs then it'll kill the prior task and try over again.

No, this is a very small email gateway for a private forum on one side and a small Yahoo group on the other. We might be talking about 200 messages in a busy week.

familyhistory 01-21-2007 12:20 PM

I have found a news supplier, who will accept port 80. I have changed the code in gateway.php
But I get the following errors:
Quote:

Database error in vBulletin 3.6.3:

Invalid SQL:

SELECT post.*, thread.*,
post.dateline AS postdateline, post.msgid AS postmsgid,
thread.title AS threadtitle, post.visible AS postvisible,
thread.visible AS threadvisible
FROM vbpost as post LEFT JOIN vbthread as thread
ON (thread.threadid = post.threadid
AND post.userid = thread.postuserid
AND post.postid = thread.firstpostid)
WHERE post.isusenetpost = 0
AND post.postid > 966
AND thread.forumid = 67;

MySQL Error : Lost connection to MySQL server during query
Error Number : 2013
Date : Sunday, January 21st 2007 @ 02:08:15 PM
Script : http://www.forum.xx.com/gateway.php?debug=1
Referrer :
IP Address : 82.xxxxxx
Any help on this please,:)
Dave

Rik Brown 01-21-2007 08:51 PM

Quote:

Originally Posted by jgrtap (Post 1163838)
Rik, to double check, would you mind telling me exactly what the settings are that you have in nntp_groups, nntp_settings (substituting for any private info) and the scheduled task manager? I'd appreciate it.

I don't have a screen capture utility installed (a company no-no). But here is a sample setting for a newsgroup:

HTML Code:

Newsgroup/Mailing list E-mail                  [alt.pandas              ]
Forum                                        [-- Pandas Forum        ] <- vBulletin Forum
Prefix                                        [                        ]
Last Message                                [                        ]
Server                                        [news.yournewsserver.com ]
User name (only if required)                [your_user_name_here    ]
Password (only if required)                [your_password_here      ]
Enter 'use_real_email' if you want the  [                        ] <- I leave blank
posts to use the real email addresses.
Enter 'My Name <myemail@a_domain.com>' if you want all the posts use this name and email.
Please leave this empty if unsure!!!       
Enabled                                Yes No                    <- Your choice

Except to change URLs to reflect our own site, we have used the defaults in the gateway settings except perhaps the following (set to 1 or zero):

Override useragent and organization checks to import absolutely everything from USENET. 1 = Full Import from oldest existing message, 0 = Ignore and start at next message.
Full import from USENET full_import_from_usenet 0

Use the email address to associate postings with the corresponding vBulletin user.
Associate by Email associate_by_email 1

Skip the message if the message has the X-No-Archive header set to yes. Google Group honours this Non-standard header. Set to 1 to honour. 0 to ignore.
Honour No-Archive honor_no-archive 0 [Edit]

When it is set to 1, no signatures will be sent with posts. When it is set to 0, users' signature selection at post is honoured.
Send no signature nosignature 1 [Edit]

Set to 1 : no profile/view thread footer will be sent. Set to 0 : attach user profile and view forum thread footer with each message posted.
Send no footer nofooter 1

Default = 0. Set to 1 : Time stamp for imported messages use the original post time. Set to 0 : Time stamp uses the time when the messages is imported
Use Post Time use_post_time 1

The vb scheduler looks like:

HTML Code:

Varname                          gateway_varname
Title [Translations]                NNTP Gateway
Description [Translations]        Usenet newsgroups gateway mailer.
Log Phrase [Translations]        NNTP Gateway
Day of the Week (Note: this    *
overrides the 'day of the
month' option)       
       
Day of the Month                *
       
Hour                                *
       
Minute                                30 - - - - -
       
Active                                yes
Yes No
       
Log Entries                        no               
Yes No
       
Filename                        ./gateway.php       
       
Product                        vBulletin       

I hope the above helps. We are only importing newsgroups so we haven't tried binaries or mailinglists.

Regards. -- Rik

ps: Sorry, the gateway options order above may be different as we may have sorted them.

jgrtap 01-21-2007 09:53 PM

We copied our install onto a dedicated server so we could see the Apache error logs and the immediately obvious error was having gateway.php installed in includes/cron causing it to fail trying to require files from includes/cron/includes/cron thus causing cron.php to fail.

Quote:

Originally Posted by Rik Brown
Code:

Filename                        ./gateway.php

We've corrected the task to use ./gateway.php -- and now the forum doesn't respond. (sigh)

Rik Brown 01-22-2007 06:40 PM

Quote:

Originally Posted by jgrtap (Post 1164593)
We copied our install onto a dedicated server so we could see the Apache error logs and the immediately obvious error was having gateway.php installed in includes/cron causing it to fail trying to require files from includes/cron/includes/cron thus causing cron.php to fail.

We've corrected the task to use ./gateway.php -- and now the forum doesn't respond. (sigh)

Forget cron for the time being. You need to have the gateway.php file installed in your vb forums root directory and functions_nntp.php, mime.php, and pop.php in the "includes" subdirectory beneath your forums root directory (and all other files in their correct directories per the install instructions).

Then run gateway.php in debug mode such as vb.com/forums/gateway.php?debug=1. You should see some sort of output that should help indicate if you have any further problems. But it just looks like you need to get the directory structure correct first. Then the vb scheduler should also work since ./gateway.php is referring to executing the gateway.php file in your root vb forum directory.

-- Rik

gbechtel 01-23-2007 07:54 PM

Quote:

Originally Posted by poliveira (Post 944948)
I am receiving this error:

Database error in vBulletin 3.5.4:

Invalid SQL:
UPDATE nntp_settings
SET value = WHERE varname = 'last_postid';

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE varname = 'last_postid'' at line 2
Error Number : 1064
Date : Saturday, April 8th 2006 @ 10:18:32 PM
Script : http://.../forums/gateway.php
Referrer :
IP Address : ...
Username : ...
Classname : vB_Database


I am getting the same type of error message. I am not seeing the tables in my vb database

Mine...

Quote:

Database error in vBulletin 3.5.4:

Invalid SQL:

SELECT post.*, thread.*,
post.dateline AS postdateline, post.msgid AS postmsgid,
thread.title AS threadtitle, post.visible AS postvisible,
thread.visible AS threadvisible
FROM vb3_post as post LEFT JOIN vb3_thread as thread
ON (thread.threadid = post.threadid
AND post.userid = thread.postuserid
AND post.postid = thread.firstpostid)
WHERE post.isusenetpost = 0
AND post.postid >
AND thread.forumid = 93;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND thread.forumid = 93' at line 11 Error Number : 1064
Date : Tuesday, January 23rd 2007 @ 04:50:20 PM
Script : http://www.domain.com/forums/gateway.php?debug=1
Referrer :
IP Address : *.*.*.*
Username : *********
Classname : vb_database

jgrtap 01-24-2007 04:13 AM

Quote:

Originally Posted by Rik Brown (Post 1165190)
Then run gateway.php in debug mode such as vb.com/forums/gateway.php?debug=1. You should see some sort of output that should help indicate if you have any further problems.

We get the missing-value SQL error.
Code:

SET value =  WHERE varname = 'last_postid'
This message appears to be a consequence of having NO postings in the section.

leeherron 01-24-2007 11:03 AM

Jul 2005? What ever happened to this mod? Has anyone successfully installed it on 3.6.4?


All times are GMT. The time now is 09:31 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.02871 seconds
  • Memory Usage 1,773KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_html_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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