Forums / Upgrading to 1.5.x / Upgrade from 1.3.9h to 1.5.1 - Attribute Controller Failing in Admin

Upgrade from 1.3.9h to 1.5.1 - Attribute Controller Failing in Admin

Views: 2,511

Results 1 to 14 of 14
24 Oct 2012, 2:13 PM
#1
handylabels avatar

handylabels

New Zenner

Join Date:
Mar 2010
Posts:
2
Plugin Contributions:
0

Upgrade from 1.3.9h to 1.5.1 - Attribute Controller Failing in Admin

Hi guys,

Just successfully updated a store from 1.3.9h to 1.5.1. Everything is fine except when I click on the Attribute sections within the admin panel. "Attribute Controller, Option Value Manager and Option Name Manager" menus.

When I click on any of them I get a blank page containing the error: WARNING: An Error occurred, please refresh the page and try again.

My log says:

[24-Oct-2012 14:55:55] PHP Fatal error: 1064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'int)PRODUCTS_OPTIONS_VALUES_TEXT_ID, 1, 'TEXT')' at line 1 :: INSERT INTO products_options_values (products_options_values_id, language_id, products_options_values_name) VALUES ((int)PRODUCTS_OPTIONS_VALUES_TEXT_ID, 1, 'TEXT') in /home/sites/MYDOMAIN.co.uk/public_html/sandbox/includes/classes/db/mysql/query_factory.php on line 120

When I replace the old 1.3.9h "/admin/attributes_controller.php" file it works. I've double checked and reloaded the uploaded 1.5.1 file with no success.

Can anyone shed any light on the above issue. Any help would be most appreciated.

Kind Regards.

24 Oct 2012, 3:12 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Upgrade from 1.3.9h to 1.5.1 - Attribute Controller Failing in Admin

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!

24 Oct 2012, 8:06 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Upgrade from 1.3.9h to 1.5.1 - Attribute Controller Failing in Admin

Thanks for the update that this solution worked for you ... :smile:

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!

6 Jul 2014, 1:03 AM
#5
idtags avatar

idtags

Zen Follower

Join Date:
Aug 2005
Posts:
315
Plugin Contributions:
0

Re: Upgrade from 1.3.9h to 1.5.1 - Attribute Controller Failing in Admin

I am trying to search for my problem using key words ATTRIBUTE_PRICE_DELIMITER_PREFIX and ATTRIBUTE_PRICE_DELIMITER_PREFIX and have 0 search results.

So I need to start somewhere, sorry if I am in "wrong church".

After upgrading two identical Zen Carts one has a small issue for all products, which have relationship between Quantity and Price.
I hope image below shows it.
If not I will try to reproduce:

Price depends on Quantity:

2 pieces
5 piecesATTRIBUTE_PRICE_DELIMITER_PREFIX+$2.00ATTRIBUTE_PRICE_DELIMITER_PREFIX
10 piecesATTRIBUTE_PRICE_DELIMITER_PREFIX+$4.00ATTRIBUTE_PRICE_DELIMITER_PREFIX
50 piecesATTRIBUTE_PRICE_DELIMITER_PREFIX+$20.00ATTRIBUTE_PRICE_DELIMITER_PREFIX
100 piecesATTRIBUTE_PRICE_DELIMITER_PREFIX+$44.00ATTRIBUTE_PRICE_DELIMITER_PREFIX

[Attachment no longer available]

Second cart shows correct.

2 pieces
5 pieces+$2.00
10 pieces+$4.00
50 pieces+$20.00
100 pieces+$44.00

[Attachment no longer available]

So, there are extra **ATTRIBUTE_PRICE_DELIMITER_PREFIX ** and ATTRIBUTE_PRICE_DELIMITER_PREFIX coming.

Any idea where too look?
Thank you

6 Jul 2014, 1:14 AM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Upgrade from 1.3.9h to 1.5.1 - Attribute Controller Failing in Admin

