Plastifieurs Posted August 29, 2010 Posted August 29, 2010 Hello at all and thank you to be here. My name's Bruno, I live in France. So excuse me if by moment, my english is not perfect. I have installed the add-on QPBPP v 1.3.6 on my webstore which is a Preview Release 2.2-MS1 I have some errors. In the catalog, in shopping card I have : Fatal error: Call to undefined method: currencies->calculate_price() in ***/***/www/includes/classes/shopping_cart.php on line 310 And in the admin, in the catalog : 1146 - Table '***.TABLE_PRODUCTS_TO_DISCOUNT_CATEGORIES' doesn't exist select p.products_id, pd.products_name, p.products_quantity, p.products_image, p.products_price, p.products_qty_blocks, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status, ptdc.discount_categories_id, dc.discount_categories_name from products p left join TABLE_PRODUCTS_TO_DISCOUNT_CATEGORIES ptdc on p.products_id = ptdc.products_id left join TABLE_DISCOUNT_CATEGORIES dc using(discount_categories_id), products_description pd, products_to_categories p2c where p.products_id = pd.products_id and pd.language_id = '1' and p.products_id = p2c.products_id and p2c.categories_id = '0' order by pd.products_name I've yet define it in database.php I have searched since two days to understand, I've read lots of topics on forums and I have no more idea so I ask for help friends. Thanks in advance for the time you'll accord to me Regards Bruno Quote
Jan Zonjee Posted August 29, 2010 Posted August 29, 2010 I have installed the add-on QPBPP v 1.3.6 on my webstore which is a Preview Release 2.2-MS1 Ouch, you waited a long time with updating. When your shop goes to a PHP5 installation or a MySQL5 database you are in for a nasty surprise. Fatal error: Call to undefined method: currencies->calculate_price() in ***/***/www/includes/classes/shopping_cart.php on line 310 This is a new function added to includes/classes/currencies.php when RC1 came out. Since the use of it also depend in changes in a number of other files (see the current RC2a download, directory extras, upgrade-22rc1.html, Product Price Calculations) you should perhaps stay with the old function tep_add_tax. And in the admin, in the catalog : 1146 - Table '***.TABLE_PRODUCTS_TO_DISCOUNT_CATEGORIES' doesn't exist select p.products_id, pd.products_name, p.products_quantity, p.products_image, p.products_price, p.products_qty_blocks, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status, ptdc.discount_categories_id, dc.discount_categories_name from products p left join TABLE_PRODUCTS_TO_DISCOUNT_CATEGORIES ptdc on p.products_id = ptdc.products_id left join TABLE_DISCOUNT_CATEGORIES dc using(discount_categories_id), products_description pd, products_to_categories p2c where p.products_id = pd.products_id and pd.language_id = '1' and p.products_id = p2c.products_id and p2c.categories_id = '0' order by pd.products_name I've yet define it in database.php It looks you didn't add the define for the table in includes/database_tables.php (admin side and catalog side). Quote
Plastifieurs Posted August 29, 2010 Author Posted August 29, 2010 Ouch, you waited a long time with updating. When your shop goes to a PHP5 installation or a MySQL5 database you are in for a nasty surprise.My shop has been updated to php 5. In fact, someone made it for me because I didn't know anything about php and mysql. I'm now learning it slowly. This is a new function added to includes/classes/currencies.php when RC1 came out.Since the use of it also depend in changes in a number of other files (see the current RC2a download, directory extras, upgrade-22rc1.html, Product Price Calculations) you should perhaps stay with the old function tep_add_tax. I've tryed to replace my currency version by another more recent and the result is the same. But if I understand well, you says that I can update to latest version isn't it? It looks you didn't add the define for the table in includes/database_tables.php (admin side and catalog side).and however, it's defined in the two sides. Really thank you for your quickly answer. I will try to update and let you know what follow. Regards Bruno Quote
Plastifieurs Posted August 29, 2010 Author Posted August 29, 2010 (edited) Ok, I have updated the following files : (I've followed the guide on page : http://www.oscommerce.com/ext/extras/upgrade-22rc1.html) catalog/includes/classes/currencies.php catalog/includes/classes/order.php catalog/includes/classes/shopping_cart.php catalog/includes/functions/general.php catalog/admin/includes/classes/currencies.php catalog/admin/includes/functions/general.php catalog/admin/orders.php catalog/admin/invoice.php I've been careful. I've updated only the files witch are not in the add-on because they are already updated. In shopping card I've still the same error. But this time, In the admin I've a blank page and in the catalog of the admin I've just : Fatal error: Call to undefined function: tep_get_languages() in www/admin/index.php on line 58 An advice? I think that I will restart from the beginning. 1. I will entire updated my store 2. I will install the add-on 3. I will keep you informed. Regards Bruno Edited August 29, 2010 by Plastifieurs Quote
Jan Zonjee Posted August 29, 2010 Posted August 29, 2010 In shopping card I've still the same error. But this time, In the admin I've a blank page and in the catalog of the admin I've just : Fatal error: Call to undefined function: tep_get_languages() in www/admin/index.php on line 58 An advice? Probably, you made a small mistake when editing admin/includes/functions/general.php and this function is now inside code of another function. Quote
Plastifieurs Posted September 2, 2010 Author Posted September 2, 2010 Probably, you made a small mistake when editing admin/includes/functions/general.php and this function is now inside code of another function. I've tryed to update. It's done for MS1 to MS2 but to MS2 to RC1 several files are too different. So I've tried to make in another way. I've installed a RC1 store and I've made it again like my original store (I have changed all files) but, I have others problems (with payment and database). So I wonder if there is a version of this Add-on witch can be compatible with my store? and if this version is stable? Thanks Bruno Quote
Plastifieurs Posted September 2, 2010 Author Posted September 2, 2010 I've tryed to update. It's done for MS1 to MS2 but to MS2 to RC1 several files are too different. So I've tried to make in another way. I've installed a RC1 store and I've made it again like my original store (I have changed all files) but, I have others problems (with payment and database). So I wonder if there is a version of this Add-on witch can be compatible with my store? and if this version is stable? Thanks Bruno I precise that i am in php 5.2 on a MS1 version Quote
Jan Zonjee Posted September 4, 2010 Posted September 4, 2010 So I wonder if there is a version of this Add-on witch can be compatible with my store? and if this version is stable? I'm pretty certain you can either update the MS1 store to an RC2 store or adapt the contribution to fit your store. However, since MS1 is not available for download anymore (for a long time already) very, very few people can give you any advice on that. Personally (and I'm around for quite a bit of time here already) I have never seen MS1. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.