Electrodrome, on Jul 22 2007, 02:01 PM, said:
Hi there,
I have installed Link Manager II 1.17 and get following error if click on linkmanager in the admin area:
Fatal error: Cannot redeclare tep_set_categories_status() (previously declared in /srv/www/web1/html/catalog/admin/includes/functions/general.php:15) in /srv/www/web1/html/catalog/admin/includes/functions/links.php on line 363
Further I have installed: Enable & Disable Categories 1.6.12
Is there a collision with that contrib?
I've no idea to solve that problem. Please help me...
in the file admin/includes/functions/links.php in line 363 is this function:
// Sets the status of a link
function tep_set_categories_status($cat_id, $status) {
return tep_db_query("update " . TABLE_LINK_CATEGORIES . " set link_categories_status = '" . (int)$status . "', link_categories_last_modified = now() where link_categories_id = '" . (int)$cat_id . "'");
if ($status == '10' || $status == '11') {
$status -= 10; //needed to distinguish between links status
return tep_db_query("update " . TABLE_LINK_CATEGORIES . " set link_categories_status = '" . (int)$status . "', link_categories_last_modified = now() where link_categories_id = '" . (int)$cat_id . "'");
} else {
return -1;
}
}
////
the declaration of tep_set_categories_status is the same as in Enable & Disable Categories 1.6.12
In which further files must I modify this tep_set_categories to i.e. tep_set_linkcategories_status ???