Fatal error: Cannot redeclare date_add() in /include/functions.php on line 2160

In: quick tips

19 Aug 2011

PHP Link Directory (phpLD) Fatal error: Cannot redeclare date_add() in /include/functions.php on line 2160

You are getting this error because function date_add() was introduced into newer versions of PHP. A quick fix is to replace date_add from include/functions.php with date_add2, there should be only 2 occurrences:

function date_add($timestamp, $months)

return date_add($start, $units * $mul);

1 Response to Fatal error: Cannot redeclare date_add() in /include/functions.php on line 2160

Avatar

kerman

June 7th, 2012 at 1:34 am

Hi, after I applied this patch, the widgets doesn’t show anymore. Any suggestions? Thanks!

Comment Form

About

Welcome UK Business Directory the perfect place if you are looking for an UK business or service.

We run a light directory, conveniently organized, and highly alert to your needs.

Webmasters simply use the Submit button, select the most suitable category and submit your sites.

Advertising