dbuckley Posted March 3, 2007 Share Posted March 3, 2007 Hi all, I have set up a default install of OSC 2 MS2 and it was all working nicely. I then went through hobzilla's instructions to install the Multi-Store Contribution. And it broke everything. I'm just glad that this is not a live store at the moment. I got through step 1, 2, and 3 of the Multi-Store install doc without any errors or issues. Then I went to perform step 4 and I got barfo. go here to have a look: http://www.dcinet.com.au/catalog/admin/ Well is kinda looks like this: ---cut--- '); define('FILENAME_ZONES', 'zones.php'); //rmh M-S_multi-stores define('FILENAME_ADMINISTRATORS', 'administrators.php'); define('FILENAME_DISTRIBUTORS', 'distributors.php'); define('FILENAME_LOGIN', 'login.php'); define('FILENAME_LOGOFF', 'logoff.php'); define('FILENAME_STORES', 'stores.php'); //rmh M-S_multi-pricing define('FILENAME_CUSTOMERS_GROUPS', 'customers_groups.php'); define('FILENAME_PRODUCTS_PRICE_SCHEDULES', 'products_price_schedules.php'); ?> define('TABLE_ZONES_TO_GEO_ZONES', 'zones_to_geo_zones'); define('TABLE_WHOS_ONLINE', 'whos_online'); define('TABLE_ZONES', 'zones'); //rmh M-S_multi-stores define('TABLE_ADMINISTRATORS', 'administrators'); define('TABLE_CATEGORIES_TO_STORES', 'categories_to_stores'); define('TABLE_DISTRIBUTORS', 'distributors'); define('TABLE_LANGUAGES_TO_STORES', 'languages_to_stores'); define('TABLE_MANUFACTURERS_TO_STORES', 'manufacturers_to_stores'); define('TABLE_PRODUCTS_TO_STORES', 'products_to_stores'); define('TABLE_STORES', 'stores'); //rmh M-S_pricing define('TABLE_CUSTOMERS_GROUPS', 'customers_groups'); define('TABLE_PRODUCTS_PRICE_SCHEDULES', 'products_price_schedules'); ?> : 'configuration_value'); $statuses_array = array(array('id' => '0', 'text' => TEXT_DEFAULT)); $statuses_query = tep_db_query("select orders_status_id, orders_status_name from " . TABLE_ORDERS_STATUS . " where language_id = '" . (int)$languages_id . "' order by orders_status_name"); while ($statuses = tep_db_fetch_array($statuses_query)) { $statuses_array[] = array('id' => $statuses['orders_status_id'], 'text' => $statuses['orders_status_name']); } return tep_draw_pull_down_menu($name, $statuses_array, $order_status_id); } function tep_get_order_status_name($order_status_id, $language_id = '') { global $languages_id; if ($order_status_id < 1) return TEXT_DEFAULT; if (!is_numeric($language_id)) $language_id = $languages_id; $status_query = tep_db_query("select orders_status_name from " . TABLE_ORDERS_STATUS . " where orders_status_id = '" . (int)$order_status_id . "' and language_id = '" . (int)$language_id . "'"); $status = tep_db_fetch_array($status_query); return $status['orders_status_name']; } //// // Return a random value function tep_rand($min = null, $max = null) { static $seeded; if (!$seeded) { mt_srand((double)microtime()*1000000); $seeded = true; } if (isset($min) && isset($max)) { if ($min >= $max) { return $min; } else { return mt_rand($min, $max); } } else { return mt_rand(); } } // nl2br() prior PHP 4.2.0 did not convert linefeeds on all OSs (it only converted \n) function tep_convert_linefeeds($from, $to, $string) { if ((PHP_VERSION < "4.0.5") && is_array($from)) { return ereg_replace('(' . implode('|', $from) . ')', $to, $string); } else { return str_replace($from, $to, $string); } } function tep_string_to_int($string) { return (int)$string; } //// // Parse and secure the cPath parameter values function tep_parse_category_path($cPath) { // make sure the category IDs are integers $cPath_array = array_map('tep_string_to_int', explode('_', $cPath)); // make sure no duplicate category IDs exist which could lock the server in a loop $tmp_array = array(); $n = sizeof($cPath_array); for ($i=0; $i<$n; $i++) { if (!in_array($cPath_array[$i], $tmp_array)) { $tmp_array[] = $cPath_array[$i]; } } return $tmp_array; } ////rmh M-S_pricing begin // Returns an array with groups // TABLES: customers_groups function tep_get_customer_groups($default = '') { $groups_array = array(); if ($default) { $groups_array[] = array('id' => '', 'text' => $default); } $groups_query = tep_db_query("select customers_groups_id, customers_groups_name from " . TABLE_CUSTOMERS_GROUPS . " order by customers_groups_id"); while ($groups = tep_db_fetch_array($groups_query)) { $groups_array[] = array('id' => $groups['customers_groups_id'], 'text' => $groups['customers_groups_name']); } return $groups_array; } function tep_cfg_get_customer_group($group_id) { $group_query = tep_db_query("select customers_groups_name from " . TABLE_CUSTOMERS_GROUPS . " where customers_groups_id = '" . (int)$group_id . "'"); if (!tep_db_num_rows($group_query)) { if ($group_id < '0') { return TEXT_HIDE_PRICES; } else { return TEXT_DEFAULT; } } else { $group = tep_db_fetch_array($group_query); return $group['customers_groups_name']; } } function tep_groups_name($groups_id) { $groups = tep_db_query("select ---end cut--- There's heaps more and then a couple of banners at the bottom. If I go to the catalog then all I get for my trouble is a blank page. http://www.dcinet.com.au/catalog/ any hints or tips as to where I might have gone wrong would be greatly appreciated. Going to bed now will check in in the morning and will probably have another go at the install. :( Kind regards, David Buckley. (Budding Shop Runner) :) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.