Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Anyone ever see this error?


rustyclockwork

Recommended Posts

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

$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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...