While working on one of my sites that doesn't use a database prefix, I ran across the following error:
occurs from
admin -> customers -> paypal IPN
after displaying the customer information page, if you click on the "orders" button
the following error displays
1054 Unknown column 'zen_order_id' in 'where clause'
in:
[select * from paypal where zen_order_id = '1251' order by paypal_ipn_id DESC LIMIT 1]
As I said the database doesn't use a prefix and the paypal table contains a row named order_id
I fixed the problem by deleting the "zen_" from several places in
includes/modules/payment/paypal.php and paypalwwp.php
Is it possible to fix this for future versions in cases where a database doesn't use a prefix.
perhaps something like:
$sql = "select * from " . TABLE_PAYPAL . " where . DB_PREFIX . "order_id = '" . (int)$zf_order_id . "' order by paypal_ipn_id DESC LIMIT 1";




