ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Logout Path Issue

January 26, 2010 11:33am

Subscribe [5]
  • #1 / Jan 26, 2010 11:33am

    webvox

    25 posts

    I’m using EE 1.6.8, MSM turned off. I’m using mysite.com when referring to my domain since this is a private intranet.

    My logout link uses the basic path=logout. I’ve checked the path it generates and it’s mysite.com/index.php?ACT=10, which from my forum reads, should be correct. All other paths within the site are working correctly.

    The problem occurs when a logged in user clicks on logout. Instead of taking the user back to mysite.com/index.php, it adds /site/ to the url, so I get mysite.com/site/index.php. This results in a page not found error.

    I’ve checked my field groups, weblog groups and site settings and I don’t see where /site/ is defined anywhere. I’ve also cleared my caches and browser. Finally, I’ve checked all my templates and I haven’t hard-coded /site/ into any paths.

    Any ideas on why /site/ is being added to the logout redirection?

    *Update* It appears the same issue occurs when a user logs in. I’ve made the site members-only. When a user logs in, they’re taken to mysite.com/site/index.php instead of mysite/index.php, which again throws the page not found error.

    Any advice is very much appreciated!

  • #2 / Jan 26, 2010 3:52pm

    Ingmar

    29245 posts

    The problem occurs when a logged in user clicks on logout. Instead of taking the user back to mysite.com/index.php, it adds /site/ to the url, so I get mysite.com/site/index.php. This results in a page not found error.

    Is that not your default template group? Are you using server side rewrites of any kind? What version and build of EE are you on?

    When a user logs in, they’re taken to mysite.com/site/index.php instead of mysite/index.php, which again throws the page not found error.

    By default, an EE url looks like http://example.com/index.php/group/template/. Logging in or out takes you to the “index” template of the default group.

  • #3 / Jan 26, 2010 4:06pm

    webvox

    25 posts

    Hi, Ingmar. Thanks for replying.

    I’m using EE 1.6.8, build 20091202, commercial version.

    My error with stating the correct path to my home page. My default home is /news/index.php.  I don’t have /site/ specified anywhere, nor do I have a template group called site.

    Not using any SSI or outside scripting. It’s acting like there’s a setting somewhere that is overriding my default home.

  • #4 / Jan 26, 2010 6:40pm

    Adam Dorsey

    1439 posts

    If you go to:  Admin ›  System Preferences ›  General Configuration

    What do you have listed for “URL to the root directory of your site” and “Name of your site’s index page”?

  • #5 / Jan 26, 2010 11:36pm

    webvox

    25 posts

    URL to the root directory of your site:  http://handgineers.mysite.com/

    Name of your site’s index page:  index.php

  • #6 / Jan 27, 2010 3:20am

    John Henry Donovan

    12339 posts

    galadan,

    What’s in your path.php file?

    You mentioned you are not using a htaccess or anything like that?

  • #7 / Jan 27, 2010 8:58am

    webvox

    25 posts

    Here is what’s in my path.php. And nope, not using any htaccess or server-side stuff.

    Also, if it will help, I can give you the login for my admin. Let me know and I’ll pm you the info.

    <?php
    
    // ------------------------------------------------------
    // DO NOT ALTER THIS FILE UNLESS YOU HAVE A REASON TO
    
    // ------------------------------------------------------
    // Path to the directory containing your backend files
    
    $system_path = "./admin/";
    
    // ------------------------------------------------------
    // MANUALLY CONFIGURABLE VARIABLES
    // See user guide for more information
    // ------------------------------------------------------
    
    $template_group = "";
    $template = "";
    $site_url = "";
    $site_index = "";
    $site_404 = "";
    $global_vars = array(); // This array must be associative
    
    ?>
  • #8 / Jan 27, 2010 9:38am

    Sue Crocker

    26054 posts

    Ideally, we’d like to get this fixed, but in the mean time have you seen:

    http://ellislab.com/forums/viewthread/94551/

    This thread points to a third party addon that allows you to specify where you are taken at login and logout.

    Might that work?

  • #9 / Jan 27, 2010 9:50am

    webvox

    25 posts

    Well I certainly feel like an idiot.  :/

    I went through every control panel and setting this morning and realized that I had that exact extension installed and it was, in fact, adding the /site/ segment. I thought I had disabled all my third-party stuff but I must have left that one on, even after looking at it a dozen times. Just disabled it and the problem is now resolved.

    I’m sorry to have wasted your time, Sue, and the time of the other moderators. Thank you for your patience and help!

  • #10 / Jan 27, 2010 10:01am

    Sue Crocker

    26054 posts

    Yay!! That was going to be my next question, checking your extensions. 😊 Don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases