Page 1 of 1

PHP 8.3 - Can't start PHP session

Posted: Wed Feb 14, 2024 9:10 am
by dominic2024
Script URL:
Version of script: 2.2.0
Hosting company: Hostgator
URL of phpinfo.php: Not sure
URL of session_test.php: Not sure
What terms did you try when SEARCHING for a solution: Can't start PHP session,(also general search of all new topics)

Write your message below:

Hi Guys

I've been using your click counter script for a while and it's great. I think I bought a license years ago but can't find it anymore.

Anyway I've just updated my PHP version from 7.4.11 to PHP 8.3 and when I go to the admin panel I get that message:

"Can't start PHP session!"

So I can't login to the admin panel at all.

Any ideas what might be causing this? it worked perfect in PHP 7.4 and I had no problems.

Thanks for any help

Re: PHP 8.3 - Can't start PHP session

Posted: Wed Feb 14, 2024 10:27 am
by Klemen
This means PHP sessions are not working on your server.

This is not something I can help with unfortunately because it is part of server set up, not Hesk.

Off the top of my head, you could check if session.save_path is set to a valid and writable folder in your php.ini (remember to restart the server after any changes to php.ini).

Re: PHP 8.3 - Can't start PHP session

Posted: Wed Feb 14, 2024 11:25 am
by dominic2024
Hi

Thanks for quick reply.

I don't know much about these things, but checking PHP INI settings this is the path:

session.save_path = "/var/cpanel/php/sessions/ea-php83"

However in the file manager the folder /var/ doesn't even exist, or I can't find it. I also have on "show hidden files"

Re: PHP 8.3 - Can't start PHP session

Posted: Wed Feb 14, 2024 11:53 am
by Klemen
Try changing the folder to "/tmp" then restart the server and see if that help.

Re: PHP 8.3 - Can't start PHP session

Posted: Wed Feb 14, 2024 12:10 pm
by dominic2024
Hi

Yes that worked straight away, can login to the admin panel and everything works fine!

Do I now leave it with that setting now?

/tmp

I have other sites that I've upgraded to HPHP 8.3 and now I'm a little concerned that they might not be working properly, they all have the same setting in the php.ini. Do you think I should change them all?

Sorry for asking all these questions!

Re: PHP 8.3 - Can't start PHP session

Posted: Wed Feb 14, 2024 1:57 pm
by Klemen
/tmp works on most servers.

You can test sessions on your other servers by following 2. here:
https://www.phpjunkyard.com/support/kb/ ... article=24

Re: PHP 8.3 - Can't start PHP session

Posted: Thu Feb 15, 2024 8:34 am
by dominic2024
Hi

Thanks for that. Also thanks for your help and excellent scripts!

Re: PHP 8.3 - Can't start PHP session

Posted: Wed Apr 10, 2024 7:00 pm
by guttastyle
Hi, you guys need to update the PHP for PHP 8. I myself have purchansed linkman and it does not work now that i am using PHP 8

Re: PHP 8.3 - Can't start PHP session

Posted: Thu Apr 11, 2024 4:06 pm
by Klemen
What kind of errors are you getting?