I installed dbman first, all worked fine.
I added the mod 'Preview', all worked fine.
I added the mod 'Validate', all went wrong. All kinds off error appear, so after 3 day's (and nights) I deleted ecerything to begin from scratch.
I installed dbman, all worked fine.
I added the mod 'Validate', all worked fine.
I added the mod 'Preview', pushed the 'Preview Record' button and all went wrong again.
This time the error is around line 66:
Undefined subroutine &main::timediff called at /home/blahblah/cgi-bin/dbman/db.cgi line 66.
Around line 66 I have:
55: require "auth.pl"; # Authorization Routines
56: };
57: if ($@) { &cgierr ("Error loading required libraries.\nCheck that they exist, permissions are set correctly and that they compile.\nReason: $@"); }
58:
59: # If we are using benchmarking, then we start a timer and stop it around &main. Then we print the difference.
60: if ($db_benchmark) { eval { require Benchmark; }; if ($@) { &cgierr ("Fatal Error Benchmark Module not installed: $@"); } $t0 = new Benchmark; }
61:
62: eval { &main; }; # Trap any fatal errors so the program hopefully
63: if ($@) { &cgierr("fatal error: $@"); } # never produces that nasty 500 server error page.
64:
65: # Stop the timer and print.
66: if ($db_benchmark) { $t1 = new Benchmark; print "<h6>Processing Time: " . timestr(timediff($t1, $t0)) . "</h6>"; }
67:
68: # Display debugging information if requested.
69: &cgierr("Debug Information") if ($db_debug);
70:
71: exit; # There are only two exit calls in the script, here and in in &cgierr.
72:
73: sub main {
74: # --------------------------------------------------------
75: my ($status, $uid);
I cannot find anything wrong, but I'm not an expert on perl...
So my question is, what is wrong?
Second; is there a chance that these 2 mod's can not live together; ading 1 is no problem bur when adding the second all went wrong.
Is there someone outthere who has them both in dbman and working fine?
I would like to ad another mod 'upload-file'to it but if this don't work I surely can forget the third mod!
I added the mod 'Preview', all worked fine.
I added the mod 'Validate', all went wrong. All kinds off error appear, so after 3 day's (and nights) I deleted ecerything to begin from scratch.
I installed dbman, all worked fine.
I added the mod 'Validate', all worked fine.
I added the mod 'Preview', pushed the 'Preview Record' button and all went wrong again.
This time the error is around line 66:
Undefined subroutine &main::timediff called at /home/blahblah/cgi-bin/dbman/db.cgi line 66.
Around line 66 I have:
55: require "auth.pl"; # Authorization Routines
56: };
57: if ($@) { &cgierr ("Error loading required libraries.\nCheck that they exist, permissions are set correctly and that they compile.\nReason: $@"); }
58:
59: # If we are using benchmarking, then we start a timer and stop it around &main. Then we print the difference.
60: if ($db_benchmark) { eval { require Benchmark; }; if ($@) { &cgierr ("Fatal Error Benchmark Module not installed: $@"); } $t0 = new Benchmark; }
61:
62: eval { &main; }; # Trap any fatal errors so the program hopefully
63: if ($@) { &cgierr("fatal error: $@"); } # never produces that nasty 500 server error page.
64:
65: # Stop the timer and print.
66: if ($db_benchmark) { $t1 = new Benchmark; print "<h6>Processing Time: " . timestr(timediff($t1, $t0)) . "</h6>"; }
67:
68: # Display debugging information if requested.
69: &cgierr("Debug Information") if ($db_debug);
70:
71: exit; # There are only two exit calls in the script, here and in in &cgierr.
72:
73: sub main {
74: # --------------------------------------------------------
75: my ($status, $uid);
I cannot find anything wrong, but I'm not an expert on perl...
So my question is, what is wrong?
Second; is there a chance that these 2 mod's can not live together; ading 1 is no problem bur when adding the second all went wrong.
Is there someone outthere who has them both in dbman and working fine?
I would like to ad another mod 'upload-file'to it but if this don't work I surely can forget the third mod!