Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Nov 2011
    Posts
    12
    Plugin Contributions
    0

    bug Another checkout issue (PayPal/Customers)

    ZC Version = 1.5.8
    PHP Version = 7.4.33

    It looks like this happens when using the "Check out with PayPal" button on the shopping cart when no account is created. Using that button takes me to PayPal. I noticed it does not pass any shipping or tax information, then when you click continue to review order on PayPal, the error is generated and the "Warning: an error occured, please let us know" page displays. The customer shows the charge pending on their account, but I don't have anything pending on my end. The error generated is as follows.

    Code:
    [07-Dec-2022 18:50:12 America/Chicago] Request URI: /ipn_main_handler.php?type=ec&token=EC-5GY63375GW3422510&PayerID=MXZFN2VAVAA7G, IP address: X.XXX.XXX.XXX
    #1 trigger_error() called at [/includes/classes/db/mysql/query_factory.php:667]
    #2 queryFactory->show_error() called at [/includes/classes/db/mysql/query_factory.php:634]
    #3 queryFactory->set_error() called at [/includes/classes/db/mysql/query_factory.php:275]
    #4 queryFactory->Execute() called at [/includes/functions/database.php:130]
    #5 zen_db_perform() called at [/includes/modules/payment/paypalwpp.php:2265]
    #6 paypalwpp->ec_step2_finish() called at [/includes/modules/payment/paypalwpp.php:2013]
    #7 paypalwpp->ec_step2() called at [/ipn_main_handler.php:80]
    --> PHP Fatal error: 1364:Field 'registration_ip' doesn't have a default value :: INSERT INTO customers (customers_firstname, customers_lastname, customers_email_address, customers_email_format, customers_telephone, customers_fax, customers_gender, customers_newsletter, customers_password, customers_paypal_payerid) VALUES ('W***m', 'F***r', 'w***.com', 'TEXT', '', '', '', '0', '*****', '*****') ==> (as called by) /includes/functions/database.php on line 130 <== in /includes/classes/db/mysql/query_factory.php on line 667.
    I've been needing to upgrade my PHP to 8.0 so I will do that to see if it still produces this error and will reply once I test.

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,541
    Plugin Contributions
    127

    Default Re: Another checkout issue (PayPal/Customers)

    If registration_ip doesn't have a default value, something is messed up in your database. Try this command in phpMyAdmin (not Install SQL Patches) and report back with the error if any:

    ALTER TABLE customers MODIFY COLUMN registration_ip varchar(45) NOT NULL default '';

    Note: if your database has a prefix (like zc_ or zen_) then add that (change "customers" to "zc_customers" or whatever)
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Nov 2011
    Posts
    12
    Plugin Contributions
    0

    Default Re: Another checkout issue (PayPal/Customers)

    Ok. I had to update 'registration_ip' as well as 'last_login_ip'. Both of those were set to Default None. Changing those fields to Default As Defined (blank) fixed these errors.
    I've never edited that table since my last "new" install so I'm not sure how it would have been changed.

    Thank you again for your quick response!!

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,541
    Plugin Contributions
    127

    Default Re: Another checkout issue (PayPal/Customers)

    To verify:
    - this database is an upgrade from a prior version, correct?
    - did you run the zc_install procedure?
    - were there errors produced? Do you happen to have the logs?
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  5. #5
    Join Date
    Nov 2011
    Posts
    12
    Plugin Contributions
    0

    Default Re: Another checkout issue (PayPal/Customers)

    I upgraded from the 1.5.7 release. As far as I can remember, there were no errors when I ran the zc_install upgrade. Unfortunately I don't think I have any logs from then to provide but I will try to dig around the server logs and see if I see anything.

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,541
    Plugin Contributions
    127

    Default Re: Another checkout issue (PayPal/Customers)

    OK thanks for checking. Server logs not needed.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 

Similar Threads

  1. Paypal express checkout - working, but small issue confusing to customers...
    By zaphod in forum PayPal Express Checkout support
    Replies: 9
    Last Post: 19 Feb 2010, 09:05 PM
  2. PayPal issue with Billing in one country and Shipping to another?
    By giftmeister in forum PayPal Express Checkout support
    Replies: 2
    Last Post: 1 Mar 2009, 05:18 AM
  3. Paypal checkout confuse the customers?
    By bhakans in forum PayPal Express Checkout support
    Replies: 0
    Last Post: 4 Oct 2008, 12:32 PM
  4. Replies: 4
    Last Post: 18 Jan 2008, 08:14 PM

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