Page 5 of 6 FirstFirst ... 3456 LastLast
Results 41 to 50 of 58
  1. #41
    Join Date
    Jul 2010
    Location
    Australia
    Posts
    231
    Plugin Contributions
    0

    Default Re: logoff page isn't redirecting properly

    Didn't work

    Here is the complete file:
    Code:
    <?php
    /**
     * logoff header_php.php 
     *
     * @package page
     * @copyright Copyright 2003-2006 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 $Id: header_php.php 5403 2006-12-27 00:38:58Z drbyte $
     */
    
    // This should be first line of the script:
    $zco_notifier->notify('NOTIFY_HEADER_START_LOGOFF');
    
    require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
    $breadcrumb->add(NAVBAR_TITLE);
    
    /**
     * Check what language should be used on the logoff screen
     */
      $logoff_lang = ($_SESSION['languages_code'] != DEFAULT_LANGUAGE) ? 'language=' . $_SESSION['languages_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();
      unset($_SESSION['customer_id']);
      unset($_SESSION['customer_guest_id']);  
      zen_redirect(zen_href_link(FILENAME_LOGOFF, $logoff_lang));
    }
    
    // This should be last line of the script:
    $zco_notifier->notify('NOTIFY_HEADER_END_LOGOFF');
    ?>
    Last edited by ttfan; 19 May 2018 at 01:35 AM.

  2. #42
    Join Date
    Jul 2010
    Location
    Australia
    Posts
    231
    Plugin Contributions
    0

    Default Re: logoff page isn't redirecting properly

    Anyone else have any suggestions please?

  3. #43
    Join Date
    Oct 2008
    Posts
    378
    Plugin Contributions
    0

    Default Re: logoff page isn't redirecting properly

    Did you try configuration - settings - recreate sessions - false

  4. #44
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: logoff page isn't redirecting properly

    Another is, in the directory: includes/mods/pages/logoff, how many files are present and what are their names?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #45
    Join Date
    Jul 2010
    Location
    Australia
    Posts
    231
    Plugin Contributions
    0

    Default Re: logoff page isn't redirecting properly

    I assume you mean modules, not mods (in the path), as i have no mods folder?

    If so, there is only one file, called header_php.php, which is the one posted above.

  6. #46
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,493
    Plugin Contributions
    88

    Default Re: logoff page isn't redirecting properly

    Are there any PHP files (other than class.products_viewed_counter.php) present in your /includes/classes/observers directory?

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

    Default Re: logoff page isn't redirecting properly

    Quote Originally Posted by lat9 View Post
    Are there any PHP files (other than class.products_viewed_counter.php) present in your /includes/classes/observers directory?
    Yes, there is:
    class.google_recaptcha.php (which I'm actually not current using)
    class.products_with_attributes_stock.php

  8. #48
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: logoff page isn't redirecting properly

    Quote Originally Posted by ttfan View Post
    Yes, there is:
    class.google_recaptcha.php (which I'm actually not current using)
    class.products_with_attributes_stock.php
    Would recommend removing (renaming the extension to something other than .php) both includes/auto_loaders file for recaptcha as well as the above class file starting with the auto_loader.

    Not using and having the file(s) present are two different things. Wouldn't expect an issue on logout, but....

    If that doesn't fix, then do the same test with the products_with_attributes files.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  9. #49
    Join Date
    Jul 2010
    Location
    Australia
    Posts
    231
    Plugin Contributions
    0

    Default Re: logoff page isn't redirecting properly

    No such google_recaptcha file in the includes.auto_loaders folder.

    Can try the products_with_attributes one. Will renaming these break the shop?

  10. #50
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: logoff page isn't redirecting properly

    Quote Originally Posted by ttfan View Post
    No such google_recaptcha file in the includes.auto_loaders folder.

    Can try the products_with_attributes one. Will renaming these break the shop?
    If just renaming the file(s) in the includes/auto_loaders directory, the store will operate but without the feature(s) added by the related file(s). By renaming the file(s) in the includes/classes/observers directory that do not begin with auto. there is a risk of error messages being generated.

    Honestly I forget the actual action that occurs, I learned my lesson a long time ago and so install the auto_loaders type file last (if sequencing) and remove first if I want to disable something quickly.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 
Page 5 of 6 FirstFirst ... 3456 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