Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-26-2010, 01:38 AM
sulasno sulasno is offline
 
Join Date: Feb 2010
Posts: 588
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default what is security token ?

received a message from one of my users;

"recieved an error message indicating a security token is missing when I tried to edit a blog."

what is a security token ?
Reply With Quote
  #2  
Old 08-26-2010, 02:45 AM
mmoore5553 mmoore5553 is offline
 
Join Date: Aug 2008
Posts: 530
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just means the basically it is not passing the security token for that session. If you just do a search for security token you will find the solution.
Reply With Quote
  #3  
Old 08-26-2010, 03:36 AM
sulasno sulasno is offline
 
Join Date: Feb 2010
Posts: 588
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks

I did a search on "security token" before posting

after your response, I did another search and found some solutions hidden :-)

guess one of my styles is the culprit
Reply With Quote
  #4  
Old 08-26-2010, 09:38 AM
betts02's Avatar
betts02 betts02 is offline
 
Join Date: Jun 2009
Posts: 910
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe share the info with others ?

A link to where you founf the solution ?
Reply With Quote
  #5  
Old 08-27-2010, 01:33 AM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ya, I can't edit my CMS home page now because a token is missing. I can edit other pages, and my co-admin can edit it. Ridiculous.
Reply With Quote
  #6  
Old 08-27-2010, 01:51 AM
mmoore5553 mmoore5553 is offline
 
Join Date: Aug 2008
Posts: 530
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hahha

the fix usually is finding the line and what you clicked on in the address bar tells you where

just adding this piece to the code usually fixes it.. this is not all the code but it is the code that is missing

&markreadhash={vb:raw bbuserinfo.securitytoken}

the usual line is this

<input type="hidden" name="s" value="$session[sessionhash]" />

so usually finished like this

<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />

might be different in vb 4 but usually along these lines ..you can always look in default template . Someone please correct me if wrong in vb 4. .not near my pc
Reply With Quote
  #7  
Old 08-27-2010, 01:58 AM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

We cannot edit the vb4 code to fix this. That 'fix' is worse than the problem.
Reply With Quote
  #8  
Old 08-27-2010, 02:03 AM
mmoore5553 mmoore5553 is offline
 
Join Date: Aug 2008
Posts: 530
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How so ? I have fixed alot of security token errors with skins and just vb 4 in general adding the correct lines. But you have to go into the templates and add the code.
Reply With Quote
  #9  
Old 08-27-2010, 02:10 AM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you're trying to say vb has coded the templates improperly, then you should open a ticket. Give us the url so we can all vote it up. Or at the very least give us a specific fix when you're near your pc.
Reply With Quote
  #10  
Old 08-27-2010, 02:54 AM
mmoore5553 mmoore5553 is offline
 
Join Date: Aug 2008
Posts: 530
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay this is specific fix for recent vb 4 forum where mark read was giving that error. user was clicking mark read forum and it gave error. First thing i did was look at address bar to see what is said ..that usually gives good indicator. Then i went and look in the appropriate template

this was for mark read in the forumhome template.


original code:
<a href="forumdisplay.php?{vb:raw session.sessionurl}do=markread" rel="nofollow">{vb:rawphrase mark_forums_read}</a>

fixed ..notice in red
<a href="forumdisplay.php?{vb:raw session.sessionurl}do=markread&amp;markreadhash={vb:raw bbuserinfo.securitytoken}" rel="nofollow">{vb:rawphrase mark_forums_read}</a>

Usually you can revert templates to default and that works fine but then if you are using a custom skin the coded is all wrong . So if not on default skin it is always easy to just add the appropriate code. Also always log out and back in to test. Sometimes you have to clear internet cache also but not always.

this is just one example but they other security tokens are solved the same way .
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:32 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05339 seconds
  • Memory Usage 2,247KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete