[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: this error-> estes /cgi-bin/estes/order Safe: syntax error at(eval 59) line 1, near "( ||" 1 * ( || 0)
****** message to minivend-users from sparky@inetarena.com ******
On Thu, 20 May 1999, Mike Hellers wrote:
> ****** message to minivend-users from Mike Hellers <mike.hellers@4thwave.lu> ******
>
>
> If you are using the code from the demo catalog, you should check that you
> do have
> all the item-fields which are used in the demo-catalog also in your
> products.asc file.
> (or in the database)
I figured it was something like that i was going through every file i
could think was involved and just didnt see it. its like missing that
terminating semi-colon for two hours you know.
> The error message could as example be caused by the follwoing expression,
> which can be found
> in the checkout page:
> [summary amount="[calc][item-quantity] * ([item-field weight] ||
> 0)[/calc]" hide=1]
The other interesting thing about that statment is this. That I had
included a weight field in the products.asc file. However, I set the value
to a default 0 I suspect that what happens is this:
At some point in the perl code of minivend it checks with a conditional
if to see if a value is there. perl interpolates a 0 value into nothing
when expressing it as a string rather than a number. It (perl) does as i
recall have a "0" value which is different than 0 value ie ("0" == zero
but true, where as 0 == not true).
Ive run into this with my own cgi and system admin scritps. At some point
in the future it would be interesting to experiment and see if a quoted
field in the products.asc would produce 0 or "0" or if quoting the field
in the code would make a difference. (ie "[item-field weight]" rather than
[item-field weight]).
Thanks for taking some time out of your day to sort that out for me. Im
not sure where else in the minivend system this may occure but its an
interesting little quirk that it seems to have passed down from perl.
I have noticed a simular occurance happen with a sub routeen that i wrote
for this cart. The item codes are strings of numbers with a hyphen then
three more numbers. The perl routeen accepted the string and did a
subtraction opperation and returned the result as the item-code ;-)
until i quoted the [item-code] that is passed to the routeen. Silly
mistake but still it does give some clues as to the underworkings of
minivend.
> And if the item-field weight does not exist in your products-databse or
> file, the result
> will be the mentionend error in the log-file.
>
> Regards,
> ....mike (yes, yet another mike on this mailing-list)
Thanks again Mike
sparky
>
> >****** message to minivend-users from sparky@inetarena.com ******
> >
> >
> >OK, Ive just remade the catalog, and even useing the order page from the
> >demo catalog i get this error
> >
> >
> >estes /cgi-bin/estes/order Safe: syntax error at (eval 59) line 1, near
> >"(||" 1 * ( || 0)
> >
> >
> >
> >The ordering is now working, mailing properly and such, calculating totals
> >and this is the same problem that i ran into yesterday.
> >
> >So im begining to suspect that it has to do with the platform and the
> >perl 5 install.
> >
> >This is the same error that i have been getting in the past. I suspect
> >that the ordering will simply stop working again. I also suspect that it
> >may have to do with the session_db and expireing sessions but im just
> >plain not sure. Im grasping at straws.
> >
> >any insite would be helpful.
> >
> >
> >
> >
> >
> >sparky
> >
> >
> >
> >"Dragons have a sardonic sence of humor, I noticed as I was standing there
> >in the self-made hell of my dream. I awoke screaming, "I NEED A MAP!"."
> >
> >Jerry Leith
> >from "Poetry From my Bed"
> >
> >-
> >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
>
> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> 4th Wave Europe S.A. Telecommunication Solution Provider
> Mike Hellers System Engineer
> 90a, rte de Strasbourg Voice : +352 40 55 40 411
> P.O. Box 1171 Fax : +352 40 55 40 6411
> L-1011 Luxembourg Western Europe
> official PSINet Business partner http://www.4thwave.lu/
> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> -
> 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
>
-
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