Guest Posted July 28, 2006 Share Posted July 28, 2006 I added the Canada Post with dimentions shipping mod, and now I get this error in my Admin>catalog>Categories / Products I looked at the file, I don't quite understand this. (I just finished learning a ton on phpBB2, this looks different) Any help would be great. here is the categoties.php code in the area of the error. line 701 to 732 // Get parent_id for subcategories if search if ($HTTP_GET_VARS['search']) $cPath= $categories['parent_id']; if ( ((!$HTTP_GET_VARS['cID']) && (!$HTTP_GET_VARS['pID']) || (@$HTTP_GET_VARS['cID'] == $categories['categories_id'])) && (!$cInfo) && (substr($HTTP_GET_VARS['action'], 0, 4) != 'new_') ) { $category_childs = array('childs_count' => tep_childs_in_category_count($categories['categories_id'])); $category_products = array('products_count' => tep_products_in_category_count($categories['categories_id'])); $cInfo_array = tep_array_merge($categories, $category_childs, $category_products); $cInfo = new objectInfo($cInfo_array); } if ( (is_object($cInfo)) && ($categories['categories_id'] == $cInfo->categories_id) ) { echo ' <tr class="dataTableRowSelected" onmouseover="this.style.cursor=\'hand\'" onclick="document.location.href=\'' . tep_href_link(FILENAME_CATEGORIES, tep_get_path($categories['categories_id'])) . '\'">' . "\n"; } else { echo ' <tr class="dataTableRow" onmouseover="this.className=\'dataTableRowOver\';this.style.cursor=\'hand\'" onmouseout="this.className=\'dataTableRow\'" onclick="document.location.href=\'' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $categories['categories_id']) . '\'">' . "\n"; } ?> <td class="dataTableContent"><?php echo '<a href="' . tep_href_link(FILENAME_CATEGORIES, tep_get_path($categories['categories_id'])) . '">' . tep_image(DIR_WS_ICONS . 'folder.gif', ICON_FOLDER) . '</a> <b>' . $categories['categories_name'] . '</b>'; ?></td> <td class="dataTableContent" align="center"> </td> <td class="dataTableContent" align="right"><?php if ( (is_object($cInfo)) && ($categories['categories_id'] == $cInfo->categories_id) ) { echo tep_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', ''); } else { echo '<a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $categories['categories_id']) . '">' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>'; } ?> </td> </tr> <?php } $products_count = 0; if ($HTTP_GET_VARS['search']) { $products_query = tep_db_query("select p.products_id, pd.products_name, p.products_quantity, p.products_image, p.products_price, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status, p2c.categories_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' and p.products_id = p2c.products_id and pd.products_name like '%" . $HTTP_GET_VARS['search'] . "%' order by pd.products_name"); } else { $products_query = tep_db_query("select p.products_id, pd.products_name, p.products_quantity, p.products_image, p.products_price, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' and p.products_id = p2c.products_id and p2c.categories_id = '" . $current_category_id . "' order by pd.products_name"); } while ($products = tep_db_fetch_array($products_query)) { $products_count++; $rows++; Quote Link to comment Share on other sites More sharing options...
Jan Zonjee Posted July 29, 2006 Share Posted July 29, 2006 I added the Canada Post with dimentions shipping mod, and now I get this error in my Admin>catalog>Categories / ProductsThe function tep_array_merge is not in the current osC Milestone 2 version (it was in Milestone 1). Possible there was a categories.php file in the package which you used? If so, it is ancient. You will have to try to add the changes to that file manually with the current version of categories.php. Quote Link to comment Share on other sites More sharing options...
Guest Posted August 3, 2006 Share Posted August 3, 2006 Would I be able to just comment out the line, or do I have the wrong config.php all together? Quote Link to comment Share on other sites More sharing options...
Guest Posted August 3, 2006 Share Posted August 3, 2006 I mean catagories.php Quote Link to comment Share on other sites More sharing options...
Guest Posted August 3, 2006 Share Posted August 3, 2006 I grabed the catagories.php from Canada Post Shipping Module 3.1.1 (MS2) and it has fixed the issue. Thanks Quote Link to comment Share on other sites More sharing options...
Jan Zonjee Posted August 3, 2006 Share Posted August 3, 2006 I mean catagories.php What is the problem here? The top download of the Canada Post contribution, the one by crshNbrn of October 23, 2004 contains both a MS2.2 categories.php file and an install.txt to do things manual. Where did you get the old stuff? Throw it away and use the new. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.