These should be in the language files but their names are:
ATTRIBUTES_PRICE_DELIMITER_PREFIX
ATTRIBUTES_PRICE_DELIMITER_SUFFIX

You are missing the S on Attributes ...

Go to the Tools ... Developers Tool Kit ...

and in the bottom input box do a search for those ...

Check both sites to see which files have issues ...

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!

6 Jul 2014, 1:42 AM
#7
idtags avatar

idtags

Zen Follower

Join Date:
Aug 2005
Posts:
315
Plugin Contributions:
0

Re: Upgrade from 1.3.9h to 1.5.1 - Attribute Controller Failing in Admin

Ajeh:

These should be in the language files but their names are:
ATTRIBUTES_PRICE_DELIMITER_PREFIX
ATTRIBUTES_PRICE_DELIMITER_SUFFIX

You are missing the S on Attributes ...

Go to the Tools ... Developers Tool Kit ...

and in the bottom input box do a search for those ...

Check both sites to see which files have issues ...

Thank you for fast respond, but my apology, when I retyped text I missed these "S", if you look on image they have plurals there.

I anyway tried to search for ATTRIBUTES_PRICE_DELIMITER_PREFIX.
Result is: **Warning Error: No matching Configuration Keys were found ... ATTRIBUTES_PRICE_DELIMITER_PREFIX

**So, something else should wrong.

6 Jul 2014, 1:47 AM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Upgrade from 1.3.9h to 1.5.1 - Attribute Controller Failing in Admin

Image 1 looks like you are missing the defines ...

If you search that site with the Tools ... Developers Tool Kit ... in the bottom input box for:
ATTRIBUTES_PRICE_DELIMITER_PREFIX
ATTRIBUTES_PRICE_DELIMITER_SUFFIX

do you find all the defines for it in the language files?

If you do the same search on the site for your working image, do you find the defines?

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!

6 Jul 2014, 2:06 AM
#9
idtags avatar

idtags

Zen Follower

Join Date:
Aug 2005
Posts:
315
Plugin Contributions:
0

Re: Upgrade from 1.3.9h to 1.5.1 - Attribute Controller Failing in Admin

Ok, here is result:

For **not working **site:

Look-up in all files--------------------------------All Files Look-ups:------------------ File type
Key or Name:-------------------------------------All Files - Catalog/Admin------------.php only
ATTRIBUTES_PRICE_DELIMITER_SUFFIX

Result:

Searching 1056 files ... for: ATTRIBUTES_PRICE_DELIMITER_SUFFIX

/home/annaks/public_html/store/includes/modules/attributes.php

Line #146 : $currencies->display_price($new_attributes_price, zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ATTRIBUTES_PRICE_DELIMITER_SUFFIX;

Line #158 : $currencies->display_price($new_attributes_price, zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ATTRIBUTES_PRICE_DELIMITER_SUFFIX;

Match Lines found: 2

For **working **site:

Look-up in all files All Files Look-ups: File type
Key or Name: All Files - Catalog/Admin .php only
ATTRIBUTES_PRICE_DELIMITER_SUFFIX

Result:

[COLOR="#008000"]Searching 1057 files ... for: ATTRIBUTES_PRICE_DELIMITER_SUFFIX

Match Lines found: 0
Warning Error: No matching Configuration Keys were found ... ATTRIBUTES_PRICE_DELIMITER_SUFFIX

What does it mean?

6 Jul 2014, 2:15 AM
#10
idtags avatar

idtags

Zen Follower

Join Date:
Aug 2005
Posts:
315
Plugin Contributions:
0

Re: Upgrade from 1.3.9h to 1.5.1 - Attribute Controller Failing in Admin

How risky is to copy /home/annaks/public_html/store/includes/modules/attributes.php from working site to not working site.

I am trying to keep everything identical.

6 Jul 2014, 2:26 AM
#11
ajeh avatar

ajeh

Oba-san

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

