<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Thanks again to everyone who helped with the overdue fine processing, both with code help and explanatory help for why it works the way it does. Chris, thanks for the bugfix for cronjobs/fines2.pl - changing "C4::context" to "C4::Context" did indeed fix that problem.<br><br>cronjobs/fines2.pl still died with the following error:<br><br> Can't use string ("0") as a HASH ref while "strict refs" in use at /usr/share/koha/lib/C4/Overdues.pm line 511.<br><br>Poring through the code, it appears that this command caused the error:<br><br> &logaction(<br> C4::Context->userenv->{'number'},<br> "FINES",<br> $type,<br> $borrowernumber,<br> "due=".$due." amount=".$amount." itemnumber=".$itemnum<br> ) if C4::Context->preference("FinesLog");<br><br><br>I changed it to this, which seemed to fix the problem:<br><br> &logaction(<br> "",<br> "FINES",<br> $type,<br> $borrowernumber,<br> "due=".$due." amount=".$amount." itemnumber=".$itemnum<br> ) if C4::Context->preference("FinesLog");<br><br><br>I'm not sure what C4::Context->userenv->{'number'} was supposed to be, but I was guessing that it would normally be assigned a value if the script was running in a web environment but not in a cron environment. Since blanking it out didn't seem to hurt anything, I decided it was a Good Enough fix for me. Just in case anyone else needs to know.<br><br><br><br /><hr />Connect and share in new ways with Windows Live. <a href='http://www.windowslive.com/share.html?ocid=TXT_TAGHM_Wave2_sharelife_012008' target='_new'>Get it now!</a></body>
</html>