PDA

View Full Version : security token was invalid


justasiam
06-02-2010, 07:55 PM
I am running vBulletin 3.8.5. When a user clicks on "Quick Links" and then on "Mark Forums Read", they get the following error.

Your submission could not be processed because a security token was invalid.

I have not installed anything new lately, so I do not know where to look to find the problem.

I would revert a template if I only knew which one to revert.

Ideas?

Xencored
06-02-2010, 08:00 PM
I am running vBulletin 3.8.5. When a user clicks on "Quick Links" and then on "Mark Forums Read", they get the following error.

Your submission could not be processed because a security token was invalid.

I have not installed anything new lately, so I do not know where to look to find the problem.

I would revert a template if I only knew which one to revert.

Ideas?

Am guessing its missing the Hash mark

In the navbar template look for
<a href="forumdisplay.php?$session[sessionurl]do=markread rel="nofollow">$vbphrase[mark_forums_read]</a>

and replace with

<a href="forumdisplay.php?$session[sessionurl]do=markread&amp;markreadhash=$bbuserinfo[securitytoken]" rel="nofollow">$vbphrase[mark_forums_read]</a>

justasiam
06-02-2010, 08:23 PM
That fixed it. Thank you

Xencored
06-02-2010, 08:44 PM
That fixed it. Thank you

Your welcome ;)

Corndogg
12-31-2010, 05:49 PM
I had this problem as well. There is another "Mark Forums Read" link in the FORUMHOME template, which was the main one I was using.

I replaced (adding the markreadhash)

<a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>

with

<a href="forumdisplay.php?$session[sessionurl]do=markread&amp;markreadhash=$bbuserinfo[securitytoken]" rel="nofollow">$vbphrase[mark_forums_read]</a>

and it worked like a charm. Thanks!