sourcebans-pp icon indicating copy to clipboard operation
sourcebans-pp copied to clipboard

AJAX Calls when new admin info save

Open SsSAtonioSsS opened this issue 3 years ago • 5 comments
trafficstars

What are the steps to reproduce this issue?

  1. Admin Management
  2. Add new admin
  3. Save

What happens?

AJAX errors when info saved

And a new record is added to the database.

What were you expecting to happen?

No error?

Any logs, error output, etc.?

Error: the XML response that was returned from the server is invalid. Received:

Warning: Trying to access array offset on value of type bool in /home/service/web/bans.rz-proj.ru/public_html/includes/CUserManager.php on line 254

Warning: Trying to access array offset on value of type bool in /home/service/web/bans.rz-proj.ru/public_html/includes/CUserManager.php on line 267

Warning: Trying to access array offset on value of type bool in /home/service/web/bans.rz-proj.ru/public_html/includes/CUserManager.php on line 280

$('name.msg').setStyle('display', 'none');$('steam.msg').setStyle('display', 'none');$('email.msg').setStyle('display', 'none');$('password.msg').setStyle('display', 'none');$('password2.msg').setStyle('display', 'none');$('a_serverpass.msg').setStyle('display', 'none');$('server.msg').setStyle('display', 'none');$('web.msg').setStyle('display', 'none');

Any other comments?

What versions of software are you using?

Operating System: Ubuntu 20.04.4 LTS SourceBans++ Version: 1.7.0 | Git: 1145 PHP Version: 8.0.18 MySQL Version: 10.6.7-MariaDB-1:10.6.7+maria

SsSAtonioSsS avatar May 14 '22 07:05 SsSAtonioSsS

I got the same thing going on with my sourcebans when adding a new admin

Error: the XML response that was returned from the server is invalid. Received: Warning: Trying to access array offset on value of type bool in /home/platchford/public_html/includes/CUserManager.php on line 254

Warning: Trying to access array offset on value of type bool in /home/platchford/public_html/includes/CUserManager.php on line 267

platchford avatar Aug 06 '22 23:08 platchford

I think the whole software needs a refactor to work correctly with php 8.x and mysql 8.x I re coded the whole thing to get it to work with php 8.x

JimTR avatar Aug 07 '22 07:08 JimTR

SourcebansPP isn't fully support in PHP 8.X. Better use PHP 7.4

Rushaway avatar Aug 07 '22 12:08 Rushaway

PHP 7.4 is end of life 28 November 2022, why is out of date versions of PHP

JimTR avatar Aug 08 '22 04:08 JimTR

Maintainer doesn't update it. Even if someone update it to Php 8.x, idk they will accept any MR..

Rushaway avatar Aug 10 '22 16:08 Rushaway

Fixed in the php81 branch. Thanks.

Hackmastr avatar Sep 11 '22 15:09 Hackmastr