If this is your first visit, check our documentation. To post, register or login.
Forums / Upgrading Your Zen Cart / Upgrading from 1.3.x to 1.3.9 / Prices disappeared when I updated?

Prices disappeared when I updated?

Locked

Started by buyitrighthere on 12 Jul 2010, 8:44 PM · Views: 2,668

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
12 Jul 2010, 8:44 PM
#1
buyitrighthere avatar

buyitrighthere

New Zenner

Join Date:
Jul 2010
Posts:
3
Plugin Contributions:
0

Post #1 by buyitrighthere

Hello, a while ago I updated my website to 1.3.9.

But I encountered a problem that I have not managed to solve, and I hope maybe someone can help me :)

I followed the instructions and installed the update, but despite that, all prices on the website disappeared.

Now the Price/Special/Sale column (under "Categories") shows following message.

  • Warning: round() expects parameter 2 to be long, string given in /customers/buyitrighthere.com/buyitrighthere.com/httpd.www/admin/includes/functions/general.php on line 1469

Warning: number_format() expects parameter 2 to be long, string given in /customers/buyitrighthere.com/buyitrighthere.com/httpd.www/admin/includes/classes/currencies.php on line 53
:-

I've tried to look through the php files but were unable to find anything wrong, therefore I now turn to you guys and
ask for help:)

Hope you understand something of my problem :)

// Tobias Karlsson from Sweden.

12 Jul 2010, 9:00 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #2 by kobra

I followed the instructions and installed the update,
Did you re-run zc_install and upgrade your database?

Zen-Venom Get Bitten

27 Jul 2010, 8:07 PM
#3
buyitrighthere avatar

buyitrighthere

New Zenner

Join Date:
Jul 2010
Posts:
3
Plugin Contributions:
0

Post #3 by buyitrighthere

Hello, no I did not run the zc_install again. I just changed the PHP files that needed to be changed.
I just followed the "Read me" file.
And when I was done all the prices were gone and those error codes was shown.

28 Jul 2010, 3:06 PM
#4
ajeh avatar

ajeh

Oba-san

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

Post #4 by ajeh

Could you check that the file, on the server, for:
/admin/includes/functions/general.php

is the same as what is in the current v1.3.9 that you upgraded to or that if you merged the file with add ons that you have not overwritten the code?

I am not sure what version of v1.3.9 you installed but the line number sounds off ...

Could you see what you have on lines 1460 to 1475 in that file, on the server?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

8 Aug 2010, 9:20 PM
#5
buyitrighthere avatar

buyitrighthere

New Zenner

Join Date:
Jul 2010
Posts:
3
Plugin Contributions:
0

Post #5 by buyitrighthere

Hello, This is whats between line 1460 to 1475.

}

////

// Wrapper function for round()

function zen_round($number, $precision) {

/// fix rounding error on GVs etc.

$number = round($number, $precision);



return $number;

}

////

// Add tax to a products price

function zen_add_tax($price, $tax) {

global $currencies;

Hehe, hope you can see anything strange :P

7 Oct 2011, 4:50 PM
#6
nikstoun avatar

nikstoun

New Zenner

Join Date:
Jun 2009
Posts:
16
Plugin Contributions:
0

Post #6 by nikstoun

Buyitrighthere:

Hello, This is whats between line 1460 to 1475.

}

////

// Wrapper function for round()

function zen_round($number, $precision) {

/// fix rounding error on GVs etc.

$number = round($number, $precision);



return $number;

}

////

// Add tax to a products price

function zen_add_tax($price, $tax) {

global $currencies;

Hehe, hope you can see anything strange :P

Read this ..is solve you problem
http://www.zen-cart.com/forum/showpost.php?p=844616&postcount=13