Page 1 of 3 123 LastLast
Results 1 to 10 of 26

Thread: CSRF error on submission

  1. #1
    Senior Member skorpyo's Avatar
    Join Date
    Apr 2010
    Location
    Romania
    Posts
    119
    Thanks
    75
    Thanked 20 Times in 12 Posts

    Default CSRF error on submission

    I've just moved my website on to a new server and everything seems fine except when I try to submit a new item. I get "CSRF error. Please try again" on step 2 of submission. I also use the light submission plugin, but even if I disable it still the same error. Please some one help me...I've tried everything.
    Most of you know my website.

  2. #2
    Senior Member
    Join Date
    Jun 2011
    Location
    Thailand
    Posts
    294
    Thanks
    0
    Thanked 69 Times in 63 Posts

    Default

    Is the hosting company Godaddy?

  3. #3
    Senior Member skorpyo's Avatar
    Join Date
    Apr 2010
    Location
    Romania
    Posts
    119
    Thanks
    75
    Thanked 20 Times in 12 Posts

    Default

    No...it isn't.

  4. #4
    Senior Member
    Join Date
    Jun 2011
    Location
    Thailand
    Posts
    294
    Thanks
    0
    Thanked 69 Times in 63 Posts

    Default

    Then you need to make tests watching hotaru_tokens table. As you load a page, a token_timestamp is inserted there. Using the below website convert the timestamp to date/time and check if the dates are normal:

    http://www.onlineconversion.com/unix_time.htm

    This is probably a server time setting issue and you may *temporarily* bypass it by changing "life" variable of function csrfInit to a huge number (default 60 minutes) in the file: libs/extensions/csrf/csrf_class.php

  5. #5
    Senior Member skorpyo's Avatar
    Join Date
    Apr 2010
    Location
    Romania
    Posts
    119
    Thanks
    75
    Thanked 20 Times in 12 Posts

    Default

    the timestamp is: Tue, 13 Sep 2011 12:10:18 GMT. What should it be to work? And I also did the change on "life" variable and made it to 120 and still not working...

  6. #6
    Senior Member
    Join Date
    Jun 2011
    Location
    Thailand
    Posts
    294
    Thanks
    0
    Thanked 69 Times in 63 Posts

    Default

    Time stamp is normal. Are the other columns full too, token_sid, etc?

  7. #7
    Senior Member skorpyo's Avatar
    Join Date
    Apr 2010
    Location
    Romania
    Posts
    119
    Thanks
    75
    Thanked 20 Times in 12 Posts

    Default

    yes they are...

  8. #8
    Senior Member
    Join Date
    Jun 2011
    Location
    Thailand
    Posts
    294
    Thanks
    0
    Thanked 69 Times in 63 Posts

    Default

    Do you see any records in error_log file?

    If you don't have, you may try to increase "life" to a huge number, say 1000000, but this is not a solution, just a workaround for now.

  9. #9
    Senior Member skorpyo's Avatar
    Join Date
    Apr 2010
    Location
    Romania
    Posts
    119
    Thanks
    75
    Thanked 20 Times in 12 Posts

    Default

    yes...all of them just some "undefined index"...and I don't want to get past it like that...I want to fix it for good...if possible

  10. #10
    Senior Member
    Join Date
    Jun 2011
    Location
    Thailand
    Posts
    294
    Thanks
    0
    Thanked 69 Times in 63 Posts

    Default

    Undefined index... and what does it say more?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Error CSRF on Step 3 of the install
    By chaosintestinal in forum Installation and Upgrading
    Replies: 3
    Last Post: 04-21-2011, 10:35 AM
  2. Login failed, CSRF error. Please try again.
    By asteriskperl in forum How-To and Troubleshooting
    Replies: 4
    Last Post: 10-01-2010, 03:14 PM
  3. CSRF error and Success Message
    By jganesh in forum How-To and Troubleshooting
    Replies: 2
    Last Post: 08-11-2010, 04:10 PM
  4. A question on CSRF error and how do I disable CSRF error in submit?
    By nothingman in forum How-To and Troubleshooting
    Replies: 5
    Last Post: 07-23-2010, 04:20 PM
  5. Fatal error: Cannot redeclare class csrf
    By angolanmade in forum Installation and Upgrading
    Replies: 1
    Last Post: 04-04-2010, 05:17 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •