Tags:
create new tag
, view all tags

Question

After hacking in the beta I have tripped accross an odd one (well more than one... but I'm not done tweaking/hacking).

Under ModPerl...

I click into More under a topic, I click Ref-By in all webs, the search works and I get this in my log:

[Sun Aug 11 00:07:00 2002] null: Use of uninitialized value at /usr/libdata/perl/5.00503/CGI.pm line 521.
[Sun Aug 11 00:07:00 2002] null: Use of uninitialized value at /usr/libdata/perl/5.00503/CGI.pm line 515.
[Sun Aug 11 00:07:00 2002] null: Use of uninitialized value at /usr/libdata/perl/5.00503/CGI.pm line 515.
[Sun Aug 11 00:07:00 2002] null: Use of uninitialized value at (eval 7) line 8.
[Sun Aug 11 00:07:00 2002] null: Use of uninitialized value at (eval 7) line 8.
[Sun Aug 11 00:07:00 2002] null: Use of uninitialized value at /usr/libdata/perl/5.00503/CGI.pm line 502.
[Sun Aug 11 00:07:00 2002] null: Use of uninitialized value at /usr/libdata/perl/5.00503/CGI.pm line 502.
[Sun Aug 11 00:07:00 2002] null: Use of uninitialized value at /usr/libdata/perl/5.00503/CGI.pm line 502.
[Sun Aug 11 00:07:01 2002] null: Use of uninitialized value at /usr/libdata/perl/5.00503/CGI.pm line 488.
[Sun Aug 11 00:07:01 2002] null: Use of uninitialized value at /usr/libdata/perl/5.00503/CGI.pm line 488.

Take search out of the mod perl stanza it changes to:

[Sun Aug 11 00:39:34 2002] search: Use of uninitialized value at /usr/libdata/perl/5.00503/CGI.pm line 521.
[Sun Aug 11 00:39:34 2002] search: Use of uninitialized value at /usr/libdata/perl/5.00503/CGI.pm line 515.
[Sun Aug 11 00:39:34 2002] search: Use of uninitialized value at /usr/libdata/perl/5.00503/CGI.pm line 515.
[Sun Aug 11 00:39:34 2002] search: Use of uninitialized value at (eval 3) line 8.
[Sun Aug 11 00:39:34 2002] search: Use of uninitialized value at (eval 3) line 8.
[Sun Aug 11 00:39:34 2002] search: Use of uninitialized value at /usr/libdata/perl/5.00503/CGI.pm line 502.
[Sun Aug 11 00:39:34 2002] search: Use of uninitialized value at /usr/libdata/perl/5.00503/CGI.pm line 502.
[Sun Aug 11 00:39:34 2002] search: Use of uninitialized value at /usr/libdata/perl/5.00503/CGI.pm line 502.
[Sun Aug 11 00:39:35 2002] search: Use of uninitialized value at /usr/libdata/perl/5.00503/CGI.pm line 488.
[Sun Aug 11 00:39:35 2002] search: Use of uninitialized value at /usr/libdata/perl/5.00503/CGI.pm line 488.

The normal web specific Find Topics works fine.

Was able to duplicate above with today's CVS version of search.

  • TWiki version: 03 Aug 2002 beta
  • Web server: Apache/1.3.26 (Unix) mod_perl/1.27 mod_ssl/2.8.10 OpenSSL/0.9.6a
  • Server OS: FreeBSD 4.6-STABLE
  • Web browser: IE 6.0
  • Client OS: Win 98

-- DrewCard - 11 Aug 2002

Answer

You will need to do some TWikiDebugging to pin this one down... As a first step, try turning off ModPerl completely, then run testenv (from a recent beta or CVSget:bin/testenv) to check it is not being used.

Testenv will also check your CGI.pm version - see http://donkin.org/bin/testenv for an example of a working version (though not under mod_perl.)

Is this with modified TWiki.pm code btw? If so, temporarily re-install the beta version of TWiki to see if it has this issue in your environment.

-- RichardDonkin - 11 Aug 2002

Debugging - of course. All modperl optimisations have been turned off in the .htaccess - and the server restarted. My testenv still shows mod_perl loaded, to change that I'd have to tweak the server config - would rather save that for a last resort.

My CGI.pm version is a few revs behind currently -

Mine: CGI (2.46) CGI::Carp (1.13) File::Copy (2.02)

Yours: CGI (2.56) CGI::Carp (1.14) File::Copy (2.02)

Currently running CPAN to update this.

I saw the errors above with the beta TWiki.pm (and fresh edited TWiki.cfg, was receiving another error with my Dec 2001 version of the file).

More later.

-- DrewCard - 11 Aug 2002

Okay... Updated and installed Perl 5.8 changeing my module versions to: CGI (2.81) CGI::Carp (1.23) File::Copy (2.05).

Operating sans ModPerl I get no error indications. When I put search back under ModPerl however I get the error items above.

On a hunch I put testenv under ModPerl... versions change back to CGI (2.46) CGI::Carp (1.13) File::Copy (2.02). Hmm. Rebooting the server...

Nope, not updated. Need to figure out how/where mod_perl loads/gets it's perl image.

-- DrewCard - 11 Aug 2002

Reloaded/reinstalled mod_perl and now the the live mod_perl'd versions match live versions. And now the error above no longer occurs.

This tells me there is something CGI module version specific going on in the new search script, a bug?

-- DrewCard - 11 Aug 2002

Sounds like you have fixed this - of course, mod_perl includes a compiled-in version of Perl that is supplied with the mod_perl download (whether source or binary), and this would include its own CGI.pm. It sounds like a CGI.pm version problem - if you let me know the highest version that failed, perhaps this could be checked in testenv.

-- RichardDonkin - 15 Aug 2002

Versions As reported by testenv and error state:

Perl V CGI.pm V Error Messages
5.005 2.46 Yes
5.8 2.81 No

In my case mod_perl was useing the perl version that was active at time of it's installation, necessitating my de/reinstallation of mod_perl (FreeBSD ports rule).

Anyone else seeing the above error messages?

-- DrewCard - 16 Aug 2002

Topic attachments
I Attachment Action Size Date Who Comment
Unknown file formatcfg TWiki.cfg manage 17.4 K 2002-08-11 - 17:04 DrewCard Live TWiki.cfg
Unknown file format020810 TWiki.cfg.LAST.020810 manage 14.6 K 2002-08-11 - 17:05 DrewCard Formally Live Dec 2001 TWiki.cfg
Topic revision: r6 - 2002-08-16 - DrewCard
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.