CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Error after updating Server and OS

 



upperking
New User

Nov 5, 2013, 5:29 AM

Post #1 of 5 (1524 views)
Error after updating Server and OS Can't Post

My server updated the OS and hardware and since then I get this error when accessing a page.

Software error:

usage: $result_diff = timediff($result1, $result2);
For help, please send mail to the webmaster (webmaster@upperboards.com), giving this error message and the time and date of the error.


(This post was edited by upperking on Nov 5, 2013, 5:40 AM)


vdthoughts
New User

Nov 5, 2013, 6:57 AM

Post #2 of 5 (1510 views)
Re: [upperking] Error after updating Server and OS [In reply to] Can't Post

There are two things that can be verified :

1. Check if the server's date and time settings is aligned to the correct "Time zone" after the server was updated.
2. Since there was day-light savings in some countries, the time difference in the script could have varied. You might have to re-look this if your server is a distributed system.


upperking
New User

Nov 5, 2013, 7:14 AM

Post #3 of 5 (1507 views)
Re: [vdthoughts] Error after updating Server and OS [In reply to] Can't Post


In Reply To
There are two things that can be verified :

1. Check if the server's date and time settings is aligned to the correct "Time zone" after the server was updated.
2. Since there was day-light savings in some countries, the time difference in the script could have varied. You might have to re-look this if your server is a distributed system.




Code
use CGI::Carp "fatalsToBrowser"; 
use CGI qw(:standard);
use Benchmark;
my $benchtime0 = Benchmark->new;
$CGI::POST_MAX=1024 * 150;





Code
if ($mmode ne "on") { 
my $benchtime1 = new Benchmark;
$timer = timestr(timediff($benchtime1,$benchtime0));
($tr, $tr, $tr, $a1, $b2, $c3, $d4, $e5, $f6, $g7, $h8, $i9, $j10, $k11) = split(/ /,$timer);

#$print .= qq~<div align="center" class="bsmall">Script Benchmark: $a1 $b2 $c3 $d4 $e5 $f6 $g7 $h8 $i9 $j10 $k11</div>~;

if ($query -> param('abc') ne 'xyz') {
#print &tempssi1("$print");
print $print;
}

# $print =~ s/\<\% URL \%\>/$urladdy/sg;

} else {
if ($foper1 eq "yes") {
$mm .= qq~$errorban~;
}
if ($foper2 eq "yes") {
$mm .= qq~$errorban1~;

}
if ($query -> param('abc') ne 'xyz') { print $mm; }

}
if ($query -> param('abc') ne 'xyz') {
#print &tempssi1("$footer");
print $footer;
exit;
}



FishMonger
Veteran / Moderator

Nov 5, 2013, 7:32 AM

Post #4 of 5 (1501 views)
Re: [vdthoughts] Error after updating Server and OS [In reply to] Can't Post

This Q is cross posted on devshed.
http://forums.devshed.com/perl-programming-6/benchmark-pm-error-953968.html#post2910951


upperking
New User

Nov 5, 2013, 7:41 AM

Post #5 of 5 (1498 views)
Re: [FishMonger] Error after updating Server and OS [In reply to] Can't Post

Yes these both looked like good forums so I would try both to see if I could find some help..
at times some places you will only hear crickets..
so far you both have been helpfull.


(This post was edited by upperking on Nov 5, 2013, 7:42 AM)

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives