|
From: Chris W. <ch...@cw...> - 2001-10-28 01:29:16
|
* Mike Eggleston (mi...@mi...) [011027 21:28]:
> I finally got fruit-0.09 to load into my installation, but then trying
> to access the page to see how it all works I received this message:
>
> Can't use string ("order") as a HASH ref while "strict refs" in use
> at /usr/lib/perl5/site_perl/5.6.1/SPOPS/DBI.pm line 296.
>
> What do I do now?
Line 12 of your handler
($WEBSITE_DIR/pkg/fruit-0.09/YourSite/Handler/Fruit.pm) should look
like this:
my $fruits = eval { $R->fruit->fetch_group({ 'order' => 'name' }) };
and NOT this:
my $fruits = eval { $R->fruit->fetch_group( 'order' => 'name' ) };
I have the former in the code, but maybe there's a mixup somewhere and
you have the latter.
In any case, the error results from a 'fetch_group()' call somewhere
that is passing a hash of parameters rather than a hashref.
Hope this helps,
Chris
--
Chris Winters (ch...@cw...)
Building enterprise-capable snack solutions since 1988.
|