Re: Upgrade from 1.3.9h to 1.5.1 - Attribute Controller Failing in Admin

I did a brief search on:
ATTRIBUTES_PRICE_DELIMITER

so that I could find them all in one search ...

You should find in v1.5.1 the files with these defines that look similar to this:

/your_home_path/includes/languages/english/document_general_info.php

Line #42 : define('ATTRIBUTES_PRICE_DELIMITER_PREFIX', ' ( ');

Line #43 : define('ATTRIBUTES_PRICE_DELIMITER_SUFFIX', ' )');

/your_home_path/includes/languages/english/document_product_info.php

Line #42 : define('ATTRIBUTES_PRICE_DELIMITER_PREFIX', ' ( ');

Line #43 : define('ATTRIBUTES_PRICE_DELIMITER_SUFFIX', ' )');

/your_home_path/includes/languages/english/product_free_shipping_info.php

Line #42 : define('ATTRIBUTES_PRICE_DELIMITER_PREFIX', ' ( ');

Line #43 : define('ATTRIBUTES_PRICE_DELIMITER_SUFFIX', ' )');

/your_home_path/includes/languages/english/product_info.php

Line #42 : define('ATTRIBUTES_PRICE_DELIMITER_PREFIX', ' ( ');

Line #43 : define('ATTRIBUTES_PRICE_DELIMITER_SUFFIX', ' )');

/your_home_path/includes/languages/english/product_music_info.php

Line #46 : define('ATTRIBUTES_PRICE_DELIMITER_PREFIX', ' ( ');

Line #47 : define('ATTRIBUTES_PRICE_DELIMITER_SUFFIX', ' )');

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!

6 Jul 2014, 2:45 AM
#12
idtags avatar

idtags

Zen Follower

Join Date:
Aug 2005
Posts:
315
Plugin Contributions:
0

Re: Upgrade from 1.3.9h to 1.5.1 - Attribute Controller Failing in Admin

I did the search as you advised for ATTRIBUTES_PRICE_DELIMITER in working site and have the same result as before.
No lines were found.

Now, I took a file /your_home_path/includes/languages/english/document_product_info.php in text editor.
Here is the text (no ATTRIBUTES_PRICE_DELIMITER is found):

<?php /** * @package languageDefines * @copyright Copyright 2003-2005 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: document_general_info.php 2842 2006-01-13 06:21:11Z drbyte $ */ define('TEXT_PRODUCT_NOT_FOUND', 'Sorry, the product was not found.'); define('TEXT_CURRENT_REVIEWS', 'Current Reviews:'); define('TEXT_MORE_INFORMATION', 'For more information, please visit this product\'s <a href="%s" target="_blank">webpage</a>.'); define('TEXT_DATE_ADDED', 'This product was added to our catalog on %s.'); define('TEXT_DATE_AVAILABLE', 'This product will be in stock on %s.'); define('TEXT_ALSO_PURCHASED_PRODUCTS', 'Customers who bought this product also purchased...'); define('TEXT_PRODUCT_OPTIONS', 'Please Choose: '); define('TEXT_PRODUCT_MANUFACTURER', 'Manufactured by: '); define('TEXT_PRODUCT_WEIGHT', 'Shipping Weight: '); define('TEXT_PRODUCT_QUANTITY', ' Units in Stock'); define('TEXT_PRODUCT_MODEL', 'Model: '); // previous next product define('PREV_NEXT_PRODUCT', 'Product '); define('PREV_NEXT_FROM', ' from '); define('IMAGE_BUTTON_PREVIOUS','Previous Item'); define('IMAGE_BUTTON_NEXT','Next Item'); define('IMAGE_BUTTON_RETURN_TO_PRODUCT_LIST','Back to Product List'); // missing products //define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); //define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); //define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); define('TEXT_ATTRIBUTES_PRICE_WAS',' [was: '); define('TEXT_ATTRIBUTE_IS_FREE',' now is: Free]'); define('TEXT_ONETIME_CHARGE_SYMBOL', ' *'); define('TEXT_ONETIME_CHARGE_DESCRIPTION', ' One time charges may apply'); define('TEXT_ATTRIBUTES_QTY_PRICE_HELP_LINK','Quantity Discounts Available'); define('ATTRIBUTES_QTY_PRICE_SYMBOL', zen_image(DIR_WS_TEMPLATE_ICONS . 'icon_status_green.gif', TEXT_ATTRIBUTES_QTY_PRICE_HELP_LINK, 10, 10) . ' '); ?>

