rustyclockwork Posted December 28, 2009 Share Posted December 28, 2009 I installed an eBay contrib that looks as if it doesn't have a support forum. Everything works, but before it shows the auctions on my site, these two lines show up: Warning: mktime() expects parameter 2 to be long, string given in /home/oldfoun1/public_html/catalog/includes/modules/current_auctions_module.php on line 116 Warning: mktime() expects parameter 4 to be long, string given in /home/oldfoun1/public_html/catalog/includes/modules/current_auctions_module.php on line 116 And below are lines 115, 116, and 117 in the current_auctions_module.php file. // mktime is the marked time, and time() is the current time. $target = mktime($hour,$minute,$second,$month,$day,$year); $diff = $target - time(); Do I need to change my database entries to a different type of storage? Or should I modify the code? I looked up the functions for mktime(), but I'm not sure how to debug this one. Thanks for any input, Jason Link to comment Share on other sites More sharing options...
germ Posted December 28, 2009 Share Posted December 28, 2009 $target = mktime((int)$hour,(int)$minute,(int)$second,(int)$month,(int)$day,(int)$year); That should fix it. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
rustyclockwork Posted December 28, 2009 Author Share Posted December 28, 2009 That's two that you've fixed Germ. I've been trying to help on some parts of the forum, to give back what all I've taken in. Thank you again, Jason Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.