Zen Follower
- Join Date:
- May 2006
- Posts:
- 119
- Plugin Contributions:
- 0
Paypal -- 1054 Unknown column 'zen_order_id'
just upgraded to 1.3.8 from 1.3.7 and added security patch, moved admin. All seemed well after test purchase except paypal would not return order to cart. (it would take the money) :cry:
got error:
1054 Unknown column 'zen_order_id' in 'where clause'
in:
[select * from zenpaypal where zen_order_id = 'XXXXXX' order by paypal_ipn_id DESC LIMIT 1]
on page under admin >customer >paypal
and on any customer page with a previous paypal purchase the error was:
1054 Unknown column 'p.zen_order_id' in 'on clause'
in:
[select count(*) as total from zenpaypal as p left join zenorders as o on o.orders_id = p.zen_order_id]
**FIX: in SQL renamed table zenpaypal order_id to zen_order_id **
and it all works again - orders and paypal payment show, orders are returned to cart again. :clap:
If there is any reason the fix is a bad idea or there is something else I need to know please tell me! :D