The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
How to fix "Security Token" Error for vBulletin 4.x.x Details »» | |||||||||||||||||||||||||||
How to fix "Security Token" Error for vBulletin 4.x.x
Developer Last Online: Jan 2012
Now PLEASE, stop making threads about it.
This is how to fix it: Go to your forum's directory, and find the Code:
index.php Code:
<?php PHP Code:
Edit (LOL, this thread got replies? >_>): README.txt is there for a reason. I have saw a LOT of these threads pushing out the actual issues on hand. kthx Show Your Support
|
Comments |
#22
|
|||
|
|||
Quote:
Still getting the same error after replacing this code multiple times and even replacing the index.php again. Anyone else? also.... this error only appears when you load the site from the root. www.domain.com/ Once you get to the site and go to the forum or blog or anything you do not see the error.....until you finish an arcade game.... then it shows up on that page also. |
#23
|
|||
|
|||
OK...what am I doing wrong?
Here's my index.php, which is in my root (httpdocs): HTML Code:
<?php
// ibProArcade
if($_POST['module'] == "pnFlashGames")
{
require_once('./global.php');
switch($_POST['func'])
{
case "storeScore":
$_GET['act'] = "Arcade";
$_GET['module'] = "arcade";
$_GET['do'] = "pnFStoreScore";
break;
case "saveGame":
$_GET['do'] = "pnFSaveGame";
break;
case "loadGame":
$_GET['do'] = "pnFLoadGame";
break;
case "loadGameScores":
$gid = $vbulletin->input->clean_gpc('p', 'gid', TYPE_INT);
$uid= $vbulletin->userinfo['userid'];
$game = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "games_scores WHERE mid=$uid AND gid = $gid ORDER BY score DESC LIMIT 0,1");
$scores = $game[score];
if($scores != false)
{
//Return true
print "&opSuccess=true&gameScores=$scores&endvar=1"; //send endvar to keep opSuccess separate from all other output from PostNuke
}
else
{
print "&opSuccess=false&error=Error&endvar=1";
}
break;
}
}
$act = $_GET[act];
$autocom = $_GET[autocom];
$showuser= $_GET[showuser];
if($act == "Arcade" || $autocom=="arcade") {
include "arcade.php";
exit();
}
if(!empty($showuser) && $showuser >= 1) {
$u = $showuser;
$_GET[u] = $showuser;
include "member.php";
exit();
}
// end of ibProArcade
** File edited, removed default vBulletin code ***
|
#24
|
|||
|
|||
Quote:
I have the same problem. |
#25
|
|||
|
|||
Good luck...
I posted the same basic issue 3 weeks ago and no one has had any suggestions or response. |
#26
|
|||
|
|||
Ten days and no response.
I think it's time that this mod is declared unsupported. A shame, because it's a good one, but clearly the developers (and everyone else) have abandoned it. |
#27
|
|||
|
|||
Ok here is the latest breakthrough having to just guess at things and try things pieced from other posts.
The ONLY way I could get the text to stop appearing at the top of the front page of my site was to finally add all of the code for the index.php file to the END of the file and not the top. That made the text go away at the top of the page, but the security token error returned. I then went to the lines just above where I added all the code and changed the CMS default script form content.php to forum.php. Now this is still unacceptable because I want the content.php to be the default and not the forums.php. But the system now works with no errors. It saves my games and no text at the front page or score submit page. So does that mean the problem is in one of the content.php files? Or in the index.php code and how it interacts with the content.php? I have tried many different changes with no luck. I have tried putting the code in the context.php file in both the root and the vb folders. I have tried to comment out certain lines of code with no luck. So for now if I want this to work with no errors I have to leave the default page to be the forums front page. I'd rather not. So it will stay broken for now. |
#28
|
||||
|
||||
this is not unsupported, while v2.7.1+ is to be finished I am trying hard to fix things that came up with vB4 and using its own index.php to direct to portal or forum.
There is no hook in index.php or any other place where right from the start I can implement the needed code, very bad. I think I need to contact Jelsoft and request a hook there. I am still irritated that this error does NOT appear on my testsite ... Maybe anybody let me check this "on site" ? Please contact me via PM and refer to this thread, thanks |
#29
|
|||
|
|||
I put this in index.php
PHP Code:
As for your test site; have you tried setting the default page to be the cms not the forum? |
#30
|
||||
|
||||
From what I can see Arcade is still very buggy with vB4 so its maybe better to wait installing this, right ?
|
#31
|
|||
|
|||
I tried this suggestion tonight and it did not fix my issues. Either text across the top of the site, or the token error.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|