sbpp / sourcebans-pp

Admin, ban, and comms management system for the Source engine
https://sbpp.github.io/
Creative Commons Attribution Share Alike 4.0 International
336 stars 174 forks source link

[8.1] $rcon is not defined #799

Closed Rushaway closed 2 years ago

Rushaway commented 2 years ago

What are the steps to reproduce this issue?

  1. Try to sent an rcon command from sbpp webpanel server
  2. Return error (see the end of report for screenshoot)

What happens?

$rcon is not defined

What were you expecting to happen?

Solve this error without disable ajax call report.

Any logs, error output, etc.?

Line 2538 Log::add("m", "RCON Sent", "RCON Command was sent to server ($rcon[ip]:$rcon[port])");

Any other comments?

Not tested on 7.4. image

What versions of software are you using?

Operating System: nginx SourceBans++ Version: 1.7.0 (php 8.1 branch) with the lastest release. PHP Version: 8.1.10 MySQL Version: 10.6.7-MariaDB-2ubuntu1 - Ubuntu 22.04 Link to your project: https://upgradebans.nide.gg/index.php Link to a phpinfo() output: https://upgradebans.nide.gg/phpinfo.php

Hackmastr commented 2 years ago

Fixed. Thanks!