The earlier user had similar combination.
There are 3 parameters in consideration for generating the key for guests. Would have been best to identify which one is being modified on each page refresh. I suspect session ID is the culprit.
Can you paste this line at the very end of your global.php? This will produce 2 key values at the top of your site.
printf( "Session ID: %s <br>Internal Key: %s", $session->sid, $mybb->settings['internal']['encryption_key']);
Now logout and as a guest monitor those keys. Please tell us which one (or both) is changing on every page refresh.
This may help troubleshooting further...
OK, please delete the previous code in global.php add this line:
echo $mybb->post_code;
Now open
inc/functions.php
and go to line number ~627, identify this line:
return md5($session->sid.$mybb->config['database']['username'].$mybb->settings['internal']['encryption_key']);
Replace with:
return md5($session->packedip.$mybb->config['database']['username'].$mybb->settings['internal']['encryption_key']);
Save the file. Logout. Monitor the same way if the code displayed at the top of your site is changing on every refresh.
(2019-06-25, 09:32 AM)effone Wrote: [ -> ]OK, please delete the previous code in global.php add this line:
echo $mybb->post_code;
Now open inc/functions.php
and go to line number ~627, identify this line:
return md5($session->sid.$mybb->config['database']['username'].$mybb->settings['internal']['encryption_key']);
Replace with:
return md5($session->packedip.$mybb->config['database']['username'].$mybb->settings['internal']['encryption_key']);
Save the file. Logout. Monitor the same way if the code displayed at the top of your site is changing on every refresh.
The code showing does not change every refresh
Keep the change made in inc/functions.php
. Delete the added echo line from global.php.
Your problem looks to be resolved.
Now check logging in. You should not see the "Authorization code mismatch" error.