Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Closed Thread
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 01-21-2001 Last Update: Never Installs: 3
 
No support by the author.

THIS THREAD IS CLOSED!
Posts in here will NOT be answered

This hack has undergone many major changes since this thread was started. Consequently, most of the posts have become dated and of little use. To coincide with the latest major release (20010712), a new one has been started.

See this thread for the latest version and discussion

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #352  
Old 05-04-2001, 11:06 PM
annams annams is offline
 
Join Date: Dec 2001
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First of all, this is a wonderful hack!!

Now, on my web server I did not have Email::Find and MIME::WordDecoder and I installed both the modules. After that I am encountering the following error:

defined(@array) is deprecated at /usr/home/dsw/local/lib/perl5/site_perl/5.6.0/Net/DNS.pm line 137.
(Maybe you should just omit the defined()?)

Please help!!!
  #353  
Old 05-04-2001, 11:28 PM
fastforward fastforward is offline
 
Join Date: Oct 2001
Location: NC, USA
Posts: 399
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by annams
Now, on my web server I did not have Email::Find and MIME::WordDecoder and I installed both the modules. After that I am encountering the following error:

defined(@array) is deprecated at /usr/home/dsw/local/lib/perl5/site_perl/5.6.0/Net/DNS.pm line 137.
(Maybe you should just omit the defined()?)
That error is actually being generated from the Net:NS module. That module is not part of the hack. I believe the DNS module is patr of the libnet bundle. Try upgrading the libnet bundle using CPAN.

If that fails, you may want to try your suggestion. Find the line in DNS.pm that it talks about and change it there. Try just declaring it as @array; and see what happens.

In the meantime, I'll see if I can find any reference to this problem anywhere else.
  #354  
Old 05-05-2001, 12:27 AM
annams annams is offline
 
Join Date: Dec 2001
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That was just a warning! Since no processing was happening after that I thought it was an error. But then I found that I had both groups disabled. Now, I got everything working fine.

Thanks a bunch for the hack!!

Btw, I had to take a paid registration with usenet.com to get the newsfeed. Though I like the fact that it has a spamfree news server. Is there a free or cheaper newsfeed?
  #355  
Old 05-05-2001, 02:22 AM
fastforward fastforward is offline
 
Join Date: Oct 2001
Location: NC, USA
Posts: 399
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by annams
That was just a warning! Since no processing was happening after that I thought it was an error. But then I found that I had both groups disabled. Now, I got everything working fine.
If you remove the -w switch from the shebang line in newnews.pl that warning will go away. At least you won't have to look at it each time
Quote:
Btw, I had to take a paid registration with usenet.com to get the newsfeed. Though I like the fact that it has a spamfree news server. Is there a free or cheaper newsfeed?
There are free ones around, but you have to look hard. They are usually unreliable, slow and carry a limited set of groups. You might be able to find decent $5.95 one for just the text groups but $10 seems the norm for a decent account.
  #356  
Old 05-05-2001, 09:43 AM
Mark Hewitt Mark Hewitt is offline
 
Join Date: Oct 2001
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've made all the changed you specified and in addition I've switched the option to use local server time. However the same error still results
  #357  
Old 05-05-2001, 10:13 AM
Mark Hewitt Mark Hewitt is offline
 
Join Date: Oct 2001
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I removed the newgroup that was causing the trouble but it just happened on another group.

Code:
Fetching article body 27334... OK
Processing article batch...
Use of uninitialized value in numeric gt (>) at newnews.pl line 216.
Use of uninitialized value in concatenation (.) at newnews.pl line 228.
Use of uninitialized value in concatenation (.) at newnews.pl line 228.
Use of uninitialized value in concatenation (.) at newnews.pl line 228.

