rainbows Posted November 13, 2007 Share Posted November 13, 2007 Hi, I am a PHP dummy ???, however after visiting this site I am keen to learn. I have shopping cart site, which is currently showing an error: Warning: main(includes/templates/template_default/common/tpl_columnar_display.php) [function.main]: failed to open stream: No such file or directory in /home/rainbows/public_html/cart/includes/templates/template_default/templates/tpl_modules_whats_new.php on line 19 Fatal error: main() [function.require]: Failed opening required 'includes/templates/template_default/common/tpl_columnar_display.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/rainbows/public_html/cart/includes/templates/template_default/templates/tpl_modules_whats_new.php on line 19 the tpl_columnar_display.php is: <?php /** * Common Template - tpl_columnar_display.php * * This file is used for generating tabular output where needed, based on the supplied array of table-cell contents. * * @package templateSystem * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: tpl_columnar_display.php 3157 2006-03-10 23:24:22Z drbyte $ */ ?> <?php if ($title) { ?> <?php echo $title; ?> <?php } ?> <?php if (is_array($list_box_contents) > 0 ) { for($row=0;$row<sizeof($list_box_contents);$row++) { $params = ""; //if (isset($list_box_contents[$row]['params'])) $params .= ' ' . $list_box_contents[$row]['params']; ?> <?php for($col=0;$col<sizeof($list_box_contents[$row]);$col++) { $r_params = ""; if (isset($list_box_contents[$row][$col]['params'])) $r_params .= ' ' . (string)$list_box_contents[$row][$col]['params']; if (isset($list_box_contents[$row][$col]['text'])) { ?> <?php echo '<div' . $r_params . '>' . $list_box_contents[$row][$col]['text'] . '</div>' . "\n"; ?> <?php } } ?> <br class="clearBoth" /> <?php } } ?> The tpl_modules_whats_new.php is: <?php /** * Module Template * * @package templateSystem * @copyright Copyright 2003-2005 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: tpl_modules_whats_new.php 2935 2006-02-01 11:12:40Z birdbrain $ */ $zc_show_new_products = false; include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_NEW_PRODUCTS)); ?> <!-- bof: whats_new --> <?php if ($zc_show_new_products == true) { ?> <div class="centerBoxWrapper" id="whatsNew"> <?php require($template->get_template_dir('tpl_columnar_display.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_columnar_display.php'); ?> </div> <?php } ?> <!-- eof: whats_new --> Sorry its a long message, but I figured I would give all the information I had in one go, save someone asking me for it. I would be extremely grateful if someone could help me out here to stop that error message appearing on my site. Thanks heaps in advance! Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted November 13, 2007 Share Posted November 13, 2007 one of your includes is dying, what ever one is on line 19, odds are the file path is invalid or the file you are calling is not there. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.