1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

CAUSES OF: Security error occurred. Please press back, refresh the page, and try again.

Discussion in 'Troubleshooting and Problems' started by swatme, Jan 12, 2012.

  1. swatme

    swatme Well-Known Member


    any idea what really causes this error:
    Security error occurred. Please press back, refresh the page, and try again.

    its shown when replying in conversation and replying in threads
  2. Brogan

    Brogan XenForo Moderator Staff Member

    It is usually related to a stale/expired token.

    Is your site switching between the www and non-www version when trying to reply to messages?

    Do you have any add-ons installed?
  3. Mike

    Mike XenForo Developer Staff Member

    If it's always shown, then there's likely an issue with an add-on/templates or a server issue. Otherwise, you shouldn't practically run into it (unless you leave pages open for days).
  4. swatme

    swatme Well-Known Member

    i remove already all the add-ons like taigachat azucloud.
    still same error occurs.

    when you say you leave pages for days, does that mean when you check the "Stay Logged in" on login bar form?
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Not the login option. He means the security token can expire if, for example, you begin replying to a thread but you don't submit the reply for days, during which time the same "reply page" is open.

    If not an addon and not idle time it may be your PHP configuration. I will quote a previous post of mine:


    Mike likes this.
  6. swatme

    swatme Well-Known Member

    thanks jake.

    still got the same error. for testing this is what i did using firefox.

    -lastweek i completely clear my browser cache.
    -then i login and checked stay login
    -i usually recieved more than 5 conversations
    -when im inside the conversations lists, i right click each conversation and open new tab
    -i reply to each pm using his own firefox tab where its open,
    -some conversations reply is working ok
    -but theres this one conversation thats getting that error again "security error occured"
    -no matter what i do click submit, refresh browser, go back the conversation lists, open the conversation again
    and submit the message. still same security error occured

    so i logged out my account, then login again, when i checked the specific conversation,
    the reply i made is already posted. :confused:

    so whats really the problem here?
  7. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Visit this page in your Admin CP:


    Do you see "suhosin" mentioned on that page?
  8. swatme

    swatme Well-Known Member

    i opened the phpinfo and theres no suhosin mentioned in the page.

    im still getting same error, maybe because im getting more than 5 conversations/day
  9. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    I can take a look if you are comfortable giving me FTP and admin access.
  10. kingston

    kingston Well-Known Member

    I ad this issue pop up for a PayPal button. I setup a BBcode for paypal button and the ID is the special paypal code. Is there a better way to do this?
  11. Mike Edge

    Mike Edge Formerly Da Bookie Mon

    Use to get this a lot using facebook canvas as things change between facebook url's and canvas url's. i went into controller.php and commented out the trigger and have never seen the error since.
  12. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Please post the code for your button.

    If the ID in question expires then that is a problem.
  13. kingston

    kingston Well-Known Member

    I ended up just posting a direct hyperlink instead of the button. It seemed smarter not to 'game the system' if it was a possible security thread. Thank you though!
  14. japersonal

    japersonal Member

    I've been just affected by such error message and I wanted to share a fix.

    This error might be caused by a MySQL table that has crashed and repairing such table can solve the problem.
  15. vanucci

    vanucci Active Member

    Dragging up an old post here, but i started getting this error today also.

    Ive only added one addon today and i have disabled it and the error still happens. I have checked this thread and i dont have the suhosin. Any other ideas ? should i completely remove the addon i added today ?
  16. CreationNation

    CreationNation Active Member

    I am also experiencing this error for the first time on a pretty bare bones xenforo install. One of our users got the message: "Security error occurred. Please refresh the page and try again." It occurred while the user was on the account page.
  17. Trev805

    Trev805 Member

    Yeah, I kinda let my forum sit for a year, and now I'm having this same issue :( I never really launched it, so now it's 503 spam users, and myself. I went through and clicked 'reject' on all 503, get this error every time when I click 'Process Users' Any advice?
  18. Mike

    Mike XenForo Developer Staff Member

    In this case, you're running into PHP's max_input_vars setting. Increasing it can be a little tricky, so the easiest thing to do is to manually delete (via the user edit page) 5-10 of those users. Alternatively, if you're deleting all of them, you can use the batch update users tool to identify them by their user state and delete them.
  19. Trev805

    Trev805 Member

    This worked like a charm, thank you! Still have 24 pages of spam users that somehow made it through the approval, but I can't find the batch updates user tool to mass delete them.
  20. Brogan

    Brogan XenForo Moderator Staff Member

    I presume you are running at least XF 1.2.
    If so, use the ACP search to locate it.

Share This Page