Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Urgent: Problem with Application_top.php


Recommended Posts



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:





$Id: index.php,v 1.1 2003/06/11 17:37:59 hpdl Exp $


osCommerce, Open Source E-Commerce Solutions



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

and if you change line 13 in



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 for design

Right syntax to use near '-20, 20'

Cannot re-assign $this

Parse error

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...