osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Need help ASAP! please

This is a discussion on Need help ASAP! please within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Well, I have been so happy with OSCdox version of OSCommerce. I love it. I have a working shop with ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 03-04-2004, 06:45 PM
New Member
 
Join Date: Mar 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
04JeepTJ
Default Need help ASAP! please

Well, I have been so happy with OSCdox version of OSCommerce. I love it. I have a working shop with a lot of customized (look and feel) changes made. One day I noticed that the paypal IPN stuff was not working. When I clicked on it, it took me to admin login again and so when I would login it would refresh the login page.

So at the advice of another, I upgraded the paypal IPN stuff to 1.7 from oscommerce contrib. I had to do it manually even though I did not want to. Now, I notice I get a sql error saying a table does not exist.

I got a full site backup before I started, but the site owners have since added something like 200 products and descriptions. I can't get help at oscommerce.com for some reason so I was hoping you guys could help me out here. I am desperate. Please ask me questions and I will get whatever you need to help me solve this issue.

Currently this is the error I see on everypage towards the bottom:
Code:
1146 - Table 'dixiemm_shop.TABLE_PRODUCTS_XSELL' doesn't exist

select distinct p.products_id, p.products_image, pd.products_name, p.products_tax_class_id, products_price from TABLE_PRODUCTS_XSELL xp, products p, products_description pd where xp.products_id = '510' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '1' and p.products_status = '1' order by xp.products_id asc limit 6

[TEP STOP]
and

Code:
1146 - Table 'dixiemm_shop.TABLE_COUNTER' doesn't exist

select startdate, counter from TABLE_COUNTER

[TEP STOP]
MUCH AND MANY THANKS in advance.
Phil
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 03-04-2004, 07:21 PM
Member
 
Join Date: Jan 2004
Location: edmonton, Alberta, Canada
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
peteyg
Default

Did you happen to upgrade to the OSCmax version of oscommerce from the actual OScommerce version? Or did you just do a clean install of the OSCmax?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 03-04-2004, 07:52 PM
New Member
 
Join Date: Mar 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
04JeepTJ
Default

Thanks for the reply!

I started with fresh OS MAX 1.5. It was in opinion better than going with OSC MS2.2.

Thanks again.
Phil
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 03-04-2004, 07:59 PM
Member
 
Join Date: Jan 2004
Location: edmonton, Alberta, Canada
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
peteyg
Default

hmmm interesting....because the error is saying that the tables do not exist in your database structure which is odd if you did a fresh install. Are the products showing up?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 03-05-2004, 08:45 AM
Active Member
 
Join Date: Jan 2003
Location: Surrey, UK
Posts: 126
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jonthewebb
Default

actually the error is not saying that.... it is saying there is no table named TABLE_COUNTER. it means there are some definitions missing in includes/database_tables.php, ie TABLE_PRODUCTS_XSELL and TABLE_COUNTER

eg:

define('TABLE_COUNTER', 'counter');



jon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 03-05-2004, 10:04 AM
Member
 
Join Date: Jan 2004
Location: edmonton, Alberta, Canada
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
peteyg
Default

this is the code from xsell_products.php page
if ($HTTP_GET_VARS['products_id']) {
$xsell_query = tep_db_query("select distinct p.products_id, p.products_image, pd.products_name, p.products_tax_class_id, products_price from " . TABLE_PRODUCTS_XSELL . " xp, " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where xp.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and xp.xsell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' and p.products_status = '1' order by xp.products_id asc limit " . MAX_DISPLAY_ALSO_PURCHASED);
$num_products_xsell = tep_db_num_rows($xsell_query);
So im thinking it could be code as a possibility, maybe the configuration of his database in the config file.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 03-07-2004, 02:09 PM
Active Member
 
Join Date: Jan 2003
Location: Surrey, UK
Posts: 126
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jonthewebb
Default

The error is that the words "TABLE_PRODUCTS_XSELL" and "TABLE_COUNTER" are not defined in includes/database_tables.php.

The code you posted above includes these two constants as part of the query. When they are defined correctly, PHP understands "TABLE_PRODUCTS_XSELL" as being "products_xsell" which is the table name. When it is not defined, as in this case, it takes the literal value TABLE_PRODUCTS_XSELL which is not the actual name of the table!

So to fix it you need to go to includes/database_tables.php and add two entries for the missing tables. Also check for more missing entries. Or, incorrectly spelt entries.


jon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 03-09-2004, 06:56 PM
New Member
 
Join Date: Mar 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
04JeepTJ
Default

Thanks guys... I will try to do as you say. While I am a database programmer I am not a php programmer and it is little strange for me to follow. I have manged to get the site customized and working well until this happend.

I was thinking. I have a backup of before I did the upgrade to 1.7 but my client has already entered several products in the table db. If I were to restore, what tables have been touched by the addition of new products, categories, descriptions, etc.

Once that is done, we can investigate why I get the login screen when I click on the transactions or send test IPN links under Paypal IPN. Which is what the problem was in the first place. I should have known better than to try the upgrade. I know from experience, that trying to fix problems by upgrading usually results in upgraded problems. Thanks again folks for your help.

I have really been banging my head against this. Atleast a month before I posted here for help.

THANKS!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 03-10-2004, 12:05 AM
Lurker
 
Join Date: Mar 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kindred1
Default

Hello,I just clean installed MS2 on 2 seperate domains and Im also getting the error you mentioned:

"I get the login screen when I click on the transactions or send test IPN links under Paypal IPN."

It seems on non-SSL admin it works,but with SSL enabled in the admin area,it keeps going to the login screen.

I am on a shared SSL,so i changed the admin/includes/configure.php line:

Code:
define('HTTP_SERVER', 'http://mysite.com');

to 

define('HTTP_SERVER', 'https://rs124.mysecurehost.com/~myusername' );
and the Paypal IPN doesnt work.

Is that the correct way I should list the secure ssl url,or is it off?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10  
Old 03-10-2004, 08:10 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,479
Thanks: 73
Thanked 334 Times in 313 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

kindred1, most likely a cookie path / sessions issue. Try storing sessions in the database. That may solve the problem.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Site down. Please HELP ASAP!! bagged89s10 osCMax v1.7 Discussion 2 11-02-2006 01:45 AM
Need help with some probs. ASAP! genu osCommerce 2.2 Modification Help 5 02-06-2005 07:07 PM
ERROR 1046 - 2 Stores down need help ASAP!!! eviternity osCMax v1.7 Discussion 2 07-16-2004 04:44 PM


All times are GMT -8. The time now is 08:23 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax