Dear Team,
The system information as follow:
64bit Linux Mint 18.1 Serena
Xampp ver 7.2.1
PHP 7.2.1
osTicket version 1.10.2
ServerDB 10.1.30-MariaDB
after updating the system from 1.10.1 to authentication it tells me
Valid CSRF Token Required
Well for starters osTicket does not support PHP 7.1+ at this time.
This also appears to be a duplicate of https://github.com/osTicket/osTicket/issues/3546 and https://github.com/osTicket/osTicket/issues/3256
@ParmaU
Just see fix #3546
All you have to do is edit the file class.ostsession.php and insert this line at 193 row
$this->data->session_data = "";
After the edition
191 catch (DoesNotExist $e) {
192 $this->data = new SessionData(['session_id' => $id]);
193 $this->data->session_data = "";
That worked for me
thank you, done and it works
Thanks @jorgemvc, your help solved the problem. The support is appreciated.
I did this on a mac (macOS High Sierra 10.13.6) with PHP 7.1.21.
Thank you,
Greetings.
Thank you very much!!! @jorgemvc, your help me solve the problem. The support is very appreciated.
I did this on a Windows 10 IIS with PHP 7.2.7
Thank you, and have a great new year!!!
Greetings.
Thanks! Worked for me too. I appreciate it!
I'm running my instance of OSticket on a web hotell, they run PHP Version 7.2.14, the fix @jorgemvc proposed worked like a charm for my OSticket install on PHP 7.2.14.
@jorgemvc , Thanks for your advice. It works for mine, too.
osTicket (v1.10.5)
Perfect one liner! I wonder why this is still an issue in Q2/2019 with the latest 1.10.5?
@dfstab
Because we addressed this in v1.11.x
, not v1.10.x
.
Cheers.
this fix still working great on php 7.2.19 with latest osticket. thanks for that!
I'm seeing this in an ubuntu container with php7.2.19.
There is a fix for that on the forum. You have to do a workaround. Its not
too difficult as I just did it a few days ago.
On Thu, Jul 11, 2019, 11:17 AM Aneurin Price notifications@github.com
wrote:
I'm seeing this in an ubuntu container with php7.2.19.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/osTicket/osTicket/issues/4262?email_source=notifications&email_token=ACRP6TPU5TIVZVPDQ2UXRRLP65FKJA5CNFSM4E56RSWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZXBDZY#issuecomment-510530023,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACRP6TMZMPUWIO3ZHCQJYC3P65FKJANCNFSM4E56RSWA
.
@jswails Is this the fix you refer to?
All you have to do is edit the file class.ostsession.php and insert this line at 193 row
$this->data->session_data = "";
If so, I have tried this and no joy. You can see for yourself: https://gitlab.nyeprice.space/moby/osticket-docker
Yes thats the one that worked for me on ubuntu server 18.04 and php 7.2.
Thats unfortunate that didnt work for you. Hmm.
On Thu, Jul 11, 2019, 11:27 AM Aneurin Price notifications@github.com
wrote:
@jswails https://github.com/jswails Is this the fix you refer to?
All you have to do is edit the file class.ostsession.php and insert this
line at 193 row
$this->data->session_data = "";If so, I have tried this and no joy. You can see for yourself:
https://gitlab.nyeprice.space/moby/osticket-docker—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/osTicket/osTicket/issues/4262?email_source=notifications&email_token=ACRP6TK3QCUVRUAFASP5LPDP65GOLA5CNFSM4E56RSWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZXCC2A#issuecomment-510533992,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACRP6TJ5GVHD6FT4SGC2TYDP65GOLANCNFSM4E56RSWA
.
Thank you, that trick adding the 193 line worked for me.
Most helpful comment
@ParmaU
Just see fix #3546
All you have to do is edit the file class.ostsession.php and insert this line at 193 row
$this->data->session_data = "";
After the edition
191 catch (DoesNotExist $e) {
192 $this->data = new SessionData(['session_id' => $id]);
193 $this->data->session_data = "";
That worked for me