I have ver 1.3.7 insalled, I imported the catalogue data from another zencart site and everything appeared to be fine, but I am unable to edit my products, when I click the preview button after editing a product I get this error:
Warning: main(includes/templates/template_default/templates/tpl_403_default.php): failed to open stream: No such file or directory in /home/saveonci/public_html/includes/templates/template_default/common/tpl_main_page.php on line 119
Warning: main(includes/templates/template_default/templates/tpl_403_default.php): failed to open stream: No such file or directory in /home/saveonci/public_html/includes/templates/template_default/common/tpl_main_page.php on line 119
Fatal error: main(): Failed opening required 'includes/templates/template_default/templates/tpl_403_default.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/saveonci/public_html/includes/templates/template_default/common/tpl_main_page.php on line 119
My tpl_main_page.php below, it only goes to line 103, so not sure why the error quotes line 119:
Code:<?php // // +----------------------------------------------------------------------+ // |zen-cart Open Source E-commerce | // +----------------------------------------------------------------------+ // | Copyright (c) 2003 The zen-cart developers | // | | // | http://www.zen-cart.com/index.php | // | | // | Portions Copyright (c) 2003 osCommerce | // +----------------------------------------------------------------------+ // | This source file is subject to version 2.0 of the GPL license, | // | that is bundled with this package in the file LICENSE, and is | // | available through the world-wide-web at the following url: | // | http://www.zen-cart.com/license/2_0.txt. | // | If you did not receive a copy of the zen-cart license and are unable | // | to obtain it through the world-wide-web, please send a note to | // | [email protected] so we can mail you a copy immediately. | // +----------------------------------------------------------------------+ // $Id: tpl_main_page.php 361 2004-09-29 03:36:09Z drbyte $ // $header_template = 'tpl_header.php'; $footer_template = 'tpl_footer.php'; $left_column_file = 'column_left.php'; $right_column_file = 'column_right.php'; $body_id = str_replace('_', '', $_GET['main_page']); // this file can be copied to /templates/your_template_dir/pagename // example: to override the privacy page // make a directory /templates/my_template/privacy // copy /templates/templates_defaults/common/tpl_main_page.php to /templates/my_template/privacy/tpl_main_page.php // to override the global settings and turn off columns un-comment the lines below for the correct column to turn off // to turn off the header and/or footer uncomment the lines below // Note: header can be disabled in the tpl_header.php // Note: footer can be disabled in the tpl_footer.php // $flag_disable_header = true; // $flag_disable_left = true; // $flag_disable_right = true; // $flag_disable_footer = true; ?> <body id="<?php echo $body_id; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>> <?php require(DIR_WS_MODULES . 'header.php'); ?> <table border="0" cellspacing="0" cellpadding="0" class="main_page"> <?php if ($banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) { if ($banner->RecordCount() > 0) { ?> <tr> <td align="center" colspan="3"><div class="banners"><?php echo zen_display_banner('static', $banner); ?></div></td> </tr> <?php } } ?> <tr> <?php if (COLUMN_LEFT_STATUS == 0 or (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '')) { // global disable of column_left $flag_disable_left = true; } if (!$flag_disable_left) { ?> <td valign="top" class="column_left"><table border="0" width="<?php echo COLUMN_WIDTH_LEFT; ?>" cellspacing="0" cellpadding="0" class="column_left"><tr><td> <?php require(DIR_WS_MODULES . 'column_left.php'); ?> </td></tr></table></td> <?php } ?> <td valign="top" class="center_column" width="100%"><?php require($body_code); ?></td> <?php if (COLUMN_RIGHT_STATUS == 0 or (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '')) { // global disable of column_right $flag_disable_right = true; } if (!$flag_disable_right) { ?> <td valign="top" class="column_right"><table border="0" width="<?php echo COLUMN_WIDTH_RIGHT; ?>" cellspacing="0" cellpadding="0" class="column_right"><tr><td> <?php require(DIR_WS_MODULES . 'column_right.php'); ?> </td></tr></table></td> <?php } ?> </tr> <?php if ($banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET4)) { if ($banner->RecordCount() > 0) { ?> <tr> <td align="center" colspan="3"><div class="banners"><?php echo zen_display_banner('static', $banner); ?></div> </td> </tr> <?php } } ?> </table> <?php require(DIR_WS_MODULES . 'footer.php'); ?> </body>



