Carola Posted May 3, 2005 Share Posted May 3, 2005 Hi, hope that I this is not an "FAQ" - I could not find a suitable answer for my problem in the forum... After installing osc I began to change some things an everything was ok. Today, the shop does not work anymore and I got this error message: Warning: main(DIR_WS_INCLUDESincludes/application_top.php): failed to open stream: No such file or directory in /home/www/netsh178/html/catalog/index.php on line 13 Fatal error: main(): Failed opening required 'DIR_WS_INCLUDESincludes/application_top.php' (include_path='.:/usr/local/lib/php') in /home/www/netsh178/html/catalog/index.php on line 13 This is the referenced line in index.php: <?php /* $Id: index.php,v 1.1 2003/06/11 17:37:59 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ require(DIR_WS_INCLUDES . 'includes/application_top.php'); // the following cPath references come from application_top.php $category_depth = 'top'; if (isset($cPath) && tep_not_null($cPath)) { $categories_products_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'"); $cateqories_products = tep_db_fetch_array($categories_products_query); if ($cateqories_products['total'] > 0) { $category_depth = 'products'; // display products } else { $category_parent_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " where parent_id = '" . (int)$current_category_id . "'"); $category_parent = tep_db_fetch_array($category_parent_query); if ($category_parent['total'] > 0) { $category_depth = 'nested'; // navigate through the categories } else { $category_depth = 'products'; // category has no products, but display the 'no products' message } } } Can anyone help? Thanx a lot, Carola Link to comment Share on other sites More sharing options...
Winterchild Posted May 3, 2005 Share Posted May 3, 2005 and if you change line 13 in require('includes/application_top.php'); ? Forum search Contributions search Documentation search (note: docs being adapted for MS3, may be different for MS2) 3 tips for better forum searching Want to post? Read this first: osCommerce for dummies Topic name etiquette Basics: Basics for design Right syntax to use near '-20, 20' Cannot re-assign $this Parse error Link to comment Share on other sites More sharing options...
Carola Posted May 3, 2005 Author Share Posted May 3, 2005 and if you change line 13 in require('includes/application_top.php'); ? <{POST_SNAPBACK}> Thanks a lot, Winterchild! It works! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.