Page 3 of 6 FirstFirst 12345 ... LastLast
Results 21 to 30 of 58
  1. #21
    Join Date
    Jul 2012
    Posts
    16,798
    Plugin Contributions
    17

    Default Re: logoff page isn't redirecting properly

    Quote Originally Posted by Congerman View Post
    still waiting in anticipation for version 2 that has been on the cards for ages before updating and then updating again

    Umm, well, other technology changes (PHP specifically) may force you to do otherwise. Any currently acceptable version of PHP is already ahead of the original design parameters of ZC 1.5.1... PHP 5.4 is considered even below minimum recommended by the PHP community and with that ZC 1.5.1 requires minor mods...5.6 is the minimum suggested and 7.0 is becoming commonplace (ZC 1.5.5 is the first version that will support that).
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #22
    Join Date
    Oct 2008
    Posts
    384
    Plugin Contributions
    0

    Default Re: logoff page isn't redirecting properly

    ok dam more work on my, and my customers, 22 zen cart shops lol Good night and thank you for the advice

  3. #23
    Join Date
    Jul 2010
    Location
    Australia
    Posts
    231
    Plugin Contributions
    0

    Default Re: logoff page isn't redirecting properly

    I've just moved my site to a new server, and have expereinced the same error.

    The Fix Cache Key module is not supposed to be needed after v1.5.3. I'm running v1.5.5d, so should I still use this, or will this cause problems?

  4. #24
    Join Date
    Jul 2010
    Location
    Australia
    Posts
    231
    Plugin Contributions
    0

    Default Re: logoff page isn't redirecting properly

    I had a dedicated IP with SSL on the old server. Had my whole cpanel account moved over to another server, including the SSL certificate (no dedicated IP on the new server, don't think I need it). Not sure if all that is relevant, but everything appears to be working perfectly on the new server, except the logout page throwing up re-direct errors.
    Perhaps there's just a cache I need to clear???

  5. #25
    Join Date
    Jul 2012
    Posts
    16,798
    Plugin Contributions
    17

    Default Re: logoff page isn't redirecting properly

    So I just went to https://tabletennisshop.com[dot]au/ (based off of the signature in your post), didn't create an account, but went to index.php?main_page=logoff, and had no difficulties. Perhaps things would be different if I had an account, but that would require you to confirm that you also had issues when attempting what I did. Ie. If you had problems but I didn't, then would suspect something local to your computer/browser. If I (and others including yourself) could do the above, then there is something with being logged in that is likely the issue. Understand that finding that issue requires more than just saying I have a problem... need to understand what is installed, how things have been modified away from the default installation and what has been incorporated to cause/allow the issue...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #26
    Join Date
    Jul 2010
    Location
    Australia
    Posts
    231
    Plugin Contributions
    0

    Default Re: logoff page isn't redirecting properly

    Thank you for trying that. yes that is the correctg site.

    Yes that URL worked fine for me as well. But it does not work if I actually log in, then click the logout link.

    I also tried from a browser (IE), that I had not used before for this site. I created an account, logged in, then logged out. It worked first time (although it seemed to take a long time). Tried it again, then it came up with the same error (too many redirects).

    I've since cleared all the data and cookies from the browser, it still comes up with the error.

    Old server: SSL + dedicated IP
    New server: same SSL certificate but no dedicicated IP

    Old server PHP 5.4
    New server: PHP 5.6 or 7.1

    As I mentioned, the site worked perfectly on the old server. When the complete cpanel account was moved to a new server, this issue started happening.
    Should I run the Fix Cache Key module, or will this not work on v1.5.5d?
    Last edited by ttfan; 14 May 2018 at 01:49 PM.

  7. #27
    Join Date
    Jul 2010
    Location
    Australia
    Posts
    231
    Plugin Contributions
    0

    Default Re: logoff page isn't redirecting properly

    The site is pretty much a standard installation, freshly installed from v1.5.5d with the sheffield blue responsive module. No other modules installed that modifiy URLs or anything like that.
    I temporarily renamed my .htaccess to see if that was causing it, but that made no difference.
    Last edited by ttfan; 14 May 2018 at 02:04 PM.

  8. #28
    Join Date
    Jul 2010
    Location
    Australia
    Posts
    231
    Plugin Contributions
    0

    Default Re: logoff page isn't redirecting properly

    I'm really don't know where to start with this... if anyone can offer any tips, I'd really appreciate it!

  9. #29
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,375
    Plugin Contributions
    94

    Default Re: logoff page isn't redirecting properly

    Check your /includes/configure.php file, making sure that it's "in sync" with any .htaccess redirect directives.

    That is, if your configure.php contains a www. prefix, make sure that the .htaccess isn't redirecting to non-www. (and vice versa).

    Make sure, too, that your configure.php specifies either 'true' or 'false' for the USE_SSL definition; I've seen 1.5.5 upgrades where it's set to '' (an empty string), which can be problematic.

  10. #30
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,848
    Plugin Contributions
    11

    Default Re: logoff page isn't redirecting properly

    to make sure i understand, this worked perfectly before; the site was moved to a new server; and now you are getting too many redirects before it errors out? is that correct?

    if so, it seems that your new server is configured differently than the old server. from what i can gather, the logoff page is NOT destroying the session data. the code from:

    includes/modules/pages/logoff/header_php.php

    Code:
    /**
      * Check if there is still a customer_id
      * If so, kill the session, and redirect back to the logoff page
      * This will cause the header logic to see that the customer_id is gone, and thus not display another logoff link
      */
    if (!empty($_SESSION['customer_id']) || !empty($_SESSION['customer_guest_id'])) {
      zen_session_destroy();
      zen_redirect(zen_href_link(FILENAME_LOGOFF, $logoff_lang));
    }
    this would explain why the page works perfectly if one is not logged in, but fails when the customer is logged in. so something is different on the server with regards to the session data.

    one could try the following code:

    Code:
    /**
      * Check if there is still a customer_id
      * If so, kill the session, and redirect back to the logoff page
      * This will cause the header logic to see that the customer_id is gone, and thus not display another logoff link
      */
    if (!empty($_SESSION['customer_id']) || !empty($_SESSION['customer_guest_id'])) {
      session_start();
      zen_session_destroy();
      zen_redirect(zen_href_link(FILENAME_LOGOFF, $logoff_lang));
    }
    and see if that addresses the problem.... but i'm really guessing blind based on some reading i'm doing.

    there are plenty of threads out there on session_destroy not deleting $_SESSION variables. the above references one such solution.

    good luck!
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

 

 
Page 3 of 6 FirstFirst 12345 ... LastLast

Similar Threads

  1. My site isn't aligned properly
    By familynow in forum Templates, Stylesheets, Page Layout
    Replies: 22
    Last Post: 9 Nov 2011, 02:02 PM
  2. "The page isn't redirecting properly" - when maintenance is on
    By sanji in forum Upgrading from 1.3.x to 1.3.9
    Replies: 11
    Last Post: 19 Jun 2011, 06:07 PM
  3. Page not redirecting properly
    By styledata in forum General Questions
    Replies: 0
    Last Post: 20 Nov 2007, 01:07 AM
  4. The page isn't redirecting properly - HELP
    By SirBuck in forum General Questions
    Replies: 4
    Last Post: 12 Sep 2007, 05:20 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