Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse error after adding a Box Link


tedl

Recommended Posts

Posted

:unsure: After adding a About Us Box Link I received an error message stating that The server did not have the files. I then uploaded the files and received the followong: Parse error: parse error in /home/livingto/public_html/includes/application_top.php on line 50

 

Warning: main(DIR_WS_LANGUAGES/FILENAME_DEFAULT): failed to open stream: No such file or directory in /home/livingto/public_html/index.php on line 34

 

Fatal error: main(): Failed opening required 'DIR_WS_LANGUAGES/FILENAME_DEFAULT' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/livingto/public_html/index.php on line 34

 

I added the above file as follows:

 

<?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('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

'DIR_WS_LANGUAGES/FILENAME_DEFAULT' (include_path='.:/usr/lib/php:/usr/local/lib/php')

}

}

}

After adding the missing file, I receive the following Parse error: parse error in /home/livingto/public_html/index.php on line 29

 

Please help me to find the problem.

Thank You,

tedl -Ted

Posted

you are missing the require for the line it should read

  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT);

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Posted

Steve,

Thanks, I made the correction but still have the error.

I do appreciate your help.

 

Does the (include_path='.:/usr/lib/php:/usr/local/lib/php') even belong in the index.php file.

 

I was told to add it after uploading my files.

 

I used notepad and it tried saved about_us.php to about_us_php.html.

 

Thanks tedl

:unsure:

Posted

:blink: I am still not able to clear this up.

 

HELP PLEASE

 

Thank You

 

Ted L

Posted

:( I may try to reinstall osCommerce and start over!!

If you have any other suggestions, please let me know.

 

Thank You,

 

Ted L.

Archived

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

×
×
  • Create New...