Raised This Month: $153 Target: $400
 38% 

[L4D & L4D2] Custom Player Stats v1.4B121


Post New Thread Reply   
 
Thread Tools Display Modes
Tiger50
Member
Join Date: Feb 2010
Location: Southampton UK
Old 09-11-2017 , 09:37   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1841

@ muukis

My gsp has updated the php to 7 and that is causing the problem, I am running 15 l4d2 servers on a vs is it possible for me to add a php ver 5/6 web server to this drive without wiping it?
Tiger50 is offline
Send a message via Yahoo to Tiger50
doctorrock
New Member
Join Date: Sep 2017
Old 09-12-2017 , 08:55   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1842

PHP 7 removed the ext/mysql module favoring ext/mysqli or ext/pdo.

l4dstats web does not work as-is on new servers providing PHP 7.
PHP 5 is dying, even if we can still find servers providing it, PHP 7 will replace it.

Reading l4dstats web source code, it seems like attempts had been made to switch between mysql/mysqli , but never used. Huge parts of code still hardcode ext/mysql usage, thus turning any code change into a nightmare. At least, lots of motivation is needed to patch it.
doctorrock is offline
Tiger50
Member
Join Date: Feb 2010
Location: Southampton UK
Old 09-12-2017 , 13:37   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1843

@ doctorrock

Im running a ubuntu server with 15 virtual l4d2 servers on it can i install a webserver on to the server to run php5/6?? without wiping my server and reinstalling?
Tiger50 is offline
Send a message via Yahoo to Tiger50
muukis
Veteran Member
Join Date: Apr 2009
Old 09-13-2017 , 03:11   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1844

Quote:
Originally Posted by Tiger50 View Post
@ muukis

My gsp has updated the php to 7 and that is causing the problem, I am running 15 l4d2 servers on a vs is it possible for me to add a php ver 5/6 web server to this drive without wiping it?
There are no install scripts within the custom player stats, that could drop existing data from the database. Installing/downgrading to an older PHP would not kill the stats. However, it is never a bad thing to make backups.

Quote:
Originally Posted by doctorrock View Post
PHP 7 removed the ext/mysql module favoring ext/mysqli or ext/pdo.

l4dstats web does not work as-is on new servers providing PHP 7.
PHP 5 is dying, even if we can still find servers providing it, PHP 7 will replace it.

Reading l4dstats web source code, it seems like attempts had been made to switch between mysql/mysqli , but never used. Huge parts of code still hardcode ext/mysql usage, thus turning any code change into a nightmare. At least, lots of motivation is needed to patch it.
Thanks for the info. I will update my PHP to the latest and then fix the errors... once I get the time to do that.
__________________
Monster Hunter

Though certainly not superhuman, the man's prowess inspires an excess of whispered rumors. But those rumors remain in the realm of speculation.

Last edited by muukis; 09-13-2017 at 03:11.
muukis is offline
doctorrock
New Member
Join Date: Sep 2017
Old 09-13-2017 , 07:39   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1845

Quote:
Originally Posted by muukis View Post
Thanks for the info. I will update my PHP to the latest and then fix the errors... once I get the time to do that.
I could PR ; but I think it would be better to rewrite it from scratch with some DBAL based on PDO for example.
doctorrock is offline
Tiger50
Member
Join Date: Feb 2010
Location: Southampton UK
Old 10-05-2017 , 13:20   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1846

My GSP fixed the problem with this addon when their webservers were upgraded to PHP 7, Custom players stats is back up and running on PHP 7

I think they have a bit of code that you run once on files like common.php config.php and it worked fine, if anyone wants the link let me know
Tiger50 is offline
Send a message via Yahoo to Tiger50
doctorrock
New Member
Join Date: Sep 2017
Old 10-12-2017 , 16:59   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1847

I also managed to patch and customize a version for my needs. Pretty dirty, but works.
doctorrock is offline
Tiger50
Member
Join Date: Feb 2010
Location: Southampton UK
Old 10-29-2017 , 08:53   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1848

Has anyone got a version of the l4d_stats.smx that works in windows as mine stopped working ages ago and ive tried most things to get it to work on my windows servers with no luck

I have np with with it on my ubuntu servers and it runs like a dream

Last edited by Tiger50; 10-29-2017 at 12:11.
Tiger50 is offline
Send a message via Yahoo to Tiger50
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 23:54.


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