I will continue this journey tomorrow, as it is too late here on east coast.

Thank you for looking in it again.

6 Jul 2014, 4:28 AM
#13
ajeh avatar

ajeh

Oba-san

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

Re: Upgrade from 1.3.9h to 1.5.1 - Attribute Controller Failing in Admin

The file for v1.5.1 reads:

<?php
/**
 * @package languageDefines
 * @copyright Copyright 2003-2007 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: document_general_info.php 6371 2007-05-25 19:55:59Z ajeh $
 */

define('TEXT_PRODUCT_NOT_FOUND', 'Sorry, the product was not found.');
define('TEXT_CURRENT_REVIEWS', 'Current Reviews:');
define('TEXT_MORE_INFORMATION', 'For more information, please visit this product\'s <a href="%s" target="_blank">webpage</a>.');
define('TEXT_DATE_ADDED', 'This product was added to our catalog on %s.');
define('TEXT_DATE_AVAILABLE', 'This product will be in stock on %s.');
define('TEXT_ALSO_PURCHASED_PRODUCTS', 'Customers who bought this product also purchased...');
define('TEXT_PRODUCT_OPTIONS', 'Please Choose: ');
define('TEXT_PRODUCT_MANUFACTURER', 'Manufactured by: ');
define('TEXT_PRODUCT_WEIGHT', 'Shipping Weight: ');
define('TEXT_PRODUCT_QUANTITY', ' Units in Stock');
define('TEXT_PRODUCT_MODEL', 'Model: ');



// previous next product
define('PREV_NEXT_PRODUCT', 'Product ');
define('PREV_NEXT_FROM', ' from ');
define('IMAGE_BUTTON_PREVIOUS','Previous Item');
define('IMAGE_BUTTON_NEXT','Next Item');
define('IMAGE_BUTTON_RETURN_TO_PRODUCT_LIST','Back to Product List');

// missing products
//define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');
//define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');
//define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

define('TEXT_ATTRIBUTES_PRICE_WAS',' [was: ');
define('TEXT_ATTRIBUTE_IS_FREE',' now is: Free]');
define('TEXT_ONETIME_CHARGE_SYMBOL', ' *');
define('TEXT_ONETIME_CHARGE_DESCRIPTION', ' One time charges may apply');
define('TEXT_ATTRIBUTES_QTY_PRICE_HELP_LINK','Quantity Discounts Available');
define('ATTRIBUTES_QTY_PRICE_SYMBOL', zen_image(DIR_WS_TEMPLATE_ICONS . 'icon_status_green.gif', TEXT_ATTRIBUTES_QTY_PRICE_HELP_LINK, 10, 10) . ' ');

define('ATTRIBUTES_PRICE_DELIMITER_PREFIX', ' ( ');
define('ATTRIBUTES_PRICE_DELIMITER_SUFFIX', ' )');
define('ATTRIBUTES_WEIGHT_DELIMITER_PREFIX', ' (');
define('ATTRIBUTES_WEIGHT_DELIMITER_SUFFIX', ') ');

?>

You may wish to double check the files on your server match the files from v1.5.1 ...

The file from v1.3.7 reads:

<?php
/**
 * @package languageDefines
 * @copyright Copyright 2003-2005 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: document_general_info.php 2842 2006-01-13 06:21:11Z drbyte $
 */

