Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2010
    Posts
    2
    Plugin Contributions
    0

    help question PHP Warning mktime() expects parameter 6 to be long

    Hi everyone,

    I'm just trying to help a client figure out why his Zen Cart /cache/myDEBUG-xxxxxxx.log files show this over and over:

    PHP Warning: mktime() expects parameter 6 to be long, string given in /home/****/public_html/cart/includes/functions/functions_general.php on line 1476
    I checked line 1476 in functions_general.php and it simply holds this:

    $date1_set = mktime(0,0,0, $m1, $d1, $y1);
    I've searched the ZC FAQ area as well as this forum and I can't seem to find any explanation or anyone with the same problem.

    Since I'm not the cart owner and I'm just trying to help, I don't have a ton of details but I do know the following information:

    ZC Version - 1.39d
    Environment - Redhat Enterprise Linux, Apache 2.2, PHP 5.13, mySQL 5.1.47

    The store has been live and handling transactions without issues for a long time.

    I'll try to get more details from him ASAP, but I was hoping that in the meantime perhaps someone here has already experienced this kind of issue and knows what needs to be changed.

    Thank you kindly for any help at all!
    Last edited by swguy; 2 Sep 2010 at 12:24 AM.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

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

    A very important piece of information is what was being attempted when the error was produced.
    That function is called from all kinds of possible places, so it's impossible to just pick one out of the air and guess which other page or addon or customization is calling that function with bad data.
    .

    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.

  3. #3
    Join Date
    Sep 2010
    Posts
    2
    Plugin Contributions
    0

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

    Thanks DrByte. I'll schedule a call with him and have him run through some test transactions while I watch the apache logs and the debug logs to see if we can nail it down.

 

 

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 milkyway in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 29 Dec 2010, 03:19 PM
  5. Replies: 8
    Last Post: 6 Jan 2010, 02:34 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