• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Use of uninitialized value in substitution (s///) at (eval 27) line 44. Use of uninitialized value in substitution (s///) at (eval 27) line 44. Use of uninitialized value in substitution (s///) at (eval 27) line 44.

when:

sh -c "cd /XXXX/bin; ./mailnotify -q sendmail=1 webs=Main TWiki Support Blog Know SandBox"

(I just realised i had the wrong name for 'Sandbox', I've corrected that now.)

is run from cron, same thing happens when it's run from CLI.

I am also getting errors from Net.pm:

ERROR: Can't send mail, missing 'From:' at /XXXX/lib/TWiki/Net.pm line 256.

line 256:

in sub _sendEmailByNetSMTP():

254    unless( $from ) {
255        # SMELL: should be a TWiki::inlineAlert
256        die "ERROR: Can't send mail, missing 'From:'";
257    }
258
259    # extract @to from 'To:', 'CC:', 'BCC:'


I've re-run it from CLI, and it seems to be getting the Net.pm errors on certain webs on my wiki; doesn't do it one one of them. I'll go see what's different in WebNotify for each. It should be fetching the user e-mail for that topic, from Main/UsersTopic, but it doesn't seem to be doing that.

ADDED 23-02-2006: no diffs except for some later edits, and my wikiname on the site as a bullet item (as per the instructions).


You don't say what version of the code you are using, but the fact that you are running mailnotify from 'bin' suggests it's Cairo (TWiki-3). TWiki-4 uses tools/mailnotify. If so, please raise this issue in the Support web. This Bugs web is for tracking issues with the head of the code development only.

Discarding pending clarification of code version.

CC


No, TWiki 4; i fetch it straight from SVN, and merge in changes. mailnotify is in bin due to my putting in there. i'll move it since i just realised the potential damage it could do.

no 'Rev' info in 'mailnotify' but 'stat' reports

Access: 2006-02-22 23:53:26.813641705 -0500
Modify: 2006-02-16 16:57:50.000000000 -0500
Change: 2006-02-17 04:22:16.568079093 -0500

TWiki:Main.EricCote


25-02-2006: Earlier today I ran view from CLI; upon scrolling up to see the output, I noticed those "Use of uninitialized value in substitution (s///) at (eval 27) line 44." lines when it ran. They appeared early on in view's run. So I don't think it's just mailnotify, but something in lib/. Hmm, I wonder what view calls. goes to see.

OK, ran view as: perl -dT -I. -Ibin bin/view and got where it's erroring:

[Sat Feb 25 09:19:49 2006] view: Use of uninitialized value in substitution (s///) at (eval 24)[/usr/share/perl/5.8/CGI.pm:820] line 44.
[Sat Feb 25 09:19:49 2006] view: Use of uninitialized value in substitution (s///) at (eval 24)[/usr/share/perl/5.8/CGI.pm:820] line 44.
[Sat Feb 25 09:19:50 2006] view: Use of uninitialized value in substitution (s///) at (eval 24)[/usr/share/perl/5.8/CGI.pm:820] line 44.
-----------
516:                 my $bytesread = $MOD_PERL ? $self->r->read($buffer,$maxbuffer) : read(STDIN,$buffer,$maxbuffer);
517:                 $tmplength -= $bytesread;
518:          }
519:          $self->cgi_error("413 Request entity too large");
520:          last METHOD;
521:       }
522:
523:      # Process multipart postings, but only if the initializer is
524:      # not defined.

in sub init. My CGI.pm is $Id: Item1693.txt,v 1.12 2007/02/04 12:30:26 CrawfordCurrie Exp $. My perl is Debian's 5.8.8-2 (second Debian packaging rev. of perl 5.8.8).


28-02-2006

command line: (cd /XXX; perl -d -I/XXX/bin -I/XXX/lib tools/mailnotify -q sendmail=1)

main::(tools/mailnotify:46):    my $report = TWiki::Contrib::Mailer::mailNotify( \@webs, undef, $verbose );
  DB<1> 
Use of uninitialized value in substitution (s///) at (eval 24)[/usr/share/perl/5.8/CGI.pm:820] line 44.
 at (eval 24)[/usr/share/perl/5.8/CGI.pm:820] line 44
        CGI::url('CGI=HASH(0x10c7c34c)', '-relative', 1) called at /XXX/lib/TWiki/Plugins/DBCachePlugin.pm line 47
        TWiki::Plugins::DBCachePlugin::initPlugin('WebHome', 'Main', 'guest', 'TWiki') called at /XXX/lib/TWiki/Plugin.pm line 192
        TWiki::Plugin::registerHandlers('TWiki::Plugin=HASH(0x10768648)', 'TWiki::Plugins=HASH(0x10c7c31c)') called at /XXX/lib/TWiki/Plugins.pm line 241
        TWiki::Plugins::enable('TWiki::Plugins=HASH(0x10c7c31c)') called at /XXX/lib/TWiki.pm line 1315
        TWiki::new('TWiki', 'guest') called at /XXX/lib/TWiki/Contrib/Mailer.pm line 81
        TWiki::Contrib::Mailer::mailNotify('ARRAY(0x10015ad0)', 'undef', 0) called at tools/mailnotify line 46
Use of uninitialized value in substitution (s///) at (eval 24)[/usr/share/perl/5.8/CGI.pm:820] line 44.
 at (eval 24)[/usr/share/perl/5.8/CGI.pm:820] line 44
        CGI::url('CGI=HASH(0x10c7c34c)', '-relative', 1) called at /XXX/lib/TWiki/Plugins/NatSkinPlugin.pm line 155
        TWiki::Plugins::NatSkinPlugin::doInit() called at /XXX/lib/TWiki/Plugins/NatSkinPlugin.pm line 117
        TWiki::Plugins::NatSkinPlugin::initPlugin('WebHome', 'Main', 'guest', 'TWiki') called at /XXX/lib/TWiki/Plugin.pm line 192
        TWiki::Plugin::registerHandlers('TWiki::Plugin=HASH(0x11272cf0)', 'TWiki::Plugins=HASH(0x10c7c31c)') called at /XXX/lib/TWiki/Plugins.pm line 241
        TWiki::Plugins::enable('TWiki::Plugins=HASH(0x10c7c31c)') called at /XXX/lib/TWiki.pm line 1315
        TWiki::new('TWiki', 'guest') called at /XXX/lib/TWiki/Contrib/Mailer.pm line 81
        TWiki::Contrib::Mailer::mailNotify('ARRAY(0x10015ad0)', 'undef', 0) called at tools/mailnotify line 46
main::(tools/mailnotify:47):    print $report."\n" if $verbose;

HTH

This seems to be a problem in DBCachePlugin. CC


yup, seems to have been, now it's only doing it in NatSkinPlugin calls. thanks for the pointers. (DBCachePlugin got updated recently, which is why i haven't seen the errors from it.)


This error was not specifix to the DBCachePlugin. Has been fixed in a couple of places.

MD

ItemTemplate
Summary uninited errors
ReportedBy TWiki:Main.EricCote
Codebase

SVN Range 8800-8854
AppliesTo Extension
Component DBCachePlugin
Priority Normal
CurrentState Closed
WaitingFor

Checkins 9171 9173
TargetRelease major
Edit | Attach | Watch | Print version | History: r12 < r11 < r10 < r9 < r8 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r12 - 2006-03-30 - MichaelDaum
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback