Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2020
    Posts
    1
    Plugin Contributions
    0

    Default Order with no items

    Hi,

    I've recently experienced an error that I'm not seem before. I have an order, which has no item lines, but does have a order total. The payment method was PayPal/E-check and I can see in the log that there was an error on the insert to PayPal table (mc_fee)

    PHP Fatal error: 1366:Incorrect decimal value: '' for column `xxxx`.`paypal`.`mc_fee` at row 1 :: INSERT INTO paypal (order_id, txn_type, module_name, module_mode, reason_code, payment_type, payment_status, pending_reason, invoice, mc_currency, first_name, last_name, payer_business_name, address_name, address_street, address_city, address_state, address_zip, address_country, address_status, payer_email, payer_id, payer_status, payment_date, business, receiver_email, receiver_id, txn_id, parent_txn_id, num_cart_items, mc_gross, mc_fee, settle_amount, settle_currency, exchange_rate, notify_version, verify_sign, date_added, memo) VALUES <snip>
    I'm not sure if this the root cause or just a symptom of the problem order. If there any further logging that I can perform? or any way to find any further details \?

    thanks
    Simon

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Order with no items

    Your Zen Cart version is very old.
    There have been many updates to the core Zen Cart code in v1.5.6 and v1.5.7 to accommodate stricter database-field-type rules imposed-by-default on newer versions of MySQL. By upgrading your store to the latest Zen Cart version you will make it more compatible with the newer MySQL and PHP that are running on your server.

    Options in the meantime: manually fix the PayPal module to send a numeric/float value instead of a string, or at least compare all the paypal code on your site against the latest in the v157 code to find patches you might put onto your old version. You could also explore setting your MySQL mode to less strict.
    .

    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.

 

 

Similar Threads

  1. v151 How to calculate shipping for orders with both store pickup items and delivered items
    By Dave224 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 23 Jan 2018, 05:31 AM
  2. v151 Shipping Question: I need add on items to ship free with order but not alone
    By independenteasel in forum Built-in Shipping and Payment Modules
    Replies: 13
    Last Post: 14 Nov 2013, 01:50 AM
  3. Duplicate order with extra items???
    By helpme in forum General Questions
    Replies: 0
    Last Post: 20 May 2008, 09:03 PM
  4. Replies: 0
    Last Post: 16 Jul 2007, 01:45 PM
  5. problem confirming order with downloadable items
    By marko718 in forum General Questions
    Replies: 6
    Last Post: 14 Jan 2007, 10:14 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR