Jump to content

I dont understand this error on my site, please help


rainbows

Recommended Posts

Hi, I am a PHP dummy ???, however after visiting this site I am keen to learn. :o

 

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! ;D

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.