thebum Posted December 26, 2003 Share Posted December 26, 2003 yesterday my catalog worked just find. I came home and this is what i saw when I went to my webpage : for default handler or set to 'mysql' ?>own list of countries function tep_get_country_list($name, $selected = '', $parameters = '') { $countries_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT)); $countries = tep_get_countries(); for ($i=0, $n=sizeof($countries); $i<$n; $i++) { $countries_array[] = array('id' => $countries[$i]['countries_id'], 'text' => $countries[$i]['countries_name']); } return tep_draw_pull_down_menu($name, $countries_array, $selected, $parameters); } ?> ($this->$key)!="user function") $this->$key=$kv['value']; } } } ?> Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at e:\hshome\usedgum\bumbaits.com\catalog\includes\configure.php:48) in e:\hshome\usedgum\bumbaits.com\catalog\includes\functions\sessions.php on line 67 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at e:\hshome\usedgum\bumbaits.com\catalog\includes\configure.php:48) in e:\hshome\usedgum\bumbaits.com\catalog\includes\functions\sessions.php on line 67 . " order by sort_order"); while ($languages = tep_db_fetch_array($languages_query)) { $this->catalog_languages[$languages['code']] = array('id' => $languages['languages_id'], 'name' => $languages['name'], 'image' => $languages['image'], 'directory' => $languages['directory']); } $this->browser_languages = ''; $this->language = ''; if ( (!empty($lng)) && (isset($this->catalog_languages[$lng])) ) { $this->language = $this->catalog_languages[$lng]; } else { $this->language = $this->catalog_languages[DEFAULT_LANGUAGE]; } } function get_browser_language() { $this->browser_languages = explode(',', getenv('HTTP_ACCEPT_LANGUAGE')); for ($i=0, $n=sizeof($this->browser_languages); $i<$n; $i++) { reset($this->languages); while (list($key, $value) = each($this->languages)) { if (eregi('^(' . $value[0] . ')(;q=[0-9]\\.[0-9])?$', $this->browser_languages[$i]) && isset($this->catalog_languages[$key])) { $this->language = $this->catalog_languages[$key]; break 2; } } } } } ?> NKNOWN_CARD', 'The first four digits of the number entered are: %s If that number is correct, we do not accept that type of credit card. If it is wrong, please try again.'); /* The following copyright announcement can only be appropriately modified or removed if the layout of the site theme has been modified to distinguish itself from the default osCommerce-copyrighted theme. For more information please read the following Frequently Asked Questions entry on the osCommerce support site: http://www.oscommerce.com/community.php/faq,26/q,50 Please leave this comment intact together with the following copyright announcement. */ define('FOOTER_TEXT_BODY', 'Copyright ? 2003 osCommerce Powered by osCommerce'); ?> if (tep_db_num_rows($categories_query) > 0) { $categories = tep_db_fetch_array($categories_query); $breadcrumb->add($categories['categories_name'], tep_href_link(FILENAME_DEFAULT, 'cPath=' . implode('_', array_slice($cPath_array, 0, ($i+1))))); } else { break; } } } elseif (isset($HTTP_GET_VARS['manufacturers_id'])) { $manufacturers_query = tep_db_query("select manufacturers_name from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . $HTTP_GET_VARS['manufacturers_id'] . "'"); $manufacturers = tep_db_fetch_array($manufacturers_query); $breadcrumb->add($manufacturers['manufacturers_name'], tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'])); } // add the products model to the breadcrumb trail if (isset($HTTP_GET_VARS['products_id'])) { $model_query = tep_db_query("select products_model from " . TABLE_PRODUCTS . " where products_id = '" . $HTTP_GET_VARS['products_id'] . "'"); $model = tep_db_fetch_array($model_query); $breadcrumb->add($model['products_model'], tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . $cPath . '&products_id=' . $HTTP_GET_VARS['products_id'])); } // set which precautions should be checked define('WARN_INSTALL_EXISTENCE', 'true'); define('WARN_CONFIG_WRITEABLE', 'false'); define('WARN_SESSION_DIRECTORY_NOT_WRITEABLE', 'true'); define('WARN_SESSION_AUTO_START', 'true'); define('WARN_DOWNLOAD_DIRECTORY_NOT_READABLE', 'true'); ?> I reinstalled Oscommerce but I still get the above errors. I also cannot login to the Admin console for oscommerce anymore. Any ideas on what has happened? and how I may be able to fix this without rebuilding the ENTIRE catalog ? You can see the catalog at catalog webpage Thanks for you help ! Link to comment Share on other sites More sharing options...
OceanRanch Posted December 26, 2003 Share Posted December 26, 2003 I don't know if this is the problem but give it look and see. Check the end (beyond line 46) of your \catalog\includes\configure.php for any blank lines or spaces after the closing ?> and delete them. Tom Link to comment Share on other sites More sharing options...
thebum Posted December 26, 2003 Author Share Posted December 26, 2003 The end of the config file look slike this: define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?>for default handler or set to 'mysql' ?> Any ideas ? thanks Link to comment Share on other sites More sharing options...
OceanRanch Posted December 26, 2003 Share Posted December 26, 2003 The end of the configure.php file should look like this: define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'?> Do not use the osc File Manager to edit it. Use your own editor and ftp it up to the server if you have to. Make sure the is no blanks after the last ?> Your file has two ?> ...... HTH Tom Link to comment Share on other sites More sharing options...
thebum Posted December 26, 2003 Author Share Posted December 26, 2003 Well i fixed the end of the file...but i am pretty sure i have "jacked" things up so much now that I am going to have to start over :( ...This doesn;t sound possible but, Is there anyway your can reinstall oscommerce and keep the same DB ? :rolleyes: thanks for all of your help ! Link to comment Share on other sites More sharing options...
Guest Posted December 27, 2003 Share Posted December 27, 2003 easiest way, is to just load the software then manually configure the configure.php files, and you should be able to connect back to the original database Link to comment Share on other sites More sharing options...
thebum Posted December 27, 2003 Author Share Posted December 27, 2003 Are you refering to the admin config file: If I was to use the existing DB how which files will i need to edit? Thanks for all of your help ! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.