Forums / General Questions / operand types

operand types

Locked
Results 1 to 10 of 10
This thread is locked. New replies are disabled.
07 Jul 2006, 17:38
#1
frostyy avatar

frostyy

New Zenner

Join Date:
Jun 2006
Posts:
14
Plugin Contributions:
0

operand types

Hi,

I had someone send me this error -

Fatal error: Unsupported operand types in
/home/martianc/public_html/shop/includes/classes/shopping_cart.php on
line 763

They are using a safari browser, it doesn't seem to happen in other browsers. I am using version 1.2, it has been heavily customizable so upgrading isn't really an easy option. Can anyone shed any light here? Thanks a million.
07 Jul 2006, 17:47
#2
frostyy avatar

frostyy

New Zenner

Join Date:
Jun 2006
Posts:
14
Plugin Contributions:
0

Re: operand types

Sorry, the line above shows:

$discount_type_id = '';
08 Jul 2006, 11:43
#3
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Posts:
1,349
Plugin Contributions:
0

Re: operand types

Can you post the file shopping_cart.php?
Thanks
11 Jul 2006, 17:35
#4
frostyy avatar

frostyy

New Zenner

Join Date:
Jun 2006
Posts:
14
Plugin Contributions:
0

Re: operand types

Actually, I was looking at the wrong shopping cart page. The correct one has the Dual Pricing mod making line 763:

$attributes_price += $attribute_price;

changing this to


$attributes_price == $attribute_price;


seems to fix the problem but I don't know if it will mess with anything else?
11 Jul 2006, 18:38
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Posts:
62,757
Plugin Contributions:
1

Re: operand types

Just as a test, make a file: test.php
[PHP]<?php
$calculation = 27;
$calculation2 = 27;

$calculation == $calculation;
$calculation2 += $calculation2;

echo $calculation . ' vs ' . $calculation2;

?>
[/PHP]
The results will be: 27 vs 54

There is a difference ...
11 Jul 2006, 23:22
#6
frostyy avatar

frostyy

New Zenner

Join Date:
Jun 2006
Posts:
14
Plugin Contributions:
0

Re: operand types

I see, so do you have any idea why this wouldn't work with += ?
12 Jul 2006, 01:42
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Posts:
62,757
Plugin Contributions:
1

Re: operand types

What version php?

What version Zen Cart?

You have an add-on ... have you posted on the thread for that contribution for this issue?
12 Jul 2006, 20:38
#8
frostyy avatar

frostyy

New Zenner

Join Date:
Jun 2006
Posts:
14
Plugin Contributions:
0

Re: operand types

PHP - 4.4.2

Zen - the last version of 1.2

I haven't posted anywhere else, I was thrown with the new forum and wasnt sure where to post it.
12 Jul 2006, 20:57
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Posts:
62,757
Plugin Contributions:
1

Re: operand types

Could you look in your Admin ... Tools ... Server Info ... and get the exact version of Zen Cart?

Current version is v1.3.0.2 ...
13 Jul 2006, 16:56
#10
frostyy avatar

frostyy

New Zenner

Join Date:
Jun 2006
Posts:
14
Plugin Contributions:
0

Re: operand types

Sorry about that, it is - Zen Cart 1.2.7