Not Solved Authorization code mismatch
#1
Not Solved
I just had this happen after changing my DocumentRoot entry to /var/www/html in /etc/apache2/sites-available/000-default.conf

This has fixed the first problem but now I get the ACM error when trying to log in.

According to the guide published here I need to change a cookie entry in settings.php.
problem is, where do I find this file? Ive been looking everywhere.

URL is tmmb.co.nz

edit - found the file (/var/www/mybb/inc/settings.php)

Have changed the settings in the file to:

$settings['cookiepath'] = "/";
$settings['cookiedomain'] = "http://tmmb.co.nz";
$settings['bburl'] = "http://tmmb.co.nz";

and it appeared to work, but all it does now is say ive logged in successfully, but in fact im not logged in at all.
I tried a new session in a private window with cookies cleared and its still giving me the ACM error.
Reply
#2
Not Solved
actually cookie domain should be .tmmb.co.nz

after modifying settings.php file, log into forum admin panel
AND again change cookie domain to correct value .tmmb.co.nz
at site details of configuration section

more details -> MyBB cookie settings
Reply
#3
Not Solved
(2020-02-16, 02:37 AM).m. Wrote: actually cookie domain should be .tmmb.co.nz

after modifying settings.php file, log into forum admin panel
AND again change cookie domain to correct value .tmmb.co.nz
at site details of configuration section

more details -> MyBB cookie settings

I was looking at this and was wondering about that.
I had since edited the file and it appears to be working.

Settings are as follows:

$settings['bburl'] = "http://tmmb.co.nz";

$settings['cookiedomain'] = ".tmmb.co.nz";
$settings['homeurl'] = "http://tmmb.co.nz/";

I was reading that  I have to go back into the main CP and change some settings there or else it can revert back after a restart, is that true?
Reply
#4
Not Solved
^ after using correct values in settings.php file you should be able to log into
forum admin panel. then again correct values should be put at Site Details of
configuration section so that correct values save to the database.
Reply
#5
Not Solved
(2020-02-16, 03:20 AM).m. Wrote: ^ after using correct values in settings.php file you should be able to log into
forum admin panel. then again correct values should be put at Site Details of
configuration section so that correct values save to the database.
Thanks, Ill check that now
Reply
#6
Not Solved
also check this related guidance => Authorization code mismatch
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)