Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default PayPal IPN - 1292 Incorrect datetime value

    After upgrading to 1.3.8 I noticed that the following error message is displayed after placing an order and paying using the PayPal IPN module.

    1292 Incorrect datetime value: '09:03:49 03 2007' for column 'payment_date' at row 1
    Has anyone else experienced this problem?

  2. #2
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: PayPal IPN - 1292 Incorrect datetime value

    Just fixed this issue.

    After turning off the MySQL 'strict mode' the PayPal pament module is now working as it should.

  3. #3
    Join Date
    Jan 2008
    Posts
    5
    Plugin Contributions
    0

    Default Re: PayPal IPN - 1292 Incorrect datetime value

    Hi,

    My first post. We had the same issue, the problem is we use hosting on windows
    server, where the MySQL is shared, so our host refused to do any changes as
    suggested.

    The solution was to dig around the code, i am not PHP programmer, but i have
    tryed my best. To fix, open:

    /includes/modules/payment/paypal.php

    goto after_process(), then find the part where the paypal data is filled into the
    array:
    Code:
    'payment_date' => trim(preg_replace('/[^0-9-:]/', ' ', $this->pdtData['payment_date'])),
    replace with this:
    Code:
    'payment_date' => $this->datetime_to_sql_format($this->pdtData['payment_date']), 

    Well, i hope this will help somebody.

    we are on MySQL 5.0.x
    and ZC 1.3.8

    Regards, Chris

  4. #4

    Default Re: PayPal IPN - 1292 Incorrect datetime value

    Thanks for the posts. I had the same error and the fixes provided here worked for me.

    Thanks again.

  5. #5
    Join Date
    Mar 2008
    Posts
    2
    Plugin Contributions
    0

    Default Re: PayPal IPN - 1292 Incorrect datetime value

    Ok, I have just recently discovered zencart and I am absolutely blown away by the community here. I have found an answer to every potentially catastrophic issue making the whole implementation and modding process fantastic!

    Yet again, I had this exact problem and your step by step explanation coupled with user confirmation is exceptional.

    To all out there, you are awesome. Keep up the great work.

  6. #6
    Join Date
    Jul 2008
    Location
    Australia
    Posts
    28
    Plugin Contributions
    0

    Default Re: PayPal IPN - 1292 Incorrect datetime value

    I made the change above, but get a blank page now.

    Is there any chance someone could post the php file for this alteration.

    I am using the latest Version 1.3.8

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

    Default Re: PayPal IPN - 1292 Incorrect datetime value

    Quote Originally Posted by directprint View Post
    I made the change above, but get a blank page now.
    https://www.zen-cart.com/tutorials/index.php?article=82
    .

    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.

  8. #8
    Join Date
    Oct 2008
    Posts
    8
    Plugin Contributions
    0

    Default Re: PayPal IPN - 1292 Incorrect datetime value

    fantastic.

    Running windows server 2003, IIS6, PHP5, MYSQL 5 and the FIX posted above fixed my problem.

    CONGRATULATIONS

  9. #9

    Default Re: PayPal IPN - 1292 Incorrect datetime value

    I changed the code and after returning from PP got this:

    Fatal error: Call to undefined method paypal::datetime_to_sql_format() in /home2/midwest/public_html/includes/modules/payment/paypal.php on line 412

    please help...
    MonkFunk Music Community
    Free Music Website

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

    Default Re: PayPal IPN - 1292 Incorrect datetime value

    Perhaps you're working with an incompatible version of Zen Cart?
    .

    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.

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Replies: 4
    Last Post: 14 Jan 2009, 11:45 AM
  2. PayPal IPN Order Total Incorrect v1.3.7.1 with addons
    By colin270 in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 5 Aug 2008, 04:43 PM
  3. PayPal error: 1292 Incorrect datetime value: '00:13:47 09 2008' for column
    By directprint in forum PayPal Express Checkout support
    Replies: 2
    Last Post: 11 Jul 2008, 08:47 AM
  4. PayPal IPN: Incorrect billing info passed over
    By Ked in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 6 Nov 2007, 04:49 PM
  5. I'm using PayPal Express and PayPal IPN, should I remove PayPal IPN?
    By tj1 in forum PayPal Express Checkout support
    Replies: 3
    Last Post: 3 Nov 2007, 05:20 AM

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