Closed Breadwinka closed 5 years ago
I have different environment, but similar problem.
After recent update mode=admin&task=tools_editdetails_player
page not saving edited data. No errors, have Profile updated successfully.
text appearing but data remain unchanged.
Describe the bug When clicking on Edit Player or Clan Details Error on the Admin page get the following error: Fatal error: Uncaught Error: Using $this when not in object context in
C:\xampp\htdocs\hlx\pages\admintasks\tools_editdetails.php:66 Stack trace: #0 C:\xampp\htdocs\hlx\pages\admin.php(1079): include() #1 C:\xampp\htdocs\hlx\hlstats.php(222): include('C:\xampp\htdocs...') #2 {main} thrown in C:\xampp\htdocs\hlx\pages\admintasks\tools_editdetails.php on line 66
To Reproduce Steps to reproduce the behavior:
Expected behavior Should see the Edit Player Or Clan Details page
Screenshots If applicable, add screenshots to help explain your problem.
Environment
Additional context Running xampp 7.3.5
Hello, please try it now (don't forget to update files).
Hey NomisCZ,
Can confirm that removing that line resolved the error. But as Anton mentioned earlier. The actual editing or updating the player doesn't work even though it says it updates succesfully. This isn't a huge deal for me as if I wanted just modify the actual user in mysql.
Please try it now, I fixed some DB class problems.
Its working now, I also noticed in the toold_resetdbcollections.php line 99 throws an exception while ($row=mysql_fetch_assoc($rs)) should be while ($row=mysqli_fetch_assoc($rs))
@Breadwinka OK, fixed.
All fixed for me closing.
Fatal error: Uncaught Error: Using $this when not in object context in C:\xampp\htdocs\hlx\pages\admintasks\tools_editdetails.php:66 Stack trace: #0 C:\xampp\htdocs\hlx\pages\admin.php(1079): include() #1 C:\xampp\htdocs\hlx\hlstats.php(222): include('C:\xampp\htdocs...') #2 {main} thrown in C:\xampp\htdocs\hlx\pages\admintasks\tools_editdetails.php on line 66