Forums / Built-in Shipping and Payment Modules / Nochex: 1054 Unknown column 'order_id' in 'where clause'

Nochex: 1054 Unknown column 'order_id' in 'where clause'

Locked

Views: 1,200

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
25 Feb 2008, 6:00 PM
#1
fergusmacdonald avatar

fergusmacdonald

Zen Follower

Join Date:
Oct 2007
Location:
Edinburgh, Scotland
Posts:
243
Plugin Contributions:
0

Nochex: 1054 Unknown column 'order_id' in 'where clause'

Hi there,

I've just upgraded to 1.3.8 and am having problems with the Nochex module. In 1.3.7.1 i had the Nochex module installed and working OK, however, after upgrade, i get the following error message when i try to view an order prior to the upgrade that was paid for via Nochex:

1054 Unknown column 'order_id' in 'where clause'
in:
[select * from nochex_apc_transactions where order_id = '90140' order by nochex_apc_id DESC LIMIT 1]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

I believe that the problem has to do with the difference in the Nochex module code and the integrated Nochex module in 1.3.8 and the way they create tables.

I am moving from Nochex to Paypal Website Payments Pro but will need to be able to access older orders paid for via Nochex on the new site. All of these changes have been done on a beta site.

Any help on how to solve this problem would be much appreciated.

Thanks,
Fergus

26 Feb 2008, 1:17 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Nochex: 1054 Unknown column 'order_id' in 'where clause'

Go to Admin->Tools->Install SQL Patch
and paste this into the query field, and click Send:```
ALTER TABLE nochex_apc_transactions CHANGE COLUMN zen_order_id order_id int(11) NOT NULL default '0';

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

26 Feb 2008, 9:32 PM
#3
fergusmacdonald avatar

fergusmacdonald

Zen Follower

Join Date:
Oct 2007
Location:
Edinburgh, Scotland
Posts:
243
Plugin Contributions:
0

Re: Nochex: 1054 Unknown column 'order_id' in 'where clause'

That is absolutely FANTASTIC.

Thank you very much indeed, your help is greatly appreciated.

Fergus