define('TEXT_PRODUCT_NOT_FOUND', 'Sorry, the product was not found.');
define('TEXT_CURRENT_REVIEWS', 'Current Reviews:');
define('TEXT_MORE_INFORMATION', 'For more information, please visit this product\'s <a href="%s" target="_blank">webpage</a>.');
define('TEXT_DATE_ADDED', 'This product was added to our catalog on %s.');
define('TEXT_DATE_AVAILABLE', 'This product will be in stock on %s.');
define('TEXT_ALSO_PURCHASED_PRODUCTS', 'Customers who bought this product also purchased...');
define('TEXT_PRODUCT_OPTIONS', 'Please Choose: ');
define('TEXT_PRODUCT_MANUFACTURER', 'Manufactured by: ');
define('TEXT_PRODUCT_WEIGHT', 'Shipping Weight: ');
define('TEXT_PRODUCT_QUANTITY', ' Units in Stock');
define('TEXT_PRODUCT_MODEL', 'Model: ');



// previous next product
define('PREV_NEXT_PRODUCT', 'Product ');
define('PREV_NEXT_FROM', ' from ');
define('IMAGE_BUTTON_PREVIOUS','Previous Item');
define('IMAGE_BUTTON_NEXT','Next Item');
define('IMAGE_BUTTON_RETURN_TO_PRODUCT_LIST','Back to Product List');

// missing products
//define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');
//define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');
//define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

define('TEXT_ATTRIBUTES_PRICE_WAS',' [was: ');
define('TEXT_ATTRIBUTE_IS_FREE',' now is: Free]');
define('TEXT_ONETIME_CHARGE_SYMBOL', ' *');
define('TEXT_ONETIME_CHARGE_DESCRIPTION', ' One time charges may apply');
define('TEXT_ATTRIBUTES_QTY_PRICE_HELP_LINK','Quantity Discounts Available');
define('ATTRIBUTES_QTY_PRICE_SYMBOL', zen_image(DIR_WS_TEMPLATE_ICONS . 'icon_status_green.gif', TEXT_ATTRIBUTES_QTY_PRICE_HELP_LINK, 10, 10) . ' ');
?>

It really looks like you have old language files on your 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!

6 Jul 2014, 1:48 PM
#14
idtags avatar

idtags

Zen Follower

Join Date:
Aug 2005
Posts:
315
Plugin Contributions:
0

Re: Upgrade from 1.3.9h to 1.5.1 - Attribute Controller Failing in Admin

Ajeh:

The file for v1.5.1 reads:

