Jump to content
thirty bees forum
  • 0

Error in vendor/defuse/php-encryption/src/Encoding.php after installing TB in Softaculous


Imkershop

Question

Hello,

I tried to install Thirtybees through Softaculous, but every time I try to load the webpage I get the following error;

Quote

Encoding::hexToBin() input is not a hex string.

in file vendor/defuse/php-encryption/src/Encoding.php at line 66

Source file: vendor/defuse/php-encryption/src/Encoding.php


47:     *
48:     * @return string
49:     * @psalm-suppress TypeDoesNotContainType
50:     */
51:    public static function hexToBin($hex_string)
52:    {
53:        $hex_pos = 0;
54:        $bin     = '';
55:        $hex_len = Core::ourStrlen($hex_string);
56:        $state   = 0;
57:        $c_acc   = 0;
58:
59:        while ($hex_pos < $hex_len) {
60:            $c        = \ord($hex_string[$hex_pos]);
61:            $c_num    = $c ^ 48;
62:            $c_num0   = ($c_num - 10) >> 8;
63:            $c_alpha  = ($c & ~32) - 55;
64:            $c_alpha0 = (($c_alpha - 10) ^ ($c_alpha - 16)) >> 8;
65:            if (($c_num0 | $c_alpha0) === 0) {
66:                throw new Ex\BadFormatException(
67:                    'Encoding::hexToBin() input is not a hex string.'
68:                );
69:            }
70:            $c_val = ($c_num0 & $c_num) | ($c_alpha & $c_alpha0);
71:            if ($state === 0) {
72:                $c_acc = $c_val * 16;
73:            } else {
74:                $bin .= \pack('C', $c_acc | $c_val);
75:            }
76:            $state ^= 1;

Stack trace

1. vendor/defuse/php-encryption/src/Encoding.php:221 source Defuse\Crypto\Encoding::hexToBin(arguments)
2. vendor/defuse/php-encryption/src/Key.php:49 source Defuse\Crypto\Encoding::loadBytesFromChecksummedAsciiSafeString(arguments)
3. classes/PhpEncryption.php:54 source Defuse\Crypto\Key::loadFromAsciiSafeString(arguments)
4. classes/Encryptor.php:138 source PhpEncryptionCore->__construct(arguments)
5. classes/Encryptor.php:60 source EncryptorCore::getCipherTool()
6. classes/Cookie.php:534 source EncryptorCore::getInstance()
7. classes/Cookie.php:219 source CookieCore->getCipherTool()
8. classes/Cookie.php:448 source CookieCore->_setcookie(arguments)
9. classes/controller/Controller.php:347 source CookieCore->write()
10. classes/controller/FrontController.php:797 source ControllerCore->smartyOutputContent(arguments)
11. classes/controller/FrontController.php:994 source FrontControllerCore->smartyOutputContent(arguments)
12. classes/controller/Controller.php:226 source FrontControllerCore->display()
13. classes/controller/FrontController.php:253 source ControllerCore->run()
14. classes/Dispatcher.php:837 source FrontControllerCore->run()
15. ./index.php:33 source DispatcherCore->dispatch()

I hope someone is able to help me with this problem.
Thanks in advance

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...