vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Your submission could not be processed because a security token was missing. (https://vborg.vbsupport.ru/showthread.php?t=231024)

orange peel 12-24-2009 01:46 AM

Your submission could not be processed because a security token was missing.
 
Got that error when I try to use the search function on my forums: forum.theclubpenguincheats.com
I Manually editted a ton of the template code so I dont want to "revert it to default' or anything like that.
Help what do I do?

Lynne 12-24-2009 02:30 AM

Since you don't want to revert templates, here is a thread about how to add the correct code to your forms - Implementing CSRF Protection in modifications

orange peel 12-24-2009 03:06 PM

Hi that thread is too confusing as the person is not being beginner friendly and just saying "thould be added to the top of the file under the define for THIS_SCRIPT." and all this other stuff.
Where is THIS_SCRIPT!?

Lynne 12-24-2009 04:44 PM

THIS_SCRIPT is defined at the top of any vbulletin page that renders text. It's one of the first lines in the page - look at index.php or forumdisplay.php or showthread.php etc.

orange peel 12-24-2009 08:43 PM

OK but what files do I add that code to and where? And do I have to do the stuff with Template Changes if it's only the search button thats broken when I hit search?
Do I do the stuff for Exempting Certain Actions? And do I do the stuff Dismounted said "add the security token to AJAX requests using POST"?

Now do you see why Im confused? It's pretty much an overload to just link to something like that and assume a noob like me knows what to do.

Lynne 12-24-2009 10:42 PM

You add the code to the forms being used when you are getting the error. In your case, if it's the search form, make sure it is in the search form. As for the ajax requests, if your search form uses ajax, then yeah, you may have to add it there.

Seriously, the easiest way to find/solve this problem is through reverting templates or comparing them to the default one.


All times are GMT. The time now is 03:50 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01070 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete