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 04-13-2014, 08:15 PM
K!nG K!nG is offline
 
Join Date: Dec 2010
Location: United States
Posts: 477
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Can't Edit - Security Token Invalid

Hello all,

Everything was working fine and only change i did today was changed my domain name. (old abc.com to new xyz.com) and after then when i try to edit any post in the forum i get this error message pop up.

Please see a screenshot of error message.



Any help will be appreciated.

Thanks.

--------------- Added [DATE]1397440535[/DATE] at [TIME]1397440535[/TIME] ---------------

Just some additional info. I was able to edit one of the post and once i click save i got this warning message on the top. Can someone help me with this ?



Thanks in advance.
Reply With Quote
  #2  
Old 04-14-2014, 02:55 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What version of PHP and what version of vBulletin? Did you change servers or update software at all?
Reply With Quote
  #3  
Old 04-14-2014, 03:03 AM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

editpost.php on line 323... Go there and remove the ampersand. Edit the file with notepad++, TextEdit or other actual editor - do not use just plain notepad.
Reply With Quote
  #4  
Old 04-14-2014, 03:21 AM
K!nG K!nG is offline
 
Join Date: Dec 2010
Location: United States
Posts: 477
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
What version of PHP and what version of vBulletin? Did you change servers or update software at all?
Hi Lynne,

PHP version is 5.3.26
VB version is 4.2.2 Patch level 1.

Nope. I didn't change server nor any software update. Only change that was done was change the domain name.

--------------- Added [DATE]1397449497[/DATE] at [TIME]1397449497[/TIME] ---------------

Quote:
Originally Posted by Max Taxable View Post
editpost.php on line 323... Go there and remove the ampersand. Edit the file with notepad++, TextEdit or other actual editor - do not use just plain notepad.
In line 323 of editpost.php i have this;

$edit['emailupdate'] = array_pop($array = array_keys(fetch_emailchecked($threadinfo)));

If i am not wrong i don't see ampersand (&) in here. Any suggestion ??
Reply With Quote
  #5  
Old 04-14-2014, 03:31 PM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by K!nG View Post
In line 323 of editpost.php i have this;

$edit['emailupdate'] = array_pop($array = array_keys(fetch_emailchecked($threadinfo)));

If i am not wrong i don't see ampersand (&) in here. Any suggestion ??
No ampersand, no edit needed.
Reply With Quote
  #6  
Old 04-14-2014, 04:16 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you installed any of the fixes yet. There are many posts about them here
Reply With Quote
  #7  
Old 04-14-2014, 07:42 PM
K!nG K!nG is offline
 
Join Date: Dec 2010
Location: United States
Posts: 477
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have been trying to find a fix for this since from last night and i didn't find anything related to the issues i have. Can you share the links which you think can help me fixing this issue please ?

thanks.
Reply With Quote
  #8  
Old 04-14-2014, 07:49 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

https://vborg.vbsupport.ru/showpost....4&postcount=11
https://vborg.vbsupport.ru/showpost....33&postcount=2
Reply With Quote
  #9  
Old 04-15-2014, 12:36 AM
K!nG K!nG is offline
 
Join Date: Dec 2010
Location: United States
Posts: 477
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default


Hi. U gave me 2 fix via link so when i did 1st fix which was suggested by you. It didn't resolve the issue and i still got token invalid error.

when i tried 2nd fix which was given by Richie in class_core.php it didn't work at all and when i came back on forum messed up my forum and only get this error.



Thanks.
Reply With Quote
  #10  
Old 04-15-2014, 12:59 AM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And what edit program did you use to edit the file with. If you want to send me the files I can do them for you.
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 08:42 AM.


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.04231 seconds
  • Memory Usage 2,256KB
  • 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
  • (4)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_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