Get the most out of your Centmin Mod LEMP stack
Become a Member

Xenforo Login & Logout Problem

Discussion in 'Forum software usage' started by Mike05, Sep 18, 2022.

  1. Mike05

    Mike05 New Member

    5
    1
    3
    Feb 1, 2021
    Ratings:
    +1
    Local Time:
    11:03 PM
    1.18.o
    10
    I recently installed xenforo 2.2.10 and I'm having two problem.


    1. When I login , it doesn't display my nick, it's like I'm not logged , then I refresh the forum but nothing happens unless I click on Members then my nick displays on the Bar. I think it's some sort of Caching proglem.

    2. When I tried to log out, it throws error at me ( Security error occurred. Please press back, refresh the page, and try again ) Refreshing doesn't help.
    I'm still trying to fix it. But I think I just dump the Data Base and start from scratch..
    But I would highly appreciate your help. If that doesn't resolve the situation.
    And could you please provide me the best Xenforo 2 fastcgi cache directives and config.php file.

    Thanks again.
     
  2. eva2000

    eva2000 Administrator Staff Member

    55,417
    12,256
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,837
    Local Time:
    4:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    What caching options are you using on the server itself for the Xenforo forum domain i.e. PHP-FPM fastcgi_cache - did you set that up? If so improper setup will cause what you describe. I'd remove/undo the PHP-FPM fastcgi_cache setup and see if that fixes your problems first.

    Are you enabling Xenforo's native guest full HTML page caching? That's another one that has been reported to cause a similar issue you have now. So disable Xenforo's native guest full HTML page caching and see if that fixes your problems first.
     
  3. duderuud

    duderuud Premium Member Premium Member

    265
    88
    28
    Dec 5, 2020
    The Netherlands
    Ratings:
    +188
    Local Time:
    8:03 AM
    1.27 x
    10.6
    Had the same problem here. Logged in, nothing happened. Hard refresh the page, still nothing.
    Tried to login again, not logged in. Hard refresh...logged in :confused:
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,417
    12,256
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,837
    Local Time:
    4:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    When you log out, do you also manually clear cookies for the site?
     
  5. duderuud

    duderuud Premium Member Premium Member

    265
    88
    28
    Dec 5, 2020
    The Netherlands
    Ratings:
    +188
    Local Time:
    8:03 AM
    1.27 x
    10.6
    No
     
  6. duderuud

    duderuud Premium Member Premium Member

    265
    88
    28
    Dec 5, 2020
    The Netherlands
    Ratings:
    +188
    Local Time:
    8:03 AM
    1.27 x
    10.6
    This was the first time experiencing this BTW. Logged in without any problems before.
     
  7. eva2000

    eva2000 Administrator Staff Member

    55,417
    12,256
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,837
    Local Time:
    4:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Interesting then. Was about to ask you that very question if it's happened before or first time. Take note of the web browser/device (laptop/phone/desktop/tablet) used if it occurs in future. On this forum itself you can also post a report at https://community.centminmod.com/forums/forum-feedback-suggestions.15/ :)
     
  8. Mike05

    Mike05 New Member

    5
    1
    3
    Feb 1, 2021
    Ratings:
    +1
    Local Time:
    11:03 PM
    1.18.o
    10
    @eva2000 ; Thank you for your prompt response. I enabled, disabled all the caching directives and I clear all caches when ever I login but the problem remains the same.
    I even enabled, disabled Caching directives in config.php... But getting nowhere.

    The logging out problem has been resolved.
     
    Last edited: Sep 19, 2022
  9. eva2000

    eva2000 Administrator Staff Member

    55,417
    12,256
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,837
    Local Time:
    4:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  10. Mike05

    Mike05 New Member

    5
    1
    3
    Feb 1, 2021
    Ratings:
    +1
    Local Time:
    11:03 PM
    1.18.o
    10
    @eva2000 ;
    You are right, I just disabled php-fpm Cache Path and cache key directive and problem solved..

    Thank you so much for pointing out that for me. Much appreciated.