osCmax v2.5 User Manual
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

contact_us.php not found by IE

This is a discussion on contact_us.php not found by IE within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; when customers use IE. they get an error the contact_us.php cant be opened. i tested it my self and in ...

      
  1. #1
    Active Member
    Join Date
    Sep 2008
    Location
    holland
    Posts
    145
    Rep Power
    4


    Default contact_us.php not found by IE

    when customers use IE. they get an error the contact_us.php cant be opened.

    i tested it my self and in 99% of the times it gives the error.
    (a couple of times it opened normally)

    i tested it in FireFox no problems there. it works fine.
    The seven signs that tell of the coming Armageddon


    1. A decline in the strength of the three major religions. check
    2. Revolutions and internal turmoil in nations around the world. check
    3. War and the rumors of war check
    4. Famine check
    5. Pollution of the earth dubbel check
    6. Earthquakes
    7.The coming of plagues and diseases.

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: contact_us.php not found by IE

    Works fine for me on standard osCMax. Must be an error in you changes somewhere. See the screenshot attached of the contact_us form loaded in IE...
    Attached Images Attached Images
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    Active Member
    Join Date
    Sep 2008
    Location
    holland
    Posts
    145
    Rep Power
    4


    Default Re: contact_us.php not found by IE

    i only added osC reCaptcha and Add extra information to the contact us page.


    i cant find why it works in FireFox and not i IE

    contact_us.php
    PHP Code:
    <?php
    /*
    $Id: contact_us.php 8 2006-06-22 02:48:59Z user $

      osCMax Power E-Commerce
      http://oscdox.com

      Copyright 2006 osCMax

      Released under the GNU General Public License
    */

    // Most of this file is changed or moved to BTS - Basic Template System - format.
    // For adding in contribution or modification - parts of this file has been moved to: catalogtemplatesfallbackcontents<filename>.tpl.php as a default (sub 'fallback' with your current template to see if there is a template specife change).
    //       catalogtemplatesfallbackcontents<filename>.tpl.php as a default (sub 'fallback' with your current template to see if there is a template specife change).
    // (Sub 'fallback' with your current template to see if there is a template specific file.)

      
    require('includes/application_top.php');

      require(
    DIR_WS_LANGUAGES $language '/' FILENAME_CONTACT_US);

    // start modification for reCaptcha
      
    require_once('includes/classes/recaptchalib.php');
      require_once(
    'includes/recaptchakeys.php');
      
    // end modification for reCaptcha


    // BOF: Added
    $_POST['email'] = preg_replace"/n/"" "$_POST['email'] );
    $_POST['name'] = preg_replace"/n/"" "$_POST['name'] );
    $_POST['email'] = preg_replace"/r/"" "$_POST['email'] );
    $_POST['name'] = preg_replace"/r/"" "$_POST['name'] );
    $_POST['email'] = str_replace("Content-Type:","",$_POST['email']);
    $_POST['name'] = str_replace("Content-Type:","",$_POST['name']);
    // EOF: Added

      
    $error false;
      if (isset(
    $HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) {
        
    $name tep_db_prepare_input($HTTP_POST_VARS['name']);
        
    $email_address tep_db_prepare_input($HTTP_POST_VARS['email']);
        
    $enquiry tep_db_prepare_input($HTTP_POST_VARS['enquiry']);

    // start modification for reCaptcha
        // the response from reCAPTCHA
        
    $resp null;
        
    // are we submitting the page?
        
    $resp recaptcha_check_answer ($privatekey,
          
    $_SERVER["REMOTE_ADDR"],
          
    $_POST["recaptcha_challenge_field"],
          
    $_POST["recaptcha_response_field"]);
        
          if (!
    $resp->is_valid) {
              
    $error true;
              
    $messageStack->add('contact'ENTRY_SECURITY_CHECK_ERROR " (reCAPTCHA output: " $resp->error ")");
          }
          
    // end modification for reCaptcha


     // BOF: Remove blank emails
    // if (tep_validate_email($email_address)) {
    // tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $email_address);
    // tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success'));
    // } else {
    // $error = true;
    // $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);
        
    if (! tep_validate_email($email_address)) {
            
    $error true;
            
    $messageStack->add('contact'ENTRY_EMAIL_ADDRESS_CHECK_ERROR);
        }
        if (
    $enquiry == '') {
            
    $error true;
            
    $messageStack->add('contact'ENTRY_EMAIL_CONTENT_CHECK_ERROR);
        }

        if (
    $error == false) {
          
    tep_mail(STORE_OWNERSTORE_OWNER_EMAIL_ADDRESSEMAIL_SUBJECT$enquiry$name$email_address);
          
    tep_redirect(tep_href_link(FILENAME_CONTACT_US'action=success'));
    // EOF: Remove blank emails
        
    }
      }

      
    $breadcrumb->add(NAVBAR_TITLEtep_href_link(FILENAME_CONTACT_US));

      
    $content CONTENT_CONTACT_US;

      include (
    bts_select('main'$content_template)); // BTSv1.5

      
    require(DIR_WS_INCLUDES 'application_bottom.php');
    ?>
    contact_us.tpl.php
    PHP Code:
       <?php echo tep_draw_form('contact_us'tep_href_link(FILENAME_CONTACT_US'action=send')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
              <tr>
                <td class="pageHeading"><?php echo HEADING_TITLE?></td>
                <td class="pageHeading" align="right"></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td><?php echo tep_draw_separator('pixel_trans.gif''100%''10'); ?></td>
          </tr>
    <?php
      
    if ($messageStack->size('contact') > 0) {
    ?>
          <tr>
            <td><?php echo $messageStack->output('contact'); ?></td>
          </tr>
          <tr>
            <td><?php echo tep_draw_separator('pixel_trans.gif''100%''10'); ?></td>
          </tr>
    <?php
      
    }

      if (isset(
    $HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'success')) {
    ?>
          <tr>
            <td class="main" align="center"><?php echo tep_image(DIR_WS_IMAGES 'table_background_man_on_board.gif'HEADING_TITLE'0''0''align="left"') . TEXT_SUCCESS?></td>
          </tr>
          <tr>
            <td><?php echo tep_draw_separator('pixel_trans.gif''100%''10'); ?></td>
          </tr>
          <tr>
            <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
              <tr class="infoBoxContents">
                <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
                  <tr>
                    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif''10''1'); ?></td>
                    <td align="right"><?php echo '<a href="' tep_href_link(FILENAME_DEFAULT) . '">' tep_image_button('button_continue.gif'IMAGE_BUTTON_CONTINUE) . '</a>'?></td>
                    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif''10''1'); ?></td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
    <?php
      
    } else {
    ?>
          <tr>
            <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
              <tr class="infoBoxContents">
                <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
                  <tr><td class="main"><?php echo CONTACT_US_DISCLAIMER?></td>
                  </tr>              <tr>
                    <td class="main"><?php echo ENTRY_NAME?></td>
                  </tr>
                  <tr>
                    <td class="main"><?php echo tep_draw_input_field('name'); ?></td>
                  </tr>
                  <tr>
                    <td class="main"><?php echo ENTRY_EMAIL?></td>
                  </tr>
                  <tr>
                    <td class="main"><?php echo tep_draw_input_field('email'); ?></td>
                  </tr>
                  <tr>
                    <td class="main"><?php echo ENTRY_ENQUIRY?></td>
                  </tr>
                  <tr>
                    <td><?php echo tep_draw_textarea_field('enquiry''soft'5015); ?></td>
                  </tr>
                  <!-- start modification for reCaptcha -->
                  <tr>
                    <td class="main"><?php echo ENTRY_SECURITY_CHECK?></td>
                  </tr>
                  <tr>
                                    <script>
                                    var RecaptchaOptions = {
                                       theme : 'white',
                                       tabindex : 3
                                    };
                                    </script>                  
                    <td class="main"><?php echo recaptcha_get_html($publickey); ?></td>
                  </tr>
                  <!-- end modification for reCaptcha -->

                </table></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td><?php echo tep_draw_separator('pixel_trans.gif''100%''10'); ?></td>
          </tr>
          <tr>
            <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
              <tr class="infoBoxContents">
                <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
                  <tr>
                    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif''10''1'); ?></td>
                    <td align="right"><?php echo tep_image_submit('button_continue.gif'IMAGE_BUTTON_CONTINUE); ?></td>
                    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif''10''1'); ?></td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
    <?php
      
    }
    ?>
        </table></form>
    /includes/languages/dutch/contact_us.php
    PHP Code:
    <?php
    /*
    $Id: contact_us.php 7 2006-06-22 02:48:30Z user $

      osCMax Power E-Commerce
      http://oscdox.com

      Copyright 2006 osCMax2005 osCMax, 2002 osCommerce

      Released under the GNU General Public License
    */

    define('HEADING_TITLE''Contact');
    define('NAVBAR_TITLE''Neem contact met ons op');
    define('TEXT_SUCCESS''Uw vraag of opmkerking is verstuurd.');
    define('EMAIL_SUBJECT''Vraag of opmerking voor ' STORE_NAME);

    define('ENTRY_NAME''Uw naam:');
    define('ENTRY_EMAIL''E-mail adres:');
    define('ENTRY_ENQUIRY''Onderwerp:');
    define('ENTRY_SECURITY_CHECK''Veiligheids Check:');
    define('ENTRY_SECURITY_CHECK_ERROR''De veiligheids code was niet correct. Probeer het nogmaals.');

    define('ENTRY_EMAIL_CONTENT_CHECK_ERROR''Missing content, please type a message.');
    define('CONTACT_US_DISCLAIMER''Salo Fashion<br>
    postbus 2138<br>
    5202cc den bosch<br>
    Nederland<br>
    0031(0)624764464<br>'
    );
    ?>
    The seven signs that tell of the coming Armageddon


    1. A decline in the strength of the three major religions. check
    2. Revolutions and internal turmoil in nations around the world. check
    3. War and the rumors of war check
    4. Famine check
    5. Pollution of the earth dubbel check
    6. Earthquakes
    7.The coming of plagues and diseases.

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: contact_us.php not found by IE

    Do you have a link to the page in question? I would like to see it in action in my IE.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  5. #5
    Active Member
    Join Date
    Sep 2008
    Location
    holland
    Posts
    145
    Rep Power
    4


    Default Re: contact_us.php not found by IE

    Neem contact met ons op : Salo Fashion


    it might load on the first time click refresh and than the error pop's up
    The seven signs that tell of the coming Armageddon


    1. A decline in the strength of the three major religions. check
    2. Revolutions and internal turmoil in nations around the world. check
    3. War and the rumors of war check
    4. Famine check
    5. Pollution of the earth dubbel check
    6. Earthquakes
    7.The coming of plagues and diseases.

  6. #6
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: contact_us.php not found by IE

    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  7. #7
    Active Member
    Join Date
    Sep 2008
    Location
    holland
    Posts
    145
    Rep Power
    4


    Default Re: contact_us.php not found by IE

    so its a IE bug. that's the reason i use firefox
    The seven signs that tell of the coming Armageddon


    1. A decline in the strength of the three major religions. check
    2. Revolutions and internal turmoil in nations around the world. check
    3. War and the rumors of war check
    4. Famine check
    5. Pollution of the earth dubbel check
    6. Earthquakes
    7.The coming of plagues and diseases.

  8. #8
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default Re: contact_us.php not found by IE

    Is is not a IE BUG - it is IE not know how to construct the page. So it give an error.....

    Firefox is smarter - it will display the page anyway and fix it as best as possible.

    Sending your page to HTML TIDY show:

    183 Warning: missing </table>
    269 Warning: <img> attribute "height" has invalid value "71.1111111111"
    436 Info: <tr> previously mentioned; Warning: <script> inserting "type" attribute
    437 Warning: <script> isn't allowed in <tr> elements
    542 Warning: missing </center>; Warning: missing </center>; Warning: missing </a> before <center>; Warning: discarding unexpected </a>; Warning: missing </a> before <center>; Warning: discarding unexpected </a>; Warning: missing </center>; Warning: missing </center>; Warning: <table> lacks "summary" attribute; Warning: <input> proprietary attribute "border"; Warning: trimming empty <center>

    Since you modified your files - revert back to the standard files. Slowly add back your changes to see which created the error.
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

  9. #9
    Active Member
    Join Date
    Sep 2008
    Location
    holland
    Posts
    145
    Rep Power
    4


    Default Re: contact_us.php not found by IE

    stated from 0 inserted the mods still the same problem.

    is there a program that's checks fore errors and fix them?

    it must be something small because sometimes the page loads with no problems.
    The seven signs that tell of the coming Armageddon


    1. A decline in the strength of the three major religions. check
    2. Revolutions and internal turmoil in nations around the world. check
    3. War and the rumors of war check
    4. Famine check
    5. Pollution of the earth dubbel check
    6. Earthquakes
    7.The coming of plagues and diseases.

  10. #10
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default Re: contact_us.php not found by IE

    Since you modified your files - revert back to the standard files. Slowly add back your changes to see which created the error.
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

Page 1 of 2 12 LastLast

Similar Threads

  1. Contact_US IP recoder
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 04-11-2007, 09:52 AM
  2. Contact_us- is it safe
    By josemanuel in forum osCMax v2 Features Discussion
    Replies: 2
    Last Post: 02-22-2007, 06:28 PM
  3. Object not found! The requested URL was not found on this s
    By furnic in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 12-10-2004, 09:59 AM
  4. I erased contact_us.php!
    By Alesha in forum osCommerce 2.2 Modification Help
    Replies: 6
    Last Post: 07-19-2004, 08:20 AM
  5. Add checkboxes to contact_us.php
    By nelsonlo in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 06-23-2004, 04:14 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
  •