Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 09-13-2008, 07:32 PM
NOCR's Avatar
NOCR NOCR is offline
 
Join Date: Aug 2008
Location: New Orleans
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default "Your submission could not be processed because a security token was missing."

I first got this error when I tried to change my timezone.
Now it says it every time when I go /usercp.php (it redirects me to profile.php?do=dst and says:
Quote:
"Your submission could not be processed because a security token was missing.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error."
!

It took an extremely long time to configure the settings and style template. (I know, you've heard it before and don't care) but I would really appreciate a logical answer rather than "reinstall and re upload all files". I'd rather just replace the one causing the problem.

That said, what is the corrupt file that would cause usercp.php to redirect to profile.php?do=dst?



vB 3.7.3
some mods (All disabled)
style: Transparancity (modified)
Reply With Quote
  #2  
Old 09-13-2008, 10:03 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Create a New Style with No Parent Style. Browse the affected pages using this style, does your issue persist?
Reply With Quote
  #3  
Old 09-14-2008, 02:36 AM
Angel-Wings's Avatar
Angel-Wings Angel-Wings is offline
 
Join Date: Sep 2007
Posts: 206
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's a style based error and it can be fixed within some minutes

Open in your AdminCP the "Styles & Templates" and search for "profile.php" in the Default Template - looks like:

Quote:
<!-- auto DST correction code -->
<form action="profile.php?do=dst" method="post" name="dstform">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="do" value="dst" />
</form>
Then copy & paste this and replace it in the same Template in the Style causing the problem.

The "footer" templates usually cause this problem so it should be there. And - usually - the important line.

Quote:
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
is missing so the redirection creates an error message.
Reply With Quote
  #4  
Old 03-10-2009, 02:50 AM
angelpie angelpie is offline
 
Join Date: May 2007
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what if your default is the one doing it?
Reply With Quote
  #5  
Old 04-15-2009, 09:08 AM
dodyryda1 dodyryda1 is offline
 
Join Date: Apr 2009
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cheers. solved my sketch out!
Reply With Quote
  #6  
Old 04-24-2009, 01:50 AM
mmurtha's Avatar
mmurtha mmurtha is offline
 
Join Date: Oct 2008
Location: New Springfield, Ohio
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, I searched for the profile.php file, and nothing came up in the styles and templates search.

Can someone please give me the correct path to this file so I can edit it using an FTP client?

I do have that code in the footer of both the default and other theme though, but am still having the security token issue.

I've reuploaded all files a few times and it still does not fix it.

This is an issue in the VB software, so why doesn't anyone seem to have a fix for it? Or why hasn't this been fixed in the latest version?

I also noticed that most of the complaints come from FireFox users.

Thanks, and I'd appreciate it if someone can help.
Reply With Quote
  #7  
Old 04-24-2009, 01:55 AM
Biker_GA Biker_GA is offline
 
Join Date: Oct 2004
Location: Where my hat is
Posts: 829
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This isn't an issue with vBulletin. Usually, it's an issue with the custom style you've installed. Have you installed a custom style?
Reply With Quote
  #8  
Old 04-24-2009, 02:18 AM
mmurtha's Avatar
mmurtha mmurtha is offline
 
Join Date: Oct 2008
Location: New Springfield, Ohio
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, I have a custom styles installed, but it was updated for VB 3.7.1.

I checked the footer file of it, and it has the code above.

I also have all MOds turned off too for a few days now so I could track the problem to see if it is still happening.

Btw, do you know the path for the profile.php? I looked in every location I could thing of, and could not find it. The closest file I found that related to the profil file is the editprofile file, and that isn't it.

Thanks for responding too.
Reply With Quote
  #9  
Old 04-24-2009, 02:25 AM
Biker_GA Biker_GA is offline
 
Join Date: Oct 2004
Location: Where my hat is
Posts: 829
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

profile.php is in the root installation directory of your vBulletin installation.
Reply With Quote
  #10  
Old 05-04-2009, 11:46 AM
Dan Clement Dan Clement is offline
 
Join Date: May 2009
Location: Milton Keynes, UK
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi folks,

I was having the same error but I seem to have been able to resolve it. I'll run you through what I did in the hopes it'll sort you out too.

In the Admin CP, drop down Styles & Templates, then go to Style Manager. Find the skin you're having trouble with and go to Edit Templates. Find your 'footer' template and find the following snippet of code:

Code:
<!-- auto DST correction code -->
<form action="profile.php?do=dst" method="post" name="dstform">
<input type="hidden" name="s" value="$session[sessionhash]" />
</form>
From what I can make out, the error arises because the lines that calls upon the user's security token are omitted leading vB to think that the user doesn't have one. You need to add in a couple of lines to make vB call the security token. To do this, replace the code above with this:

Code:
<!-- auto DST correction code -->
<form action="profile.php?do=dst" method="post" name="dstform">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="do" value="dst" />
</form>
Save your changes and try accessing your User CP again. Should have fixed you right up. If not, give me a shout.

Just to re-iterate, you should not have to edit profile.php at all to fix this error and in trying to do so you're probably more likely to break something!
Reply With Quote
Reply

Thread Tools
Display Modes

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: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.04331 seconds
  • Memory Usage 2,249KB
  • Queries Executed 13 (?)
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
  • (2)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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_postinfo_query
  • fetch_postinfo
  • 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