Query failed:
INSERT LOW_PRIORITY IGNORE INTO usenet_ref (msgid,ref,cnt,dtm) VALUES ('<philip.
remove.orr.629.011B100A@bigfoot.com....am.in.a.can.au>','<3ab213a3@news.ipr
imus.com.au>',2+1,),('<philip.remove.orr.629.011B100A@bigfoot.com.spiced.ham.in.
a.can.au>','<3ab21537@occy.pnc.com.au>',2+1,),('<philip.remove.orr.629.011B100A@
bigfoot.com.spiced.ham.in.a.can.au>','<3ab2c1ce@grissom>',2+1,)

DBD::mysql::db do failed: You have an error in your SQL syntax near '),('<philip
.remove.orr.629.011B100A@bigfoot.com...am.in.a.can.au>','<3ab21' at line 1
 at newnews.pl line 576.
bash$
  #358  
Old 05-05-2001, 03:23 PM
fastforward fastforward is offline
 
Join Date: Oct 2001
Location: NC, USA
Posts: 399
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There's no need to set it to local time. The change just checked whether the $dtm field was populated with the nntp time and if it wasn't use the local time.

There is no doubt the error is being caused by the $dtm field not being populated. The reason this happens is because the time in the header is missing or malformed. The warning: 'Use of uninitialized value in numeric gt (> ) at newnews.pl line 216' is due to the $dtm field being null. (an advantage of 'use strict' and the -w flag) confirms this. Also you can see the dtm field is missing in the sql statement.

What news server are you using and what groups are giving the most problems. I'll try them and add some more error checking.

To confirm the problem, do this: Find line 299 that currently reads:
[code
($p,$e) = parse_from($f);
[/code]
Add the following line directly ABOVE it
Code:
if (!$d) { $d=time(); }
So the resulting block of code around there will be:
Code:
            if (/^Lines: (.*)/)        { $l = $1; }
         }
          if (!$d) { $d=time(); }
         ($p,$e) = parse_from($f);
         push (@a,{ from      => $f,
Another quick fix is just remove the NOT NULL constraint from the usenet_ref table. This may have other unwanted side effects though
  #359  
Old 05-05-2001, 05:08 PM
maxc
Guest
 
Posts: n/a
Default

Hi....fastforward, Thanks for your hack...
But I have some questions, When I used spam control,it always appear a message as below:

Warning: Cannot add header information - headers already sent by (output started at /home/httpd/html/forum/admin/adminfunctions.php:18) in /home/httpd/html/forum/admin/usenet.php on line 231

how to slove this problems.please...

and in Options -> Character set for MIME decoder, it appear

Parse error: parse error, expecting `']'' in /home/httpd/html/forum/admin/usenet.php(55) : eval()'d code on line 2

Thanks for your help....
  #360  
Old 05-05-2001, 06:49 PM
maxc
Guest
 
Posts: n/a
Default

Quote:
Originally posted by fastforward

To confirm the problem, do this: Find line 299 that currently reads:
Code:
($p,$e) = parse_from($f);
Add the following line directly ABOVE it
Code:
if (!$d) { $d=time(); }
So the resulting block of code around there will be:
Code:
            if (/^Lines: (.*)/)        { $l = $1; }
         }
          if (!$d) { $d=time(); }
         ($p,$e) = parse_from($f);
         push (@a,{ from      => $f,
Another quick fix is just remove the NOT NULL constraint from the usenet_ref table. This may have other unwanted side effects though
I have already patch my newnews.pl with this method, But it still show the error message below:

Query failed:
INSERT LOW_PRIORITY IGNORE INTO usenet_article (newsgroup,forum,msgid,dtm,subject,poste
r,email,refs,body,msgnum,nntpposter,ord,threadid,p ostid) VALUES ('tw.bbs.comp.hardware'
,7,'<3f0Mhc$Zy5@bbs.cis.nctu.edu.tw>',982109749,'R e: ?бЦU?찪???㦳??window2000??????
?]?w???D????????','?A???N?Ъ??p?\\','wuuchung.bbs@bb s.cis.nctu.edu.tw',NULL,'==> ?b ens
.bbs@zoo.ee.ntu.edu.tw (?S?n?Z???F) ???峹??????:\n> ?N?O?ڭ̲oADSL\n> ?M???D???A??W
IN98?t??\n> ?ڬO??WIN2000?t??\n> ?Q??sygate?ӤW??\n> ???O?ڲ{?b?u???WB
BS\n> ?Ӥ????s?WWWW\n> ?аݭn?p???]?w?~???ѨM?H?H?H\n>
??ӷP?E????????\n\n ???ӬODNS?S???]?w?n.......\n--\n\n ?ڬO?ĤT?????N?ЧШk,?{?b?b?x?
_???s?????A???????N??,?????????????N??.\n\n ?Ѳ?.???f.?v??.?q???w??.?????Z?OCS?????D,?
ڳ?w???A?̨ӻP?ڤ@?_?Q??........\n--\n * Origin: ?? ???q?j?Ǹ??T???Ǩt BBS ?? <bbs.cis
.nctu.edu.tw: 140.113.23.3',245055,'wuuchung.bbs@bbs.cis.nctu.ed u.tw (?A???N?Ъ??p?\\)'
,-1+1,0,0)

DBD::mysql::db do failed: You have an error in your SQL syntax near 'wuuchung.bbs@bbs.c
is.nctu.edu.tw',NULL,'==> ?b ens.bbs@zoo.ee.ntu.edu.tw (?S?n?Z' at line 1 at ./newnews.
pl line 579.

bash$
  #361  
Old 05-05-2001, 06:55 PM
fastforward fastforward is offline
 
Join Date: Oct 2001
Location: NC, USA
Posts: 399
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by maxc
Hi....fastforward, Thanks for your hack...
But I have some questions, When I used spam control,it always appear a message as below:

Warning: Cannot add header information - headers already sent by (output started at /home/httpd/html/forum/admin/adminfunctions.php:18) in /home/httpd/html/forum/admin/usenet.php on line 231
That warning will always be there until I get around to rewriting the control panel page. It's on the bottom of my to do list. It doesn't affect the functionality in any way.
Quote:
and in Options -> Character set for MIME decoder, it appear

Parse error: parse error, expecting `']'' in /home/httpd/html/forum/admin/usenet.php(55) : eval()'d code on line 2
I have no idea. I can't reproduce this. Did you change the character set from the default? I'll look into it.
Closed Thread


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:15 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05224 seconds
  • Memory Usage 2,314KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (8)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete