Page 1 of 1

Invalid Request

Posted: Wed Mar 13, 2013 8:36 pm
by IsMyWebsite
Hello,

I'm getting invalid request when trying to change a ticket status, department, etc. I'm using the latest version of HESK.

Error:

Invalid request.

Thank you.

Re: Invalid Request

Posted: Wed Mar 13, 2013 9:08 pm
by Klemen
Have you modified any of the source code?

Do you have session_autostart enabled or any PHP caching?

Re: Invalid Request

Posted: Sat Mar 16, 2013 8:37 am
by IsMyWebsite
Klemen wrote:Have you modified any of the source code?

Do you have session_autostart enabled or any PHP caching?
Hello,

No for both of those.

Regards,
IsMyWebsite Admin

Re: Invalid Request

Posted: Sat Mar 16, 2013 8:48 am
by Klemen
In that case you will need to provide some further information about your setup that might give us some clues:

Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:

You will find the phpinfo and session_test files here:
viewtopic.php?f=13&t=138

Re: Invalid Request

Posted: Sat Mar 16, 2013 9:12 am
by IsMyWebsite
Klemen wrote:In that case you will need to provide some further information about your setup that might give us some clues:

Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:

You will find the phpinfo and session_test files here:
viewtopic.php?f=13&t=138
Script URL: https://portal.ismywebsite.com/helpdesk
Version: 2.4.2
Hosting company: It's a dedicated server that I manage hosted with a company in the UK
URL of phpinfo.php: http://ismywebsite.com/test/phpinfo.php
URL of session_test.php: http://ismywebsite.com/test/session_test.php

Thanks

Re: Invalid Request

Posted: Sat Mar 16, 2013 3:53 pm
by Klemen
After testing your help desk it appears that PHP sessions aren't working on the server.

Could you upload file "session_test2.php" to the server so we can confirm that (should be in the same archive as "session_test.php")?

Re: Invalid Request

Posted: Sun Mar 17, 2013 7:59 am
by IsMyWebsite
Klemen wrote:After testing your help desk it appears that PHP sessions aren't working on the server.

Could you upload file "session_test2.php" to the server so we can confirm that (should be in the same archive as "session_test.php")?
Done,

http://ismywebsite.com/test/session_test2.php

Re: Invalid Request

Posted: Sun Mar 17, 2013 2:26 pm
by Klemen
OK, sessions ARE working. This means something is preventing HESK from setting them correctly.

Are you 100% sure you didn't modify any files? Perhaps you just opened and saved some without making changes?

Try this:
1. backup existing files
2. download file hesk_settings.inc.php from the server
3. change

Code: Select all

$hesk_settings['debug_mode']=0;
to

Code: Select all

$hesk_settings['debug_mode']=1;
4. save and upload to the server
5. test HESK and see if you get any new error messages when trying to perform actions

Re: Invalid Request

Posted: Sun Mar 17, 2013 6:36 pm
by IsMyWebsite
Still the same, invalid request. Nothing else.

Re: Invalid Request

Posted: Tue Mar 19, 2013 8:25 am
by Klemen
Something is definitely breaking sessions, but not sure what.

I would recommend doing this:
1. download HESK again
2. upload *all* original files to the server again, *except* for hesk_settings.inc.php
3. close all browser windows, test and see if that helps