MyBB Community Forums

Full Version: Authorization code mismatch.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Authorization code mismatch. Are you accessing this function correctly? Please go back and try again.

I have checked the topic: https://community.mybb.com/thread-218862.html
and I have tried to use the plugin: https://community.mybb.com/thread-229579.html

Both are not working, and I am pulling my hair, what can I do to fix this? Do one of the MyBB developers need access to my website I can make an admin login for you.

When trying to log in it says I successful logged in and it goes back to the index and it shows Login and Register.....

MyBB Version 1.8.27
PHP Version 7.4.9

Update: now my website let me login in admin panel but after switching to another tab in admin I have to login again and the system is completely broken... what just happened?
It sounds like your cookie settings are potentially incorrect. Can you access your inc/settings.php file and let us know the values for cookie settings as well as the domain name including the directory for your MyBB install.
Yeah sure it is:

$settings['cookiedomain'] = ".wazzyl3dprints.nl";
$settings['cookiepath'] = "/mybb/";

wazzyl3dprints.nl/mybb so it should work, cause I will move it soon to /forum

If you need a login I am happy to help you!
The Cookie Secure Flag seems to be set to Yes, but the forum URL doesn't use https://. Changing the setting to No or switching to https:// should help.

See https://docs.mybb.com/1.8/faq/login-problems/
You will not believe what I figured out, I only had to change the /inc/settings.php the URLs from HTTP into HTTPS... I saved it and it works now lol.

and the issue comes back again the whole time, can it be the web hoster I am right now?
The inc/settings.php file is only a cache which MyBB sometimes overwrites. To make the change permanent, you need to edit the corresponding setting in the ACP.