osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

1146 - 'TABLE_PAYPAL_IPN' doesn't exist

This is a discussion on 1146 - 'TABLE_PAYPAL_IPN' doesn't exist within the osCMax v2 Installation issues forums, part of the osCMax v2.0 Forums category; Hi, In brief, doing an install of osMax from another one of our osMax working stores. Keeping everything, just data ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 01-24-2008, 05:59 PM
New Member
 
Join Date: Jan 2008
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
iberkner is on a distinguished road
Default 1146 - 'TABLE_PAYPAL_IPN' doesn't exist

Hi,

In brief, doing an install of osMax from another one of our osMax working stores. Keeping everything, just data is coming in from a non-oscMax store (oscMax 2.2). Date went into oscMax db very nicely, everything seems to be working as it should. When I go to check orders, those that were paid with PayPal in the previous osMax installation, generate this error on the orders.php page:

1146 - Table 'dbname_oscmax.TABLE_PAYPAL_IPN' doesn't exist
select * from TABLE_PAYPAL_IPN where paypal_ipn_id = '0'
[TEP STOP]

Those orders that were paid with a credit card are fine. This only happens when I'm looking at an order that was paid with PayPal.

The paypal_IPN table is present but is empty as the previous store used a difference paypal module (I think).

Help??

I've looked everywhere... very some have suggested that it's a missing tax column in the orders table, but its there.

hope to find a resolution here...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
  #2  
Old 01-25-2008, 11:24 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,488
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 Re: 1146 - Table 'dbname_oscmax.TABLE_PAYPAL_IPN' doesn't exist

The problem is you need to define this constant = TABLE_PAYPAL_IPN

Whenever you see a constant like that (all caps with underscores) it means that the correct constant name has not been properly defined in your database_tables.php file.

PHP Code:
   define('TABLE_PAYPAL_IPN''paypal_ipn'); 
__________________
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!
Reply With Quote
  #3  
Old 01-25-2008, 07:43 PM
New Member
 
Join Date: Jan 2008
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
iberkner is on a distinguished road
Default Re: 1146 - 'TABLE_PAYPAL_IPN' doesn't exist

Hi Michael,

Thanks for the response!

Ok, so I added the database table definition. Now it is giving me this error:

1146 - Table 'dbname_oscmax.TABLE_PAYPAL_IPN_TXN_TYPE' doesn't exist
select txn_type_name from TABLE_PAYPAL_IPN_TXN_TYPE where txn_type_id = '0 and language_id=1'

What I don't understand is the following:

1. I looked at my other oscMax installs and didn't see this type of table definition in the database_tables.php files, and I do have the paypal module installed and running.

2. How important are these tables for running paypal IPN transactions? are they legacy tables tied to prior data from my previous version of osCommerce that I was using?

Does it make sense to install a module that is specific to these tables to get them and the php files all squared away, if so, which version of paypal IPN that would work with oscMax?

Any help...

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 01-25-2008, 08:08 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,488
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 Re: 1146 - 'TABLE_PAYPAL_IPN' doesn't exist

Add a definition for TABLE_PAYPAL_IPN_TXN_TYPE to database_tables.php.

I think it has something to do with you moving this from another install. I can't reproduce this on a stock install of osCMax, so I think it is specific to something you have done, but what I have no idea.
__________________
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!
Reply With Quote
  #5  
Old 01-25-2008, 08:13 PM
New Member
 
Join Date: Jan 2008
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
iberkner is on a distinguished road
Default Re: 1146 - 'TABLE_PAYPAL_IPN' doesn't exist

I'm sure it has to do with how we transferred our install, more so with the data in the tables that's causing the system to look for these tables. I added the table definition, now I get this error:

1146 - Table 'dbname_oscmax.paypal_ipn_txn_type' doesn't exist

which reflects the fact that the table is not in the db. Do you know what the schema for this table should be?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 01-30-2008, 03:05 PM
New Member
 
Join Date: Jan 2008
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
iberkner is on a distinguished road
Default Re: 1146 - 'TABLE_PAYPAL_IPN' doesn't exist

Hey,

Just wanted to say that I was able to solve this problem by updating the "payment_method" from "Paypal" to the full module name of "PayPal (Credit Card / Debit)". In our prior install, we had changed the name to "Paypal" only as we wanted to differentiate between the regular merchat account credit processing we had and the standard paypal payment method.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to iberkner For This Useful Post:
calistared (02-28-2008)
  #7  
Old 01-30-2008, 11:16 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,488
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 Re: 1146 - 'TABLE_PAYPAL_IPN' doesn't exist

I knew it had to be something with the imported data! Thanks for the update.
__________________
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!
Reply With Quote
  #8  
Old 02-28-2008, 03:53 AM
osCMax Testing Team
 
Join Date: Feb 2008
Posts: 16
Thanks: 8
Thanked 1 Time in 1 Post
Rep Power: 0
calistared is on a distinguished road
Default Re: 1146 - 'TABLE_PAYPAL_IPN' doesn't exist

This has happened to me so thanks for the replies above.

How does it work though? I can only find the payment method name defined in the language file. What does it do with it that would produce the error? I would really appreciate any insight!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 08-10-2008, 05:18 PM
New Member
 
Join Date: Jan 2008
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
iberkner is on a distinguished road
Default Re: 1146 - 'TABLE_PAYPAL_IPN' doesn't exist

Ok,

So we're still seeing this issue, I thought we had fixed it, but I was wrong. In a nutshell, here's what I think is happening:
- We are only using the basic PayPal payment module (not IPN)
- Order goes through ok, we get payment, etc. (provided they "confirmed") the order after making the paypal payment
- When we try to edit the order on the admin side, we get this error:

1146 - Table 'mystor_oscmax.TABLE_PAYPAL_IPN' doesn't exist

select * from TABLE_PAYPAL_IPN where paypal_ipn_id = '0'

[TEP STOP]

I think what is happening is that the order screen "thinks" that this is a paypal_ipn module order when in fact its not. I also can't find definitions anywhere for the paypal_ipn type of tables, etc.

I think that if I change the module name, somewhere, from just "PayPal" to "PayPal Payments" for example, it may work, but where / how do I make these changes?

Any help would be appreciated...

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 08-10-2008, 05:25 PM
New Member
 
Join Date: Jan 2008
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
iberkner is on a distinguished road
Default Re: 1146 - 'TABLE_PAYPAL_IPN' doesn't exist

Just another update... in order to avoid this error, I went into the order.php file in the admin directory and changed where it was checking for 'paypal' to 'paypal_ipn' (2 places). What was happening is that the order.php file was equating a standard paypal transaction as a paypal ipn transaction.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

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
1146 error in specials.php - Table 'shop.TABLE_CUSTOMERS_GROUPS' doesn't exist jptechnical osCMax v1.7 Discussion 4 05-22-2007 09:14 PM
SQL file does not exist: spearhead osCommerce 2.2 Installation Help 0 02-29-2004 08:44 AM
Error message 1146 table does not exist rnomis osCMax v1.7 Discussion 3 11-13-2003 06:17 AM
The sessions directory does not exist jrglass osCommerce 2.2 Installation Help 1 04-30-2003 11:22 PM
SQL file does not exist dino osCommerce 2.2 Installation Help 4 03-04-2003 02:11 PM


All times are GMT -8. The time now is 08:03 AM.


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