I'm getting this error message to my PHP error log whenever I move from one manufacturer to another under admin.
PHP Notice: Use of undefined constant TOP - assumed 'TOP' in /usr/www/users/flip/catalog/admin/includes/boxes/catalog.php on line 34 (35, 36, 37, ..., 45, 46, 47)
Here's line 34 (35, 36, ... 47 similar, all have TOP added):
$contents[] = array('text' => tep_admin_files_boxes(FILENAME_CATEGORIES, BOX_CATALOG_CATEGORIES_PRODUCTS, TOP) .
Now 'TOP' was added to admin/includes/boxes/catalog.php in the newest release of OSCMax 2.0.15 - no 'TOP' in 2.0.4 boxes/catalogl.php - and it is linked to admin/includes/functions/general.php but darned if I can see where (its late - I'm tired), the supposedly relevant line is:
$sub_boxes = '<a href="' . tep_href_link($filename) . '" class="menuBoxContentLink" target="_' . $target_window . '">' . $sub_box_name . '</a><br>';
When I deleted all the "TOP"s then I get this error message:
PHP Warning: Missing argument 3 for tep_admin_files_boxes(), called in /usr/www/users/flip/catalog/admin/includes/boxes/catalog.php on line 34 (35, 36...46, 47) and defined in /usr/www/users/flip/catalog/admin/includes/functions/general.php on line 50
PHP Notice: Undefined variable: target_window in /usr/www/users/flip/catalog/admin/includes/functions/general.php on line 56
Here is line 50 from catalog.php:
function tep_admin_files_boxes($filename, $sub_box_name, $target_window) {
And here is line 56 from catalog.php:
$sub_boxes = '<a href="' . tep_href_link($filename) . '" class="menuBoxContentLink" target="_' . $target_window . '">' . $sub_box_name . '</a><br>';
So is it this a real error or is it just a minor problem that isn't hurting anything?
John :-#)#





LinkBack URL
About LinkBacks











Bookmarks