danitrin Posted January 19, 2007 Share Posted January 19, 2007 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 More sharing options...
Guest Posted January 19, 2007 Share Posted January 19, 2007 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 More sharing options...
danitrin Posted January 19, 2007 Author Share Posted January 19, 2007 thank you so much, I knew it was something silliy I was missing!! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.