07 Jul 2006, 17:38
Reply
Reply with Quote
Like (0)
#1
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
Reply
Reply with Quote
Like (0)
#2
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
Reply
Reply with Quote
Like (0)
#3
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
Reply
Reply with Quote
Like (0)
#4
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
Reply
Reply with Quote
Like (0)
#5
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
Reply
Reply with Quote
Like (0)
#6
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
Reply
Reply with Quote
Like (0)
#7
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
Reply
Reply with Quote
Like (0)
#8
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
Reply
Reply with Quote
Like (0)
#9
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
Reply
Reply with Quote
Like (0)
#10
Join Date:
Jun 2006
Posts:
14
Plugin Contributions:
0
Re: operand types
Sorry about that, it is - Zen Cart 1.2.7