Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

index page error


danitrin

Recommended Posts

I keep getting the following error on my index page and I can't figure out what the problem is.

 

Warning: main(includes/modules/FILENAME_NEW_PRODUCTS) [function.main]: failed to open stream: No such file or directory in /home/theda17/public_html/shop/index.php on line 218

 

Warning: main(includes/modules/FILENAME_NEW_PRODUCTS) [function.main]: failed to open stream: No such file or directory in /home/theda17/public_html/shop/index.php on line 218

 

Warning: main() [function.include]: Failed opening 'includes/modules/FILENAME_NEW_PRODUCTS' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/theda17/public_html/shop/index.php on line 218

 

 

This is the code that is on line 218 of the index page:

<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>

 

 

Can anyone help?

Link to comment
Share on other sites

FILENAME_NEW_PRODUCTS is a variable should be defined in includes/filenames.php. Make sure that definition exists in filenames.php.

 

filenames.php is included in application_top.php. Make sure the fillowing line is in application_top.php around line 62:

require(DIR_WS_INCLUDES . 'filenames.php');

 

And last, make sure that this line is in index.php:

require('includes/application_top.php');

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...