This is my first store and I am not an expert.

Followed the installation procedure after a download of the latest version yesterday, got one fatal error message and two deprectaed messages.

Fatal error: Cannot redeclare date_diff()
/webshop/admin/includes/functions/general.php on line 3001

line 3001 is the third line from the bottom (it is an empty line) of this script:

// compute the days between two dates

function date_diff($date1, $date2) {

//$date1 today, or any other day

//$date2 date to check against



$d1 = explode("-", $date1);

$y1 = $d1[0];

$m1 = $d1[1];

$d1 = $d1[2];



$d2 = explode("-", $date2);

$y2 = $d2[0];

$m2 = $d2[1];

$d2 = $d2[2];



$date1_set = mktime(0,0,0, $m1, $d1, $y1);

$date2_set = mktime(0,0,0, $m2, $d2, $y2);


What should the script look like in order to solve this fatal error?

return(round(($date2_set-$date1_set)/(60*60*24)));

}