-
Notifications
You must be signed in to change notification settings - Fork 445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Login Loop #5780
Comments
If possible, could you share the application log from the APache server (redacted if you prefer) and a console (web inspector) log from your browser. Login loops have happened because of a failure to setup the session cookie after successful login, but that was fixed a while ago and definitely fixed in 4.4.3. However, it's possible something else is getting in the way of session creation and that could be either server-side or client-side, hence why we need to see both halves. |
Thanks for your help, and sorry for the late reply. I'm posting below:
============ BROWSER CONSOLE LOG ======================
========================APACHE LOG ==============================
========================== app.log ============================================
========================= auth.log===============================
|
@turnerendlesslearning no worries about the delays :) Thanks for the detailed logs - this makes our job soooo much easier! Looking at the stack traces, it appears to be a problem with the locale settings. The locale you configure in the UI needs to be available on the system running the web server as well (in other words, the PHP interpreter needs the locale installed at the system level). Have a look at the documentation and see if it helps: https://github.com/ChurchCRM/CRM/wiki/System-locale |
Thank you! The system locale is: It's a shared host and I don't have root access, so I can't change the locale of the system. Is this something I need to talk to the hosting company about? If it helps, this is the PHP exception that is thrown in GetCurrentLocale() in Bootstrapper.php: object(Exception)#16 (7) { ["message":protected]=> string(33) "No active authentication provider" ["string":"Exception":private]=> string(1132) "Exception: No active authentication provider in /home/DOMAIN/public_html/churchcrm/ChurchCRM/Authentication/AuthenticationManager.php:27 Stack trace: #0 /home/DOMAIN/public_html/churchcrm/ChurchCRM/Authentication/AuthenticationManager.php(37): ChurchCRM\Authentication\AuthenticationManager::GetAuthenticationProvider() #1 /home/DOMAIN/public_html/churchcrm/ChurchCRM/Bootstrapper.php(91): ChurchCRM\Authentication\AuthenticationManager::GetCurrentUser() #2 /home/DOMAIN/public_html/churchcrm/ChurchCRM/Bootstrapper.php(108): ChurchCRM\Bootstrapper::GetCurrentLocale() #3 /home/DOMAIN/public_html/churchcrm/ChurchCRM/Bootstrapper.php(71): ChurchCRM\Bootstrapper::ConfigureLocale() #4 /home/DOMAIN/public_html/churchcrm/Include/LoadConfigs.php(22): ChurchCRM\Bootstrapper::init('localhost', '', 'DOMAIN_43...', '1]j.CL3S(!5Yp@5...', 'DOMAIN_43...', '/churchcrm', false, Array) #5 /home/DOMAIN/public_html/churchcrm/Include/Config.php(63): require_once('/home/DOMAIN') #6 /home/DOMAIN/public_html/churchcrm/session/index.php(2): require('/home/DOMAIN') #7 {main}" ["code":protected]=> int(0) ["file":protected]=> string(91) "/home/DOMAIN/public_html/churchcrm/ChurchCRM/Authentication/AuthenticationManager.php" ["line":protected]=> int(27) ["trace":"Exception":private]=> array(7) { [0]=> array(6) { ["file"]=> string(91) "/home/DOMAIN/public_html/churchcrm/ChurchCRM/Authentication/AuthenticationManager.php" ["line"]=> int(37) ["function"]=> string(25) "GetAuthenticationProvider" ["class"]=> string(46) "ChurchCRM\Authentication\AuthenticationManager" ["type"]=> string(2) "::" ["args"]=> array(0) { } } [1]=> array(6) { ["file"]=> string(67) "/home/DOMAIN/public_html/churchcrm/ChurchCRM/Bootstrapper.php" ["line"]=> int(91) ["function"]=> string(14) "GetCurrentUser" ["class"]=> string(46) "ChurchCRM\Authentication\AuthenticationManager" ["type"]=> string(2) "::" ["args"]=> array(0) { } } [2]=> array(6) { ["file"]=> string(67) "/home/DOMAIN/public_html/churchcrm/ChurchCRM/Bootstrapper.php" ["line"]=> int(108) ["function"]=> string(16) "GetCurrentLocale" ["class"]=> string(22) "ChurchCRM\Bootstrapper" ["type"]=> string(2) "::" ["args"]=> array(0) { } } [3]=> array(6) { ["file"]=> string(67) "/home/DOMAIN/public_html/churchcrm/ChurchCRM/Bootstrapper.php" ["line"]=> int(71) ["function"]=> string(15) "ConfigureLocale" ["class"]=> string(22) "ChurchCRM\Bootstrapper" ["type"]=> string(2) "::" ["args"]=> array(0) { } } [4]=> array(6) { ["file"]=> string(64) "/home/DOMAIN/public_html/churchcrm/Include/LoadConfigs.php" ["line"]=> int(22) ["function"]=> string(4) "init" ["class"]=> string(22) "ChurchCRM\Bootstrapper" ["type"]=> string(2) "::" ["args"]=> array(8) { [0]=> string(9) "localhost" [1]=> string(0) "" [2]=> string(16) "DOMAIN_436" [3]=> string(16) "1]j.CL3S(!5Yp@55" [4]=> string(16) "DOMAIN_436" [5]=> string(10) "/churchcrm" [6]=> bool(false) [7]=> array(1) { [0]=> string(37) "https://DOMAIN.church/churchcrm" } } } [5]=> array(4) { ["file"]=> string(59) "/home/DOMAIN/public_html/churchcrm/Include/Config.php" ["line"]=> int(63) ["args"]=> array(1) { [0]=> string(64) "/home/DOMAIN/public_html/churchcrm/Include/LoadConfigs.php" } ["function"]=> string(12) "require_once" } [6]=> array(4) { ["file"]=> string(58) "/home/DOMAIN/public_html/churchcrm/session/index.php" ["line"]=> int(2) ["args"]=> array(1) { [0]=> string(59) "/home/DOMAIN/public_html/churchcrm/Include/Config.php" } ["function"]=> string(7) "require" } } ["previous":"Exception":private]=> NULL } |
This is certainly something you would need to follow up with your hosting provider about. For what it's worth, the two shared hosting accounts I have shell access to have similar results:
One hosting provider has almost 800 locales installed, and the other, ~750. This is something they will need to help you with. |
Hi, I've had ChurchCRM for about 10 months and it has worked fine, but a couple of months ago it developed this problem. Today, I did a fresh install with the latest version (4.4.3) from GitHub and it persists.
I can login successfully (the .log files show it was a successful login), but it just loops back to the login page and asks me to login again. (If I use incorrect credentials, it tells me so, but with correct credentials, it just pushes me back to the login page with no notification).
This is on a shared Linux server running PHP 7.3
Using Vivaldi 3.6.2165.36 on Ubuntu linux desktop, but the error happens with other browsers and computers.
MySQL is 10.3.29-MariaDB
In the installation process, it said that my server didn't have the FileInfo extension for manipulating images, but that was the same when I had a working version of ChurchCRM, and I supposed it probably isn't the cause of the login problems.
Any suggestions would be greatly appreciated.
Thanks!
The text was updated successfully, but these errors were encountered: