New Zenner
- Join Date:
- Jul 2014
- Location:
- Blanchard, Idaho USA
- Posts:
- 21
- Plugin Contributions:
- 0
Post #1 by loveofthehorse
While testing an upgrade locally I found that confirming a purchase consistently failed. Here is the content of the log related to the failure.
[22-Jul-2014 18:55:02 America/Los_Angeles] PHP Fatal error: 1406:Data too long for column 'payment_method' at row 1 :: INSERT INTO orders (customers_id, customers_name, customers_company, customers_street_address, customers_suburb, customers_city, customers_postcode, customers_state, customers_country, customers_telephone, customers_email_address, customers_address_format_id, delivery_name, delivery_company, delivery_street_address, delivery_suburb, delivery_city, delivery_postcode, delivery_state, delivery_country, delivery_address_format_id, billing_name, billing_company, billing_street_address, billing_suburb, billing_city, billing_postcode, billing_state, billing_country, billing_address_format_id, payment_method, payment_module_code, shipping_method, shipping_module_code, coupon_code, cc_type, cc_owner, cc_number, cc_expires, date_purchased, orders_status, order_total, order_tax, currency, currency_value, ip_address) VALUES ('7', 'Mark McBride', '', '5584 NW 149th Ct', '', 'Portland', '97229', 'Oregon', 'United States', '503-840-4049', 'hikinginpdx2######################', '2', 'Mark McBride', '', '5584 NW 149th Ct', '', 'Portland', '97229', 'Oregon', 'United States', '2', 'Mark McBride', '', '5584 NW 149th Ct', '', 'Portland', '97229', 'Oregon', 'United States', '2', 'Cash on Delivery - Must be pre-approved with Love of the horse and will only be honored when paired with store pickup and when combining orders for partner Barns or Events.', 'cod', 'Store Pickup (Customer Pickup)', 'storepickup', '', '', '', '', '', now(), '1', '6.75', '0', 'USD', '1.00000000', '::1 - ::1') ==> (as called by) C:\Web\includes\functions\functions_general.php on line 964 <== in C:\Web\includes\classes\db\mysql\query_factory.php on line 155
This functioned in 1.5.1. I shorted the COD message within includes/languages/english/modules/payment/cod.php , refreshed and was then able to complete the purchase process.
Not sure if I have missed a fix during the upgrade or if there is now a limit to the length of 'MODULE_PAYMENT_COD_TEXT_TITLE' or 'MODULE_PAYMENT_COD_TEXT_DESCRIPTION'