AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   SourceBans / SourceBans++ (https://forums.alliedmods.net/forumdisplay.php?f=152)
-   -   Source ban++ Step 5 Error (https://forums.alliedmods.net/showthread.php?t=299136)

albisse 07-04-2017 08:11

Source ban++ Step 5 Error
 
Hello !
I'm new in cs go server domain and i have a problem with SourceBan++ at Step 5 of installation.

I have a PHP error so i can't finish the install :/

This is the PHP Error :

Code:

Fatal error: Uncaught exception 'Exception' with message 'There is no suitable CSPRNG installed on your system' in /home/u441843671/public_html/includes/random_compat/lib/random.php:185 Stack trace: #0 /home/u441843671/public_html/install/template/page.5.php(56): random_bytes(16) #1 /home/u441843671/public_html/install/includes/page-builder.php(62): include('/home/u44184367...') #2 /home/u441843671/public_html/install/index.php(32): include_once('/home/u44184367...') #3 {main} thrown in /home/u441843671/public_html/includes/random_compat/lib/random.php on line 185
Help me plz this is le last step to create my server :/

Cripix 07-04-2017 08:31

Re: Source ban++ Step 5 Error
 
Quote:

Originally Posted by Cripix (Post 2532050)
https://github.com/paragonie/random_...ses/tag/v1.3.0

Download the source code and you replace the files in this directory : htdocs/includes/random_compat/


albisse 07-04-2017 09:45

Re: Source ban++ Step 5 Error
 
I make that where i can :
Quote:

try {
$bytes = random_bytes(32);
} catch (Exception $ex) {
$strong = false;
$bytes = openssl_random_pseudo_bytes(32, $strong);
if (!$strong) {
throw $ex;
}
}
And replace my random_compact file in includes path of source ban ++ with his random_compact but its same and PHP say :

Quote:

Fatal error: Call to undefined function random_bytes() in /home/u441843671/public_html/install/init.php on line 38
So undo / delete this part of code and just replace files but "Fatal error: Uncaught exception 'Exception' with message 'There is no suitable CSPRNG installed on your system' ... the same ..

This is normal because i think i did'nt have this function so i don't know what i can do :/

Cripix 07-04-2017 09:51

Re: Source ban++ Step 5 Error
 
Did you try to restart Apache and empty the cache of your browser?

albisse 07-04-2017 09:57

Re: Source ban++ Step 5 Error
 
I can't restart, it's an free host so i can't.

Cache of my browser with PHP ? i think it's not the probleme :(

Je suis aussi français je t'ai ajouter en amis steam ( almost ) , peux tu accepter afin que l'on puisse discuter plus simplement :) ?

Cripix 07-04-2017 10:26

Re: Source ban++ Step 5 Error
 
Ouais Va y XD

Groruk 07-04-2017 13:34

Re: Source ban++ Step 5 Error
 
Quote:

Originally Posted by albisse (Post 2533351)
Hello !
I'm new in cs go server domain and i have a problem with SourceBan++ at Step 5 of installation.

I have a PHP error so i can't finish the install :/

This is the PHP Error :

Code:

Fatal error: Uncaught exception 'Exception' with message 'There is no suitable CSPRNG installed on your system' in /home/u441843671/public_html/includes/random_compat/lib/random.php:185 Stack trace: #0 /home/u441843671/public_html/install/template/page.5.php(56): random_bytes(16) #1 /home/u441843671/public_html/install/includes/page-builder.php(62): include('/home/u44184367...') #2 /home/u441843671/public_html/install/index.php(32): include_once('/home/u44184367...') #3 {main} thrown in /home/u441843671/public_html/includes/random_compat/lib/random.php on line 185
Help me plz this is le last step to create my server :/

You can try SourceBans++ 1.6.2 since it's now using password_hash for hashing there shouldn't be any problems.


All times are GMT -4. The time now is 05:19.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.