Hello All,
I can run htsearch from the command line and it outputs fine, but I get 500
internal server error when running from a browser. I ran search.pl from the
command line and I got this:
defined(%hash) is deprecated at udmDB.pm line 132 (#1)
(D deprecated) defined() is not usually useful on hashes because it
checks for an undefined scalar value. If you want to see if the hash
is empty, just use if (%hash) { # not empty } for example.
(Maybe you should just omit the defined()?)
Content-type: text/html
Reference found where even-sized list expected at ./search.pl line 40,
<TEMPLATE> line 224 (#2)
(W misc) You gave a single reference where Perl was expecting a list
with an even number of elements (for assignment to a hash). This usually
means that you used the anon hash constructor when you meant to use
parens. In any case, a hash requires key/value pairs.
%hash = { one => 1, two => 2, }; # WRONG
%hash = [ qw/ an anon array / ]; # WRONG
%hash = ( one => 1, two => 2, ); # right
%hash = qw( one 1 two 2 ); # also fine
Use of uninitialized value in substitution (s///) at udmParser.pm line 23,
<TEMPLATE> line 224 (#3)
(W uninitialized) An undefined value was used as if it were already
defined. It was interpreted as a "" or a 0, but maybe it was a mistake.
To suppress this warning assign a defined value to your variables.
To help you figure out what was undefined, perl tells you what operation
you used the undefined value in. Note, however, that perl optimizes
your
program and the operation displayed in the warning may not necessarily
appear literally in your program. For example, "that $foo" is
usually optimized into "that " . $foo, and the warning will refer to
the concatenation (.) operator, even though there is no . in your
program.
Use of uninitialized value in substitution (s///) at udmParser.pm line 24,
<TEMPLATE> line 224 (#3)
Use of uninitialized value in substitution (s///) at udmParser.pm line 25,
<TEMPLATE> line 224 (#3)
Use of uninitialized value in substitution (s///) at udmParser.pm line 26,
<TEMPLATE> line 224 (#3)
Use of uninitialized value in substitution (s///) at udmParser.pm line 27,
<TEMPLATE> line 224 (#3)
Use of uninitialized value in substitution (s///) at udmParser.pm line 28,
<TEMPLATE> line 224 (#3)
Use of uninitialized value in substitution (s///) at udmParser.pm line 29,
<TEMPLATE> line 224 (#3)
Use of uninitialized value in substitution (s///) at udmParser.pm line 30,
<TEMPLATE> line 224 (#3)
Use of uninitialized value in substitution (s///) at udmParser.pm line 32,
<TEMPLATE> line 224 (#3)
Use of uninitialized value in substitution (s///) at udmParser.pm line 33,
<TEMPLATE> line 224 (#3)
Use of uninitialized value in substitution (s///) at udmParser.pm line 39,
<TEMPLATE> line 224 (#3)
Use of uninitialized value in substitution (s///) at udmParser.pm line 40,
<TEMPLATE> line 224 (#3)
Use of uninitialized value in substitution (s///) at udmParser.pm line 41,
<TEMPLATE> line 224 (#3)
Use of uninitialized value in substitution (s///) at udmParser.pm line 42,
<TEMPLATE> line 224 (#3)
Use of uninitialized value in split at udmParser.pm line 51, <TEMPLATE> line
224 (#3)
Use of uninitialized value in substitution (s///) at udmTemplate.pm line 58,
<TEMPLATE> line 224 (#3)
<!-- start code from hayestraining.com -->
The code after here looks fine.
Any ideas??
Thanks,
Wendall
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
ht://Dig general mailing list: <[email protected]>
ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-general