[ic] $Sql{orderline} fails?

Peter peter at pajamian.dhs.org
Sat Dec 12 23:23:46 UTC 2009

On 13/12/09 09:22, Grant wrote:
> I have a usertag I've been using for a while which creates a PDF file
> of an order.  This morning I was making some modifications to it, and
> it stopped working with "Couldn't get orderline handle" in the
> error.log.  I restored the original file, but it still fails with that
> error, even after rebooting the machine.  Here is the pertinent code:
> my $dbh = $Sql{orderline} or die "Couldn't get orderline handle\n";
> The orders table is still being read and written to just fine.  Does
> anyone know what causes a line like the above to fail?

Make sure that you have orderline table open first, ie:

my $dbh = $Sql{orderline} or die "Couldn't get orderline handle\n";


More information about the interchange-users mailing list