[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ic] database/usertag/checkout issue


"Aaron Berg" <suppressed> 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
 _/ _/    _/          _/ _/     _/    _/  _/_/    suppressed
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/
_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.