The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Private Site
#2
That usually means you have some sort of redirect or are doing something fancy in the middle of your form. Are you using any ajax or javascript?

Every time the page is loaded, you generate a token in the form...

Code:
<input type="hidden" name="csrf" value="<?=Token::generate();?>" >

Then on submission, you get

Code:
$token = Input::get('csrf');
Code:
if(!Token::check($token)){
Code:
die('Token doesn\'t match!');
Code:
}

Because a new token is generated every time the page is loaded, if the one the system has is not the one the user has, then something is reloading the form mid stream. For testing purposes, you can comment out the die statement but it is a good idea to figure out why your page is reloading....

One other thing, you could possibly be calling
Code:
<?=Token::generate();?>
on the page twice or something weird like that. Is that happening?
  Reply


Messages In This Thread
Private Site - by waynez - 01-19-2017, 11:24 PM
Private Site - by mudmin - 01-20-2017, 04:35 PM
Private Site - by waynez - 01-21-2017, 08:47 PM
Private Site - by mudmin - 02-13-2017, 07:16 PM
Private Site - by gray444 - 02-14-2017, 05:58 PM
Private Site - by dan - 02-14-2017, 06:08 PM
Private Site - by jmac - 05-09-2017, 12:20 PM
Private Site - by mudmin - 05-09-2017, 10:03 PM
Private Site - by jmac - 05-11-2017, 10:23 AM
Private Site - by firestorm - 05-11-2017, 11:51 AM
Private Site - by mudmin - 05-11-2017, 12:10 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)