Thread: Usenet gateway
View Single Post
  #70  
Old 02-13-2001, 05:48 PM
Guest
 
Posts: n/a
Default

stupid telnet program...found the program, so I've now run newnews.pl via telnet. Connects to the server and the right newsgroup, grabs the first 100 messages, when it does to dump them to the database, I'm getting the following error:

Requested 100 messages... 0 not available or rejected.
DBD::mysql::db do failed: You have an error in your SQL syntax near ''No User',9
79507486,'ALISHA has done the following\n____________________________' at line 1
at ./newnews.pl line 419.
Query failed (INSERT IGNORE INTO post (allowsmilie,threadid,username,dateline,pa
getext,visible,msgid,ord) VALUES ('1',,'No User',979507486,'ALISHA has done the
following\n_______________________________________ _\nSlept: 7 Touched: 31750 Dro
pped: 37\n________________________________________\nNetb ios Rulez \\GUYC \\C \\E
SC400 \\C \\ACI \\BOB PUBLIC \\C GATEWAY \\CUSTOMERS \\DOWNLOADS \\MY DOCUMENTS\
n\\MYLABEL \\PROGRAM FILE \\COMPAQ5695 \\MY MUSIC \\MYDOCS \\C \\PAVILLION A \\P
AVILLION C \\backup \\D \\C \\D\n\\E \\C_PAZR1 \\HOME C DRIVE \\TEMP \\C \\C \\C
\\C \\C \\D \\Downloads \\SHARED \\HHC \\HHPROGRAMS \\HHSHARED\n\n..and the wor
ms ate into his brain\n','1','<0e8cc39d915d766e63245db40b0119cb@an on.xg.nu>','0'
)) at ./newnews.pl line 419.

Any ideas here? I'm at a total loss here. It looks like it's having a problem dumping the messages into the post table, but I'm not an SQL expert).

On another note, a couple of things you might want to consider when you do your next documentation update:

1.) The SQL changes (textfile) - There are two usenet_outgoin_log table create commands

2.) You are using the table POST and post interchangably, which is causing errors in the alter table section toward the bottom of the query. Took me awhile to figure that mysql is case sensitive.

3.) You might want to make some recommendations about a mysql client. I'm using phpMyAdmin, and it's great. I couldn't imagine trying to do this stuff manually.

That's it for now! Any suggestions on the above?
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01574 seconds
  • Memory Usage 1,760KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete