Invalid Request

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
IsMyWebsite
Posts: 6
Joined: Thu Feb 28, 2013 5:47 pm

Invalid Request

Post 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.
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Invalid Request

Post by Klemen »

Have you modified any of the source code?

Do you have session_autostart enabled or any PHP caching?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
IsMyWebsite
Posts: 6
Joined: Thu Feb 28, 2013 5:47 pm

Re: Invalid Request

Post 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
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Invalid Request

Post 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
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
IsMyWebsite
Posts: 6
Joined: Thu Feb 28, 2013 5:47 pm

Re: Invalid Request

Post 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
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Invalid Request

Post 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")?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
IsMyWebsite
Posts: 6
Joined: Thu Feb 28, 2013 5:47 pm

Re: Invalid Request

Post 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
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Invalid Request

Post 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
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
IsMyWebsite
Posts: 6
Joined: Thu Feb 28, 2013 5:47 pm

Re: Invalid Request

Post by IsMyWebsite »

Still the same, invalid request. Nothing else.
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Invalid Request

Post 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
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply