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
333 stars 174 forks source link

at Bantime, error but then #840

Closed Trice1984 closed 1 year ago

Trice1984 commented 1 year ago

Hello,

i use the SB 1.7 at my Server so i will test.

Its all fine, but some error when people Timeban its there.

At Bantime, its an Error but after a timeban correct display when time is up, i send a photo thats the best way to show the problem.

SBerror

Many thats for our time!

Rushaway commented 1 year ago

Hello. Can you provide us the full code page related to your error displayed?

Trice1984 commented 1 year ago

Hello,

its only in the Dashbord, in BANS i see the correct Ban/Time

in Line 65 is:

<td class="listtable_1<?php if ($this->_tpl_vars['player']['unbanned']): ?>_unbanned<?php elseif ($this->_tpl_vars['player']['perm']): ?>_permanent<?php elseif ($this->_tpl_vars['player']['temp']): ?>_banned<?php endif; ?>"><?php echo $this->_tpl_vars['player']['length']; ?>

What versions of software are you using?

Operating System: Ubuntu 22.04 LTS SourceBans++ Version: [SourceBans++]1.7.0 | Git: 1145 PHP Version: 8.0.26 MySQL Version: MariaDB 10.6.11

Dashbord BANS

Rushaway commented 1 year ago

Please use PHP 8.1 if you are running the dev branch. Or use PHP 7.4 is you use the master branch.

The dev branch wasn't made for PHP 8.0. It was for 8.1

Trice1984 commented 1 year ago

Hi,

at 8.1 its error Time, i can new install the SB?

Deprecated : Constant FILTER_SANITIZE_STRING is deprecated in /var/www/vhosts/XXXXX/httpdocs/SBban/includes/page-builder.php on line 10

Deprecated : Constant FILTER_SANITIZE_STRING is deprecated in /var/www/vhosts/XXXXX/httpdocs/SBban/includes/page-builder.php on line 11

Deprecated : Constant FILTER_SANITIZE_STRING is deprecated in /var/www/vhosts/XXXXXX/httpdocs/SBban/includes/page-builder.php on line 12

Deprecated : Function strftime() is deprecated in /var/www/vhosts/XXXXXX/httpdocs/SBban/includes/vendor/smarty/smarty/libs/Smarty_Compiler.class.php on line 394

Rushaway commented 1 year ago

Please upgrade to the last version of sbpp (1.8.0) to solve this error with PHP 8.1 support. Can be closed @Hackmastr