Results 1 to 8 of 8
  1. #1
    New Pligger swiper's Avatar
    Joined
    Oct 2007
    Posts
    28
    Thanks
    Received:0
    Given: 0

    Invalid token when I try to edit a user. Any idea?

    I just noticed that when I try to edit a users info I get the Invalid token (hack attempt) error. I think this just started after I enabled the revenue sharing module, because I've edited users before. Anyone have any idea on what causes this and how to fix it?

    I dug around in admin_users.php and tested a few things and - at least in my case - the problem is that $_GET['token'] has no value.

    The line in admin_users around line 189 says:

    if ($_GET['token'] == $_SESSION['token_admin_users_edit']) { ... }

    The $_SESSION value is set, but the $_GET['token'] has no value, and when you view the source of the form when you try to edit a user there is no form value called token.

  2. #2
    Mayor of PliggVille/Coder AshDigg's Avatar
    Joined
    Dec 2005
    Posts
    1,515
    Thanks
    Received:0
    Given: 0
    Have you tried to disable the revenue sharing module just to test to see if it is the problem?

  3. #3
    New Pligger swiper's Avatar
    Joined
    Oct 2007
    Posts
    28
    Thanks
    Received:0
    Given: 0
    Actually I just figured it out. Turns out that the template I ended up switching to was just missing the hidden form variable for the token. I just added it and now it seems to work fine. thanks for the reply!

  4. #4
    New Pligger seer's Avatar
    Joined
    Nov 2007
    Posts
    29
    Thanks
    Received:0
    Given: 0
    Quote Originally Posted by swiper View Post
    Actually I just figured it out. Turns out that the template I ended up switching to was just missing the hidden form variable for the token. I just added it and now it seems to work fine. thanks for the reply!
    Hey Swiper, could you be more precise with this? Seems like the exact issue I have. I cannot do any user admin at the moment because of the same issue (with the emerald template). If I switch back to yget its fine.

    What do I insert and where... much appreciated!!

  5. #5
    Banned bbrian017's Avatar
    Joined
    Oct 2007
    Posts
    784
    Thanks
    Received:0
    Given: 0
    I think this is now fixed in 9.8.2

  6. #6
    New Pligger seer's Avatar
    Joined
    Nov 2007
    Posts
    29
    Thanks
    Received:0
    Given: 0
    Quote Originally Posted by bbrian017 View Post
    I think this is now fixed in 9.8.2
    But I am using 9.8.2

  7. #7
    New Pligger loudsole's Avatar
    Joined
    Jan 2008
    Posts
    2
    Thanks
    Received:0
    Given: 0

    Thanks for the fix

    It worked for me. The template I was using didn't have

    Code:
    <input type=hidden name=token value="{$token_admin_users_edit}">
    It's located in /template/yourtemplate/admin_templates/edit_user_center.tpl

    Just add it after

    Code:
    <input type=hidden name=user value="{$userdata[nr].user_login}">
    Hopefully this helps a few people.

  8. #8
    Donor argh2xxx's Avatar
    Joined
    Jan 2007
    Posts
    376
    Thanks
    Received:0
    Given: 0
    I have invalid token error, will this solution work for pligg pro newhorizon template? I notice pligg pro newhorizon template don't have edit_user_center.tpl but have edit_center.tpl instead, plus the <input type=hidden name=user looks a lot different.

Similar Threads

  1. Invalid Token Error Changing On Avatar
    By gaurangitech in forum Questions & Comments
    Replies: 1
    Last Post: 07-15-2010, 08:45 AM
  2. Invalid token (hack attempt) or timeout
    By shuvo007 in forum Questions & Comments
    Replies: 4
    Last Post: 04-22-2010, 03:05 AM
  3. Invalid token (hack attempt) while create Group
    By gaurangitech in forum Questions & Comments
    Replies: 1
    Last Post: 12-21-2009, 08:30 AM
  4. Invalid token (hack attempt) or timeout. after upgrade
    By magpie2419 in forum Questions & Comments
    Replies: 0
    Last Post: 03-10-2008, 08:38 AM
  5. Invalid token (hack attempt)
    By bbrian017 in forum Questions & Comments
    Replies: 6
    Last Post: 12-22-2007, 04:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg