AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   HLstatsX:CE (https://forums.alliedmods.net/forumdisplay.php?f=156)
-   -   admin page not working - PHP8 (https://forums.alliedmods.net/showthread.php?t=341884)

CrazyKermitRubes 02-18-2023 08:55

admin page not working - PHP8
 
1 Attachment(s)
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);

CryWolf 02-18-2023 10:24

Re: admin page not working - PHP8
 
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.

A1m1 02-20-2023 01:40

Re: admin page not working - PHP8
 
Quote:

Originally Posted by CrazyKermitRubes (Post 2799774)
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

CrazyKermitRubes 02-25-2023 23:45

Re: admin page not working - PHP8
 
Thank you very much, A1m1! I got it to work!

:up:

nikooo777 06-28-2023 09:34

Re: admin page not working - PHP8
 
Quote:

Originally Posted by A1m1 (Post 2799877)
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

USER555 07-02-2023 04:53

Re: admin page not working - PHP8
 
thanks for supporting this project but does this work with php8.2 too?

Fragenstein 07-03-2023 13:36

Re: admin page not working - PHP8
 
Quote:

Originally Posted by USER555 (Post 2806691)
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.


All times are GMT -4. The time now is 15:13.

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