Not signed in (Sign In)

Categories

Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorsongsak
    • CommentTimeAug 29th 2005
     # 1
    I'm having a problem when users attempt to sign in. It appends the websites folder name at the end of the url... www.positivelyyoung.com/positivelyyoung when it should be just www.positivelyyoung.com ...if the user attempts to log in again it works with no error...I checked the application settings and the path to vanilla was incorrectly listed as www.positivelyyoung.com/positivelyyoung so I corrected the path but the application still attemps to take users to www.positivelyyoung.com/positivelyyoung when they sign in. Would this information be saved elsewhere?
    •  
      CommentAuthornathan
    • CommentTimeAug 29th 2005
     # 2
    it shouldn't be saved elsewhere. Are you the user that is trying to log in? It COULD be a cache issue, but I doubt it. Flush the cache and reload and let us know what happens.

    I will think of a few other possibilities in the mean time.
    • CommentAuthorsongsak
    • CommentTimeAug 29th 2005
     # 3
    hey Nathan...I flushed the cache and tried to log in again and the same thing happened...I tried it on another computer of mine for the first time and it also happened. :|
    •  
      CommentAuthornathan
    • CommentTimeAug 29th 2005
     # 4
    well. Mmmmm....

    Did you change the settings.php file through the admin interface (settings > appilication settings) or the file directly.

    If you can log in, I would suggest having a quick go through the admin interface and testing that. I have had a little trouble with editing file directly and having those changes take effect (more of an extension issue, but it could be related).

    get back to me on that one.
    • CommentAuthorsongsak
    • CommentTimeAug 29th 2005
     # 5
    I made the change via the administration system...I also downloaded the settings.php file from the appg directory to verify the settings are correct...nothing appears to show the wrong URL.
    •  
      CommentAuthorMark
    • CommentTimeAug 29th 2005
     # 6
    Where is your forum set up? Can we have a go at it?
    • CommentAuthorsongsak
    • CommentTimeAug 29th 2005
     # 7
    the URL is www.positivelyyoung.com....sign up and you'll see what i mean...or you can log in with administrator/administrator
    •  
      CommentAuthorMark
    • CommentTimeAug 30th 2005 edited
     # 8
    Okay, can you create a test.php file and put this inside it:

    echo("PHP_SELF: " . $_SERVER["PHP_SELF"]);
    echo("<br />Directory: " . dirname($_SERVER["PHP_SELF"]));


    Then upload it to your server.
    Then view it in a web browser and tell me what it says...
    • CommentAuthorsongsak
    • CommentTimeAug 30th 2005
     # 9
    Here is a copy of what the file showed.

    PHP_SELF: /positivelyyoung/test.php
    Directory: /positivelyyoung
    •  
      CommentAuthorMark
    • CommentTimeAug 30th 2005
     # 10
    I've got to head out, but the problem is definitely to do with your server's use of PHP_SELF. If you take a look at controls/signin.php, you'll see that after you've been signed in, I rebuild the path to your discussion index:

    if ($AutoRedirect) {
    if ($this->ReturnUrl == "") {
    $this->ReturnUrl = dirname(ForceString(@$_SERVER["PHP_SELF"], ""));
    } else {
    $this->ReturnUrl = urldecode($this->ReturnUrl);
    }
    $this->ReturnUrl = ForceString(@$_SERVER['HTTP_HOST'], "").$this->ReturnUrl;
    header("location: http://".$this->ReturnUrl);
    die();
    }


    On your server, the PHP_SELF *should* be something like "signin.php", but instead it is "positivelyyoung/signin.php".

    A quick fix for you would be to change this line:

    $this->ReturnUrl = ForceString(@$_SERVER['HTTP_HOST'], "").$this->ReturnUrl;

    to this:

    $this->ReturnUrl = ForceString(@$_SERVER["HTTP_HOST"], "");
    • CommentAuthorsongsak
    • CommentTimeAug 30th 2005
     # 11
    thanks that worked!
    •  
      CommentAuthorMark
    • CommentTimeAug 30th 2005 edited
     # 12
    Nice :)
    •  
      CommentAuthornathan
    • CommentTimeAug 30th 2005
     # 13
    well I was no use then was I.

    Thanks for clearing that up Mark.
Add your comments
    Username Password
  • Format comments as