MyBB Community Forums

Full Version: Authorization code mismatch. Problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5
After new user registers and he tries to log in for first time it will say to him 
Authorization code mismatch. Are you accessing this function correctly? Please go back and try again.
and then he need to refresh page to verifies his account then login so how can i fix this problem?
Hope anyone help me plz..
what is your forum url & which version of MyBB you are using ? is it a newly installed forum ?
check if this guidance helps =>
Yes, it's latest version of MyBB and it's newly installed, Already tried this Guidance but didn't fix the problem..
Already tried but not fixes it!
Can you paste the contents of your header include template here?
Dude where i can find header include
i see only this
Header Templates
header Options
header_menu_calendar Options
header_menu_memberlist Options
header_menu_portal Options
header_menu_search Options
header_quicksearch Options
header_welcomeblock_guest Options
header_welcomeblock_guest_login_modal Options
header_welcomeblock_guest_login_modal_lockout Options
header_welcomeblock_member Options
header_welcomeblock_member_admin Options
header_welcomeblock_member_moderator Options
header_welcomeblock_member_pms Options
no header include..
headerinclude is under ungrouped templates at the bottom of the template listing.

post the contents of header_welcomeblock_guest template under header templates.
That's the contain of header include
<link rel="alternate" type="application/rss+xml" title="{$lang->latest_threads} (RSS 2.0)" href="{$mybb->settings['bburl']}/syndication.php" />
<link rel="alternate" type="application/atom+xml" title="{$lang->latest_threads} (Atom 1.0)" href="{$mybb->settings['bburl']}/syndication.php?type=atom1.0" />
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.js?ver=1813"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1813"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js?ver=1817"></script>

<!-- start: Full PM --><script>
    var fullpm_language = {
        title: '{$lang->fullpm_title}',
        text: '{$lang->fullpm_text}',
        close: '{$lang->fullpm_close}'
    var showmsg = '{$showmsg}';
    </script><script type="text/javascript" src="{$mybb->asset_url}/jscripts/fullpm.js"></script><!-- end: Full PM -->

<script type="text/javascript">
	lang.unknown_error = "{$lang->unknown_error}";

	lang.select2_match = "{$lang->select2_match}";
	lang.select2_matches = "{$lang->select2_matches}";
	lang.select2_nomatches = "{$lang->select2_nomatches}";
	lang.select2_inputtooshort_single = "{$lang->select2_inputtooshort_single}";
	lang.select2_inputtooshort_plural = "{$lang->select2_inputtooshort_plural}";
	lang.select2_inputtoolong_single = "{$lang->select2_inputtoolong_single}";
	lang.select2_inputtoolong_plural = "{$lang->select2_inputtoolong_plural}";
	lang.select2_selectiontoobig_single = "{$lang->select2_selectiontoobig_single}";
	lang.select2_selectiontoobig_plural = "{$lang->select2_selectiontoobig_plural}";
	lang.select2_loadmore = "{$lang->select2_loadmore}";
	lang.select2_searching = "{$lang->select2_searching}";

	var cookieDomain = "{$mybb->settings['cookiedomain']}";
	var cookiePath = "{$mybb->settings['cookiepath']}";
	var cookiePrefix = "{$mybb->settings['cookieprefix']}";
	var cookieSecureFlag = "{$mybb->settings['cookiesecureflag']}";
	var deleteevent_confirm = "{$lang->deleteevent_confirm}";
	var removeattach_confirm = "{$lang->removeattach_confirm}";
	var loading_text = '{$lang->ajax_loading}';
	var saving_changes = '{$lang->saving_changes}';
	var use_xmlhttprequest = "{$mybb->settings['use_xmlhttprequest']}";
	var my_post_key = "{$mybb->post_code}";
	var rootpath = "{$mybb->settings['bburl']}";
	var imagepath = "{$theme['imgdir']}";
  	var yes_confirm = "{$lang->yes}";
	var no_confirm = "{$lang->no}";
	var MyBBEditor = null;
	var spinner_image = "{$theme['imgdir']}/spinner.gif";
	var spinner = "<img src='" + spinner_image +"' alt='' />";
	var modal_zindex = 9999;
// -->
and that's the header_welcomeblock_guest contain

						<!-- Continuation of div(class="upper") as opened in the header template -->
						<span class="welcome">{$lang->welcome_guest} <a href="{$mybb->settings['bburl']}/member.php?action=login" onclick="$('#quick_login').modal({ fadeDuration: 250, keepelement: true, zIndex: (typeof modal_zindex !== 'undefined' ? modal_zindex : 9999) }); return false;" class="login">{$lang->welcome_login}</a> <a href="{$mybb->settings['bburl']}/member.php?action=register" class="register">{$lang->welcome_register}</a></span>
				<div class="modal" id="quick_login" style="display: none;">
					<form method="post" action="{$mybb->settings['bburl']}/member.php">
						<input name="action" type="hidden" value="do_login" />
						<input name="url" type="hidden" value="" />
						<input name="quick_login" type="hidden" value="1" />
						<input name="my_post_key" type="hidden" value="{$mybb->post_code}" />
						<table width="100%" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" border="0" class="tborder">
								<td class="thead" colspan="2"><strong>{$lang->login}</strong></td>
				<script type="text/javascript">
					$("#quick_login input[name='url']").val($(location).attr('href'));
i just registered an account with username Test and don't get the error, so maybe you have solved the problem. You can delete the account if you want.
Pages: 1 2 3 4 5