Results 1 to 8 of 8
  1. #1
    Join Date
    Aug 2006
    Location
    Singapore
    Posts
    167
    Plugin Contributions
    1

    Default PHP Warning: mktime() expects parameter 6 to be long

    Dear Zenner!

    My client have a trouble with his store, whenever a customer made payment using PayPal IPN the order is not recorded in zencart admin. This problem only occur after we upgraded the store to v1.3.9h (from v1.3.8)

    I have verified all the files against v1.3.9h package and can confirm all the files are in the good shape and updated.

    This store doesn't have customizations and maybe just a few standard non obtrusive mod.

    All are in good shape when I checked.

    I attempted to remove, reinstall PayPal IPN module, and the reuploaded the payment modules files, but to no avail.

    In the log of PayPal IPN, I found these below, at the last bits there is PHP Warning.... checked the forum but didn't have a clue on it, could it be the cause?

    Code:
    Dec 20 2010 15:14 -- CURL response: VERIFIED
    
    Dec 20 2010 15:14 -- IPN INFO (cl) - Confirmation/Validation response VERIFIED
    
    Dec 20 2010 15:14 -- Breakpoint: 1 - Collected data from PayPal notification
    
    Dec 20 2010 15:14 -- IPN INFO :: Transaction email details.
    From IPN =  | [email protected]
    From CONFIG = [email protected]
    
    Dec 20 2010 15:14 -- Breakpoint: 2 - Validated transaction components
    
    Dec 20 2010 15:14 -- Breakpoint: 3 - Communication method verified
    
    Dec 20 2010 15:14 -- IPN NOTICE :: Found pending-address record in database
    
    Dec 20 2010 15:14 -- Breakpoint: 4 - Details:  txn_type=cleared-address    ordersID = 0  IPN_id=75
    
       Relevant data from POST:
         txn_type = cleared-address
         parent_txn_id = None
         txn_id = 34L6572232024184Y
    
    Dec 20 2010 15:14 -- IPN NOTICE :: IPN pausing: waiting for PDT to process. Sleeping 10 seconds ...
    
    Dec 20 2010 15:14 -- Breakpoint: 5 - Transaction type (txn_type) = cleared-address   [parentLookup=cleared-address]
    
    Dec 20 2010 15:14 -- IPN NOTICE :: Storing order/update details for order #0 txn_id: 34L6572232024184Y PP IPN ID: 75
    
    Dec 20 2010 15:14 -- IPN NOTICE :: Added PP status-history record for order #0 txn_id: 34L6572232024184Y (updated/child) PP IPN ID: 75
    
    Dec 20 2010 15:14 -- IPN NOTICE :: Set new status 2 for order ID = 0
    
    Dec 20 2010 15:14 -- IPN NOTICE :: Updating order #0 to status: 2 (txn_type: cleared-address)
    
    Dec 20 2010 15:14 -- IPN NOTICE :: Update complete.
    
    [20-Dec-2010 15:14:28] PHP Warning:  mktime() expects parameter 6 to be long, string given in /home/hawaiifl/public_html/includes/functions/functions_general.php on line 1462
    Dec 20 2010 15:14 -- IPN NOTICE :: Updating order #0 downloads (if any).  New max days: 14970, New count: 5
    We really appreciate any helps

    Milkyway

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: PHP Warning: PHP Warning: mktime() expects parameter 6 to be long

    Code:
    mktime() expects parameter 6 to be long, string given in /home/hawaiifl/public_html/includes/functions/functions_general.php on line 1462
    Looks like the correct/expected date format is not being passed as it calls for
    Code:
    $date2_set = mktime(0,0,0, $m2, $d2, $y2);
    $m2 = 2digits
    $d2 = 2digits
    $y2 = 2digits
    Zen-Venom Get Bitten

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

    Default Re: PHP Warning: PHP Warning: mktime() expects parameter 6 to be long

    1. Is there a reason why you're using the older IPN module when Express Checkout is more reliable and offers the same features at the same cost?

    2. Does that problem only occur if the customer triggers a pending-address condition? or does it happen on all orders?
    .

    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.

  4. #4
    Join Date
    Aug 2006
    Location
    Singapore
    Posts
    167
    Plugin Contributions
    1

    Default Re: PHP Warning: PHP Warning: mktime() expects parameter 6 to be long

    Quote Originally Posted by DrByte View Post
    1. Is there a reason why you're using the older IPN module when Express Checkout is more reliable and offers the same features at the same cost?

    2. Does that problem only occur if the customer triggers a pending-address condition? or does it happen on all orders?
    Kobra/DrByte .. Thank you for your reply...


    1. PayPal IPN works before the upgrade so me and client curious of this issue, he seems wants to stay with it, though we can think about moving to PayPal Express if this the best way to resolve the issue.

    2. This site is selling flowers, so the shipping address is always different than billing address, because customer send it as gift.

    We only have two success orders posted to admin, and it was test orders made by my client, and I just realized he used his own address for shipping, means the same billing and shipping, so what was failed were the orders from normal customer who put different shipping address than their billing address.

    I think we see some clue here... do you know what it is?

    Thanks!

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

    Default Re: PHP Warning: PHP Warning: mktime() expects parameter 6 to be long

    Sounds like more testing is required on your end to determine what exactly is causing the problem. Can't fix the problem if we don't know exactly what's causing it.

    If I start from a brand new clean fresh shop with no customizations, how exactly can I reproduce this same problem, consistently?
    .

    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.

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: PHP Warning: mktime() expects parameter 6 to be long

    PayPal IPN works before the upgrade
    Try from the admin

    Record the Module settings
    Uninstall it
    Reinstall it

    Run a test to see if that fixes it
    Zen-Venom Get Bitten

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

    Default Re: PHP Warning: mktime() expects parameter 6 to be long

    kobra, he already said he did that, in his first post.
    I don't think that's the issue.

    It seems more likely that it's something amuck with addresses etc.

    Problem probably completely disappears if switching to Express Checkout instead
    .

    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
    Aug 2006
    Location
    Singapore
    Posts
    167
    Plugin Contributions
    1

    Default Re: PHP Warning: mktime() expects parameter 6 to be long

    DrByte,

    My client has concern that if he switch to PayPal Express he will not be able to receive credit card payment (only PayPal user can purchase), while with PayPal IPN non Paypal customer can pay him using credit card.

    I have reinstalled Paypal, even double check all the files again with Winmerge, nothing is suspicious, and I don't know what to do know, any idea how I can resolve this problem?

    Does PayPal IPN has issue with v1.3.9? Because before upgrade we dont have this issue.

    Many thanks!

 

 

Similar Threads

  1. v153 PHP Warning: addslashes() expects parameter 1 to be string
    By BlackOrchidCouture in forum General Questions
    Replies: 2
    Last Post: 17 Sep 2014, 10:47 PM
  2. PHP Warning: addslashes() expects parameter 1 to be string, array given
    By schoolboy in forum All Other Contributions/Addons
    Replies: 11
    Last Post: 10 May 2013, 02:19 PM
  3. Replies: 41
    Last Post: 19 Sep 2012, 04:04 AM
  4. PHP Warning mktime() expects parameter 6 to be long
    By dave_dave in forum General Questions
    Replies: 2
    Last Post: 2 Sep 2010, 04:41 AM
  5. Replies: 8
    Last Post: 6 Jan 2010, 02:34 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