osCmax v2.5 User Manual
Page 1 of 2 12 LastLast
Results 1 to 10 of 15

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 ...

      
  1. #1
    New Member
    Join Date
    Mar 2004
    Posts
    7
    Rep Power
    0


    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

  2. #2
    Member
    Join Date
    Jan 2004
    Location
    edmonton, Alberta, Canada
    Posts
    62
    Rep Power
    0


    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?

  3. #3
    New Member
    Join Date
    Mar 2004
    Posts
    7
    Rep Power
    0


    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

  4. #4
    Member
    Join Date
    Jan 2004
    Location
    edmonton, Alberta, Canada
    Posts
    62
    Rep Power
    0


    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?

  5. #5
    Active Member
    Join Date
    Jan 2003
    Location
    Surrey, UK
    Posts
    126
    Rep Power
    0


    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

  6. #6
    Member
    Join Date
    Jan 2004
    Location
    edmonton, Alberta, Canada
    Posts
    62
    Rep Power
    0


    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.

  7. #7
    Active Member
    Join Date
    Jan 2003
    Location
    Surrey, UK
    Posts
    126
    Rep Power
    0


    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

  8. #8
    New Member
    Join Date
    Mar 2004
    Posts
    7
    Rep Power
    0


    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!!!

  9. #9
    Lurker
    Join Date
    Mar 2004
    Posts
    3
    Rep Power
    0


    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?

  10. #10
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    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 Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

Page 1 of 2 12 LastLast

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •