View Full Version : Security token missing error
Stiff-
09-06-2008, 06:53 PM
A moderator of mine gets the following error when he tries to log onto the User CP
Your submission could not be processed because a security token was missing.
If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.
How can I fix this, I've just installed vBulletin today. I use version 3.7.3
puertoblack2003
09-06-2008, 07:25 PM
disable the plugin system .You would have to go through it one by one to find which one is giving you the error then you would have to either upgrade the hack or remove it...
But there's other solution to it, you have to search for it around here.
Opserty
09-06-2008, 07:46 PM
Create a New Style with No Parent Style. Browse the affected pages using this style, does your issue persist?
Stiff-
09-06-2008, 07:52 PM
I'm sorry but what is a Parent style?
And how can it be that a style gives an error likes this?
Opserty
09-06-2008, 08:02 PM
<a href="http://www.vbulletin.com/docs/html/stylemanager_add_new_style" target="_blank">Creating New Styles</a>
Well, we'll see if it is the Style or not. The HTML code that passes the security token is missing.
Stiff-
09-06-2008, 08:12 PM
So the fault was in its html? That means that it can still be added, or I did something wrong when I installed the style?
masons_mum
09-06-2008, 08:46 PM
did you check your templates to see if any need updated. I would check your header, footer and navbar templates.
Search for:
<input type="hidden" name="s" value="$session[sessionhash]" />
make sure that directly underneath it says:
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
if its not there, add it in and save.
Opserty
09-06-2008, 08:56 PM
Did using the new style fix the problem?
Stiff-
09-07-2008, 07:43 AM
did you check your templates to see if any need updated. I would check your header, footer and navbar templates.
Search for:
make sure that directly underneath it says:
if its not there, add it in and save.
I wasn't able to find any of the codes you said, in header, headerinclude and footer. I don't see any navbar templates?
Here is my header:
<table style="border: 1px solid #666666;" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td align="top">
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td class="body" align="center"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
</tr>
</table>
<!-- /logo -->
<!-- content table -->
$spacer_open
$_phpinclude_output
headerinclude:
<meta http-equiv="Content-Type" content="text/html; charset=$stylevar[charset]" />
<meta name="generator" content="vBulletin $vboptions[templateversion]" />
<if condition="$show['threadinfo']">
<meta name="keywords" content="<if condition="$threadinfo['taglist']">$threadinfo[taglist], </if>$threadinfo[prefix_plain_html] $threadinfo[title], $vboptions[keywords]" />
<meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$threadinfo[prefix_plain_html] $threadinfo[title] $foruminfo[title_clean]" />
<else /><if condition="$show['foruminfo']">
<meta name="keywords" content="$foruminfo[title_clean], $vboptions[keywords]" />
<meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$foruminfo[description_clean]" />
<else />
<meta name="keywords" content="$vboptions[keywords]" />
<meta name="description" content="$vboptions[description]" />
</if></if>
<!-- CSS Stylesheet -->
$style[css]
<if condition="is_browser('opera') AND !is_browser('opera', '8.0.1')">
<style type="text/css" id="vbulletin_opera8fix_css">
ul, ol { padding-$stylevar[left]:20px; }
</style>
</if>
<if condition="$show['editor_css']">
$editor_css
</if>
<!-- / CSS Stylesheet -->
<script type="text/javascript" src="$stylevar[yuipath]/yahoo-dom-event/yahoo-dom-event.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript" src="$stylevar[yuipath]/connection/connection-min.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript">
<!--
var SESSIONURL = "$session[sessionurl_js]";
var SECURITYTOKEN = "$bbuserinfo[securitytoken]";
var IMGDIR_MISC = "$stylevar[imgdir_misc]";
var vb_disable_ajax = parseInt("$vboptions[disable_ajax]", 10);
// -->
</script>
<script type="text/javascript" src="clientscript/vbulletin_global.js?v=$vboptions[simpleversion]"></script>
<if condition="$show['popups']"><script type="text/javascript" src="clientscript/vbulletin_menu.js?v=$vboptions[simpleversion]"></script></if>
<if condition="$vboptions['externalrss']">
<link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] RSS Feed" href="external.php?type=RSS2" />
<if condition="$show['foruminfo'] OR $show['threadinfo']">
<link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] - $foruminfo[title_clean] - RSS Feed" href="external.php?type=RSS2&forumids=$foruminfo[forumid]" />
</if>
</if>
And footer:
<br />
<div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]
<br /><br />
Kirsch designed by <a href="https://vborg.vbsupport.ru/member.php?u=134687">Andrew</a> & <a href="https://vborg.vbsupport.ru/member.php?u=61794">Austin</a></div>
<br />
$spacer_close
<!-- /content area table -->
<form action="$vboptions[forumhome].php" method="get">
<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="$stylevar[outertablewidth]" class="page" align="center">
<tr>
<if condition="$show['quickchooser']">
<td class="tfoot">
<select name="styleid" onchange="switch_id(this, 'style')">
<optgroup label="$vbphrase[quick_style_chooser]">
$quickchooserbits
</optgroup>
</select>
</td>
</if>
<if condition="$show['languagechooser']">
<td class="tfoot">
<select name="langid" onchange="switch_id(this, 'lang')">
<optgroup label="$vbphrase[quick_language_chooser]">
$languagechooserbits
</optgroup>
</select>
</td>
</if>
<td class="tfoot" align="$stylevar[right]" width="100%">
<div class="smallfont">
<strong>
<if condition="$show['contactus']"><a href="$vboptions[contactuslink]" rel="nofollow">$vbphrase[contact_us]</a> -</if>
<if condition="$vboptions['hometitle']"><a href="$vboptions[homeurl]">$vboptions[hometitle]</a> -</if>
<if condition="$show['admincplink']"><a href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]</a> -</if>
<if condition="$show['modcplink']"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a> -</if>
<if condition="$vboptions['archiveenabled']"><a href="archive/index.php">$vbphrase[archive]</a> -</if>
<if condition="$vboptions[privacyurl]"><a href="$vboptions[privacyurl]">$vbphrase[privacy_statement]</a> -</if>
<a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a>
</strong>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
<div align="center">
<div class="smallfont" align="center">
<!-- Do not remove this copyright notice -->
$vbphrase[powered_by_vbulletin]
<!-- Do not remove this copyright notice -->
</div>
<div class="smallfont" align="center">
<!-- Do not remove $cronimage or your scheduled tasks will cease to function -->
$cronimage
<!-- Do not remove $cronimage or your scheduled tasks will cease to function -->
$vboptions[copyrighttext]
</div>
</div>
</form>
<if condition="$show['dst_correction']">
<!-- auto DST correction code -->
<form action="profile.php?do=dst" method="post" name="dstform">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="dst" />
</form>
<script type="text/javascript">
<!--
var tzOffset = $bbuserinfo[timezoneoffset] + $bbuserinfo[dstonoff];
var utcOffset = new Date().getTimezoneOffset() / 60;
if (Math.abs(tzOffset + utcOffset) == 1)
{ // Dst offset is 1 so its changed
document.forms.dstform.submit();
}
//-->
</script>
<!-- / auto DST correction code -->
</if>
<script type="text/javascript">
<!--
// Main vBulletin Javascript Initialization
vBulletin_init();
//-->
</script>
<br />
Did using the new style fix the problem?
I added a new style with no parent style, though I havnt been able to check it out, because the mods that have the problem arn't online at the moment.
Btw I currently use the Kirsch style, made by Yarub. https://vborg.vbsupport.ru/showthread.php?t=172978
If the new style with no parent thing won't help, will installing a whole new style fix the problem?
Edit: I oversaw the code, it was in there with the other codes missing, tried that and it works fine now, thanks alot!
trigatch4
09-15-2008, 03:23 PM
I was able to find:
<input type="hidden" name="s" value="$session[sessionhash]" />
In the NAVBAR and the FOOTER but not the HEADER. I made the changes to the 2 documents which seemed to allow some features to work, however users still can't do things like search without getting the security token error.
I'm wondering if I need to add BOTH those lines somewhere in the header? And if so, where?
trigatch4
09-30-2008, 04:39 PM
Anybody? This is KILLING me... I get emails everyday from people saying they can't search....
Angel-Wings
09-30-2008, 06:12 PM
https://vborg.vbsupport.ru/showpost.php?p=1555096&postcount=45
shows how to fix it ;)
This happens if someone copies & pastes the style information from VB 3.6.x to 3.7.x and forgets to take care of this issue.
trigatch4
09-30-2008, 06:25 PM
Thanks but that I have already changed that... and it doesn't work.
Here is my URL:
http://chromespot.com
SEOvB
09-30-2008, 06:34 PM
You need to find every instance of
<input type="hidden" name="s" value="$session[sessionhash]" />
And make sure
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
appears after it, and that will fix your errors.
trigatch4
09-30-2008, 06:46 PM
I was about to reply "I've already done that and double checked it" but it seems as though my first time around I missed ONE instance of that in my NAVBAR. That'll do it.
Thanks for being patient guys. I goofed.
SEOvB
09-30-2008, 06:49 PM
I was about to reply "I've already done that and double checked it" but it seems as though my first time around I missed ONE instance of that in my NAVBAR. That'll do it.
Thanks for being patient guys. I goofed.
I know, because if you had them all it wouldn't do it! :D
Just glad you've found the culprit and got it fixed!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.