<?php /** * @package languageDefines * @copyright Copyright 2003-2007 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: document_general_info.php 6371 2007-05-25 19:55:59Z ajeh $ */ define('TEXT_PRODUCT_NOT_FOUND', 'Sorry, the product was not found.'); define('TEXT_CURRENT_REVIEWS', 'Current Reviews:'); define('TEXT_MORE_INFORMATION', 'For more information, please visit this product\'s <a href="%s" target="_blank">webpage</a>.'); define('TEXT_DATE_ADDED', 'This product was added to our catalog on %s.'); define('TEXT_DATE_AVAILABLE', 'This product will be in stock on %s.'); define('TEXT_ALSO_PURCHASED_PRODUCTS', 'Customers who bought this product also purchased...'); define('TEXT_PRODUCT_OPTIONS', 'Please Choose: '); define('TEXT_PRODUCT_MANUFACTURER', 'Manufactured by: '); define('TEXT_PRODUCT_WEIGHT', 'Shipping Weight: '); define('TEXT_PRODUCT_QUANTITY', ' Units in Stock'); define('TEXT_PRODUCT_MODEL', 'Model: '); // previous next product define('PREV_NEXT_PRODUCT', 'Product '); define('PREV_NEXT_FROM', ' from '); define('IMAGE_BUTTON_PREVIOUS','Previous Item'); define('IMAGE_BUTTON_NEXT','Next Item'); define('IMAGE_BUTTON_RETURN_TO_PRODUCT_LIST','Back to Product List'); // missing products //define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); //define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); //define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); define('TEXT_ATTRIBUTES_PRICE_WAS',' [was: '); define('TEXT_ATTRIBUTE_IS_FREE',' now is: Free]'); define('TEXT_ONETIME_CHARGE_SYMBOL', ' *'); define('TEXT_ONETIME_CHARGE_DESCRIPTION', ' One time charges may apply'); define('TEXT_ATTRIBUTES_QTY_PRICE_HELP_LINK','Quantity Discounts Available'); define('ATTRIBUTES_QTY_PRICE_SYMBOL', zen_image(DIR_WS_TEMPLATE_ICONS . 'icon_status_green.gif', TEXT_ATTRIBUTES_QTY_PRICE_HELP_LINK, 10, 10) . ' '); define('ATTRIBUTES_PRICE_DELIMITER_PREFIX', ' ( '); define('ATTRIBUTES_PRICE_DELIMITER_SUFFIX', ' )'); define('ATTRIBUTES_WEIGHT_DELIMITER_PREFIX', ' ('); define('ATTRIBUTES_WEIGHT_DELIMITER_SUFFIX', ') '); ?>
> 
> You may wish to double check the files on your server match the files from v1.5.1 ...
> 
> The file from v1.3.7 reads:
> ```
<?php
/**
 * @package languageDefines
 * @copyright Copyright 2003-2005 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: document_general_info.php 2842 2006-01-13 06:21:11Z drbyte $
 */

define('TEXT_PRODUCT_NOT_FOUND', 'Sorry, the product was not found.');
define('TEXT_CURRENT_REVIEWS', 'Current Reviews:');
define('TEXT_MORE_INFORMATION', 'For more information, please visit this product\'s <a href="%s" target="_blank">webpage</a>.');
define('TEXT_DATE_ADDED', 'This product was added to our catalog on %s.');
define('TEXT_DATE_AVAILABLE', 'This product will be in stock on %s.');
define('TEXT_ALSO_PURCHASED_PRODUCTS', 'Customers who bought this product also purchased...');
define('TEXT_PRODUCT_OPTIONS', 'Please Choose: ');
define('TEXT_PRODUCT_MANUFACTURER', 'Manufactured by: ');
define('TEXT_PRODUCT_WEIGHT', 'Shipping Weight: ');
define('TEXT_PRODUCT_QUANTITY', ' Units in Stock');
define('TEXT_PRODUCT_MODEL', 'Model: ');



// previous next product
define('PREV_NEXT_PRODUCT', 'Product ');
define('PREV_NEXT_FROM', ' from ');
define('IMAGE_BUTTON_PREVIOUS','Previous Item');
define('IMAGE_BUTTON_NEXT','Next Item');
define('IMAGE_BUTTON_RETURN_TO_PRODUCT_LIST','Back to Product List');

// missing products
//define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');
//define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');
//define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

define('TEXT_ATTRIBUTES_PRICE_WAS',' [was: ');
define('TEXT_ATTRIBUTE_IS_FREE',' now is: Free]');
define('TEXT_ONETIME_CHARGE_SYMBOL', ' *');
define('TEXT_ONETIME_CHARGE_DESCRIPTION', ' One time charges may apply');
define('TEXT_ATTRIBUTES_QTY_PRICE_HELP_LINK','Quantity Discounts Available');
define('ATTRIBUTES_QTY_PRICE_SYMBOL', zen_image(DIR_WS_TEMPLATE_ICONS . 'icon_status_green.gif', TEXT_ATTRIBUTES_QTY_PRICE_HELP_LINK, 10, 10) . ' ');
?>

It really looks like you have old language files on your server ...

It looks like math work Ok, it is just attribute text is shown to customers.

Thank you, I will evaluate discrepancy.