Page 1 of 1

PHP version 8

Posted: Thu Jan 26, 2023 3:18 pm
by ces
Script URL: https://cescensus.org.uk/helpdesk
Version of script: 3.4
Hosting company: UK2
URL of phpinfo.php: n/k
URL of session_test.php: n/k
What terms did you try when SEARCHING for a solution: PHP version 8

Write your message below:
Will there be a version of HESK that is compatible with PHP version 8.1? UK2 enforced an upgrade last night and our helpdesk no longer works.

Re: PHP version 8

Posted: Thu Jan 26, 2023 3:24 pm
by Klemen
Hesk 3.4.2 works on PHP 8.1. In fact, it's the version of PHP we use in development.

Something else must be going on. Perhaps something with your hesk_settings.inc.php file?

I see this page works for example (it doesn't use the hesk_settings.inc.php file):
https://cescensus.org.uk/helpdesk/language/en/text.php

But this one doesn't (it uses the hesk_settings.inc.php file):
https://cescensus.org.uk/helpdesk/ip_wh ... =127.0.0.1

Check if you have anything in your server error logs, or if there is an error_log file in your Hesk folder.

Re: PHP version 8

Posted: Thu Jan 26, 2023 5:55 pm
by ces
You were right, it seems to be the ini file. Thanks a lot, I was starting to despair.

I'll give you a bit more detail. I was using version 2.6.5 (yes I should have updated it). When it failed this morning I uploaded the 3.4.2 files into a new folder and amended the ini file. I added a few lines from the old one which seems to be what broke it. I really need to use the old database so I don't lose the existing tickets.

It now loads but I can't add any tickets, it just reloads the new ticket page. Any suggestions would be appreciated.

Thanks.

Re: PHP version 8

Posted: Thu Jan 26, 2023 7:04 pm
by Klemen
2.6.5 and 3.4.2 database and settings are not fully compatible.

The only correct way to make it work is to:
1. make a backup of your 2.6.5 database and files
2. upgrade the 2.6.5 version to 3.4.2 by precisely following the upgrade instructions in the docs. A copy of the instructions is here:
https://www.hesk.com/demo/docs/step-by- ... ml#upgrade

Following the official procedure should keep your settings and existing tickets.

Re: PHP version 8

Posted: Fri Jan 27, 2023 7:22 am
by ces
I think I've sorted it now. The Captcha check doesn't work on our server. I've removed it and the tickets get created. I can work on the anti-spam but in the mean time I have a helpdesk that works and it's got all the existing tickets.

Thanks for your help. I couldn't have done an upgrade in the usual way because the helpdesk had crashed.