Raised This Month: $ Target: $400
 0% 

Some actions giving SQL error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DNA.styx
Member
Join Date: Dec 2023
Old 10-12-2024 , 18:14   Some actions giving SQL error
Reply With Quote #1

I'm running HLstatsX Community Edition 1.11.3 and this page gives this error
Code:
Fatal error
: Uncaught mysqli_sql_exception: Expression #5 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'dnagames_hlstatsx.hlstats_Actions.reward_player' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by in /var/www/hlstatx-dev.dnagames.site/includes/class_db.php:222 Stack trace: #0 /var/www/hlstatx-dev.dnagames.site/includes/class_db.php(222): mysqli_query() #1 /var/www/hlstatx-dev.dnagames.site/pages/actioninfo.php(159): DB_mysql->query() #2 /var/www/hlstatx-dev.dnagames.site/hlstats.php(228): include('...') #3 {main} thrown in
/var/www/hlstatx-dev.dnagames.site/includes/class_db.php
on line
222
Also get it at the bottom of the player page when as an admin I try to edit it.

Googling the error also shows it up on v1.7.0

https://hlstats.eighthid.com/hlstats...ortorder=desc#

and also this GitHub issue.

Any known fixes?
__________________
DNA.styx is offline
DNA.styx
Member
Join Date: Dec 2023
Old 10-13-2024 , 12:07   Re: Some actions giving SQL error
Reply With Quote #2

Not sure if this is the best fix (or what the exact cause is) but this worked for me.
__________________
DNA.styx 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 19:25.


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