Raised This Month: $ Target: $400
 0% 

Unable To Install Sourcebans 1.7


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dominatez
Senior Member
Join Date: Oct 2009
Location: Birmingham, UK
Old 06-04-2025 , 18:02   Unable To Install Sourcebans 1.7
Reply With Quote #1

I keep getting the following error when i go to the webpage to install (Fresh Install).

Quote:
Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW) in /var/www/server/sourcebans/install/includes/routing.php on line 5
All permissions have been set correctly, and my test pages in another directory are running just fine.

Ubuntu 24.04.2 LTS
PHP 8.4.7 (cli)
Server version: Apache/2.4.58 (Ubuntu)
mysql Ver 15.1 Distrib 10.11.13-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper
Composer is also installed.

SourceMod Version Information:
SourceMod Version: 1.12.0.7202
SourcePawn Engine: 1.12.0.7202, jit-x86 (build 1.12.0.7202)
SourcePawn API: v1 = 5, v2 = 16
Compiled on: May 20 2025 18:24:53
Built from: https://github.com/alliedmodders/sou...ommit/1b8a87ca
Build ID: 7202:1b8a87ca

Any ideas what could be causing this ?

Edit - Decided to try 1.6.4 and it installed just fine from a fresh install with no issues.

Last edited by Dominatez; 06-06-2025 at 16:42. Reason: Updated
Dominatez is offline
DNA.styx
Senior Member
Join Date: Dec 2023
Old 06-06-2025 , 18:01   Re: Unable To Install Sourcebans 1.7
Reply With Quote #2

Best installing 1.8.1 from here: https://github.com/sbpp/sourcebans-pp/releases (release called Plugins-Latest and download the source code .zip)
__________________
DNA.styx is offline
Dominatez
Senior Member
Join Date: Oct 2009
Location: Birmingham, UK
Old 06-06-2025 , 20:18   Re: Unable To Install Sourcebans 1.7
Reply With Quote #3

Quote:
Originally Posted by DNA.styx View Post
Best installing 1.8.1 from here: https://github.com/sbpp/sourcebans-pp/releases (release called Plugins-Latest and download the source code .zip)
Tried that and it still gives the same error.

And it also keeps spitting out the following into the error logs.

[sbpp_comms.smx] Query_VerifyBlock failed: Table 'sourcebans.sb_comms' doesn't exist
[sbpp_sleuth.smx] SourceSleuth: Database query error: Table 'sourcebans.sb_bans' doesn't exist
[sbpp_comms.smx] Lost connection to DB. Reconnect after delay.
Dominatez is offline
DNA.styx
Senior Member
Join Date: Dec 2023
Old 06-07-2025 , 15:32   Re: Unable To Install Sourcebans 1.7
Reply With Quote #4

One of my test sites with 1.8.1 | Git: 1434 is running on PHP Version 8.4.6 so it's definitely compatible.

> [sbpp_sleuth.smx] SourceSleuth: Database query error: Table 'sourcebans.sb_bans' doesn't exist
That means your installation isn't set up correctly. Or the wrong table name is in config.php (see below)

I know if must be frustrating, but likely blow away the install and database and run through the 1.8.x install again, followed by running www.yourwebsite.com/updater

If you use discord perhaps join their channel: https://discord.gg/4Bhj6NU

PHP Code:
<?php
define
('DB_HOST''localhost');                       // The host/ip to your SQL server
define('DB_USER''xxxxx');                        // The username to connect with
define('DB_PASS''yyyyy');                        // The password
define('DB_NAME''zzzzzz');                          // Database name
define('DB_PREFIX''sb');                    // The table prefix for SourceBans    <-----
define('DB_PORT''3306');                            // The SQL port (Default: 3306)
define('DB_CHARSET''utf8mb4');                    // The Database charset (Default: utf8)
define('STEAMAPIKEY''');                // Steam API Key for Shizz
define('SB_EMAIL''aaaaaa');
define('SB_NEW_SALT''bbbbbb'); //Salt for passwords
define('SB_SECRET_KEY''ccccccc'); //Secret for JWT
__________________
DNA.styx is offline
Dominatez
Senior Member
Join Date: Oct 2009
Location: Birmingham, UK
Old 06-08-2025 , 19:33   Re: Unable To Install Sourcebans 1.7
Reply With Quote #5

Quote:
Originally Posted by DNA.styx View Post
One of my test sites with 1.8.1 | Git: 1434 is running on PHP Version 8.4.6 so it's definitely compatible.

> [sbpp_sleuth.smx] SourceSleuth: Database query error: Table 'sourcebans.sb_bans' doesn't exist
That means your installation isn't set up correctly. Or the wrong table name is in config.php (see below)

I know if must be frustrating, but likely blow away the install and database and run through the 1.8.x install again, followed by running www.yourwebsite.com/updater

If you use discord perhaps join their channel: https://discord.gg/4Bhj6NU

PHP Code:
<?php
define
('DB_HOST''localhost');                       // The host/ip to your SQL server
define('DB_USER''xxxxx');                        // The username to connect with
define('DB_PASS''yyyyy');                        // The password
define('DB_NAME''zzzzzz');                          // Database name
define('DB_PREFIX''sb');                    // The table prefix for SourceBans    <-----
define('DB_PORT''3306');                            // The SQL port (Default: 3306)
define('DB_CHARSET''utf8mb4');                    // The Database charset (Default: utf8)
define('STEAMAPIKEY''');                // Steam API Key for Shizz
define('SB_EMAIL''aaaaaa');
define('SB_NEW_SALT''bbbbbb'); //Salt for passwords
define('SB_SECRET_KEY''ccccccc'); //Secret for JWT
I will try it again later on. Don't see it making any difference to be honest, but you never know. My dedi box hardware blew up, so i h ad to reinstall everything from scratch.
Dominatez 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 13:49.


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