1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 Can't login, -register to my site, but the database is up.

Discussion in 'Troubleshooting and Problems' started by CabCon, Feb 23, 2016.

  1. CabCon

    CabCon Member

    Hello,
    I have a really big problem. I can't login to my site, everyone can't login to my site. If I try to login, I type all information in (Informations are right) and after pressing sign up, I will come back to index.php without logged in or any kind of a error message. Also If I try to register (feel free to try it too) it won't work. I checked my database because I thought the problem is there but the database work sucessfull. I don't know now what I can do now. Or where the problem is. Do you know where the problem can be? Also did you have this problem before at someone else?


    My broken website:
    http://cabconmodding.com/



    Thank you,
    CabCon.
     
  2. kimchuy

    kimchuy Member

    looks like a cookie.

    On your library/config.php

    can you add this :

    $config['cookie']['domain'] = '.cabconmodding.com';

    can you check if it works?
     
  3. kimchuy

    kimchuy Member

    clear your browser cache after you made that changes.
     
  4. CabCon

    CabCon Member

    I try it when I'm at home thank you :)
     
  5. Mike

    Mike XenForo Developer Staff Member

    This isn't related to cookie settings.

    I would guess it's more related to a reverse proxy being involved and the real IP not being exposed to XF as expected. Alternatively, it's possible that cookies aren't being passed through as expected. I can see Varnish references in the response and I have seen that before. Is Varnish something you've added or is it from your host?
     
  6. CabCon

    CabCon Member

    I didn't activate Varnish or something else, I didn't do anything. Yesterday all works fine, today I wake up and can't sign up. And I'm the only one with admin permissions so. I will contact now my hoster about the Varnish thing :D Any other idea how can I fix it?
     
  7. Mike

    Mike XenForo Developer Staff Member

    It depends a bit what the issue is. If it's the IP thing, then it can be worked around easily. If cookies are not being passed to PHP or cached pages are being served, then your host would need to be involved.

    If you can create a file called something like info.php (give it a slightly more random name) with:
    Code:
    <?php phpinfo();
    in it and send me the URL (within your root XenForo directory), I can have a look.
     
  8. CabCon

    CabCon Member

    Sure thank you:
    <removed link>
     
    Last edited by a moderator: Feb 23, 2016
  9. CabCon

    CabCon Member

    Also I wrote my hoster and Varnish is on always.
     
  10. Mike

    Mike XenForo Developer Staff Member

    I meant to send that privately. I have removed the link though.

    I can confirm that cookies aren't being received by PHP. Your host should be able to easily confirm that (visit your main page which will set a xf_session cookie) and load that info page. It won't be present in the response. If your host can't or won't resolve this, I could only recommend changing hosts. This is a big thing to break.
     
  11. CabCon

    CabCon Member

    Ok thank you, how can the host fix this? Disable Varnish? Also why it work now for 3 months and now not... ? Is this normal?
     
  12. Mike

    Mike XenForo Developer Staff Member

    I can't really comment as to what really caused this. It's most definitely not normal and would really have to be a change to trigger it.
     
  13. CabCon

    CabCon Member

    mhm ok that sounds really bad for me.. :/
     
  14. CabCon

    CabCon Member

    I tried login again and again and one time this happends:

    [​IMG]


    My default language of the site is english, my Admin account setted language is german. So the error comes from the german phase table.
     
  15. Karelke

    Karelke Active Member

    We are experiencing a similar issue after upgrading Varnish 4.0 to 4.1 last week. For some reason, the admin panel aborts the ajax request login after 30 seconds.

    Screenshot_2016-04-11_13-16-37.png
     
  16. Brogan

    Brogan XenForo Moderator Staff Member

    Disable Varnish - we see numerous issues related to it.
     
  17. Karelke

    Karelke Active Member

    Excluding /forum from Varnish seems to work.

    Code:
    vcl 4.0;
    
    if (req.url ~ "/forum") {
        return (pipe);
    }
    
     

Share This Page