[ic] Can't setup DBI handleof DBI::st=HASH(0xaff6bb0) to DBD::mysql::st_mem: unknown_mem package

Peter peter at pajamian.dhs.org
Wed Apr 6 12:34:57 UTC 2011


On 06/04/11 19:36, Gert van der Spoel wrote:
> In case there is anybody who has a great idea, please don't be shy! :)
> 
> 
> [rt.icdevgroup.org #346] Can't setup DBI handleof DBI::st=HASH(0xaff6bb0) to
> DBD::mysql::st_mem: unknown_mem package
> 
> IC: 5.7.6  (but possibly other versions)
> Perl: 5.12.3
> 
> When doing something like 
> [xxx-exec bar_link]yyyy[/xxx]
> 
> The following crash occurs:
> Can't setup DBI handle of DBI::st=HASH(0xaff6bb0) to DBD::mysql::st_mem:
> unknown _mem package at
> /export/opt/perl-5.12.3/lib/site_perl/5.12.3/i686-linux/DBI.pm line 1285.
> 
> This happens in
> /path/to/interchange/catalog_before.cfg
> 
> line 70:
>         my $record =  tag_data($base, 'n/a', $code, { hash => 1 });
> 
> Currently there are 2 possible workarounds:
> 1) Downgrade to Perl 5.10
> 2) set AllowGlobal <catalog>   for the catalog using this code.

Found another (better) workaround.  In catalog_before.cfg, add:
Autoload <<EOA
[perl cat][/perl]
EOA

This forces Interchange to load in the cat table ahead of time and then 
the bar_link sub doesn't barf on it.  For some reason interchange isn't 
loading it in otherwise.  I'm wondering if there's a better way to do 
this, though, rather than forcing it to load on every page, and 
hard-coding cat as the table that is expected to be required?


Peter




More information about the interchange-users mailing list