Results 1 to 10 of 10
  1. #1
    Join Date
    Aug 2011
    Posts
    64
    Plugin Contributions
    0

    Default Log Off error cannot display the webpage

    Hi folks, sorry for being such a dumb but im trying to figure this out for hours now but find no luck. Hope I land on the right place. Everytime I log into my site and then logs out, the address directs me to https://spares.cncmachinery.com.au/i...in_page=logoff but the page says "Internet Explorer cannot display the webpage" for IE, The page isn't redirecting properly in firefox and This web page has a redirect loop in chrome. What seems to be the problem?

    Thank you

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Log Off error cannot display the webpage

    Quote Originally Posted by newbie456 View Post
    Hi folks, sorry for being such a dumb but im trying to figure this out for hours now but find no luck. Hope I land on the right place. Everytime I log into my site and then logs out, the address directs me to https://spares.cncmachinery.com.au/i...in_page=logoff but the page says "Internet Explorer cannot display the webpage" for IE, The page isn't redirecting properly in firefox and This web page has a redirect loop in chrome. What seems to be the problem?

    Thank you
    This isn't normal behaviour, which suggests that you installed some kind of add-on module that is causing invalid redirects.

    Also, there is no reason for the logoff page to be SSL encypted.

    Without knowing what addons you have installed there isn't much more we can tell you.

    Cheers
    Rod

  3. #3
    Join Date
    Aug 2011
    Posts
    64
    Plugin Contributions
    0

    Default Re: Log Off error cannot display the webpage

    Honestly I just noticed this just now, dont know what add-on affected that. By any chance how can I set the logoff page to be not ssl encrypted? Is public_html/includes/configure.php the right file to modify?

  4. #4
    Join Date
    Aug 2011
    Posts
    64
    Plugin Contributions
    0

    Default Re: Log Off error cannot display the webpage

    on my local copy of the site, the logoff works fine. I used to install there the add ons that Im going to use before I put it on the live site.

  5. #5
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Log Off error cannot display the webpage

    Quote Originally Posted by newbie456 View Post
    By any chance how can I set the logoff page to be not ssl encrypted?
    Do you by any chance have SSL enabled for the entire site?

    Quote Originally Posted by newbie456 View Post
    Is public_html/includes/configure.php the right file to modify?
    If your entire site is SSL enabled then yes, this would be one of the two configure files to modify, otherwise it is more likely to be something in one of the .htaccess files.

    Please be advised, I am making little more than educated guesses as to the possible causes and places to check. I could be way off mark.

    Cheers
    Rod

  6. #6
    Join Date
    Aug 2011
    Posts
    64
    Plugin Contributions
    0

    Default Re: Log Off error cannot display the webpage

    Quote Originally Posted by RodG View Post
    Do you by any chance have SSL enabled for the entire site?
    yes I have SSL enabled the entire site.

  7. #7
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Log Off error cannot display the webpage

    Originally Posted by newbie456
    By any chance how can I set the logoff page to be not ssl encrypted?

    Response by RodG
    Do you by any chance have SSL enabled for the entire site?

    Quote Originally Posted by newbie456 View Post
    yes I have SSL enabled the entire site.
    Clearly these are mutually exclusive requirements/settings, as such the only possible solution would be custom coding.

    There is also no valid reason the encrypt the entire site (that I can think of).

    Cheers
    Rod

  8. #8
    Join Date
    Aug 2011
    Posts
    64
    Plugin Contributions
    0

    Default Re: Log Off error cannot display the webpage

    Hi tried to disable the ssl by modifying this piece of code from includes/configure.php
    from
    Code:
    define('ENABLE_SSL', 'true');
    it now reads
    Code:
    define('ENABLE_SSL', 'false');

    and also edited this from admin/includes/configure.php

    from
    Code:
    define('ENABLE_SSL_CATALOG', 'true');
     define('ENABLE_SSL_ADMIN', 'true');
    it now reads

    Code:
    define('ENABLE_SSL_CATALOG', 'false');
     define('ENABLE_SSL_ADMIN', 'false');

    but it still display the problem

  9. #9
    Join Date
    Aug 2011
    Posts
    64
    Plugin Contributions
    0

    Default Re: Log Off error cannot display the webpage

    Hi just want to say that I already solve this issue. I modify this page includes/modules/pages/logoff/header_php.php

    formerly I have this code:

    Code:
    /*if (!empty($_SESSION['customer_id']) || !empty($_SESSION['customer_guest_id'])) {
      zen_session_destroy();
      zen_redirect(zen_href_link(FILENAME_LOGOFF, $logoff_lang));
    }*/
    
    zen_session_destroy();
    zen_redirect(zen_href_link(FILENAME_LOGOFF, $logoff_lang));
    and now it reads

    Code:
    if (!empty($_SESSION['customer_id']) || !empty($_SESSION['customer_guest_id'])) {
      zen_session_destroy();
      zen_redirect(zen_href_link(FILENAME_LOGOFF, $logoff_lang));
    }
    funny I didnt notice this. Thank you all for all your help

  10. #10
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Log Off error cannot display the webpage

    Thanks for confirming that putting the code back to the original version that comes with Zen Cart made it work correctly, as it normally does.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. 406 Error - IE cannot display this webpage format
    By islander843 in forum Installing on a Windows Server
    Replies: 20
    Last Post: 10 Feb 2011, 08:57 AM
  2. "cannot display the webpage" after agreeing to license
    By xdawg12 in forum Installing on a Windows Server
    Replies: 1
    Last Post: 11 Dec 2009, 02:49 PM
  3. Internet Explorer cannot display the webpage
    By nesin in forum Basic Configuration
    Replies: 5
    Last Post: 12 Oct 2009, 10:42 PM
  4. Replies: 3
    Last Post: 21 Jul 2009, 07:21 PM
  5. Internet Explorer cannot display the Webpage
    By LloydR in forum General Questions
    Replies: 4
    Last Post: 8 Jul 2008, 03:30 PM

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