[ic] database/usertag/checkout issue
Kevin Walsh
kevin at cursor.biz
Fri Jul 21 21:22:18 EDT 2006
"Aaron Berg" <ir.gath at gmail.com> wrote:
> I have a strange database/usertag/checkout issue. The usertag works at
> all times until the user clicks 'place order', then it dies on a
> 'database_exists_ref'. Is there something special a usertag must do
> during checkout to access databases?
>
While a call to the database_exists_ref() subroutine, from local
UserTags, works when called from pages, it doesn't always work when
called from all other contexts.
Try the following in your UserTag instead:
Replace:
my $db = database_exists_ref('foo') or die 'No foo for you';
With:
$Tag->perl({ table => 'foo' });
my $db = $Db{foo} or die "I ain't gettin' on no plane - foo";
>
> [snip]
>
> ...logs the following error:
> Can't locate object method "FETCH" via package "DBI::db"
>
> I then also get:
> Can't use string ("0") as a HASH ref while "strict refs"
>
> I'm assuming the second message is a result of the first one.
>
Error messages are not always helpful without seeing the code to
which they relate, but the suggestion above may be helpful to you.
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin at cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/
More information about the interchange-users
mailing list