Zen Cart Logo
Forums / General Questions / operand types

operand types

Locked

Views: 1,721

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
7 Jul 2006, 5:38 PM
#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.

7 Jul 2006, 5:47 PM
#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 = '';
8 Jul 2006, 11:43 AM
#3
superprg avatar

superprg

Totally Zenned

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

Re: operand types

Can you post the file shopping_cart.php?
Thanks

11 Jul 2006, 5:35 PM
#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, 6:38 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: operand types

Just as a test, make a file: test.php

<?php
  $calculation = 27;
  $calculation2 = 27;

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

  echo $calculation . ' vs ' . $calculation2;

?>

The results will be: 27 vs 54

There is a difference ...

11 Jul 2006, 11:22 PM
#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, 1:42 AM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
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, 8:38 PM
#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, 8:57 PM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
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, 4:56 PM
#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