Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2014-04-06 01:22:53

David
Member
Registered: 2014-01-24
Posts: 85

Invalid CSRF Token

When i have a chat open (user side)  and we are done chatting..  Their side is still open, but on admin i click X to close the chat  i get a white page that says

Invalid CSRF Token
here is the url for that page
http://mysite.com/livehelp/index.php/site_admin/chat/closechat/7

When i close the user chat first, and then close the admin chat, i get no notice and it seems fine.  Seems the only issue is when the admin closes the chat and the user side chat is still open.



https://groups.google.com/forum/#!topic … CKz9BoqC60

Offline

#2 2014-04-06 06:38:02

Remigijus Kiminas
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Invalid CSRF Token

Hi,

Sorry but I can't reproduce it, so cannot fix.

2014-04-06 2:22 GMT+03:00 David <csduran...***.com>:

Offline

#3 2014-04-06 07:28:36

Remigijus Kiminas
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Invalid CSRF Token

1. Is it possible that you have overridden template and forgot to take care of this security part? This happens only then request does not contain csfr token?
2. From what window you are executing this delete click?


Without exact steps to reproduce I cannot fix it.

2014-04-06 7:38 GMT+03:00 Remigijus Kiminas <rem...***.com>:

Offline

#4 2014-04-06 19:09:12

David
Member
Registered: 2014-01-24
Posts: 85

Re: Invalid CSRF Token

yes i got it, good thinking... it was the tpl - lhchat - startchat.tpl.php file that i had not updated in my customtheme folder...
Thanks so much...  smile

Offline

#5 2014-12-05 13:55:02

giovanisis
Member
Registered: 2014-12-05
Posts: 3

Re: Invalid CSRF Token

Hello!

You found a solution to the problem? I just do the installation, and the admin side, every post form returns "Invalid CSRF token".

else, the admin login form, performing only the login when brand "Remember Me".

Regards

Last edited by giovanisis (2014-12-05 14:00:51)

Offline

#6 2014-12-05 15:34:44

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Invalid CSRF Token

Hi,

Something not right your server configuration. https://livehelperchat.com/during-some- … -215a.html
Please check your server for php errors/warnings.

Offline

#7 2014-12-05 16:07:00

giovanisis
Member
Registered: 2014-12-05
Posts: 3

Re: Invalid CSRF Token

I try it, but the error persist.

The client can send messages to admin, but messages admin to client only return this "{"error":"true","result":"Invalid CSRF Token"}".

Last edited by giovanisis (2014-12-05 16:07:35)

Offline

#8 2014-12-05 16:24:49

giovanisis
Member
Registered: 2014-12-05
Posts: 3

Re: Invalid CSRF Token

Ok, now i found the problem.

My host was not allowed to write session files.

Thanks!!

Offline

Board footer