Page 1 of 3 123 LastLast
Results 1 to 10 of 24
  1. #1
    Join Date
    Oct 2014
    Location
    Port Pirie, Australia
    Posts
    11
    Plugin Contributions
    0

    Default Contact us page - Redirect loop using default setup with Classic

    Hello everyone,
    I have setup a new Zencart shop for a customer - default setup using SSL. Everything on site is working except Contact Us page, everytime try to open I get a This Web Page has a Redirect Loop here is the more info " The web page at https://gator4175.hostgator.com/~pri...94c8e3e8171fa0 has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer. "

    I have stock store setup, all that is changed is the Header picture and logo all pages stock and links as was setup. I have not done anything to or changed anything with any of the pages. I cant seem to find anything on this but a few posts about contact page opening and then not working but nothing on my issue. Web address= http://www.thescrapinshack.com/zencart

    Hopefully someone has some ideas. I have checked all possible files that have been mentioned. Only changes have been made in admin for setup of shop name, address and such. Have setup Paypal settings and all are working fine. Can add new customer and email works fine.

    All very new as first time have ever setup zencart and still learning how it all works.

    Thank you all.....

    ************************************

    John,
    Webmaster

  2. #2
    Join Date
    Oct 2014
    Location
    Port Pirie, Australia
    Posts
    11
    Plugin Contributions
    0

    Default Re: Contact us page - Redirect loop using Zencart default setup with Classic

    Sorry just noticed didnt post zencart info:

    I am using latest zencart V1.5.3
    Running on Hostgator.com and is running with Linux and Has Shared SSL on the domain

    Hope that is everything....

    Thanks

    *************************************

    John,
    Webmaster

  3. #3
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Contact us page - Redirect loop using Zencart default setup with Classic

    Quote Originally Posted by BADBUNNY36 View Post
    Sorry just noticed didnt post zencart info:

    I am using latest zencart V1.5.3
    Running on Hostgator.com and is running with Linux and Has Shared SSL on the domain

    Hope that is everything....

    Thanks

    *************************************

    John,
    Webmaster
    Where did the copy of ZC 1.5.3 come from? Was it a one click install through the host or was it downloaded from say: http://www.zen-cart.com/getit (a link from the main page of this site)?

    Php version that is active for this site: admin panel->version (top right of admin panel)?
    What templte has been installed/used? If not the classic template or a copy of the classic template (minimum suggested template to use/modify), does the issue occur when using the classic template?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default Re: Contact us page - Redirect loop using Zencart default setup with Classic

    I'm guessing that it's got something to do with your use of a HostGator shared SSL certificate and the associated session-related configuration. What's weird is that your login page (also SSL) displays, although not picking up your store's CSS, so your settings in the /includes/configure.php file appear to be correct.

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default Re: Contact us page - Redirect loop using Zencart default setup with Classic

    Looking through the code in /includes/modules/pages/contact_us/header_php.php, what happens if you comment-out lines 92-94:
    Code:
    // 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'];
    }

  6. #6
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Contact us page - Redirect loop using Zencart default setup with Classic

    Another item to note, cookies / sessions appear to not be functioning as expected (check the domain of the cookie under SSL). Can you post the contents of your "/includes/configure.php" file (Be Kind; use "code" tags around the contents of the file when posting. Click the # in the editor when replying to add "code" tags). Can you also post the settings in the Zen Cart admin for: "Configuration --> Sessions"?

    NOTE: Personally I believe buying a SSL certificate (and not changing the URL customers will see during checkout / login / contact us / etc), builds better trust compared to using an SSL Certificate shared between many different websites.
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  7. #7
    Join Date
    Oct 2014
    Location
    Port Pirie, Australia
    Posts
    11
    Plugin Contributions
    0

    Default Re: Contact us page - Redirect loop using Zencart default setup with Classic

    Thank you all for the replies.

    Firstly to mc12345678 - My zencart is downloaded from here the main page link. Unzipped file and uploaded the entire zencart using FTP with Filezilla. Ran the setup as was explained in setup sheets. Everything worked fine and then when checking pages found Contact us page was only one that didnt work and came up with redirect loop.

    @ lat 9 I will do this for you all and test what happens when I change these lines in the /includes/modules/pages/contact_us/header_php.php file...

    @ lhungil - I will upload the contents of my Includes/configure.php file hopefully I can do that tonight... also will get the Admin ---> sessions

    Hopefully someone can find what has caused this. I have tried lots of things posted but with no result. All files for contact us have been replaced and put back to default.....

    Thanks,

    *******************************************

    John,
    Webmaster

  8. #8
    Join Date
    Oct 2014
    Location
    Port Pirie, Australia
    Posts
    11
    Plugin Contributions
    0

    Default Re: Contact us page - Redirect loop using Zencart default setup with Classic

    Well interesting,

    Lat9, I tried the code thing that you suggested
    Code:
    Code:
    // 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'];
    }
    As you can see I have commented out those lines. Now when opening the Contact Us page - it now opens but not displaying correctly. There is a change tho.

    Am still looking for the other codes to put up now....

    Thanks,

    *********************************************

    John,
    Webmaster

  9. #9
    Join Date
    Oct 2014
    Location
    Port Pirie, Australia
    Posts
    11
    Plugin Contributions
    0

    Default Re: Contact us page - Redirect loop using Zencart default setup with Classic

    Here is my Includes/configure.php file

    Code:
    Code:
    <?php
    /**
     * @package Configuration Settings circa 1.5.3
     * @copyright Copyright 2003-2014 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * File Built by zc_install on 2014-10-23 06:43:37
     */
    
    
    /*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/
    /***************       The 2 files should be kept separate and not used to overwrite each other.      ***********/
    
    // Define the webserver and path parameters
      // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
      // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
      define('HTTP_SERVER', 'http://www.thescrapinshack.com/~pritchar');
      define('HTTPS_SERVER', 'https://gator4175.hostgator.com/~pritchar');
    
      // Use secure webserver for checkout procedure?
      define('ENABLE_SSL', 'true');
    
    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
      // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
      define('DIR_WS_CATALOG', '/zencart/');
      define('DIR_WS_HTTPS_CATALOG', '/zencart/');
    
      define('DIR_WS_IMAGES', 'images/');
      define('DIR_WS_INCLUDES', 'includes/');
      define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
      define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
      define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
      define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
      define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
      define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');
    
      define('DIR_WS_PHPBB', '/');
    
    // * DIR_FS_* = Filesystem directories (local/physical)
      //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
      define('DIR_FS_CATALOG', '/home3/pritchar/public_html/zencart/');
    
      //the following path is a COMPLETE path to the /logs/ folder  eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash
      define('DIR_FS_LOGS', '/home3/pritchar/public_html/zencart/logs');
    
      define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
      define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
      define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
      define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
      define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
    
    // define our database connection
      define('DB_TYPE', 'mysql');
      define('DB_PREFIX', '');
      define('DB_CHARSET', 'utf8');
      define('DB_SERVER', 'localhost');
      define('DB_SERVER_USERNAME', '*********');
      define('DB_SERVER_PASSWORD', '******');
      define('DB_DATABASE', '***********');
    
      // The next 2 "defines" are for SQL cache support.
      // For SQL_CACHE_METHOD, you can select from:  none, database, or file
      // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache 
      // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
      // ie: /path/to/your/webspace/public_html/zen/cache   -- leave no trailing slash  
      define('SQL_CACHE_METHOD', 'none'); 
      define('DIR_FS_SQL_CACHE', '/home3/pritchar/public_html/zencart/cache');
    
    // EOF
    Hopefully something will be found here

    Thanks,

    ********************************************

    John,
    Webmaster

  10. #10
    Join Date
    Oct 2014
    Location
    Port Pirie, Australia
    Posts
    11
    Plugin Contributions
    0

    Default Re: Contact us page - Redirect loop using Zencart default setup with Classic

    Here is a pic of my Admin - Configure--> Sessions

    Name:  Sessions.jpg
Views: 573
Size:  20.4 KB

    Hopefully can find out how to get the Contact Page displaying again now....

    Thanks,

    *****************************************

    John,
    Webmaster

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. After Upgrade Contact Us page Redirect Loop Error
    By spawnie69 in forum Upgrading to 1.5.x
    Replies: 22
    Last Post: 22 May 2015, 10:50 PM
  2. Search Redirect Loop with Simple SEO URLs
    By hey_you in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 27 Jan 2012, 07:13 AM
  3. Admin page goes into redirect loop after installing v 1.3.9h
    By Janie in forum Installing on a Windows Server
    Replies: 14
    Last Post: 27 Nov 2010, 01:47 AM
  4. Please help with an infinite redirect loop using SSU 3.5.8
    By linnx in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 7 May 2010, 02:45 PM
  5. Redirect Loop Error with foreign currencies
    By miklia in forum General Questions
    Replies: 1
    Last Post: 6 May 2010, 08:29 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