[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] 4.02 -> 4.03 Problems
****** message to minivend-users from Mike Heins <mikeh@minivend.com> ******
Quoting Chris Rapier (rapier@psc.edu):
> ****** message to minivend-users from Chris Rapier <rapier@psc.edu> ******
>
> 1) The following code works under 4.02 but not under 4.03
> [item-list]
> [perl tables="products"]
> $ref = $Db{products};
> $column = "quantity";
> $cart_sku = $Items->[$i]{'code'};
> $cart_quantity = $Items->[$i]{'quantity'};
> $db_quantity = $ref->field($cart_sku, $column);
> $difference = $db_quantity - $cart_quantity;
> # checks to see if they order more than we have
> # if they do their order is reduced automagically
> if ($difference < 0){
> $Items->[$i]{'quantity'} = $db_quantity;
> $Scratch->{'overorder_flag'} = 1;
> }
> $i++;
> return "";
> [/perl]
> [/item-list]
>
> Under 4.03 I get an error message of:
> 10.1.1.2 qJjxo6Jb:10.1.1.2 - [31/March/2000:01:11:43 -0500] SCC2
> /cgi-bin/SCC2/process.html Safe: eval string trapped by operation mask
> at /usr/home/rapier/mvend43/lib/Vend/Table/Common.pm line 255
For things like this, it is important to know what else changed.
Since there were no changes to Common.pm in the version, something
must have changed on your system.
-- Change to Storable format
-- no Safe::Hole module
>
> This is vexing because I don't know enough about the Safe.pm to know
> exactly where the problems is happening. My guess is when I'm trying to
> set $Items->[$i]{'quantity'} but if it is that how do I get around the
> Safe trap?
>
> 2) I still can't figure out how to get the history function to work. At
> all. I'm totally lost. I cut and pasted the user tag from the simple
> demo into my catalog. I cut and pasted the appropriate lines from
> basket.html. It always returns me to the index page. It seems like
> nothing is being pushed on to the $Vend::Session->{History} stack. I
> tried accessing it though a [perl] but nothing there either. While this
> isn't super critical to this project it would be much nicer than the
> javascript history hack.
Did you clip the "History 10" directive in catalog.cfg?
--
Internet Robotics, 131 Willow Lane, Floor 2, Oxford, OH 45056
phone +1.513.523.7621 fax 7501 <mikeh@minivend.com>
Light travels faster than sound. This is why some people appear bright
until you hear them speak. -- unknown
-
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