Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2007
    Posts
    83
    Plugin Contributions
    0

    Default Contact us page does not work

    Hello folks, I have a big mess in my contact us page, here is the error:
    PHP Code:
    Fatal error: require() [function.require]: Failed opening required '' (include_path='.:/usr/local/share/pear'in /home/u7/johndesigns/creativasales.com/html/includes/templates/template_default/templates/tpl_contact_us_default.php on line 40 
    I don't have an idea how to fix it, if anyone can help I would appreciate it.

    Here is the tpl_contact_us_default.php page:

    PHP 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_contact_us_default.php 1069 2005-03-24 20:08:06Z drbyte $
    //
    ?>
    <?php 
    echo zen_draw_form('contact_us'zen_href_link(FILENAME_CONTACT_US'action=send')); ?>
    <table  width="100%" border="0" cellspacing="2" cellpadding="2" >
      <tr>
        <td class="breadCrumb" colspan="2"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></td>
      </tr>
      <tr>
        <td class="pageHeading" colspan="2"><h1><?php echo HEADING_TITLE?></h1></td>
      </tr>

    <?php if (CONTACT_US_STORE_NAME_ADDRESS== '1') { ?>
      <tr>
        <td class="main" align="left" colspan="2"><?php echo nl2br(STORE_NAME_ADDRESS); ?></td>
      </tr>
    <?php ?>

    <?php if (DEFINE_CONTACT_US_STATUS == '1') { ?>
      <tr>
        <td class="plainBox" colspan="2"><?php require($define_contact_us); ?></td>
      </tr>
    <?php ?>

    <?php
      
    if ($messageStack->size('contact') > 0) {
    ?>
      <tr>
        <td class="main" colspan="2"><?php echo $messageStack->output('contact'); ?></td>
      </tr>
    <?php
      
    }

      if (isset(
    $_GET['action']) && ($_GET['action'] == 'success')) {
    ?>
      <tr>
        <td class="plainBox" colspan="2"><?php echo TEXT_SUCCESS?></td>
      </tr>
      <tr>
        <td class="main" colspan="2"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACKBUTTON_BACK_ALT) . '</a>'?></td>
      </tr>
    <?php
      
    } else {
    ?>
    <?php
    // show dropdown if set
        
    if (CONTACT_US_LIST !=''){
    ?>
      <tr>
        <td class="plainBoxHeading" colspan="2"><?php echo SEND_TO_TEXT?></td>
      </tr>
      <tr>
        <td class="main" colspan="2"><?php echo zen_draw_pull_down_menu('send_to',  $send_to_array); ?></td>
      </tr>
    <?php
        
    }
    ?>
      <tr>
        <td class="plainBoxHeading" colspan="2"><?php echo ENTRY_NAME?></td>
      </tr>
      <tr>
        <td class="main" colspan="2"><?php echo zen_draw_input_field('name'$_SESSION['name']); ?></td>
      </tr>
      <tr>
        <td class="plainBoxHeading" colspan="2"><?php echo ENTRY_EMAIL?></td>
      </tr>
      <tr>
        <td class="main" colspan="2"><?php echo zen_draw_input_field('email', ($error $_POST['name'] : $first_name), ' size="50"'); ?></td>
      </tr>
      <tr>
        <td class="plainBoxHeading" colspan="2"><?php echo ENTRY_ENQUIRY?></td>
      </tr>
      <tr>
        <td class="main" colspan="2"><?php echo zen_draw_textarea_field('enquiry''soft'5015); ?></td>
      </tr>
      <tr>
        <td class="main"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACKBUTTON_BACK_ALT) . '</a>'?></td>
        <td align="right"><?php echo zen_image_submit(BUTTON_IMAGE_SENDBUTTON_SEND_ALT); ?></td>
      </tr>
    <?php
      
    }
    ?>
    </table></form>

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Contact us page does not work

    You may wish to reload the files ... or delete the overrides in your templates and override directories to get this back to working ...

    What kind of changes were you making?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Jul 2007
    Posts
    83
    Plugin Contributions
    0

    Default Re: Contact us page does not work

    Quote Originally Posted by Ajeh View Post
    You may wish to reload the files ... or delete the overrides in your templates and override directories to get this back to working ...

    What kind of changes were you making?
    I think I applied a mod and then destroyed few pages of the store. I don't have an idea how to fix it. Could you tell me step by step how to override the directories to get back my contac page? I would appreciate it.

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Contact us page does not work

    Any idea what add-on you installed to break this?

    When in doubt you can always load the clean files from the current version of Zen Cart that you are using ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Jul 2007
    Posts
    83
    Plugin Contributions
    0

    Default Re: Contact us page does not work

    Quote Originally Posted by Ajeh View Post
    Any idea what add-on you installed to break this?

    When in doubt you can always load the clean files from the current version of Zen Cart that you are using ...
    I currently forgot what mod I installed. Could you tell me what I can do to fix it step by step? I am noob in php, Thanks!

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Contact us page does not work

    Kind of like the blind leading the blind ... I have no idea what you have done ...

    Reload the original files from a clean copy of the version of Zen Cart that you are running to fix the problem ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. v151 My 151 /admin/ page does not work.
    By Elvira in forum Installing on a Linux/Unix Server
    Replies: 9
    Last Post: 28 Sep 2013, 10:50 AM
  2. Email out for one page does not work
    By wagnerguy in forum General Questions
    Replies: 16
    Last Post: 18 May 2011, 01:03 PM
  3. Contact Us page does not show after copying/moving site
    By giftmeister in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 15 Oct 2010, 02:49 PM
  4. Search Feature on Home Page Does Not Work
    By Jay Racing in forum General Questions
    Replies: 2
    Last Post: 30 Jun 2010, 01:04 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR