Gossamer Forum
Home : Products : DBMan : Installation :

error @ line 63 of db.cgi

Quote Reply
error @ line 63 of db.cgi
Although the script is working fine, my server error log records the following whenever I perform a search.

Undefined subroutine &main::timediff called at db.cgi line 63.

The script is stored at http://www.kenkuhl.com/fastfood/

Any ideas?

Quote Reply
Re: error @ line 63 of db.cgi In reply to
Looks like perhaps this line:

# Stop the timer and print.
if ($db_benchmark) { $t1 = new Benchmark; print "<h6>Processing Time: " . timestr(timediff($t1, $t0)) . "</h6>"; }

In your .cfg file you can comment out the line for benchmarking if you are not using it.

# $db_benchmark = 0;

I think this will stop the error from reporting.

Hope this helps

Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/
Quote Reply
Re: [kenmkuhl] error @ line 63 of db.cgi In reply to
I just noticed I have the same problem (and have had for awhile). I fixed it by changing { require Benchmark } to { use Benchmark }.
----
Charles Twardy
<a href="http://sarbayes.org">sarbayes.org</a>