Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't connect to TP after fresh install #940

Closed
BenDavidson90 opened this issue Mar 27, 2015 · 1 comment
Closed

Can't connect to TP after fresh install #940

BenDavidson90 opened this issue Mar 27, 2015 · 1 comment

Comments

@BenDavidson90
Copy link

I can't connect to TeamPass after a fresh install.

I found a workaround but it's not clean...

The problem: When I put the admin login and password, it keeps loading.

I have check the firebug console and see that http://localhost/teampass/sources/identify.php return a 500 error.

So i put these lines on it:

error_reporting(E_ALL);
ini_set('display_errors', 'On');

After that, in firebug console, i see these lines:

Fatal error: Uncaught exception 'ReflectionException' with message 'Class PasswordLib\Password\Implementation._SHA256 does not exist' in /var/www/teampass/includes/libraries/PasswordLib/Core/AbstractFactory.php:50
Stack trace:

0 /var/www/teampass/includes/libraries/PasswordLib/Core/AbstractFactory.php(50): ReflectionClass->__construct('PasswordLib\Pas...')

1 /var/www/teampass/includes/libraries/PasswordLib/Password/Factory.php(104): PasswordLib\Core\AbstractFactory->registerType('implementations', 'PasswordLib\Pas...', '._SHA256', 'PasswordLib\Pas...')

2 [internal function]: PasswordLib\Password\Factory->registerImplementation('._SHA256', 'PasswordLib\Pas...')

3 /var/www/teampass/includes/libraries/PasswordLib/Core/AbstractFactory.php(77): call_user_func(Array, '._SHA256', 'PasswordLib\Pas...')

4 /var/www/teampass/includes/libraries/PasswordLib/Password/Factory.php(118): PasswordLib\Core\AbstractFactory->loadFiles('/var/www/teampa...', 'PasswordLib\Pas...', Array)

5 /var/www/teampass/includes/libraries/Passwo in /var/www/teampass/includes/libraries/PasswordLib/Core/AbstractFactory.php on line 50

So the workaround I found is to put this code in includes/libraries/PasswordLib/Core/AbstractFactory.php between lines 49 and 50:

$class = str_replace('._', '', $class);

And now it works.

@ctwebru
Copy link

ctwebru commented Jul 29, 2016

You God!!! Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants