AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   HLstatsX:CE (https://forums.alliedmods.net/forumdisplay.php?f=156)
-   -   Is this broken with PHP7? (https://forums.alliedmods.net/showthread.php?t=284078)

dexslab 08-22-2016 17:58

Re: Is this broken with PHP7?
 
1 Attachment(s)
Here is modified class_db.php. Overwrite the one in the includes folder. I am working on getting a pull request sent in this works i have tested it myself it uses mysqli instead of mysql and still supports persistent connections if needed.

dexslab 08-23-2016 08:28

Re: Is this broken with PHP7?
 
1 Attachment(s)
Looks like dailyawardinfo using mysql for one line so here is that file as well. Thanks to my forum members they helped me with full testing and checking out almost every page. If there are any more i will post them. This goes in the pages folder of your hlstats website

Starkiller 06-27-2017 21:03

Re: Is this broken with PHP7?
 
Hello,

I tried the solution of PAL-18, then dexslab and to finish the 2 at the same time I still have problems on various pages ...

Example on my main page:
Quote:

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; DB_mysql has a deprecated constructor in C:\UwAmp\www\stats\includes\class_db.php on line 58

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Table has a deprecated constructor in C:\UwAmp\www\stats\includes\class_table.php on line 48

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; TableColumn has a deprecated constructor in C:\UwAmp\www\stats\includes\class_table.php on line 515
Precision of my configuration:
-I'm local, web server and game server.
-I'm under windows 10
-For the web part I use UwAmp which emulates "Apache" and "php-7.1.6-Win32-VC14-x86" and "mysql-5.7.11"

Thank you in advance for the help you can bring me.
Have a good day.

MAMAC 10-20-2017 06:19

Re: Is this broken with PHP7?
 
anyone fix this errors 58 48 and 515

NomisCZ 10-22-2017 08:14

Re: Is this broken with PHP7?
 
1 Attachment(s)
Quote:

Originally Posted by MAMAC (Post 2555535)
anyone fix this errors 58 48 and 515

Try attached zip.

MAMAC 10-22-2017 09:36

Re: Is this broken with PHP7?
 
Quote:

Originally Posted by NomisCZ (Post 2556026)
Try attached zip.

yap that fix that errors but i get new one...

PHP Warning: Illegal string offset 'Position' in /public_html/stats/statistics/includes/pChart/pData.class on line 57,
PHP Warning: Illegal string offset 'Format' in /public_html/stats/statistics/includes/pChart/pData.class on line 58,
PHP Fatal error: Uncaught Error: Cannot use string offset as an array in /public_html/stats/statistics/includes/pChart/pData.class:58,
Stack trace:,
#0/public_html/stats/statistics/trend_graph.php(114): pData->pData(),

csgoandsm 12-25-2017 22:07

Re: Is this broken with PHP7?
 
Spoiler


https://bitbucket.org/Maverick_of_UC...ith-php-7/diff

https://forums.alliedmods.net/showthread.php?t=303876


:)


All times are GMT -4. The time now is 00:18.

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