[Plugin: Countdown Timer] Fatal error: Cannot redeclare cmp() (previously declared …. gcal-sidebar
-
Hello from France
I’ve two plugins which use the same cmp() function :
So when i try to create an event , i get the following message :
“
Fatal error: Cannot redeclare cmp() (previously declared in F:\inetpub\vhosts\xxxx.com\httpdocs\ddddd\wp-content\plugins\gcal-sidebar\gcal-sidebar.php:30) in F:\inetpub\vhosts\xxxx.com\httpdocs\ddddd\wp-content\plugins\countdown-timer\fergcorp_countdownTimer.php on line 1022
“In gcal sidebar :
“
function cmp($a, $b) {
if($a[‘startTime’] > $b[‘startTime’])
return 1;
if($a[‘startTime’] == $b[‘startTime’])
return 0;
if($a[‘startTime’] < $b[‘startTime’])
return -1;
}In fercop :
“
/*Begin sorting events by time*/
function cmp($adate, $bdate) {
if($adate < $bdate){
return -1;
}else if($adate == $bdate){
return 0;
}else{
return 1;
“Desactivation then activation of the plugin without succes .
How can i fix this ?
Many thanks,
Didier
- The topic ‘[Plugin: Countdown Timer] Fatal error: Cannot redeclare cmp() (previously declared …. gcal-sidebar’ is closed to new replies.