Raised This Month: $12 Target: $400
 3% 

admin page not working - PHP8


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CrazyKermitRubes
Junior Member
Join Date: Sep 2020
Old 02-18-2023 , 08:55   admin page not working - PHP8
Reply With Quote #1

I am running hlstatsx CE 1.7.0 with PHP 8 and MYSQL 8.
I attempted to fix a couple PHP errors found in issues on the github repo, but then I got a blank page instead of admin login page. I cannot find any errors or anything in any logs, so I'm not sure what to look at.

My guess is something is going on with the PHP, but if logging is turned on, I'm not sure what to check.

I added this to see errors:
ini_set('display_errors', 'On');
ini_set('html_errors', 0);
error_reporting(-1);
Attached Thumbnails
Click image for larger version

Name:	hlstastsx-adminlogin.PNG
Views:	126
Size:	11.1 KB
ID:	199650  
CrazyKermitRubes is offline
CryWolf
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 02-18-2023 , 10:24   Re: admin page not working - PHP8
Reply With Quote #2

PHP8 didn't worked for me as well, but works fine on 7.3 / 7.4
And PHP 7.4 is still ok, it is not mantained by php team anymore, but any distribution still gives fixes, like in debian once per month they give a update with fixes.
__________________
I dont walk trough this world with fear in my heart.
www.dark-arena.com L4D, CS1.6, CZ Servers
CryWolf is offline
Send a message via MSN to CryWolf Send a message via Yahoo to CryWolf
A1m1
New Member
Join Date: Nov 2016
Old 02-20-2023 , 01:40   Re: admin page not working - PHP8
Reply With Quote #3

Quote:
Originally Posted by CrazyKermitRubes View Post
I am running hlstatsx CE 1.7.0 with PHP 8 and MYSQL 8.
I attempted to fix a couple PHP errors found in issues on the github repo, but then I got a blank page instead of admin login page. I cannot find any errors or anything in any logs, so I'm not sure what to look at.

My guess is something is going on with the PHP, but if logging is turned on, I'm not sure what to check.

I added this to see errors:
ini_set('display_errors', 'On');
ini_set('html_errors', 0);
error_reporting(-1);
Old constructor names are not supported. Examples: pChart, search, admin, options, ventrilostatus

I recommend to use my repository as i fixed a lot of things for php8/mysql8
A1m1 is offline
CrazyKermitRubes
Junior Member
Join Date: Sep 2020
Old 02-25-2023 , 23:45   Re: admin page not working - PHP8
Reply With Quote #4

Thank you very much, A1m1! I got it to work!

CrazyKermitRubes is offline
nikooo777
AlliedModders Donor
Join Date: Apr 2010
Location: Lugano, Switzerland
Old 06-28-2023 , 09:34   Re: admin page not working - PHP8
Reply With Quote #5

Quote:
Originally Posted by A1m1 View Post
Old constructor names are not supported. Examples: pChart, search, admin, options, ventrilostatus

I recommend to use my repository as i fixed a lot of things for php8/mysql8
are your player statistics working?

I'm struggling to get mines to work, no errors either https://stats.elite-hunterz.info/hlstats.php?game=css
__________________

Last edited by nikooo777; 06-28-2023 at 09:35.
nikooo777 is offline
USER555
Member
Join Date: Aug 2020
Location: Thailand
Old 07-02-2023 , 04:53   Re: admin page not working - PHP8
Reply With Quote #6

thanks for supporting this project but does this work with php8.2 too?
USER555 is offline
Fragenstein
Member
Join Date: Mar 2005
Old 07-03-2023 , 13:36   Re: admin page not working - PHP8
Reply With Quote #7

Quote:
Originally Posted by USER555 View Post
thanks for supporting this project but does this work with php8.2 too?
I just upgraded to PHP 8.2.4. It works using A1mDev's fork.
__________________
Fragenstein is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode