I am using Moodle 3.5 and earlier today we had just migrated our Moodle from IP A to IP B in a new server.
Our DNS pointing is setup, I have done search & replace of the DB.
My login page looks perfect but I cannot login! I changed the password on CLI & verified the user exists in DB.
Then out of curiosity I opened the config.php and enabled these lines (originally they are commented out):
@error_reporting(E_ALL | E_STRICT); // NOT FOR PRODUCTION SERVERS!
@ini_set('display_errors', '1'); // NOT FOR PRODUCTION SERVERS!
$CFG->debug = (E_ALL | E_STRICT); // === DEBUG_DEVELOPER - NOT FOR PRODUCTION SERVERS!
$CFG->debugdisplay = 1; // NOT FOR PRODUCTION SERVERS!
To my surprise I am able to login now!
What is the issue here and how can I fix this? Every time I comment these lines I lose login access to my Moodle site!
I have another working Moodle site, and through the browser developer tools I see that every time login, there is a token generated in the back-end.
However through this login (debug enabled), there is not token generated.
Please someone help!!