MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

This should work - may be an actual bug.



******    message to minivend-users from mediamob <mediamob@dnaco.net>     ******


Greetings all-

I recently posted to the list with a problem sorting a search based on the
code. Mike replied that the sort was failing because code is not a named
field, but rather the key, and offered a fix that looks much better than
what I was doing. Here's the page with the fix in place:

[loop search="ra=yes/tf=0/to=n/ml=100000"]
[page href=browse1 arg=[loop-code]:1]<I>MediaMob# [loop-code]</I> &nbsp
<B>[loop-field Mobtitle]</B>
[/page] arg to browse1 = [calc][loop-code][/calc]:1
&nbsp &nbsp
[order [loop-code]]Add to cart[/order]
<B>[L]Our Price[/L] [loop-price]</B><p>
[/loop][loop search="ra=yes/tf=0/to=n/ml=100000"]
[page href=browse1 arg=[loop-code]:1]<I>MediaMob# [loop-code]</I> &nbsp
<B>[loop-field Mobtitle]</B>
[/page] arg to browse1 = [calc][loop-code][/calc]:1
&nbsp &nbsp
[order [loop-code]]Add to cart[/order]
<B>[L]Our Price[/L] [loop-price]</B><p>
[/loop]

Here's what I see in the browser when I load the page:

Internal Server Error

The server encountered an internal error or misconfiguration and was
unable to complete your request.

Please contact the server administrator, @dnaco.net and inform them of the
time the error occurred, and anything you
might have done that may have caused the error.

And here is the applicable section of error.log:

pm3-1-6.dnaco.net nYaFg77d:LOCAL - [30/May/1999:13:22:31 -0400] mobtest
/cgi-bin/mobtest/numberidx Runtime error: Bad sort routine:
> sub {
>       my @a = (split /        /, $a, 2)[];
>       my @b = (split /        /, $b, 2)[];
>       my $r;
> return 0
> }
>
> syntax error at (eval 39) line 2, near "[]"
> syntax error at (eval 39) line 3, near "[]"
>                         

DOes anyone know what to do? Mike?

Would anyone be willing to try similar code on your server to see if it
may be a local problem for me?

Hopefully-

Pat Santucci

-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: