PHP 8.3 - Can't start PHP session

Post your Click counter digestion problems here
Post Reply
dominic2024
Posts: 4
Joined: Wed Feb 14, 2024 8:56 am

PHP 8.3 - Can't start PHP session

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

Re: PHP 8.3 - Can't start PHP session

Post 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).
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
dominic2024
Posts: 4
Joined: Wed Feb 14, 2024 8:56 am

Re: PHP 8.3 - Can't start PHP session

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

Re: PHP 8.3 - Can't start PHP session

Post by Klemen »

Try changing the folder to "/tmp" then restart the server and see if that help.
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
dominic2024
Posts: 4
Joined: Wed Feb 14, 2024 8:56 am

Re: PHP 8.3 - Can't start PHP session

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

Re: PHP 8.3 - Can't start PHP session

Post 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
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
dominic2024
Posts: 4
Joined: Wed Feb 14, 2024 8:56 am

Re: PHP 8.3 - Can't start PHP session

Post by dominic2024 »

Hi

Thanks for that. Also thanks for your help and excellent scripts!
guttastyle
Posts: 1
Joined: Wed Apr 10, 2024 6:58 pm

Re: PHP 8.3 - Can't start PHP session

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

Re: PHP 8.3 - Can't start PHP session

Post by Klemen »

What kind of errors are you getting?
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