Page 5 of 9 FirstFirst ... 34567 ... LastLast
Results 41 to 50 of 81
  1. #41
    Join Date
    May 2015
    Location
    New Jersey
    Posts
    59
    Plugin Contributions
    0

    Default Re: Contact Us not working, receiving alert messages even though all fields filled in

    Quote Originally Posted by lruskauff View Post
    If I go to: https://www.atomicorchard.com/contact.html I get the message you are in maintenance mode, and this site is marked as SSL.

    If I go to: https://shop.atomicorchard.com/ it crosses out the https (site not SSL).

    Are these two linked? Did you turn the SSL on the wrong shop?

    I don't know why you're seeing that, as it's not showing me that... I only turned it off and on for the shop.atomicorchard. It should be on now. I was working on the main site (atomicorchard.com) just editing some images before, but didn't mess with the ssl.

    I just disconnected Dreamweaver from the site, so maybe that might fix it? I don't know...I didn't do anything other than change 'false' to 'true'.

  2. #42
    Join Date
    May 2015
    Location
    New Jersey
    Posts
    59
    Plugin Contributions
    0

    Default Re: Contact Us not working, receiving alert messages even though all fields filled in

    Quote Originally Posted by blackeyed5 View Post
    I don't know why you're seeing that, as it's not showing me that... I only turned it off and on for the shop.atomicorchard. It should be on now. I was working on the main site (atomicorchard.com) just editing some images before, but didn't mess with the ssl.

    I just disconnected Dreamweaver from the site, so maybe that might fix it? I don't know...I didn't do anything other than change 'false' to 'true'.
    It does cross out the https on page: https://shop.atomicorchard.com/index...age=contact_us (which is what one of the problems is), but doesn't on: https://shop.atomicorchard.com for me.

  3. #43
    Join Date
    May 2015
    Location
    New Jersey
    Posts
    59
    Plugin Contributions
    0

    Default Re: Contact Us not working, receiving alert messages even though all fields filled in

    I'm about to sign off now though, as it's quite late where I am. Not sure where you are located. If you plan on continuing to help tomorrow, perhaps we can schedule a time to come online so we can work together? Your call. Again, I appreciate all your help you're giving me.

  4. #44
    Join Date
    Sep 2008
    Location
    WA
    Posts
    555
    Plugin Contributions
    0

    Default Re: Contact Us not working, receiving alert messages even though all fields filled in

    Do a search on "cloudflare" using your admin developer tools. Find the file with just the "http" in it and change it to https.

    lruskauff

  5. #45
    Join Date
    May 2015
    Location
    New Jersey
    Posts
    59
    Plugin Contributions
    0

    Default Re: Contact Us not working, receiving alert messages even though all fields filled in

    Oooohh!!! Are you talking about, "While the site is under maintenance,
    feel free to drop us a line at info[at]atomicorchard.com!" on that contact page?

    Don't worry about that. I wrote that in there. It's not an error or any significance to being in actual maintenance mode. That's just text I put in my site. Yeah, don't worry about anything on www.atomicorchard.com, as it's just straight HTML, and doesn't have anything to do with any files on shop.atomicorchard.com. It's my landing page site that shop.atomicorchard.com will be linking from.

    I see where you may have been confused.

  6. #46
    Join Date
    May 2015
    Location
    New Jersey
    Posts
    59
    Plugin Contributions
    0

    Default Re: Contact Us not working, receiving alert messages even though all fields filled in

    Quote Originally Posted by lruskauff View Post
    Do a search on "cloudflare" using your admin developer tools. Find the file with just the "http" in it and change it to https.

    lruskauff
    I don't follow you... I don't use cloudflare. What is it? Let me know and I will follow up with you tomorrow. I have to sign off now though. Work in the morning...

  7. #47
    Join Date
    Sep 2008
    Location
    WA
    Posts
    555
    Plugin Contributions
    0

    Default Re: Contact Us not working, receiving alert messages even though all fields filled in

    The code calls it for a jquery. It needs to call it with an "https" and not a "http".

    So you go to your admin. Under TOOLS there is DEVELOPERS TOOL KIT. Select it and on the last line, enter the word "cloudflare". Let it search php files. Select SEARCH. It will give you all of the files that contain that word and the line it is used in.

    The code will look something like:
    Code:
    /home/thestitc/public_html/includes/templates/westminster_new/templates/tpl_modules_mobile_categories_tabs.php
    
    <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js" type="text/javascript"></script>
    Actually, the first line was where to find it. So then go to that file and edit it (with a text editor like Notepad++) and change http to https. I should have seen that right away, sorry. That double // threw me.

    Also put the site back into SSL. It still wasn't showing up.

  8. #48
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,542
    Plugin Contributions
    19

    Default Re: Contact Us not working, receiving alert messages even though all fields filled in

    Hm...

    The mixed content error should not have any effect on form processing as it's standard php, it's not an AJAX request that might fail because of conflicts... It should be fixed, of course, but it's got nothing to do with this issue.

    There's something that's puzzling me with the template... I downloaded the template and checked it's code and there's something that's confusing me. I'll go into details later, but for now, please humor me and try the following:
    replace your includes/modules/pages/contact_us/header_php.php with the stock 1.5.4 version (Anne modified this file for template purposes). I've attached the file so you can just upload it. Make sure you keep a backup of the current file. Once you upload it, see if it works and post back here so we can continue.

    If it doesn't work, keep the code and switch to classic template, then try again.

    header_php.php file:
    Code:
    <?php
    /**
     * Contact Us Page
     *
     * @package page
     * @copyright Copyright 2003-2013 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 GIT: $Id: Author: DrByte  Sun Feb 17 23:22:33 2013 -0500 Modified in v1.5.2 $
     */
    
    // This should be first line of the script:
    $zco_notifier->notify('NOTIFY_HEADER_START_CONTACT_US');
    
    require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
    
    $error = false;
    if (isset($_GET['action']) && ($_GET['action'] == 'send')) {
      $name = zen_db_prepare_input($_POST['contactname']);
      $email_address = zen_db_prepare_input($_POST['email']);
      $enquiry = zen_db_prepare_input(strip_tags($_POST['enquiry']));
      $antiSpam = isset($_POST['should_be_empty']) ? zen_db_prepare_input($_POST['should_be_empty']) : '';
      $zco_notifier->notify('NOTIFY_CONTACT_US_CAPTCHA_CHECK');
    
      $zc_validate_email = zen_validate_email($email_address);
    
      if ($zc_validate_email and !empty($enquiry) and !empty($name) && $error == FALSE) {
        // if anti-spam is not triggered, prepare and send email:
       if ($antiSpam != '') {
          $zco_notifier->notify('NOTIFY_SPAM_DETECTED_USING_CONTACT_US');
       } elseif ($antiSpam == '') {
    
        // auto complete when logged in
        if($_SESSION['customer_id']) {
          $sql = "SELECT customers_id, customers_firstname, customers_lastname, customers_password, customers_email_address, customers_default_address_id
                  FROM " . TABLE_CUSTOMERS . "
                  WHERE customers_id = :customersID";
    
          $sql = $db->bindVars($sql, ':customersID', $_SESSION['customer_id'], 'integer');
          $check_customer = $db->Execute($sql);
          $customer_email= $check_customer->fields['customers_email_address'];
          $customer_name= $check_customer->fields['customers_firstname'] . ' ' . $check_customer->fields['customers_lastname'];
        } else {
          $customer_email = NOT_LOGGED_IN_TEXT;
          $customer_name = NOT_LOGGED_IN_TEXT;
        }
    
        // use contact us dropdown if defined
        if (CONTACT_US_LIST !=''){
          $send_to_array=explode("," ,CONTACT_US_LIST);
          preg_match('/\<[^>]+\>/', $send_to_array[$_POST['send_to']], $send_email_array);
          $send_to_email= preg_replace ("/>/", "", $send_email_array[0]);
          $send_to_email= trim(preg_replace("/</", "", $send_to_email));
          $send_to_name = trim(preg_replace('/\<[^*]*/', '', $send_to_array[$_POST['send_to']]));
        } else {  //otherwise default to EMAIL_FROM and store name
        $send_to_email = trim(EMAIL_FROM);
        $send_to_name =  trim(STORE_NAME);
        }
    
        // Prepare extra-info details
        $extra_info = email_collect_extra_info($name, $email_address, $customer_name, $customer_email);
        // Prepare Text-only portion of message
        $text_message = OFFICE_FROM . "\t" . $name . "\n" .
        OFFICE_EMAIL . "\t" . $email_address . "\n\n" .
        '------------------------------------------------------' . "\n\n" .
        strip_tags($_POST['enquiry']) .  "\n\n" .
        '------------------------------------------------------' . "\n\n" .
        $extra_info['TEXT'];
        // Prepare HTML-portion of message
        $html_msg['EMAIL_MESSAGE_HTML'] = strip_tags($_POST['enquiry']);
        $html_msg['CONTACT_US_OFFICE_FROM'] = OFFICE_FROM . ' ' . $name . '<br />' . OFFICE_EMAIL . '(' . $email_address . ')';
        $html_msg['EXTRA_INFO'] = $extra_info['HTML'];
        // Send message
        zen_mail($send_to_name, $send_to_email, EMAIL_SUBJECT, $text_message, $name, $email_address, $html_msg,'contact_us');
       }
        zen_redirect(zen_href_link(FILENAME_CONTACT_US, 'action=success', 'SSL'));
      } else {
        $error = true;
        if (empty($name)) {
          $messageStack->add('contact', ENTRY_EMAIL_NAME_CHECK_ERROR);
        }
        if ($zc_validate_email == false) {
          $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);
        }
        if (empty($enquiry)) {
          $messageStack->add('contact', ENTRY_EMAIL_CONTENT_CHECK_ERROR);
        }
      }
    } // end action==send
    
    
    if (ENABLE_SSL == 'true' && $request_type != 'SSL') {
      zen_redirect(zen_href_link(FILENAME_CONTACT_US, '', 'SSL'));
    }
    
    // default email and name if customer is logged in
    if($_SESSION['customer_id']) {
      $sql = "SELECT customers_id, customers_firstname, customers_lastname, customers_password, customers_email_address, customers_default_address_id
              FROM " . TABLE_CUSTOMERS . "
              WHERE customers_id = :customersID";
    
      $sql = $db->bindVars($sql, ':customersID', $_SESSION['customer_id'], 'integer');
      $check_customer = $db->Execute($sql);
      $email_address = $check_customer->fields['customers_email_address'];
      $name= $check_customer->fields['customers_firstname'] . ' ' . $check_customer->fields['customers_lastname'];
    }
    
    $send_to_array = array();
    if (CONTACT_US_LIST !=''){
      foreach(explode(",", CONTACT_US_LIST) as $k => $v) {
        $send_to_array[] = array('id' => $k, 'text' => preg_replace('/\<[^*]*/', '', $v));
      }
    }
    
    // include template specific file name defines
    $define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_CONTACT_US, 'false');
    
    $breadcrumb->add(NAVBAR_TITLE);
    
    // This should be the last line of the script:
    $zco_notifier->notify('NOTIFY_HEADER_END_CONTACT_US');

  9. #49
    Join Date
    Jul 2012
    Posts
    16,735
    Plugin Contributions
    17

    Default Re: Contact Us not working, receiving alert messages even though all fields filled in

    Would also suggest identifying all filenames in that directory that have a filename ending with .php
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  10. #50
    Join Date
    May 2015
    Location
    New Jersey
    Posts
    59
    Plugin Contributions
    0

    Default Re: Contact Us not working, receiving alert messages even though all fields filled in

    Quote Originally Posted by lruskauff View Post
    The code calls it for a jquery. It needs to call it with an "https" and not a "http".

    So you go to your admin. Under TOOLS there is DEVELOPERS TOOL KIT. Select it and on the last line, enter the word "cloudflare". Let it search php files. Select SEARCH. It will give you all of the files that contain that word and the line it is used in.

    The code will look something like:
    Code:
    /home/thestitc/public_html/includes/templates/westminster_new/templates/tpl_modules_mobile_categories_tabs.php
    
    <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js" type="text/javascript"></script>
    Actually, the first line was where to find it. So then go to that file and edit it (with a text editor like Notepad++) and change http to https. I should have seen that right away, sorry. That double // threw me.

    Also put the site back into SSL. It still wasn't showing up.
    Ok, I updated this to https, but it doesn't seem like it did anything....

 

 
Page 5 of 9 FirstFirst ... 34567 ... LastLast

Similar Threads

  1. Error Message even when all required fields are filled
    By hsartcorp in forum Managing Customers and Orders
    Replies: 3
    Last Post: 8 Aug 2009, 09:07 PM
  2. SPAM from ‘Contact Us’ form, even though form is removed
    By Beer_man in forum General Questions
    Replies: 5
    Last Post: 3 Dec 2008, 02:40 AM
  3. Required fields not filled
    By asappia in forum Managing Customers and Orders
    Replies: 1
    Last Post: 16 Oct 2008, 05:23 AM
  4. Howdy - All Products Sold Out, Even Though Quanity Isn't 0
    By Worldview in forum General Questions
    Replies: 1
    Last Post: 29 Mar 2007, 03:00 AM
  5. Replies: 1
    Last Post: 9 Feb 2007, 08:48 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